Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
.claude/skills/fradser-writing-for-agents/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 115% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 102% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 110% | 0% |
Reference for writing any document an agent consumes — a skill, an AGENTS.md / CLAUDE.md, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable — the agent taking the same _process_ every run, not producing the same output.
When the document you're writing is a skill, read SKILL-MECHANICS.md for frontmatter, invocation choice, and router skills.
A context pointer is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in AGENTS.md naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material — and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
A pointer does two jobs — state what the material is, and list the branches that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
Every document and pointer you add spends one of two budgets:
AGENTS.md line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
A document is built from two content types — steps (the ordered actions the agent performs) and reference (definitions, rules, facts consulted on demand) — that mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the information hierarchy, a ladder ranked by how immediately the agent needs the material:
Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
Progressive disclosure is the move down the ladder — out of the main file and behind a pointer — so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip — a variance lever, not just a legibility one.
Co-location is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent — grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
Sprawl is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
Every step ends on a completion criterion — the condition that tells the agent the work is done. Two properties make it a lever:
The strongest criteria are both checkable and exhaustive.
Splitting one document into two spends one of the two loads, so split only when the cut earns it:
SKILL-MECHANICS.md.A leading word is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors — you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea — each is a passage begging to collapse into a single token:
You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire — go find them.
Negation is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the positive — state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
package.json scripts, config files, the directory layout, --help output — and a document that restates it is a cache: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 18,310 | 24,906 | +36% | 1 | 1 | 0% | 2,864 | 6,151 | +115% | 0 | 0 | — |
case-02 | fail→fail | 23,223 | 23,878 | +3% | 1 | 1 | 0% | 3,602 | 6,382 | +77% | 0 | 0 | — |
case-03 | pass→pass | 28,351 | 18,943 | -33% | 1 | 1 | 0% | 6,085 | 6,315 | +4% | 0 | 0 | — |
case-20 | fail→pass | 10,801 | 7,920 | -27% | 1 | 1 | 0% | 1,776 | 3,595 | +102% | 0 | 0 | — |
case-04 | pass→pass | 14,740 | 9,618 | -35% | 1 | 1 | 0% | 2,358 | 3,913 | +66% | 0 | 0 | — |
case-05 | pass→pass | 33,367 | 28,463 | -15% | 1 | 1 | 0% | 5,373 | 7,152 | +33% | 0 | 0 | — |
case-06 | pass→pass | 10,218 | 10,721 | +5% | 1 | 1 | 0% | 1,985 | 4,096 | +106% | 0 | 0 | — |
case-07 | fail→pass | 14,873 | 10,377 | -30% | 1 | 1 | 0% | 2,826 | 4,131 | +46% | 0 | 0 | — |
case-08 | pass→pass | 8,666 | 8,930 | +3% | 1 | 1 | 0% | 1,740 | 4,100 | +136% | 0 | 0 | — |
case-09 | fail→pass | 20,633 | 12,210 | -41% | 1 | 1 | 0% | 4,103 | 4,850 | +18% | 0 | 0 | — |
case-10 | fail→pass | 7,225 | 6,378 | -12% | 1 | 1 | 0% | 1,558 | 3,274 | +110% | 0 | 0 | — |
case-11 | fail→pass | 9,552 | 6,394 | -33% | 1 | 1 | 0% | 1,459 | 3,526 | +142% | 0 | 0 | — |
case-12 | fail→pass | 13,628 | 11,509 | -16% | 1 | 1 | 0% | 2,422 | 4,425 | +83% | 0 | 0 | — |
case-13 | fail→pass | 28,694 | 12,649 | -56% | 1 | 1 | 0% | 1,117 | 4,279 | +283% | 0 | 0 | — |
case-14 | pass→pass | 8,345 | 8,449 | +1% | 1 | 1 | 0% | 1,447 | 3,584 | +148% | 0 | 0 | — |
case-15 | pass→pass | 13,335 | 12,340 | -7% | 1 | 1 | 0% | 2,509 | 4,718 | +88% | 0 | 0 | — |
case-16 | pass→pass | 12,573 | 8,032 | -36% | 1 | 1 | 0% | 2,037 | 3,731 | +83% | 0 | 0 | — |
case-17 | pass→fail | 7,366 | 4,917 | -33% | 1 | 1 | 0% | 1,411 | 3,277 | +132% | 0 | 0 | — |
case-18 | pass→pass | 9,221 | 6,104 | -34% | 1 | 1 | 0% | 1,989 | 3,420 | +72% | 0 | 0 | — |
case-19 | pass→pass | 15,275 | 13,665 | -11% | 1 | 1 | 0% | 2,740 | 4,696 | +71% | 0 | 0 | — |
case-21 | pass→pass | 9,112 | 6,849 | -25% | 1 | 1 | 0% | 1,637 | 3,580 | +119% | 0 | 0 | — |
case-22 | fail→pass | 9,918 | 8,103 | -18% | 1 | 1 | 0% | 1,616 | 3,612 | +124% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +36 percentage points is the difference between those two pass rates over the 21 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.