Création et validation de skills

VérifiéSûr

Guide pour créer, structurer et valider des skills d'agent : métadonnées, divulgation progressive, références et evals skillgrade.

Spar Skills Guide Bot
DeveloppementIntermédiaire
4019/10/2026
Claude Code
#skill-authoring#agent-skills#progressive-disclosure#metadata#validation

Recommandé pour

Notre avis

Guide l'agent dans la rédaction et la validation de skills : frontmatter, structure allégée, divulgation progressive via des fichiers de référence, et évaluations skillgrade.

Points forts

  • Procédure en cinq étapes claires, de la validation des métadonnées à la revue des zones d'hallucination
  • Recommande explicitement de déplacer les règles denses et les gros schémas vers references/ et assets/
  • Cadre l'usage des commandes inline (snapshot shell) avec des garde-fous : sortie courte, outils en lecture seule déclarés
  • Traite la validation avec des graders déterministes plutôt que des jugements LLM par défaut

Limites

  • Suppose une familiarité avec le format SKILL.md, allowed-tools et skillgrade, non expliqué en détail
  • Ne fournit aucun modèle de fichier ni exemple concret de frontmatter ou d'eval
  • Les conseils sur les commandes inline restent généraux et demandent une adaptation manuelle
Quand l'utiliser

À utiliser dès qu'il faut créer un nouveau répertoire de skill ou resserrer les métadonnées, la structure et les évaluations d'un skill existant.

Quand l'éviter

À éviter pour rédiger de la documentation applicative classique, un README générique ou du code de bibliothèque sans rapport avec les skills d'agent.

Analyse de sécurité

Sûr
Score qualité88/100

The skill is instructional metadata about authoring agent skills and contains no executable payloads, destructive commands, exfiltration, or obfuscation. It only advises read-only inline commands when necessary and explicitly recommends declaring minimal allowed-tools.

Aucun point d'attention détecté

Exemples

New skill from scratch
Create a new skill directory called 'pr-review' that reviews pull request diffs and flags risky changes. Write the SKILL.md frontmatter with a tight description and clear negative triggers, then keep the body to a high-level workflow.
Tighten metadata
My 'sql-migration' skill never gets picked up by the router. Review its description, make the triggers more specific, and add negative triggers so it stops firing on unrelated database questions.
Split and validate
This SKILL.md is 400 lines and half of it is a big JSON schema plus templates. Move the dense parts into references/ and assets/, point the agent at them with progressive disclosure, and add a skillgrade eval with a deterministic structural check.

name: skill-creator description: Guides the agent through authoring and validating agent skills. Use when creating new skill directories, tightening skill metadata, extracting supporting references, or preparing skillgrade evals. Do not use for general app documentation, generic README editing, or non-agentic library code.

Skill Authoring Procedure

Create professional-grade skills with lean context, deterministic structure, and validation.

When to Use This Skill

  • User wants to create a new skill directory
  • User wants to improve a skill's discoverability or metadata
  • User wants to split large instructions into references or scripts
  • User wants to add or update skillgrade validation

Procedures

Step 1: Validate the Skill Metadata

Check that the frontmatter uses a unique lowercase name, a specific description, and clear negative triggers.

Keep the description short enough to fit within the agent router's metadata budget.

Step 2: Keep the Main Skill Lean

Write the main SKILL.md as a high-level workflow.

Move dense rules, large schemas, and reusable templates into references/ or assets/.

Use scripts/ only for fragile or repetitive logic that should not be re-authored by the agent.

Step 3: Use Progressive Disclosure

Command the agent to read supporting files only when the current step needs them.

Prefer one-level-deep support files with explicit relative paths.

When a skill depends on repository state that will differ at invocation time, prefer a guarded inline shell snapshot such as !`node -e "..."` instead of baking the current state into prose.

Only do this when the command materially improves the invoked prompt, and keep the output short and deterministic.

If a skill uses inline commands, declare the minimum required allowed-tools entries in frontmatter and keep them read-only.

Step 4: Add Validation

Create a skillgrade eval when the skill needs regression testing.

Use a deterministic grader for structural checks and an LLM rubric only when qualitative judgment is necessary.

Step 5: Review for Hallucination Gaps

Inspect the skill for any step where the agent is forced to guess.

Replace ambiguous prose with concrete commands, file names, or output expectations.

Error Handling

  • If a skill cannot be validated, reduce scope until the missing behavior becomes testable.
  • If the description is too broad, tighten the trigger text before adding more instructions.
  • If the supporting material grows too large, extract it into a separate file and point the agent to it explicitly.
  • If an inline command would require broad shell access or produce noisy output, keep the skill static and tell the agent to inspect the files explicitly instead.
Skills similaires