write-a-skill
Original:🇺🇸 English
Not Translated
Guide la création d'un nouveau skill d'agent IA pour le dépôt foundation-skills. Génère le squelette du SKILL.md et du fichier docs, applique les conventions du dépôt (frontmatter, versionnage, structure). À utiliser quand l'utilisateur demande de créer un nouveau skill, écrire un skill, ajouter un skill ou générer le squelette d'un skill.
4installs
Added on
NPX Install
npx skill4agent add dedalus-erp-pas/hexagone-foundation-skills write-a-skillSKILL.md Content
Write a Skill
Create a new skill for the foundation-skills repository following all repo conventions.
Workflow
Step 1: Gather requirements
Ask the user:
- What task or domain does the skill cover?
- What specific use cases should it handle?
- What triggers should activate it? (keywords, phrases, file types)
- Any reference materials to include?
Step 2: Choose a skill name
- Use lowercase kebab-case (e.g., )
my-new-skill - Keep it short and descriptive
- Verify the name is not already taken in
skills/
Step 3: Create skills/<name>/SKILL.md
skills/<name>/SKILL.mdStart from but apply these mandatory conventions:
skills/_TEMPLATE/SKILL.mdFrontmatter (YAML):
yaml
---
name: <skill-name>
description: <what it does>. Use when <triggers>.
version: 1.0.0
---- ,
name,descriptionare required and at root level (not nested underversion)metadata - max 1024 characters. First sentence: what it does. Second sentence: "Use when [triggers]."
description - starts at
versionfor new skills1.0.0 - SKILL.md is written in English
Body rules:
- Keep SKILL.md under 100 lines — concise, actionable instructions only
- Use progressive disclosure: put detailed content in files
reference/ - Include concrete examples
- No time-sensitive information
Step 4: Create reference files (if needed)
If content exceeds 100 lines or has distinct domains, split into:
skills/<name>/
├── SKILL.md
└── reference/
├── detailed-guide.md
└── examples.mdReference from SKILL.md:
See [detailed guide](reference/detailed-guide.md)Step 5: Create docs/<name>.md
docs/<name>.mdCreate the matching documentation file in French. It must include:
- Title (skill name)
- Description section
- Cas d'usage (use cases)
- Declenchement (triggers)
- Fonctionnement (how it works)
- Exemples (examples in both English and French)
- Version number
See existing files in for style reference.
docs/Step 6: Review checklist
- exists with valid frontmatter (
skills/<name>/SKILL.md,name,descriptionat root)version - Description includes triggers ("Use when...")
- Description under 1024 characters
- SKILL.md under 100 lines
- SKILL.md written in English
- exists, written in French
docs/<name>.md - No time-sensitive info, consistent terminology
- Concrete examples included
- Reference files only one level deep
Versioning rules
When modifying an existing skill, bump its field:
version- patch (1.0.0 -> 1.0.1): typo fixes, wording improvements, minor clarifications
- minor (1.0.0 -> 1.1.0): new features, new sections, meaningful behavior changes
- major (1.0.0 -> 2.0.0): breaking changes (renamed skill, removed features, restructured workflow)
Important Notes
- Every skill lives in ; documentation in
skills/<name>/SKILL.md(in French)docs/<name>.md - The field is the only thing the agent sees when choosing which skill to load — make it count
description - Scripts are discouraged; prefer Markdown instructions. Add scripts only for deterministic operations