From scaffolding
Defines the frontmatter contract, body structure, and validation rules for authoring scaffolding-compatible SKILL.md files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scaffolding:skill-authoringThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Methodology for authoring scaffolding-compatible skills. A skill is a single
Methodology for authoring scaffolding-compatible skills. A skill is a single
SKILL.md file under skills/<name>/ that encodes a reusable methodology Claude
Code can auto-invoke. This skill defines the frontmatter contract, the recommended
body structure, the description-writing rules, and the quality bar every authored
skill must meet before it ships.
Apply this skill when:
/create-skill command to scaffold a new skillskills/<name>/SKILL.md fileDo NOT apply this skill for:
distillagent-memoryEvery SKILL.md MUST begin with a YAML frontmatter block delimited by ---:
| Field | Rule |
|---|---|
name | Required. Kebab-case ^[a-z][a-z0-9-]*$. MUST equal the parent directory name. |
description | Required. Non-empty, 1–340 characters. Follows the Description Contract below. |
No other frontmatter fields are used by scaffolding skills. The name /
directory-name match is mechanically enforced by validators/validate-skill.sh.
The description field drives Claude Code's automatic skill invocation. A vague
or overbroad description either fails to trigger or triggers on the wrong tasks.
Every scaffolding skill description MUST follow this template:
"<one-line capability summary>. TRIGGER when: <2-4 concrete observable situations>. SKIP: <1-2 cases handled by a named neighbour skill or out of scope>."
Rules:
| Rule | Detail |
|---|---|
| Length cap | Keep the whole string under ~340 characters. Trim the summary first. |
| Observable triggers | Use observable verbs/nouns ("writing a migration"), not adjectives ("complex DB work"). |
| 2–4 triggers | Fewer than 2 under-triggers; more than 4 dilutes the match. |
Named SKIP | Name the competing neighbour skill — e.g. SKIP: ... (use python-patterns). |
Mutual SKIP | If skill A's SKIP names skill B, skill B's SKIP SHOULD name skill A. No two skills' TRIGGER clauses may overlap without a mutual disambiguating SKIP. |
| Under-trigger bias | For borderline cases, prefer under-triggering over false activations. |
When a skill has no overlapping neighbour, the SKIP clause may instead name an
explicitly out-of-scope case. The /create-skill command composes this string
automatically from the collected inputs.
A skill body should read top-to-bottom as a methodology, not as prose. Use this section order:
| Order | Section | Content |
|---|---|---|
| 1 | ## Purpose | One short paragraph: what the skill encodes and the outcome. |
| 2 | ## When to Apply | Bulleted TRIGGER situations, then explicit SKIP cases. |
| 3 | Methodology section(s) | The repeatable procedure — prefer decision tables. |
| 4 | ## Anti-Patterns | Table of common mistakes and their corrections. |
| 5 | ## Quality Checklist | Verifiable completion criteria. |
Guidelines:
templates/skill-template.md.A SKILL.md file MUST stay under 500 lines. Auto-injected skill context is
bounded; an oversized skill is silently truncated and loses its tail content. If a
skill approaches the limit, split it into two narrower skills with distinct
TRIGGER/SKIP clauses rather than letting one file sprawl.
Before a new or edited skill ships:
---name is kebab-case and equals the parent directory namedescription follows the Description Contract and is under 340 chars## Purpose, ## When to Apply, a methodology section, and ## Anti-PatternsSKIP clausebash validators/validate-skill.sh skills/<name>/SKILL.md exits 0README.md / CHANGELOG.md and bump plugin.json countsnpx claudepluginhub komluk/scaffolding --plugin scaffoldingDefines structure, size budget, description format, and review checklist for creating or modifying skills in the plugin.
Meta-skill that generates and refines SKILL.md files using the 12 prompting techniques as a quality checklist. The skill that writes skills. Triggers: craft skill, create skill, generate skill, write skill, skill template, meta prompt, improve skill, refine skill.
Generates validated SKILL.md files for Claude Code skills with YAML frontmatter, naming conventions, tool minimalism, structure constraints, and best practices.