Glue a skill's facts into the skill, then check they're there.
⭐ Star it on GitHub: bookmarks it for you, helps other devs find it too.
An agent chooses a skill by its description, then follows its body. The Agent Skills specification covers the choosing, plus an optional free-text compatibility line for environment needs. It has no field for what the skill reads and writes, where it reaches, whether it publishes, or when it's done. A Context Block (built on the MIT licensed, IANA registered .faf context format) puts those facts at the top of the body, so the model has all of them the moment it opens the skill:
v: 1
needs: [git, gh >= 2.40]
reads: [git history, GitHub pull requests]
writes: [CHANGELOG.md]
network: [github.com (read)]
publishes: false
done_when: CHANGELOG.md has one new section; nothing pushedskills-ladder checks that a skill is valid, says what an agent needs, and carries those facts. Read-only: it never changes a file.
npx skills-ladder .| Rung | Means |
|---|---|
| GOOD | Valid: passes the specification's hard rules, the same ones its reference validator (skills-ref) checks |
| BETTER | Says when to use it, what it needs, what it touches, its steps, and when it's done |
| BEST | BETTER, with those facts in a Context Block |
A skill that doesn't pass GOOD is reported as NONE.
The specification asks only for GOOD. BETTER and BEST are this project's view of what an agent needs beyond that, and most skills today stop at GOOD. Run it on yours to see what's missing.
For general linting (formatting, auto-fix, security scanning), use a linter such as skill-check as well. skills-ladder checks what linters don't: whether the skill says what it needs, what it touches and when it's done.
skills-ladder 0.2.1 · 2 skills
BETTER release-notes release-notes/SKILL.md
✗ F1 One Context Block, right after the frontmatter — No Context Block. Add one between `<!-- faf:start -->` and `<!-- faf:end -->` (see the README).
GOOD deploy deploy/SKILL.md
✗ B5 Body says what it touches — Say what it reads, what it writes, and whether it sends or publishes anything. An agent should know before step 1.
✗ B7 Body says when it is done — Add a Done when line: the finished state of the work (files, results), not a step in the conversation.
BEST 0 · BETTER 1 · GOOD 1 · NONE 0
By default each skill shows the failures that stand between it and the next rung, plus warnings. --all shows every check.
GOOD: the specification's hard rules
| ID | Check |
|---|---|
| G1 | Frontmatter is present and parses as YAML |
| G2 | name is 1–64 lowercase letters (Unicode), digits and single hyphens, and matches its folder |
| G3 | description is 1–1024 characters |
| G4 | Frontmatter uses only specification fields. Put client-specific fields under metadata |
| G5 | compatibility, if present, is a string of at most 500 characters |
BETTER: chosen correctly, used safely
| ID | Check |
|---|---|
| B1 | The description opens with what the skill does, in the third person |
| B2 | The description says when to use it ("Use when…") |
| B3 | (warning) The description says what it is not for, where a nearby task could trigger it |
| B4 | The body says what it needs: tools, versions, access |
| B5 | The body says what it touches: what it reads, what it writes, whether it sends or publishes |
| B6 | The body gives ordered steps |
| B7 | The body says when it is done |
| B8 | Under 500 lines and about 5,000 tokens |
| B9 | Linked local files exist |
B4–B7 look for a heading or a label at the start of a line (**Needs:**, ## Steps, **Done when:**). They are heuristics: they find whether the section is there, not whether it is right.
BEST: the Context Block
| ID | Check |
|---|---|
| F1 | One block between <!-- faf:start --> and <!-- faf:end -->, right after the frontmatter |
| F2 | The block's YAML parses |
| F3 | The required fields are present, with the right types |
| F4 | (warning) publishes: false, but the steps mention pushing, posting or publishing |
| F5 | (warning) writes: [], but the steps mention writing files |
| F6 | (warning) The repo has a project.faf and the block doesn't point to it |
Warnings are reported but never block a rung, and --fail-under compares rungs only. A skill with an F4 or F5 warning is still BEST and still passes --fail-under BEST.
Built on the MIT licensed, IANA registered .faf context format (application/vnd.faf+yaml). Earlier versions called it the FAF Block; the markers are unchanged.
It sits right after the frontmatter, between two markers, as a YAML fence:
---
name: release-notes
description: Drafts release notes from merged pull requests since the last tag. Use when the user asks for release notes or a changelog entry. Not for commit messages.
---
<!-- faf:start -->
```yaml
v: 1
needs: [git, gh >= 2.40]
reads: [git history, GitHub pull requests]
writes: [CHANGELOG.md]
network: [github.com (read)]
publishes: false
done_when: CHANGELOG.md has one new section; nothing pushed
```
<!-- faf:end -->
# Release notes
## Steps
1. …| Field | Type | Meaning |
|---|---|---|
v |
1 |
Block format version |
needs |
list | Tools with a version floor where it matters, and access (GITHUB_TOKEN). [] if none |
reads |
list | What it reads |
writes |
list | Files or state it changes. [] means read-only |
network |
list | Hosts, with (read) or (write). [] means offline |
publishes |
boolean | true if it sends, posts, pushes, deploys or publishes anything beyond the machine |
done_when |
string | The finished state of the work. Not a step in the conversation: agents stop at whatever it names |
project |
path, optional | The project's project.faf, for the agent to read first |
The specification puts no format rules on the body, so the block is valid in any skill today. The body loads only when the skill is used, so the block costs nothing when an agent is choosing between skills.
The block holds facts only. Name access (GITHUB_TOKEN), never its value.
skills-ladder rates each skill. The repo they live in can carry a project.faf: a small YAML file of structured facts that define the project's context for AI, registered with IANA as application/vnd.faf+yaml. faf-cli scores it against its app-type: skills for SKILL.md folders, skills-plugin for skills shipped as a plugin with a build and CI. The Context Block's project field points to it, and F6 checks that it does.
npx faf-cli auto # the repo: project.faf
npx skills-ladder skills --fail-under BEST # each skillskills-ladder [path...] every SKILL.md under each path (default: .)
skills-ladder github:owner/repo[/path][@ref]
a public GitHub repo or folder, fetched at one commit
--json machine-readable output
--all show passing checks too
--fail-under <GOOD|BETTER|BEST> exit 1 if any skill is below this rung
--census one CSV row per path: source, commit, counts, version
Exit codes: 0 checked · 1 a skill is below --fail-under, or no SKILL.md was found · 2 bad arguments or an unreadable path.
In CI:
npx skills-ladder skills --fail-under BETTERNo clone needed. github: fetches one commit into a temporary folder, rates it and deletes the folder. @ref takes a branch, a tag or a full commit SHA; without it, the default branch. GITHUB_TOKEN is used if set (it raises GitHub's rate limit); public repos need none.
npx skills-ladder github:anthropics/skills
npx skills-ladder github:cursor/plugins/pstack # one folder--census prints one CSV row per target, with the commit it measured and the version that measured it:
npx skills-ladder --census github:anthropics/skills@dbd4588f9e1033efb41dad4bef2f7947c8993d44repo,commit,skills,NONE,GOOD,BETTER,BEST,skills_ladder
anthropics/skills,dbd4588,20,2,18,0,0,0.2.1
The columns match the pilot's census.csv (plus the version). Pinned to the same commits, all six of its rows come out the same.
import { checkPath } from "skills-ladder";
for (const r of checkPath("skills")) console.log(r.rung, r.name);We tested it (study/2026-10-pilot, every run published, reviewed before publishing):
- Census: 187 skills from Anthropic, OpenAI, Vercel, superpowers, Matt Pocock and Lauren Tan's pstack: none at BETTER. Only 8 say when they're done, and 12 what they touch. The checker counts labelled facts, so a skill that implies them in prose isn't counted. 83 of the 89 that miss GOOD do so only because of client fields the spec doesn't list (almost all
disable-model-invocation). - Behaviour (Claude Sonnet 5.5, 80 runs): told "we ship today, do everything that is needed", the agent with the GOOD release-notes skill tried to commit in 4 of 5 runs (3 also tried to tag). With BETTER, whose text says never to commit, tag or push: 0 of 5. It did not replicate on a docs task, and with a plain request every version behaved the same.
- The Context Block (BEST) made no difference to what the agent did, compared with the same facts in prose.
A pilot, not proof: two skills, five runs per case, one model, and BETTER's rule is also what was scored.
- 28 tests with fixtures for every rung (
test/checks.test.ts,test/fixtures/). - CI on every pull request: macOS, Ubuntu and Windows, on Node 22 and 24.
- Used on real skills: the 7 skills in Wolfe-Jam/faf-skills went from GOOD to BEST in PR #12. Those skills found two checker bugs (blockquote labels; F4 firing on the noun "deploy"), both fixed with tests.
- Small: Node 22+, one dependency (
yaml). Read-only.
MIT