Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add byheaven/byheaven-skills --skill writing-for-agentsgit clone --depth 1 https://github.com/byheaven/byheaven-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/byheaven/byheaven-skills/writing-for-agents)<a href="https://agentmods.dev/skills/byheaven/byheaven-skills/writing-for-agents"><img src="https://agentmods.dev/badge/skills/byheaven/byheaven-skills/writing-for-agents/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/byheaven/byheaven-skills/writing-for-agents"><img src="https://agentmods.dev/badge/skills/byheaven/byheaven-skills/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.02726 |
| Opus 5.5 | $0.00016 | $0.01090 |
| Sonnet 5.5 | $0.00008 | $0.00545 |
| Haiku 4.5 | $0.00004 | $0.00273 |
Grade A, and why
writing-for-agents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
98% identical to writing-for-agents — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Reference for writing any document an agent consumes: a skill, the project instruction file, a doc reached by a pointer, a directive or brief. The packaging differs; the writing does not. Each one tells the agent the outcome, why it matters, who judges it, and the facts it cannot find by looking, and leaves method, tools, format, and depth to the agent; a constraint belongs in it only while it carries the user's decision or guards a concrete risk. The levers below decide how reliably that reaches the agent.
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 the project instruction file 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. Wording cannot fix placement, which follows who must act on the rule, when, and how long it must hold: a rule only one role acts on loads with that role's definition. A rule that holds for the whole session sits in always-loaded content, since a trigger such as "at task start" never fires in a standing conversation and material read once is gone after compaction. A rule that acts on a given action may sit in an on-demand file only when its pointer is always loaded and names that action as a condition the agent can detect. A rule that contradicts a platform default the user may override is always loaded and says it overrides that default, since the default sits in context every turn and outweighs a rule read on demand; placement makes the rule present, it does not lift it above a higher-priority instruction.
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.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +1 lines 0ce5990af53d
- 19d ago Changed f655c41c3cfe
- 23d ago Changed c3e3269c1121
- 1mo ago Changed fff3a08c285a
- 1mo ago Changed · -4 tokens per session 9c829dafc574
- 1mo ago Changed c2a160350ea6
- 1mo ago First seen · 82 lines · 44 tokens per session scan A 8b4390e32c3a
writing-for-agents is a skill published in the GitHub repository byheaven/byheaven-skills (2 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 2,726 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to writing-for-agents, differing in 22 lines, and is treated as a copy.
writing-for-agents compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-for-agentsbyheaven/byheaven-skills | Skill | 2 | today | MIT | A | 40 | Claude Code, Codex |
| reviewSethGammon/Citadel | Skill | 943 | 6d ago | MIT | A | 17 | Claude Code |
| wenlan-handoffwenlan-app/wenlan | Skill | 502 | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| system-upgradealivecontext/alive | Skill | 132 | 15d ago | MIT | A | 55 | Claude Code |
| pr-reviewnitinjain999/platform-skills | Skill | 74 | 3d ago | Apache-2.0 | A | 81 | Claude Code |
| apex-skillifytonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 41 | Claude Code |
| voice-notesgtapps/hermitd | Skill | 88 | yesterday | MIT | A | 34 | Claude Code |