writing-for-agents
Skill335k starsChanged 55 days agoMITView on GitHub
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
98 other projects use a version of this, 42 of them edited; 10 of 42 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 1 the 4 before.
How people change it
10 of 42 edited versions changed its rules, and some changes recur.
Of the 42 edited versions we compared: 31 keep every rule, 1 is an older text, 10 made changes of their own.
Not in older versions
- When the document you're writing is a skill, read [
SKILL-MECHANICS.md](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.missing from 1 of 1
Rules people drop
- When the document you're writing is a skill, read [
SKILL-MECHANICS.md](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.dropped by 5 of 10 - Every step ends on a completion criterion, the condition that tells the agent the work is done. Two properties make it a lever:dropped by 4 of 10
- Every document and pointer you add spends one of two budgets:dropped by 2 of 10
Rules people add
- A rule we can't quote: its licence doesn't allow itadded by 2 of 10
- A rule we can't quote: its licence doesn't allow itadded by 2 of 10
- A rule we can't quote: its licence doesn't allow itadded by 2 of 10
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- grezxune/ai-toolsword for word, first seen Oct 5, 2026
- AlexisBalayre/claude-code-configedited, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- michielvandermeer/skillsedited, first seen Oct 4, 2026
- Integralist/agent-skillsedited, first seen Oct 4, 2026
- JorgeMenaDev/skillsedited, first seen Oct 4, 2026
Who's talking about mattpocock/skills
- A Hacker News story“AI Coding Agent Skills for Real Engineers”Hacker News · Sep 1, 2026 · 43 points
- @nearestnabors.com“@Pocock.com's skills repo is such an asset for loop engineers: github.com/mattpocock/s... Check out …”Bluesky · Apr 14, 2026 · 15 likes
- @midu.dev“¡Esta colección de SKILLS lo está petando! Basadas en la experiencia real de Matt Pocock. Comandos para: ✓ …”Bluesky · Apr 29, 2026 · 13 likes
- @ramikrispin.bsky.social“This looks like a great collection of engineering skills and plugins for coding agents (Claude Code, Codex, …”Bluesky · Aug 25, 2026 · 11 likes
- anthropics/claude-code“disable-model-invocation: true breaks explicit /skill-name invocation”GitHub · Jul 17, 2026 · 8 reactions
The biggest 5 of 70 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 70
Talked about on Bluesky, GitHub and Hacker News (70 times).
On Bluesky · 40
- Apr 14, 2026@Pocock.com's skills repo is such an asset for loop engineers: github.com/mattpocock/s... Check out grill-me, ubiquitous-language, tdd,… — @nearestnabors.com15 likes and reposts · 1 reply
- Apr 29, 2026¡Esta colección de SKILLS lo está petando! Basadas en la experiencia real de Matt Pocock. Comandos para: ✓ reducir tokens y quitar paja ✓… — @midu.dev13 likes and reposts
- Aug 25, 2026This looks like a great collection of engineering skills and plugins for coding agents (Claude Code, Codex, etc.):… — @ramikrispin.bsky.social11 likes and reposts
- Sep 1, 2026#OpenSource ist einfach die größte Errungenschaft der (modernen) Menschheit. Und der Typ ist einfach genial: github.com/mattpocock/s...… — @autfm.bsky.social3 likes and reposts
- Jun 21, 2026the skills straight out of a real engineer's .claude folder. matt pocock open-sourced his agent skills: battle-tested workflows for… — @epicvibecoder.bsky.socialsays it tested it3 likes and reposts · 1 reply
35 more on Bluesky
- Nov 4, 202615 stars until we become the most-starred skills repo in the world... ...and the 13th most starred repo of all time.… — @mattpocockuk-bot.eurosky.social2 likes and reposts · 1 reply
- Oct 31, 2026Test Results: we manually tried test-first + fresh verification on synthetic URL deduplication: 3 cases red before the fix, 4/4 green… — @aethelgardshuman.bsky.social2 likes and reposts
- Oct 26, 2026The agents.md in the parent folder tells the llm to always look for info in the docs/ before doing any work. After each task it has an… — @dirkolbrich.de2 likes and reposts · 1 reply
- Jul 27, 2026Claude + github.com/mattpocock/s... (e.g., /wayfinder) is insanely productive. I can now solo side projects that used to need a team,… — @bravelyjake.bsky.social2 likes and reposts
- May 7, 2026github.com/mattpocock/s... — @tommis.fi2 likes and reposts
- Apr 12, 2026Sometimes with AI reporting comes across other peoples 'skills' theyre using with Claude/whatever. Two sets today that I really want to… — @ianpatterson.com2 likes and reposts
- Nov 22, 2026実用的なAIコーディングエージェントのスキルを集めた設定集ツールっぽい 開発フローの効率化にすごく使えそう yug1224 starred mattpocock/skills https://github.com/mattpocock/skills — @yug1224.com1 likes and repost
- Nov 7, 2026今日のGitHubトレンド mattpocock/skills 実務的なエンジニアリングを実現するためのAIエージェント向けスキル集です。 開発者がコントロールを維持できるよう、小規模で適応性が高く、組み合わせ可能な設計となっています。 特定のモデルに依存せず、Claude… — @dailygithubtrends.bsky.social1 likes and repost · 1 reply
- Nov 3, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 mattpocock / skills ⭐ 310,951 (+1,164) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social1 likes and repost · 1 reply
- Oct 28, 2026Free web developer resources👇 github.com/DietrichGeb... - AI coding less code kinetics.colorion.co - free motion effects… — @csaba.bsky.social1 likes and repost
- Oct 10, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 mattpocock / skills ⭐ 283,969 (+1,737) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social1 likes and repost
- Oct 6, 2026今日のGitHubトレンド mattpocock/skills 実務的なエンジニアリングに活用するためのAIエージェント向けスキル集です。… — @dailygithubtrends.bsky.social1 likes and repost
- Sep 24, 2026I'm a bit late to the party on this one. If you know of any gotchas, please share github.com/mattpocock/s... — @joeythejackal.bsky.social1 likes and repost
- Sep 3, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 mattpocock / skills ⭐ 244,613 (+1,103) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social1 likes and repost · 1 reply
- Sep 2, 2026AI Coding Agent Skills for Real Engineers https://github.com/mattpocock/skills (https://news.ycombinator.com/item?id=49529329) — @betterhn20.e-work.xyz1 likes and repost
- Aug 22, 2026今日のGitHubトレンド mattpocock/skills 実務的なエンジニアリングを実現するためのAIエージェント向けスキル集です。 開発者が制御権を保持しながら効率的にアプリを構築できるよう、小さく調整可能で組み合わせ可能なスキルを提供します。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 15, 2026A collection of Agent Skills for Claude Code to automate common developer workflows and project setups.… — @severin-bruhat.bsky.social1 likes and repost · 1 reply
- Aug 6, 2026今日のGitHubトレンド mattpocock/skills AIエージェント向けのスキルセットを提供するリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 30, 2026I'm using @mattpocock.com grill-me skill to boil down an idea that I have and I'm currently 70 questions deep. I'm not seeing the end 😅.… — @niklas.stadi.gs1 likes and repost
- Jul 26, 2026I'm loving using @mattpocock.com's /teach command to learn music theory & ear-train! Learning bits of music theory for >40 years has left… — @marcusbaw.com1 likes and repost
- Jul 25, 2026github.com/mattpocock/s... — @radiosuperb.wsocial.eu1 likes and repost
- Jun 5, 2026/grill-me is available in the "Skills for Real Engineers" repository from Matt Pocock: github.com/mattpocock/s... — @kweinmeister.bsky.social1 likes and repost
- Nov 7, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 mattpocock / skills ⭐ 317,273 (+1,111) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 3, 2026今日のGitHubトレンド mattpocock/skills AIエージェントが実用的なエンジニアリングを行うためのスキルセットを提供するリポジトリです。 感覚的な開発ではなく、長年の経験に基づいた、小規模で適応しやすく組み合わせ可能なスキルを定義しています。 Claude… — @dailygithubtrends.bsky.social0 likes and reposts · 1 reply
- Nov 1, 2026github.com/mattpocock/s... Тільки ці та свої — @redsundev.bsky.social0 likes and reposts · 1 reply
- Oct 31, 2026今日のGitHubトレンド mattpocock/skills AIエージェント向けに、実務的なエンジニアリングを実現するためのスキル集を提供しています。 複雑なプロセスに依存せず、ユーザーが制御しやすく、柔軟にカスタマイズや組み合わせができる小規模な設計を重視しています。… — @dailygithubtrends.bsky.social0 likes and reposts · 1 reply
- Oct 30, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 mattpocock / skills ⭐ 307,014 (+882) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 18, 2026mattpocock/skills is a repository of agent skills that turns that chaos into a repeatable engineering loop: github.com/mattpocock/... The… — @archrainey.com0 likes and reposts · 1 reply
- Sep 30, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 mattpocock / skills ⭐ 272,567 (+736) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Sep 25, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 mattpocock / skills ⭐ 269,391 (+671) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Sep 15, 20266/ Skills for Real Engineers (253k) by Matt Pocock. Small skills which started from his most popular grill-me skill. Useful to clear your… — @milanmilanovic.bsky.social0 likes and reposts · 1 reply
- Sep 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 mattpocock / skills ⭐ 253,849 (+2,206) 🗒 Shell Skills for Real Engineers. Straight from my .agents… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 31, 2026https://github.com/addyosmani/agent-skills /skills by @mattpocockuk: a suite of S tier engineering and productivity skills… — @garrytan-mir-rt.selfhosted.social0 likes and reposts · 1 reply
- Jul 27, 2026What is your experience? Does it improve the output? :) Recently looked into #OpenCode Go, with GLM-5.2. (Also wanted to check… — @mandrasch.bsky.socialsays it tested it0 likes and reposts · 1 reply
- Jun 16, 2026Imagine you have a tool and you want it to be capable of some new thing. So you go to a page and download a plaintext file describing how… — @itnoetic.blacksky.app0 likes and reposts · 1 reply
On GitHub · 27
- Jul 17, 2026disable-model-invocation: true breaks explicit /skill-name invocation — anthropics/claude-code8 reactions · 7 comments
- Aug 11, 2026[Bug]: Explicit Codex $skill invocation does not attach user-invoked skills — pingdotgg/t3code6 reactions · 4 comments
- May 7, 2026git 导入 skills 时不支持二级目录 — xingkongliang/skills-manager5 reactions · 2 comments
- Sep 17, 2026[BUG] Marketplace name is derived from the bare repo name, so any two `*/skills` repos collide — anthropics/claude-code3 reactions · 1 comment
- Jul 16, 2026[Bug] Internal command shadowed by plugin skill with same name — anthropics/claude-code3 reactions · 2 comments
22 more on GitHub
- Aug 23, 2026`record-rules` and `infer-conventions` are too aggressive — laravel/boost2 reactions
- Jul 20, 2026[Bug]: orchestrator may continue execution unexpectedly after subagent completion or user replies — alvinunreal/oh-my-opencode-slim2 reactions · 6 comments
- Nov 18, 2026gh skill update reports success when a repository cannot be resolved — cli/cli1 reaction · 7 comments
- Oct 29, 2026Adopt upstream mattpocock/skills v1.3.2 — youngsecurity/mattpocock-ai-skills1 reaction · 2 comments
- Oct 13, 2026V3 — nitedani/mergeworthy1 reaction · 7 comments
- Sep 24, 2026feat(install): let hub entries pin a skill to a tag or commit — runkids/skillshare1 reaction · 2 comments
- Aug 16, 2026feature request: 技能库支持按 git 来源过滤 + 批量部署/撤销部署到指定 agent — xingkongliang/skills-manager1 reaction
- Jul 20, 2026[Feature] Dependency-aware installation for composable skill groups — farion1231/cc-switch1 reaction · 2 comments
- May 28, 2026PRD: Add arch-review task — derek-palmer/codeforerunner1 reaction · 2 comments
- May 22, 2026Doctrine: strengthen skill-authoring and repo-local setup guidance from mattpocock/skills — spec-kitty/spec-kitty-open-packs1 reaction · 4 comments
- May 22, 2026Doctrine: sharpen test-first guidance with Matt Pocock TDD tracer-bullet rules — spec-kitty/spec-kitty-open-packs1 reaction · 4 comments
- May 22, 2026Doctrine: import product-to-execution patterns from mattpocock/skills — spec-kitty/spec-kitty1 reaction · 4 comments
- May 20, 2026CommandCode terminal freezes entirely + flickering on large output — CommandCodeAI/command-code1 reaction · 5 comments
- May 4, 2026feat: package pr-qa-review skill for autonomous AI discovery and install — akepo225/gh-pr-context1 reaction · 3 comments
- May 1, 2026Make skills using subfolders work — bmsuisse/skillup1 reaction · 1 comment
- Apr 29, 2026[Repo]: Agentic AI dev skills — kdcllc/AI-Driven-Dev-Env1 reaction · 1 comment
- Apr 27, 2026feat(agents): Add adversarial requirements interview to /spec command (grill-me pattern) — rjmurillo/ai-agents1 reaction · 5 comments
- Apr 1, 2026Add npx skills add https://github.com/mattpocock/skills --skill grill-me — jellydn/my-ai-tools1 reaction
- Nov 23, 2026[skills.sh] Mark or delist removed mattpocock/skills/resolving-merge-conflicts — vercel-labs/skills0 reactions
- Nov 22, 2026Skills List I like — henry-dev-atkins/InitAI0 reactions · 3 comments
- Nov 12, 2026Doctrine: import product-to-execution patterns from mattpocock/skills — spec-kitty/spec-kitty-open-packs0 reactions
- Aug 25, 2026https://github.com/mattpocock/skills — DanielESolbakk/budget0 reactions
On Hacker News · 3
- Sep 1, 2026AI Coding Agent Skills for Real Engineers43 points · 14 comments
- Jun 8, 2026Skills for Real Engineers. Straight from my .claude directory2 points
- May 19, 2026More Than Skills, Frameworks1 point
Used with
Projects with it also use setup-skills and which-skill.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pahwarangerSkillsetup-skills
Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's ticket tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `to-tickets`, `to-prd`, `triage`, `diagnose`, `tdd`, `improve-codebase-architecture`, or `zoom-out` — or if those skills appear to be missing context about the ticket tracker, triage labels, or domain docs.
Also in 5 projects that use this
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 3 projects that use this
Other versions98 projects use a version of this.
Word for word · 41
- aws/graph-explorer★ 484100% same
- niki914/zafiro★ 221100% same
- tt-a1i/matt-skills-with-to-goal★ 182100% same
- iamyoki/qwen-image-2.1-skill★ 146100% same
- VoDaiLocz/kilo-kit-mcp★ 27100% same
- korallis/skills-collection★ 18100% same
- icefrag/nbl★ 17100% same
- anomaliaso/anomalia★ 15100% same
- gongyijie85/mattpocock-skills-dsh★ 15100% same
- chinkan/RustFox★ 9100% same
31 more not listed
Edited · 42
- murray17/rovai-ai★ 12294% same
- willdady/platypus★ 11497% same
- timharris707/skills★ 4036% same
- ConnorGriffin/skills★ 2227% same
- PracticalSwan/agent-skills★ 1884% same
- michielvandermeer/skills★ 995% same
- gabimoncha/skills★ 897% same
- Akindu23/my-agent-skills★ 491% same
- jlu-lujing/TaskHunter★ 494% same
- microsoft/frontier-ghcp-rvas★ 497% same
32 more not listed
Wrote their own version · 15
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- devcxl/mattpocock-skills-zh★ 426same name
- leandrocfe/skills★ 38same name
- aethrox/doctrine★ 18same name
- KroxiDev/engineering-skills★ 4same name
- jesse-merhi/skills★ 3same name
- shumingyang-opencode/mattpocock-skills-zh-tw★ 3same name
- YSAA1/harness-workflow★ 3same name
- dafaalz/agent-skills★ 2same name
- AkshitIreddy/agent-skills★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grill-with-docsSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- prototypeSkill
- prSkill
- researchSkill
- retroSkill
- setup-matt-pocock-skillsSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- wizardSkill
- chief-of-staffSkill
- claude-handoffSkill
- loop-meSkill
- setup-ts-deep-modulesSkill
- software-factorySkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- git-guardrails-claude-codeSkill
- migrate-to-shoehornSkill
- scaffold-exercisesSkill
- setup-pre-commitSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
The file
We split this skill into the rules it gives an agent
3 rules. 2 are common, 0 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 47 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
When the document you're writing is a skill, read SKILL-MECHANICS.md for frontmatter, invocation choice, and router skills.
- Common: line 22
Every document and pointer you add spends one of two budgets:
- Common: line 47
Every step ends on a completion criterion, the condition that tells the agent the work is done.
“Common” is measured: kept by at least 6 in 10 of the 47 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, since the agent takes the same process every run rather than producing the same output.
When the document you're writing is a skill, read SKILL-MECHANICS.md for frontmatter, invocation choice, and router skills.
Context pointers
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:
- Front-load the leading word: the pointer is where it does its triggering work.
- One trigger per branch. Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
- Cut identity the body already carries.
The two loads
Every document and pointer you add spends one of two budgets:
- Context load is the cost of always-loaded material on the agent's window: an
AGENTS.mdline, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires. - Cognitive load is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
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.
Information hierarchy
A document is built from two content types: steps (the ordered actions the agent performs) and reference (definitions, rules, facts consulted on demand). The two 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:
- In-file step is the primary tier: what the agent does, in order.
- In-file reference is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
- Disclosed reference is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
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.
Steps and completion criteria
Every step ends on a completion criterion, the condition that tells the agent the work is done. Two properties make it a lever:
- Clarity: can the agent tell done from not-done? A vague bound ("understanding reached") invites premature completion: ending the step before it is genuinely done, attention slipping to being done. The visible steps still ahead (the post-completion steps) supply the pull; the criterion's clarity is the resistance. Defend in order: sharpen the bound first (local and cheap); only if it is irreducibly fuzzy and you observe the rush, hide the later steps by splitting the sequence. Hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
- Demand: how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives legwork (the digging the agent does within the work, latent in the wording rather than written as its own step), and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
The strongest criteria are both checkable and exhaustive.
When to split
Splitting one document into two spends one of the two loads, so split only when the cut earns it:
- By sequence: split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
- By invocation, skill-specific: see
SKILL-MECHANICS.md.
Leading words
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:
- "fast, deterministic, low-overhead" → tight (a tight loop).
- "a loop you believe in" → red, turning a fuzzy gate into a binary observable state (the loop goes red on the bug, or it doesn't).
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.
Pruning
- Keep each meaning in a single source of truth: one authoritative place, so changing the behaviour is a one-place edit. Duplication (the same meaning in more than one place) costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
- The environment is a source of truth too (
package.jsonscripts, config files, the directory layout,--helpoutput), 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. - Check every line for relevance: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is sediment: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
- Hunt no-ops sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test (does it change behaviour versus the default?) is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (be thorough when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (relentless), not a different technique.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

