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 dirtybits/agent-skills --skill plan-writinggit clone --depth 1 https://github.com/dirtybits/agent-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/dirtybits/agent-skills/plan-writing)<a href="https://agentmods.dev/skills/dirtybits/agent-skills/plan-writing"><img src="https://agentmods.dev/badge/skills/dirtybits/agent-skills/plan-writing/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/dirtybits/agent-skills/plan-writing"><img src="https://agentmods.dev/badge/skills/dirtybits/agent-skills/plan-writing.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.00088 | $0.01093 |
| Opus 5.5 | $0.00035 | $0.00437 |
| Sonnet 5.5 | $0.00018 | $0.00219 |
| Haiku 4.5 | $0.00009 | $0.00109 |
Grade A, and why
plan-writing 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 3mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plan Writing
Instructions
When writing or reviewing a plan file:
- Use the
.plan.mdextension. - When the user does not specify a location, default to
<repo>/.agents/plans/; if the repo already has an established plans directory such as.cursor/plans/, follow that local convention. - Start with YAML frontmatter containing
name,overview,todos, andisProject. - Make
todosa short execution checklist with stable lowercase hyphenatedidvalues, concretecontent, andstatus: pending. - After frontmatter, write the plan body in Markdown.
- Include enough repo-specific detail that another agent can implement without guessing.
- Separate implementation steps from validation, rollout, and rollback when the work has operational risk.
- Prefer exact files, commands, config keys, target hosts, acceptance criteria, and blockers over broad intent.
- Do not hide open questions. Add an assumptions or blockers section when requirements are uncertain.
- Date design decisions and verified claims (e.g. "verified 2026-06-09"), so a later session knows how stale they might be.
Executing a Plan
A plan file is shared state across sessions and agents: a resumed or parallel session decides what to do next by reading the todo statuses. Stale statuses cause redone or skipped work, so maintain them as part of the implementation itself, not as cleanup afterward.
- Statuses are
pending,in_progress, andcompleted. - Set a todo to
in_progresswhen starting it, and tocompletedas soon as its work is done and verified — not in a batch at the end of the session. If the session dies mid-plan, the file should still show exactly where things stood. - Only mark
completedwhen the step truly finished, including its verification. A step that ended in failing tests or partial work staysin_progress. - If a step turns out to be unnecessary or is superseded, do not leave it
pendingforever and do not silently delete it — mark itcompletedwith a brief note appended to itscontent(e.g. "— superseded by X"), so the record stays honest. - When implementation diverges from the plan body (a design changes, an edge case forces a different approach), update the body with a short dated note at the point of divergence. The plan should describe what was actually built; a plan that lies is worse than no plan.
- When the last todo completes, give the body a final pass: blockers that materialized, follow-ups discovered during implementation, and anything the next reader needs.
What ships with it
2 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.
- 3mo ago First seen · 101 lines · 88 tokens per session scan A 950289283675
plan-writing is a skill published in the GitHub repository dirtybits/agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 88 tokens to every session and 1,093 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
plan-writing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plan-writingdirtybits/agent-skills | Skill | 2 | 2mo ago | MIT | A | 88 | Claude Code, Codex |
| task-prd-creatorcoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 55 | Claude Code, Codex |
| architecture-decision-record-maintainer-skillarchitecture-decision-record/architecture-decision-record | Skill | 18k | yesterday | none | A | 92 | Claude Code, Codex |
| architecture-decision-record-skillarchitecture-decision-record/architecture-decision-record | Skill | 18k | yesterday | none | A | 108 | Claude Code, Codex |
| init-rpmdppdppd/rpm | Skill | 3 | 3mo ago | MIT | A | 48 | Claude Code |
| backlogdppdppd/rpm | Skill | 3 | 3mo ago | MIT | A | 156 | Claude Code |
| versiondppdppd/rpm | Skill | 3 | 3mo ago | MIT | A | 35 | Claude Code |