/engineering-advanced-skills:write-a-skillfrom engineering-advanced-skills
Authors, lints, and publishes skill packages following the skill-authoring standard. Use when creating a new skill, reviewing a skill PR, or fixing one that never activates.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The meta-skill for building skill packages. It turns standards/skill-authoring-standard.md
from a document you agree with into a gate you can run: scaffold the package, write a
description that actually activates, place content in the right file, and lint against all
11 patterns before anyone reviews it. Most rejected skills fail on two things — a
description nothing matches, and a SKILL.md carrying content that belonged in references/.
AGENTS.md / CLAUDE.mdUnder Pattern 9 this skill is self-contained except for one permitted outbound
reference: standards/skill-authoring-standard.md. Standards apply library-wide, so
citing them does not create a cross-skill dependency. Nothing here may point at
another skill's files.
Before scaffolding, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
python3 engineering/write-a-skill/scripts/skill_lint.py --skill <domain>/<skill> --strict
python3 engineering/write-a-skill/scripts/description_audit.py --domain <domain> --min-score 70
--dry-run to inspect the file plan, then again to write it.TODO marker. The scaffold is deliberately unshippable until you do.python3 engineering/write-a-skill/scripts/skill_scaffold.py \
--input engineering/write-a-skill/assets/sample_skill_spec.json \
--out engineering --dry-run --format text
The scaffolder refuses specs whose description exceeds 240 characters or lacks a
Use when clause. That refusal is the point — it stops you building 4,000 lines of
package around a skill that will never activate.
Use when, filler adjectives.python3 engineering/write-a-skill/scripts/description_audit.py \
--input engineering/write-a-skill/assets/sample_descriptions.json \
--min-score 70 --collision-threshold 0.5 --format text
Exit codes: 0 all pass, 1 any description scores below --min-score (the CI gate),
2 bad input (missing file or directory, invalid JSON, wrong shape). Point
--domain engineering at a whole directory to audit every shipped description at
once; it walks nested skill folders and reads folded (>, >-), literal (|),
quoted and plain description values.
--strict mode so warnings fail too.assets/skill-review-checklist.md for the judgement half.python3 engineering/write-a-skill/scripts/skill_lint.py \
--skill engineering/write-a-skill \
--rules engineering/write-a-skill/assets/sample_lint_rules.json \
--strict --format json
The linter distinguishes tools from helper modules. A scripts/*.py file that
a sibling script imports and that has no __main__ guard is a library, so the argparse
/ --format / guard requirements are not applied to it; it is still checked for
stdlib-only imports and the line-count budget. Imports that resolve to a
.py file in the same scripts/ directory are permitted under Pattern 9 — reaching
into a different skill's directory stays an error. Verify both behaviours with the
built-in fixtures before shipping a linter change:
python3 engineering/write-a-skill/scripts/skill_lint.py --selftest
Every file in a package, and every steering file in a repo, is read first by a model that
pays for each token and acts on each line. Read references/writing-for-agents.md before
deciding three things:
disable-model-invocation: true.
The linter rejects any value other than true or false.The single most common authoring mistake is putting everything in SKILL.md. Route content by asking what reads it and when.
| Content | Destination | Test |
|---|---|---|
| Workflows, decision tables, activation context | SKILL.md | An assistant needs it on every invocation |
| Frameworks, benchmark tables, maturity models, regulatory detail | references/*.md | Needed on some invocations; would blow the 500-line budget |
| Deterministic analysis over user data | scripts/*.py | A human would otherwise do it by hand for 15+ minutes |
| Anything the user fills in and keeps | assets/* | The output belongs to the user, not the skill |
If SKILL.md exceeds 500 lines, the split is almost never "trim prose." It is one whole section that should have been a reference from the start.
240 characters, spent in this order:
| Segment | Budget | Contains |
|---|---|---|
| What it does | ~80 chars | One clause, concrete verb, the artifact produced |
Use when triggers | ~140 chars | 3 trigger phrases in the user's own words |
| Slack | ~20 chars | Leave it — descriptions grow at every revision |
Never spend budget on: the skill's own name, feature enumerations (those are tags),
"pairs with X" routing prose (that goes in the body), or adjectives. The description
is resident in context for every session in which the skill is installed — it is the
most expensive text in the package per byte.
| Signal | Build it | Do not build it |
|---|---|---|
| Time saved per use | 15+ minutes | Under 5 minutes |
| Repeat frequency | Monthly or more | Once ever |
| Judgement encoded | Real thresholds, named methods | Generic process everyone knows |
| Nearest skill's trigger overlap | Under 0.4 | Over 0.6 — extend that skill instead |
| Scripts | Compute something non-obvious | Reformat what the user typed |
Two "do not build it" columns is a rejection. One is a warning worth arguing about.
Two to three scripts, 150-300 lines each. Under 150 lines means the tool does not
justify a file; over 300 means it is two tools. Every script takes --format {text,json} with text as the default, exits 1 on findings so CI can gate on it and 2 on
bad input so a tool error is never mistaken for a finding, and
ships a sample_*.json in assets/ so the workflow block in SKILL.md is runnable by
someone who just cloned the repo.
Mistake: Padding the description with every synonym the author can think of, on the theory that more words means more matches.
Why it happens: Discovery feels like search, and search rewards keywords. It also feels free, because the cost is paid in someone else's context window.
Instead: Write the three sentences a user would actually type, and lift the distinctive nouns and verbs from those. Then run description_audit.py — if it reports a collision above 0.5 with a neighbouring skill, the fix is sharper scope, not more words.
Mistake: Writing an 900-line SKILL.md that covers the domain exhaustively, with references/ left empty.
Why it happens: The author knows the domain deeply and everything genuinely feels important. Splitting also feels like admitting the content is second-tier.
Instead: Keep in SKILL.md only what an assistant needs on every single invocation — workflows, decision tables, activation context. Move frameworks and exhaustive detail to references/ and link them by relative path. references/ is not the demotion bin; it is where deep content is actually usable, because it gets loaded on demand instead of never.
Mistake: Shipping bash blocks in Workflows that were written by hand and never executed, often with flags the script does not implement. Why it happens: The workflow is written before the script is finished, and nobody goes back once the flags settle. Instead: Run every bash block verbatim against the shipped sample data as the last step before opening the PR, and paste the real output into the PR description. A script that crashes on its own sample input is the single loudest quality signal a reviewer can get.
Mistake: Presenting five approaches with balanced pros and cons and letting the reader choose. Why it happens: It feels more honest and less presumptuous than picking one, especially when the author has seen all five work. Instead: State the recommendation, give the reason, then give the escape hatch — the specific condition under which the recommendation stops applying. Users invoke a skill for a position, not a survey; anything less than a recommendation they could have found themselves in thirty seconds.
Mistake: Writing AGENTS.md / CLAUDE.md in paragraphs: "It's really important that you always make sure to…".
Why it happens: It is written like documentation for a colleague, and politeness feels harmless.
Instead: One imperative line per fact, the situation first, the exact command or path, no filler. A third of the length carries the same instructions and leaves the agent more room for the task.
Mistake: A skill that publishes, deploys or opens tickets is left model-invocable, and fires on a loose description match.
Why it happens: Model invocation is the default and nobody revisits it.
Instead: Mark it disable-model-invocation: true so it runs only when the user asks, and keep a pointer in the steering file so it is not forgotten.
Mistake: Writing "see the X skill for the scoring model" or importing a helper from ../other-skill/scripts/.
Why it happens: Duplication feels wrong to engineers, and DRY is a deeply trained instinct.
Instead: Copy the helper. Skills are distributed as individual folders, so a cross-skill import is a broken package the moment someone extracts one directory. A helper module inside the skill's own scripts/ directory is fine — that ships with the folder. standards/ is the only permitted outbound reference, because it applies to every skill everywhere.
| File | Purpose |
|---|---|
scripts/skill_lint.py | Lint a skill folder against all 11 patterns; per-pattern findings; exit 0 pass, 1 error findings (or warnings with --strict), 2 bad --skill path or rules file. --selftest runs the built-in helper/dependency fixtures |
scripts/lint_checks.py | Helper library for skill_lint.py — rule set, frontmatter parser, SKILL.md and structure checks. No CLI by design |
scripts/skill_scaffold.py | Generate a compliant package skeleton from a JSON spec, with every required section stubbed; exit 2 on a bad or refused spec |
scripts/description_audit.py | Score descriptions on budget and trigger quality; flag colliding skill pairs; exit 0 pass, 1 below bar, 2 bad input |
references/authoring-playbook.md | Section-by-section guidance, worked description rewrites, and the content-routing rules |
references/writing-for-agents.md | User-only skills (disable-model-invocation), thin composing skills, and steering-file style with a before/after rewrite |
references/pattern-checklist.md | The 11 patterns as concrete pass/fail criteria with common failure modes and fixes |
assets/sample_skill_spec.json | Runnable scaffold input for Workflow 1 |
assets/sample_descriptions.json | Runnable audit input for Workflow 2, including deliberately failing examples |
assets/sample_lint_rules.json | Threshold overrides for Workflow 3 |
assets/skill-review-checklist.md | Reviewer checklist covering the judgement half the linter cannot check |
In Scope:
skill_scaffold.py, which refuses descriptions over 240 characters or without a Use when clause.description_audit.py, from a JSON list or a whole domain directory.standards/skill-authoring-standard.md with skill_lint.py, including --strict, rule overrides and --selftest.references/, and a reviewer checklist in assets/.AGENTS.md / CLAUDE.md; the linter validates disable-model-invocation when present.Out of Scope:
Important Caveats:
assets/skill-review-checklist.md covers that half.references/authoring-playbook.md — section-by-section authoring guidance and description rewrites.references/pattern-checklist.md — the 11 patterns as pass/fail criteria.references/writing-for-agents.md — invocation choice, composing skills, steering-file style.assets/sample_descriptions.json (opens in a new tab)assets/sample_lint_rules.json (opens in a new tab)assets/sample_skill_spec.json (opens in a new tab)assets/skill-review-checklist.md (opens in a new tab)references/authoring-playbook.md (opens in a new tab)references/pattern-checklist.md (opens in a new tab)references/writing-for-agents.md (opens in a new tab)scripts/description_audit.py (opens in a new tab)scripts/lint_checks.py (opens in a new tab)scripts/skill_lint.py (opens in a new tab)scripts/skill_scaffold.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job