Skip to content

skill-authoring

skill-authoring

Authors or revises Agent Skills SKILL.md files—frontmatter triggers, progressive disclosure, and lint-friendly structure. Use when creating a new skill, improving an undertriggered description, splitting an oversized skill body, or aligning with the Agent Skills standard (agentskills.io). Harvest patterns from peer repos but write original instructions for this library.

Category
Category: documentation
  • skill
  • authoring
  • frontmatter
  • description
  • agentskills
  • trigger

Install this skill

npx github:yingkitw/skillsheet --remote --tool claude-code --only skill-authoring

Fetches the latest published version from skillsheet.dev — the first run installs the package from GitHub, after that npx caches it.

Or use the standard CLI

npx skills add yingkitw/skillsheet --skill skill-authoring

Works with any of the ~79 agents the skills CLI supports — add -a <agent> to pick one.

Related on the ecosystem

Peer skills on skills.sh and upstream repos (inspiration only — not shipped in this library).


name: skill-authoring description: Authors or revises Agent Skills SKILL.md files—frontmatter triggers, progressive disclosure, and lint-friendly structure. Use when creating a new skill, improving an undertriggered description, splitting an oversized skill body, or aligning with the Agent Skills standard (agentskills.io). Harvest patterns from peer repos but write original instructions for this library. category: documentation keywords: skill, authoring, frontmatter, description, agentskills, trigger

Skill Authoring

When to apply

Use when adding a skill to a curated library, when agents rarely activate an existing skill (weak description), or when a skill body has grown past a single-screen workflow. Inspired by anthropics/skills (skill-creator) and agentskills.io; adapted to Skillsheet's lint rules.

Anatomy (standard layout)

skills/<slug>/
└── SKILL.md    # required — YAML frontmatter + Markdown body

Optional bundled dirs (scripts/, references/, assets/) exist in the ecosystem; this library is Markdown-only unless the project explicitly adds bundle support.

Frontmatter (Skillsheet)

KeyRequiredNotes
nameYesMust equal directory slug (^[a-z0-9]+(-[a-z0-9]+)*$).
descriptionYes≤ 500 chars. What + when — the primary trigger; put "when to use" here, not only in the body.
categoryRecommendedSingle slug for catalog chips/packs.
keywordsRecommended≤ 10 tags, each ≤ 40 chars — search, not triggers.

Peer pattern (Anthropic): descriptions tend to undertrigger — include concrete user phrases and adjacent tasks ("even if they don't say 'skill'") without keyword stuffing.

Body structure

  1. When to apply — short situational gate (body reinforces, does not replace, description).
  2. Workflow — numbered steps the agent can follow under pressure.
  3. Rules / anti-patterns — what not to do.
  4. Related skills — [slug](/skills/slug) links for handoffs.
  5. Worked example (optional) — one realistic mini-scenario.

Keep the body under ~500 lines. Move long reference tables to a separate doc in the host repo (not inside the skill) until bundled references/ is supported.

Authoring workflow

  1. Intent — One sentence: what capability should exist after the skill fires?
  2. Trigger draft — Write description first; read it aloud as "would an agent pick this for task X?"
  3. Skeleton — Create skills/<slug>/SKILL.md; name matches slug.
  4. Wire the library — Add a situation row to choose-skill in the same change.
  5. Verify — Run bun run test (content lint + chooseSkillRouter coverage gate for the routing table).

Quality checks before merge

  • name === directory name
  • Description states what and when within length caps
  • Body is non-empty and scannable (headings, lists, one primary workflow)
  • Related skills use real slugs in this library
  • No vendor doc dump — distill peer ideas into original prose

Related skills

  • peer-skill-harvest — When the new skill should come from ecosystem research, not greenfield authoring.
  • housekeeping-docs — When the skill ships alongside README/ARCHITECTURE/TODO updates.
  • choose-skill — Router table must gain a row for every new skill.
). |\n| `description` | Yes | ≤ 500 chars. **What + when** — the primary trigger; put \"when to use\" here, not only in the body. |\n| `category` | Recommended | Single slug for catalog chips/packs. |\n| `keywords` | Recommended | ≤ 10 tags, each ≤ 40 chars — search, not triggers. |\n\nPeer pattern (Anthropic): descriptions tend to **undertrigger** — include concrete user phrases and adjacent tasks (\"even if they don't say 'skill'\") without keyword stuffing.\n\n## Body structure\n\n1. **When to apply** — short situational gate (body reinforces, does not replace, `description`).\n2. **Workflow** — numbered steps the agent can follow under pressure.\n3. **Rules / anti-patterns** — what not to do.\n4. **Related skills** — `[slug](/skills/slug)` links for handoffs.\n5. **Worked example** (optional) — one realistic mini-scenario.\n\nKeep the body under ~500 lines. Move long reference tables to a separate doc in the **host repo** (not inside the skill) until bundled `references/` is supported.\n\n## Authoring workflow\n\n1. **Intent** — One sentence: what capability should exist after the skill fires?\n2. **Trigger draft** — Write `description` first; read it aloud as \"would an agent pick this for task X?\"\n3. **Skeleton** — Create `skills/\u003cslug>/SKILL.md`; `name` matches slug.\n4. **Wire the library** — Add a situation row to [choose-skill](/skills/choose-skill) in the **same change**.\n5. **Verify** — Run `bun run test` (content lint + `chooseSkillRouter` coverage gate for the routing table).\n\n## Quality checks before merge\n\n- [ ] `name` === directory name\n- [ ] Description states **what** and **when** within length caps\n- [ ] Body is non-empty and scannable (headings, lists, one primary workflow)\n- [ ] Related skills use real slugs in this library\n- [ ] No vendor doc dump — distill peer ideas into **original** prose\n\n## Related skills\n\n- [peer-skill-harvest](/skills/peer-skill-harvest) — When the new skill should come from ecosystem research, not greenfield authoring.\n- [housekeeping-docs](/skills/housekeeping-docs) — When the skill ships alongside README/ARCHITECTURE/TODO updates.\n- [choose-skill](/skills/choose-skill) — Router table must gain a row for every new skill."}