Synthèse automatique
Interroge l'utilisateur pour rédiger un fichier goal.md annexe qui fixe des critères de réussite mesurables à une exécution d'improving-skills sur un SKILL.md existant.
Points forts
- Vérifie les prérequis (SKILL.md, tests.md avec au moins 3 scénarios, test-prompts.md non vide) et s'arrête en indiquant le fichier manquant
- Estime le nombre de tokens actuel et consulte les runs précédents (results.tsv) pour proposer un objectif réaliste
- Construit une condition /goal complète : cible chiffrée, contraintes de préservation, plafond d'itérations
- Mène l'entretien une question à la fois, avec un choix fermé pour l'axe principal
Limites
- N'écrit que goal.md : il ne lance pas lui-même la boucle d'amélioration, il faut ensuite invoquer /improving-skills
- L'estimation de tokens est volontairement approximative (nombre de mots × 1,3)
- Suppose une arborescence de fichiers de test déjà en place, sans quoi la commande s'arrête
À utiliser quand vous voulez qu'une boucle improving-skills s'arrête sur un progrès mesurable plutôt que sur le plafond d'itérations par défaut.
À éviter si le skill ne dispose pas encore d'un tests.md avec au moins trois scénarios et d'un test-prompts.md non vide, ou si une simple retouche manuelle suffit.
Analyse de sécurité
SûrThe skill is pure instruction/planning text: it reads SKILL.md and sidecars, conducts a Q&A, and writes one markdown file. There are no shell commands, no network calls, no obfuscated payloads, no secret handling, and explicit constraints against modifying SKILL.md/tests.md/test-prompts.md or auto-launching the improving-skills loop. The only real concern is a tooling/allowlist mismatch (undeclared Read/Write) rather than any destructive behavior.
- •Declared allowed-tools is empty, but the workflow requires file Read (steps 1-3) and a single Write of `<skill-dir>/goal.md` (step 6), plus optional AskUserQuestion; an agent honoring an empty allowlist will fail or silently skip steps — this should be declared explicitly.
- •Writes into the inspected skill directory (goal.md) and can overwrite an existing goal.md; the skill does ask before overwriting (step 3), which mitigates accidental clobbering.
- •The synthesized `/goal` string is built from free-text user answers and later fed to another agent loop as an evaluator condition — a mildly interesting prompt-injection surface, though the loop is local and user-driven.
Exemples
/goal-improve-skill .claude/skills/pdf-extract — the main axis is tighter triggers. I want trigger accuracy to be 1.0 on the positive prompts and nothing else should change./goal-improve-skill staging/report-writer/SKILL.md. Axis: smaller body. Target: tokens ≤ 600, keeping every existing section and example./goal-improve-skill examples/baz — the last run had composite 0.72 in results.tsv, I want at least 0.85 this time with a 30-iteration cap.description: Interview the user and write a goal.md sidecar that anchors an improving-skills run against an existing SKILL.md with measurable targets
Purpose
The user invoked /goal-improve-skill $ARGUMENTS. They want a measurable /goal condition for an autoresearch run against an existing SKILL.md, so the loop stops on real progress rather than only on the default iteration cap or stuck threshold.
This command writes one artifact — <skill-dir>/goal.md — and prints the /goal line plus the /improving-skills follow-up for the user to invoke.
Steps
-
Parse the argument.
$ARGUMENTSshould be a path to a SKILL.md or its containing directory (e.g..claude/skills/foo,staging/bar/SKILL.md,examples/baz/).- Normalize to
<skill-dir>(the directory containing SKILL.md). - If empty or path doesn't exist, ask: "Which SKILL.md? Give me a path like
.claude/skills/<name>orstaging/<name>/SKILL.md."
-
Verify prerequisites —
improving-skillsrequires all three before it will run:<skill-dir>/SKILL.mdexists<skill-dir>/tests.mdexists with ≥3##scenario headings<skill-dir>/test-prompts.mdexists and is non-empty
If any are missing, stop and tell the user exactly which file to create. Do not proceed.
-
Inspect current state to inform the interview:
- Read SKILL.md. Compute a rough token estimate (word count × 1.3 is fine — this is for the suggestion, not a contract).
- Check whether
runs/exists for previous improving-skills runs on this skill. If so, mention the most recent run's results.tsv so the user can pick a target relative to known scores. - If
<skill-dir>/goal.mdalready exists, read it and ask whether to overwrite.
-
Interview, one question per turn. Use plain chat for freeform answers; you MAY use AskUserQuestion for Q1 since it's a closed choice.
- Q1 (Primary axis): Which is the main improvement axis?
- Tighter triggers (raise trigger accuracy on
test-prompts.md) - Smaller body (reduce token count without quality loss)
- Sharper instructions (raise quality scores on
tests.mdscenarios) - Progressive disclosure (move detail into supporting files)
- Other (let user describe)
- Tighter triggers (raise trigger accuracy on
- Q2 (Numeric target): "What concrete number marks success? Examples:
tokens ≤ 600,composite ≥ 0.85,trigger accuracy = 1.0 on positive prompts,body ≤ 150 lines. Give one number tied to the axis from Q1." Note the current baseline (tokens or whatever applies) in your question so they pick a meaningful delta. - Q3 (Behavior to preserve): "What must NOT change? At minimum, every positive prompt in
test-prompts.mdmust still fire. Anything else — a specific section, a tone, a code example?" - Q4 (Iteration cap): "Default cap is 20 iterations (set in
improving-skills/templates/eval.json.template). Accept default or override?"
- Q1 (Primary axis): Which is the main improvement axis?
-
Synthesize the
/goalcondition. Build one string ≤4000 chars with end state, stated check, constraints, turn bound. Template:The improving-skills loop on <skill-dir>/SKILL.md has produced a kept iteration whose row in runs/<run-id>/results.tsv shows <numeric target from Q2>. The most recent kept iteration's harness column is PASS. All rows marked positive in <skill-dir>/test-prompts.md still fire under the candidate's description (trigger accuracy on positive prompts = 1.0). <Behavior-preservation constraints from Q3>. Or stop after <Q4 cap> iterations or 5 consecutive iterations with no score improvement. -
Write
<skill-dir>/goal.mdwith the structure below. -
Print the launch instructions — see Output section.
goal.md structure
# Goal — improve <skill-name>
**Created:** <today's date>
**Workflow:** improving-skill
**Target:** <skill-dir>/SKILL.md
**Baseline tokens:** <rough estimate from step 3>
## End state
<one-sentence restatement: axis from Q1 + numeric target from Q2>
## How Claude proves it
- A row in `runs/<run-id>/results.tsv` with `kept=yes` shows the target metric
- That row's `harness` column is `PASS`
- The candidate's description still fires every positive prompt in `<skill-dir>/test-prompts.md`
## Must not change
- <each Q3 item>
- All kept iterations pass `eval/check-skill.sh` with zero FAILs
## Iteration cap
<Q4 cap> iterations, or 5 consecutive iterations without improvement.
## Synthesized /goal condition
/goal <full condition string>
## Interview transcript
- **Primary axis:** <Q1 answer>
- **Numeric target:** <Q2 answer>
- **Behavior to preserve:** <Q3 answer>
- **Iteration cap:** <Q4 answer>
Output
After writing the file, print verbatim:
Goal drafted: <skill-dir>/goal.md
Run these two in chat to launch the run with the goal active:
/goal <synthesized condition>
/improving-skills <skill-dir>/SKILL.md
The improving-skills loop will see <skill-dir>/goal.md and can seed runs/<run-id>/program.md from it.
Constraints
- Do NOT start the improving-skills loop yourself — print the lines for the user.
- Do NOT modify SKILL.md, tests.md, or test-prompts.md.
- Do NOT invent baseline numbers. If the token estimate is rough, say so.
- If the user's numeric target in Q2 is unmeasurable from the conversation (e.g. "make it feel sharper"), push back once for a concrete metric the
/goalevaluator can judge.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/generate-goal-condition-for-skill-improvement-mrwake38/download' --output '.skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38/SKILL.md.part' && mv '.skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38/SKILL.md.part' '.skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.
Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/generate-goal-condition-for-skill-improvement-mrwake38/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.