write-for-agents

write-for-agents is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 164 tokens per session (3,825 once invoked), scanned A, original, MIT.

A writing guide for creating clear Markdown that coding agents will read and use.

In plain words
What is it for?
Use it when writing or updating CLAUDE.md, AGENTS.md, rules, reference files, navigation pointers, and similar agent-facing documents.
Why use it?
It helps keep agent instructions findable, focused, and affordable to load into context.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the docs-hygiene plugin — 9 skills, 1 agent, 1 plugin shipped together

Good fit Use it when writing or updating CLAUDE.md, AGENTS.md, rules, reference files, navigation pointers, and similar agent-facing documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/write-for-agents
Install

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.

Any agent
npx skills add melodic-software/claude-code-plugins --skill write-for-agents
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Or install docs-hygiene, the plugin that ships this one along with the rest of its 9 skills, 1 agent, 1 plugin.

Wrote 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.

agentmods badge for write-for-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/write-for-agents/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/write-for-agents)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/write-for-agents"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/write-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.

agentmods 80×15 button for write-for-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/write-for-agents"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/write-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.03825
Opus 5.5 $0.00066 $0.01530
Sonnet 5.5 $0.00033 $0.00765
Haiku 4.5 $0.00016 $0.00382

Measured yesterday against content hash e11f6a6a31c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-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 yesterday.

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.

plugins/docs-hygiene/skills/write-for-agents/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Write For Agents

Scope

The docs-hygiene siblings audit docs that already exist. This skill is the write-side complement: it fires while the doc is written, so the problems the audits catch are never created. Its scope is any markdown an agent will consume; the auto-read surfaces (CLAUDE.md scopes, .claude/rules, auto-memory, and their kin) are the high-value core because their cost recurs every session. Read reference/agent-doc-surfaces.md when you need to know whether, when, and how much of a target file the harness loads. Write differently for an always-loaded surface than for an on-demand one.

Budget both loads

Every line spends two budgets, and cutting one can overspend the other:

  • Context load. Tokens and attention the agent pays, every session for always-loaded surfaces: we count each added line as diluting the agent's adherence to the rest, not only as tokens. Governed marketplace-wide by plugin-philosophy's Instruction economy: an instruction earns its place with observed-stumble evidence, or it goes. Pointer: for the size guidance, see write effective instructions.
  • Cognitive load. Attention the human maintainer pays: they must be able to hold the map of where things live. Ten tiny fragment files can be cheaper for the agent and ruinous for the human; one 500-line file the reverse. When the two budgets conflict, say which one you spent and why.

Fewer words spends less of both. The universal brevity rules apply: no more words than the meaning needs, no filler, hedging, intensifiers, expletive openings, or restatement of an adjacent line; active voice; one idea per sentence; a factual register with nothing sold. /writing:be-concise (if enabled) owns those rules; without it, apply them from this paragraph. Take those rules and no more of that doctrine: its human-only rules do not transfer. A bottom-line-first opening, headings written to be skimmed, bullet lists for scanning, and bounded bold serve a person moving down a page fast; an agent needs the rule stated where it applies, not staged for a skim.

Read the full file on GitHub · 257 lines

Files

What ships with it

5 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.

Changes

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.

  1. yesterday Changed · +17 lines · +34 tokens per session e11f6a6a31c6
  2. 4d ago Changed · +16 tokens per session 5fc052cd428a
  3. 5d ago Changed · -43 tokens per session 1e881f1a746b
  4. 6d ago Changed · +2 tokens per session e58c9508b0ce
  5. 7d ago Changed · -6 lines 81038996a30b
  6. 9d ago Changed · +8 lines 8d62293e2961
  7. 12d ago Changed · +7 lines 14b0d8cab145
  8. 14d ago Changed · +6 lines 0a6dbdae67b5
  9. 17d ago Changed 6e92d9dc37a8
  10. 18d ago First seen · 225 lines · 155 tokens per session scan A 6d82d021984b

Subscribe to this mod's changes

write-for-agents is a skill published in the GitHub repository melodic-software/claude-code-plugins (34 stars, last pushed today), licensed MIT. It adds 164 tokens to every session and 3,825 once invoked, about $0.0007 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-09-03.

Related

write-for-agents compared with skills from other repositories

write-for-agents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-for-agentsmelodic-software/claude-code-pluginsSkill34todayMITA164Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code