Synthèse automatique
Audite un fichier de skill Claude unique selon les drapeaux de visibilité, la déterminisation des étapes, la composabilité et l’auto-vérification, puis renvoie une réécriture durcie avec un journal des modifications.
Points forts
- Fournit une checklist par axe et un tableau de remplacement des étapes déterministes par des scripts.
- Produit le skill réécrit accompagné d’un changelog justifiant chaque modification.
- Vérifie les scripts existants via capability-map.sh avant de recommander un remplacement.
- Contrôle les métadonnées de déclenchement, les doublons, les entrées/sorties déclarées et l’auto-vérification avant sortie.
Limites
- Suppose une arborescence `.claude/commands/[skill-name].md` et la présence de `backend/scripts/capability-map.sh`.
- N’audite qu’un seul skill à la fois et ne teste pas le comportement d’exécution du skill réécrit.
- Certaines classifications (effets de bord vs connaissance de fond) reposent sur le jugement du modèle.
À utiliser lorsqu’un skill existant doit subir une passe qualité ciblée avant d’être commité ou réutilisé.
À ne pas utiliser pour créer un skill de zéro, auditer plusieurs skills d’un coup ou valider le comportement à l’exécution.
Analyse de sécurité
PrudenceThe skill uses bash commands to read capability maps and run verification scripts, which is a powerful capability but for legitimate auditing purposes. It does not instruct destructive, exfiltrating, or obfuscated actions, and it explicitly forbids inventing script calls. The main risk is the undeclared tool usage and reliance on local scripts whose contents are not audited here.
- •Skill instructs running bash scripts (e.g., backend/scripts/capability-map.sh, ship-gate.sh) but does not declare any allowed tools, creating ambiguity about execution permissions.
- •Although the scripts appear to be legitimate repo utilities, the skill relies on unverified local script names that may not exist or could be altered, and it does not enforce path validation.
Exemples
Harden skill researcher. Audit its visibility flags, replace deterministic steps with scripts where possible, add self-verification, and output the rewritten skill plus a changelog.Apply the audit to /my-custom-skill and rewrite it with visibility flags, deterministic script calls, and a self-check block.Improve skill plan using the three-axis audit: fix frontmatter visibility, remove duplicated logic, and add a changelog of changes.name: harden-skill description: Audits and rewrites a single Claude skill file applying three principles — correct visibility flags (disable-model-invocation, user-invocable), deterministic steps (replace AI-interpretable fixed ops with scripts), and self-verification (generate AND verify output). Trigger when the user says "harden skill X", "apply audit to X", "rewrite X with visibility flags", or "improve skill X". Outputs the rewritten skill with a changelog.
/harden-skill — Single-Skill Audit & Rewrite
Takes one skill, applies the three-axis audit, and produces a hardened rewrite with a changelog of every change and why.
Composability
- Input: A skill name (e.g.
researcher,plan,/my-custom-skill) - Output: Rewritten skill file + changelog — ready to commit
- Uses:
backend/scripts/capability-map.shfor checking if a deterministic script already exists - Part of: A periodic skill maintenance cycle — run on any skill added before these principles existed
STEP 1 — Read the Skill
Read the full .claude/commands/[skill-name].md file.
Then read:
bash backend/scripts/capability-map.sh
This shows what scripts already exist as Level 3 resources.
STEP 2 — Axis 1: Visibility Audit
Check: disable-model-invocation
Does this skill have side effects that should only be user-triggered?
Side effects that require disable-model-invocation: true:
- Commits, pushes, or merges
- Deploys or infrastructure changes
- Sending messages or notifications
- Any action that's hard to reverse
If yes and the flag is missing → add it.
Check: user-invocable
Is this skill pure background knowledge that users would never /run directly?
Background knowledge that requires user-invocable: false:
- Architecture reference sheets (file maps, env vars, stack descriptions)
- Constraint lookup tables
- Context injected into Claude automatically when relevant
If yes and the flag is missing → add it.
Check: Level 1 metadata quality
Does the frontmatter description field contain:
- Precise trigger language — exact phrases that should fire this skill
- What it produces — one-line output description
- What it's NOT for — distinguishes from similar skills
If the description is vague → rewrite it to be precise.
STEP 3 — Axis 2: Deterministic Steps Audit
Scan every step in the skill body for AI doing something that is actually a fixed, repeatable operation:
| Pattern to flag | Replace with |
|---|---|
| "Run the tests and check if they pass" | bash backend/scripts/ship-gate.sh |
| "Check for SQL string interpolation" | bash backend/scripts/check-sql-injection.sh |
| "Is the server alive?" | bash backend/scripts/health-check.sh |
| "What's the next migration number?" | bash backend/scripts/next-migration.sh |
| "List all existing routes and services" | bash backend/scripts/capability-map.sh |
| "Check how many connections the pool is using" | A script that queries pg_stat_activity |
| Any lookup of a static fact from a file | Read the file directly or script it |
For each flagged step:
- Confirm a script already exists (from
capability-map.shoutput) or flag that a new one is needed - Replace the step with the script call + a note that the AI should interpret the exit code / output
STEP 4 — Axis 3: Composability Audit
Check:
- Does the skill declare its Input (what it receives) and Output (what it produces)?
- Does it name the next skill in the chain (what to run after this)?
- Does it duplicate logic from another skill — checklists, formats, or knowledge already in another
.claude/commands/file?- If yes → replace the duplicated section with "see [skill-name]" and a pointer
STEP 5 — Self-Verification Audit
Does the skill have a self-check block that runs before outputting its final result?
A self-check must verify:
- Every required step was completed (not assumed)
- Scripts were actually run (not skipped)
- Output is internally consistent (e.g. verdict matches findings)
- The recommended next step is concrete (names a skill + input string)
If the self-check is missing → add one, placed immediately before the output format section.
STEP 6 — Produce the Rewrite
Apply all findings from Steps 2–5 to produce the rewritten skill file.
Self-Check (run before outputting rewrite)
- [ ] Frontmatter has
name,description, and correct visibility flags - [ ] Every deterministic step identified in Step 3 is replaced with a script call
- [ ] Composability section declares Input, Output, and next skill in chain
- [ ] Self-check block exists and covers all required fields
- [ ] No logic was removed that was legitimately AI judgment
- [ ] No changes made that weren't flagged in Steps 2–5 (surgical edits only)
Output Format
## Skill Audit: [skill-name]
### Findings
| Axis | Issue | Severity |
|---|---|---|
| Visibility | [e.g. "disable-model-invocation missing — skill orchestrates commits"] | High / Medium / Low |
| Deterministic | [e.g. "Phase 3 asks AI to check if tests pass — should call ship-gate.sh"] | High / Medium / Low |
| Composability | [e.g. "Duplicates security checklist from security-and-hardening.md"] | High / Medium / Low |
| Self-verification | [e.g. "No self-check before verdict output"] | High / Medium / Low |
### Changelog
- **[line/section]:** [what changed] — [why]
- **[line/section]:** [what changed] — [why]
### Rewritten Skill
[Full rewritten .md content]
Ground Rules
- Surgical edits only. Don't restructure the whole skill if only the frontmatter needs changing.
- Never remove AI judgment. Only replace steps that are actually deterministic.
- If a needed script doesn't exist — flag it as a finding but don't invent the script call. Create the script separately first.
- One skill per run. Multiple skills = multiple runs.
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/harden-skill-audit-rewrite-msmr5hav/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/harden-skill-audit-rewrite-msmr5hav' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/harden-skill-audit-rewrite-msmr5hav/download' --output '.skill-downloads/harden-skill-audit-rewrite-msmr5hav/SKILL.md.part' && mv '.skill-downloads/harden-skill-audit-rewrite-msmr5hav/SKILL.md.part' '.skill-downloads/harden-skill-audit-rewrite-msmr5hav/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/harden-skill-audit-rewrite-msmr5hav/SKILL.md' && test -s '.skill-downloads/harden-skill-audit-rewrite-msmr5hav/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/harden-skill' && cp -R '.skill-downloads/harden-skill-audit-rewrite-msmr5hav' '.claude/skills/harden-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/harden-skill-audit-rewrite-msmr5hav'openskills read 'harden-skill-audit-rewrite-msmr5hav'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/harden-skill-audit-rewrite-msmr5hav/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.