Synthèse automatique
Guide la création, la validation et l'indexation d'un nouveau skill dans .claude/skills/, du squelette de fichier jusqu'au commit.
Points forts
- Trio de contrôles préalables (besoin récurrent, absence de doublon, apport de structure) qui pousse à mettre à jour un skill existant plutôt qu'à en dupliquer un
- Modèle de SKILL.md complet : frontmatter, pré-vol, étapes ordonnées, format de sortie, invariants
- Auto-revue obligatoire contre references/skill-review-criteria.md, avec correction des manques avant clôture
- Tient les index synchronisés (skills-index.yaml et README) pour que le skill reste sélectionnable
Limites
- Suppose une arborescence .claude/skills/ déjà organisée avec skills-index.yaml et README existants
- La qualité de l'auto-revue dépend entièrement du contenu de skill-review-criteria.md, non détaillé dans ce skill
- Processus volontairement interactif, question par question : peu adapté à la création de plusieurs skills en lot
À employer lorsqu'un workflow se répète assez souvent pour justifier un skill nommé et invocable, doté d'étapes et de contrôles stables.
À éviter pour une tâche ponctuelle ou quand un skill existant couvre déjà le besoin, auquel cas il faut l'étendre plutôt que partir d'une page blanche.
Analyse de sécurité
SûrThis is a documentation/scaffolding meta-skill. It only writes a new markdown skill file, edits an index and README, and runs a single git commit that is explicitly gated behind operator confirmation. There are no destructive commands, no network calls, no curl|sh, no secret handling, and no obfuscated payloads. The implicit use of Write/Edit and a guarded git commit is legitimate authoring activity, so it poses no meaningful execution risk.
- •No allowed-tools declared, though the workflow implies Write/Edit/Glob/Grep and a Bash `git commit` step
- •Step 9 performs a git commit, but it is explicitly gated on asking the operator first
Exemples
Create a new skill called /release-notes in .claude/skills/. Walk me through the slug, one-line description, triggers, scale fit, and tools, draft the body with me section by section, then run the skill-review-criteria checklist and update skills-index.yaml and the README.I want a skill for fixing lint errors automatically. Before we build anything, check skills-index.yaml for an existing skill that already covers this, and tell me whether I should create a new one or extend what's there.We keep repeating the same dependency-upgrade steps on every repo. Use the new-skill workflow to turn that into a proper skill with invariants and an output format, then commit it with the right message.name: new-skill description: Author a new skill under .claude/skills/. Handles template scaffold, frontmatter, review-criteria self-check, and skills-index update.
New skill
Scaffold and review a new skill file in .claude/skills/. Use this when a workflow recurs often enough to justify a named, invokable skill.
Pre-flight
Before creating a new skill, confirm all three:
- Recurring need — this isn't a one-off task.
- No overlap — no existing skill in
skills-index.yamlalready covers this. - Adds structure — the skill provides invariants, ordered steps, or mandated checks that a bare prompt wouldn't.
If any fail, stop and reconsider. Often the right answer is updating an existing skill or adding a topic file to agent-instructions/.
Steps
-
Ask the operator:
- Skill slug (lowercase, hyphens, e.g.
release-notes). - One-line description (starts with a verb, under 200 chars).
- When to invoke (describe the triggering task).
- Scale fit — small / medium / large (any subset).
- Tools the skill needs (Read, Edit, Write, Bash, Glob, Grep, AskUserQuestion, etc.).
- Lifecycle:
onceorrecurring.
- Skill slug (lowercase, hyphens, e.g.
-
Validate the slug: matches
^[a-z][a-z0-9-]*$and isn't already used. -
Create
.claude/skills/<slug>.mdwith the template below. -
Open the file for editing and draft the body with the operator. Guide them through each section of the template — don't dump it and leave.
-
Self-review against
references/skill-review-criteria.md. Go through every checkbox. Fix anything missing. Do not skip this step. -
Update
skills-index.yaml— append an entry for the new skill. Use the same slug, file name, description, triggers, scale, tools, and lifecycle. -
Update
.claude/skills/README.md— add a row to the human-readable table. -
Update
agent-instructions/if the skill introduces a recurring practice that deserves its own topic file or section (e.g. a new-skill for release automation might updatedevelopment-workflow.md). -
Commit (ask first): stage the new skill, the updated index, and the updated README. Commit message:
feat(skills): add /<slug> — <one-line description>
Template
---
name: <slug>
description: <one-line description, verb-first, under 200 chars>
---
# <Human title>
<One paragraph: what this skill does and when to invoke it. Link to the
relevant `agent-instructions/` topic file(s).>
## Pre-flight
<What must be true before running. Detected stack? Clean working tree? Operator
confirmation? Any "stop and ask" conditions.>
## Steps
1. <Numbered, ordered, imperative. One action per step.>
2. ...
3. ...
## Output format
<If the skill produces a report, table, file, or other artifact, show the exact
structure. Use a literal example where possible.>
## Invariants
- <Things the skill must never do — destructive without confirmation, secret
exposure, etc.>
- <Things the skill must always do — cite file:line, respect the task scale,
link to the source of truth.>
## Related
- <Topic files, other skills, external docs.>
Invariants
- Don't create a skill that duplicates an existing one. Update the existing skill instead.
- Don't merge skills that solve genuinely different problems. Keep responsibilities narrow.
- Don't skip the review checklist. Skill quality compounds — a sloppy skill trains sloppy operators.
- Don't forget the index. A skill not listed in
skills-index.yamlis invisible to skill-selection.
Related
references/skill-review-criteria.md— the quality bar.skills-index.yaml— the machine-readable index.README.md— the human-readable index.agent-instructions/scaling-agent-instructions.md— when to promote a recurring pattern into a dedicated file vs. a skill.
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/create-a-new-skill-mrwak94i/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/create-a-new-skill-mrwak94i' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-new-skill-mrwak94i/download' --output '.skill-downloads/create-a-new-skill-mrwak94i/SKILL.md.part' && mv '.skill-downloads/create-a-new-skill-mrwak94i/SKILL.md.part' '.skill-downloads/create-a-new-skill-mrwak94i/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
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/create-a-new-skill-mrwak94i/SKILL.md' && test -s '.skill-downloads/create-a-new-skill-mrwak94i/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/new-skill' && cp -R '.skill-downloads/create-a-new-skill-mrwak94i' '.claude/skills/new-skill'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/create-a-new-skill-mrwak94i'openskills read 'create-a-new-skill-mrwak94i'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode 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/create-a-new-skill-mrwak94i/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.