Agent skills
The repository’s agent skills are small instruction folders that an agent loads for a kind of task. This page says where they live, how they are checked without a model, and how to add one with its evaluation fixtures.
Where skills live
- First-party skills live only in
.claude/skills/<name>/. Each has aSKILL.md, optionalreferences/and anevals/evals.json..claude/skills/shared/holds files several skills read and is not a skill. - Vendored skills (installed with
npx skills add, locked byskills-lock.json) live in.agents/skills/<name>/and are symlinked into.claude/skills/. Their files are never edited, because the lock records a hash of them. Their fixtures live inscripts/skill-evals/vendored/<name>.evals.json. - Other agents find skills through
AGENTS.md, which names each first-party skill and its folder. A skill is never copied into a second folder. The lint reports a duplicate folder and requires an alias to be a symlink.
Static checks
pnpm skills:lint # table of skills, errors and warnings; exit 1 on an error
pnpm skills:lint --strict # warnings fail too
pnpm skills:lint --json
pnpm skills:lint --update-baselineThe lint reads files only and takes about a second. It is a local check, not a CI step: AGENTS.md tells agents to run it whenever they add, change, rename or delete a skill or its fixtures. It checks:
- Manifest:
SKILL.mdexists,nameequals the folder name (lowercase, hyphens, at most 64 characters),descriptionis present and at most 1024 characters, only the Agent Skills frontmatter keys appear, and the description says when to use the skill and has no angle brackets. - Size:
SKILL.mdstays under 500 lines, and the descriptions together stay under a budget, because every session loads them. - Links: every relative link resolves, and every file in
references/is named bySKILL.mdor another file in the skill. - Fixtures: each skill has at least three, with unique IDs and known kinds, covering an activation, a non-activation and a refusal or failure, and each refusal or failure carries a machine-checkable check.
- Discoverability:
AGENTS.mdmentions each first-party skill. - Safety and portability: secret-shaped strings and commands such as
curl | share errors. Forcing a push or promotion and references to tools another agent may not have (a plugin skill, a Claude Code tool name) are warnings.
scripts/skill-evals/baseline.json stores each skill’s description length and body size. Growth past 20% for a description or 25% for a body, or a skill missing from the file, fails until someone reviews the change and runs --update-baseline. It holds sizes only, never behavior, so it cannot bless a wrong result. The acknowledged list in the same file records warnings the owner reviewed and kept, with the reason.
Adding a skill
- Create
.claude/skills/<name>/SKILL.md. The description starts with “Use when” and names the triggers, not the steps. - Write at least three fixtures in
evals/evals.json. The format, kinds and check types are in.claude/skills/skill-evals/references/fixtures.md. - Add the skill to
AGENTS.md. - Run
pnpm skills:lint, fix the errors, review the warnings, thenpnpm skills:lint --update-baselineand commit the diff.
The skill-evals skill walks an agent through the same steps. The blog skills (blog-brief, blog-draft, blog-review, blog-publish) are examples with a refusal fixture each that checks for an unapproved write. assistant-knowledge follows the same pattern for the assistant’s runtime knowledge store: its refusal fixtures check that promote is never run without a separate owner message.
Blog voice and the draft lint
The blog skills share three files in .claude/skills/shared/blog/: voice.md (how a post sounds), topics.md (the four tests a topic must pass) and workflow.md (gates and states). The numbers behind the voice come from a comparison (docs/research/2026-10-29-blog-voice-audit.md) of 44 posts from developers’ blogs with generic “best practices” posts.
pnpm blog:lint <slug> checks a draft in .drafts/<slug>/ with no model and no network:
- Failures are structural. The Markdown must stay inside the post schema, every ledger id must exist and not be
contradicted, and a paragraph with a number or a quotation must carry an id,[owner]or[UNVERIFIED]. A line holding only ids fails, because publishing would leave an empty block. Ids placed before the end of their paragraph warn, since they break up the sentences. - Warnings compare the draft with the human range: words per heading, contractions, first-person use, sentence length, three-word lists and ban-list density. Each check has its own minimum length, and
--reportprints every measurement beside the range. The limits live inscripts/blog-lint/thresholds.jsonand are provisional. - Ban list. The check reads
lexical-ban-list.mdfrom$BLOG_BAN_LISTor~/.claude/reference/writing-style/when it exists, and falls back toscripts/blog-lint/ban-list.json. - Rewrites.
pnpm blog:lint <slug> --compare draft.pre-edit.mddiffs a draft against an earlier copy in the same folder (scripts/blog-lint/facts.mjs). A number, date, link, quote, code sample or ledger tag that the new version adds fails, because a rewrite adds no facts. A number keeps its sign, currency symbol and unit, so-40%,$40and40mseach differ from40. Code is compared exactly, apart from trailing spaces. Ledger ids are compared one by one, so regrouping or splitting a citation is not a change. One it drops warns, and so does a changed name. Spelled-out numbers (“two-hour”) are not read. - Clusters and hidden characters. Two avoid-tier words, or three hits of any tier, in one paragraph warn as
ban-cluster: rewrite the paragraph and do not swap single words. Zero-width and direction-control characters fail. Odd spaces and soft hyphens warn. - After publish staging,
pnpm blog:lint <slug> --post-jsonfails if a ledger id or marker is left inpost.json.
The script runs locally, like pnpm skills:lint, and not in CI. It cannot judge whether a topic is worth reading or whether a sentence says one thing by denying another, so blog-review reads for those.
Live evaluations
scripts/skill-evals/live.mjs runs a skill’s fixtures through a headless agent and grades the checks by script. It spends model usage, never runs in CI and refuses to start without --yes-spend.
node scripts/skill-evals/live.mjs --skill visual-qa --print-plan # what would run; starts nothing
node scripts/skill-evals/live.mjs --skill visual-qa --runs 3 --yes-spendEach run happens in a throwaway git worktree of HEAD with a read-only tool allowlist, so the checkout cannot change. A run that ends in an error (a turn limit, a failure inside the agent) fails every check and is never counted as a pass, because checks such as “did not load the skill” hold trivially for a run that stopped early. Repeating a run separates failures that happen every time from flaky ones. The report keeps these apart:
- Invocation rate: the skill loaded when it should.
- False activation rate: it loaded when it should not.
- Correctness: deterministic checks on fixtures that are not safety cases.
- Safety: checks on refusal and failure fixtures, with each violation listed.
- Commands, time, tokens and cost, where the agent reports them.
The prose in mustDo and mustNotDo is not graded by the script. A person or a separate judge reviews it, and fixtures with no checks are listed as rubric-only. The runner assumes Claude Code’s headless mode (-p, --output-format stream-json, --max-turns, --allowedTools); confirm the flags against the version you run, or pass --agent for another command. The grader reads tool calls, text and a result event from the JSON stream and ignores events it does not know.
Third-party skills
In October 2026 I reviewed 14 candidates from the skills.sh trending library for issue #521. I read every upstream file at a pinned commit and cloned and ran nothing. I decided to adopt two Vercel skills, vendored and pinned, to adapt three into first-party skills, to copy ideas or a pinned snapshot from five into skills I already have, and to pilot four. One of the pilots stays on my own machine, outside the repository. The full review, with upstream commits, licenses and the reasoning for each call, is in docs/research/2026-10-30-skill-candidates.md.
A skill that review did not cover gets the same treatment before it comes in. I read its files at a pinned commit, check the license and any script it runs, and map its overlap with the skills above.
What this does not show
Static checks show that a skill is well formed and sized, not that an agent follows it. A live run shows what one agent did on a few prompts. Neither replaces reading the skill. A check that cannot fail proves nothing, so break the behavior in a scratch copy and confirm the check catches it.