mcpField
W
write-a-skill

write-a-skill

github.com/dedalus-erp-pasAgent workflows111 installs
Repository

About write-a-skill

A skill for creating skills in the foundation-skills repository, aimed at contributors who need to follow its conventions. It covers requirements gathering, file structure, documentation, and review.

Key features

  1. 01Gather skill requirements
  2. 02Choose and verify skill names
  3. 03Create concise SKILL.md files
  4. 04Add French documentation
  5. 05Review conventions and versioning

Use cases

  1. 01Drafting a new repository skill
  2. 02Checking required metadata and structure
  3. 03Preparing matching French documentation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dedalus-erp-pas/foundation-skills --skill write-a-skill

After installing, type/write-a-skillin Claude Code to confirm it loaded.

Details

From the project README

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

Start from skills/_TEMPLATE/SKILL.md but apply these mandatory conventions:

Frontmatter (YAML):

---
name: <skill-name>
description: <what it does>. Use when <triggers>.
version: 1.0.0
---
  • name, description, version are required and at root level (not nested under metadata)
  • description max 1024 characters. First sentence: what it does. Second sentence: "Use when [triggers]."
  • version starts at 1.0.0 for new skills
  • 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 reference/ files
  • Include concrete examples
  • No time-sensitive information
  • If the skill requires external CLI tools (e.g., gh, glab, jq, playwright), add a ## Prerequisites section listing each tool with its install command. If the tool is not already handled by skills/setup/reference/setup.sh, add it there and bump setup's version (the setup script is maintained manually).
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.md

Reference from SKILL.md: See [detailed guide](reference/detailed-guide.md)

Step 5: Create docs/<name>.md

Create 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 docs/ for style reference.

Step 6: Review checklist
  • skills/<name>/SKILL.md exists with valid frontmatter (name, description, version at root)
  • Description includes triggers ("Use when...")
  • Description under 1024 characters
  • SKILL.md under 100 lines
  • SKILL.md written in English
  • docs/<name>.md exists, written in French
  • No time-sensitive info, consistent terminology
  • Concrete examples included
  • Reference files only one level deep
  • If external CLI tools are required, a ## Prerequisites section is present with install commands
  • If the skill requires a new CLI tool not already handled by setup.sh, add it to skills/setup/reference/setup.sh and bump setup's version

Versioning rules

When modifying an existing skill, bump its version field:

  • 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 skills/<name>/SKILL.md; documentation in docs/<name>.md (in French)
  • The description field is the only thing the agent sees when choosing which skill to load — make it count
  • Scripts are discouraged; prefer Markdown instructions. Add scripts only for deterministic operations

Comments

Markdown supported