writing-for-agents
Skill8 starsChanged 2 months agoMITView on GitHub
Author and refine agent-facing instructions, skills, AGENTS.md files, and context pointers. Use when creating new agent skills, optimizing prompt guidelines, writing steerable docs, or organizing progressive disclosure — even if the user says \"write a skill for this\". Do NOT use for human-facing marketing copy.
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Observable Completion Criteria: Every step must conclude on a checkable, exhaustive completion bound to prevent premature victory …
- Distinctive: line 51
Key Point: Never put workflow steps inside the pointer or description.
- Distinctive: line 52
Why: When process steps appear in the description, models follow them and skip the detailed body.
- Distinctive: line 56
Key Point: Keep the main file under 500 lines.
“Common” is measured: kept by at least 6 in 10 of the 173 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
Writing for Agents
Author and refine documents an agent consumes: a Skill, an AGENTS.md / CLAUDE.md, or a document reached by a context pointer. The packaging differs; the writing principles do not.
Core Invariants
- The 10 Authoring Principles: Adhere strictly to pre-flight checks, zero process in descriptions, MOC architecture (< 500 lines), TWI clarity, inline checklists, one term per concept, zero hardcoded secrets, and matching form to failure.
- Context Load vs. Cognitive Load: Inline what every branch needs; push behind context pointers what only some branches reach.
- Front-Loaded Leading Words: Recruit model priors with precise tokens (tight, red, tracer bullets) rather than lengthy re-explanations.
- Observable Completion Criteria: Every step must conclude on a checkable, exhaustive completion bound to prevent premature victory declaration.
- Zero Process in Descriptions: Descriptions define triggering boundaries (
Use when...,Do NOT use for...), never workflow recipes.
Architecture & Map of Content (MOC)
[ Context Pointer / Description ] ──► [ SKILL.md: Map of Content ] ──► [ Disclosed References / Scripts ]| Domain | Key Mechanism | Reference |
| Context Pointers | Trigger condition + branch definition | references/pointers.md |
| Information Hierarchy | In-file step → In-file reference → Disclosed reference | SKILL-MECHANICS.md |
| Progressive Disclosure | Keep SKILL.md < 500 lines; push heavy specs out | skill-conductor |
| Skill Lifecycle | Draft → Test → Review → Improve → Package | skill-conductor |
The Information Hierarchy
A document is built from steps (ordered actions) and reference (definitions and rules):
- In-file step: The primary tier — what the agent does, in order.
- In-file reference: Consulted on demand; short tables or checklists co-located with steps.
- Disclosed reference: Pushed into a separate file reached by a pointer, loaded only when that branch fires.
Step-by-Step Procedure (TWI)
Step 1: Design Context Pointers & Trigger Boundaries
- Action: Draft the pointer with front-loaded leading words, distinct trigger branches, and explicit negative exclusions.
- Key Point: Never put workflow steps inside the pointer or description.
- Why: When process steps appear in the description, models follow them and skip the detailed body.
Step 2: Structure the Body as a Map of Content
- Action: Organize the main markdown file as an executive map with concise headings, TWI steps, and inline checklists.
- Key Point: Keep the main file under 500 lines; disclose deep schemas into reference files.
- Why: Attention thins across overly long documents, causing instructions to be skipped.
Step 3: Define Checkable Completion Bounds
- Action: Conclude every procedure with an unambiguous completion criterion.
- Inline Checklist:
- Frontmatter name is kebab-case and matches folder
- Description has positive triggers and negative exclusions (
Do NOT use for...) - Main document is under 500 lines
- No hardcoded secrets, API tokens, or user home paths
- Why: Clear bounds prevent premature step termination and unverified assumptions.
Anti-Rationalization Guardrails
| Tempting Rationalization | Binding Rule | Engineering Rationale |
| "I'll list the steps in the description so it triggers better." | Forbidden: descriptions define triggers, not steps. | Models execute the summary description and skip the detailed body instructions. |
| "More documentation is always better." | Prune aggressively: ruthlessly eliminate no-ops. | Excess lines dilute attention and increase cognitive and context load. |
| "I can use 'MUST' in all caps instead of explaining why." | Explain the reasoning (TWI: Action, Key Point, Why). | Explaining why produces robust generalization; rigid prohibitions invite prompt injection. |
| "Keep everything in one file for convenience." | Progressive disclosure: disclose heavy references. | Single-file sprawl degrades context efficiency and task focus. |
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- formbricks/formbricks★ 13ksame name
- btriapitsyn/openchamber★ 12ksame name
- openchamber/openchamber★ 12ksame name
- ArcReel/ArcReel★ 6ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
- CelestoAI/SmolVM★ 1.1ksame name
181 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.
Used alongsideProjects with it also use clack-cli-patterns, drag-to-reorder and 6 more.
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.
openchamberSkillclack-cli-patterns
Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.
Also in 3 projects that use this
openchamberSkilldrag-to-reorder
Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.
Also in 3 projects that use this
- +6 more from openchamber
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-data-remediationSkill
- ai-engineeringSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- engineering-workflow-guideSkill
- git-safety-guardrailsSkill
- goalSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- j-spaceSkill
- migrate-to-shoehornSkill
- ml-best-practicesSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- scaffold-exercisesSkill
- setup-engineering-workflowsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- skill-conductorSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- workflow-designerSkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
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.

