writing-for-agents

writing-for-agents is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 54 tokens per session (1,213 once invoked), scanned A, original, Apache-2.0.

A guide for writing or restructuring documents that coding agents read and act on.

In plain words
What is it for?
Use it with skills, AGENTS.md, CLAUDE.md, or linked agent documents when their steps or reference material need reorganizing.
Why use it?
It keeps instructions self-contained and removes stale duplication or unreachable references, so an agent can route and execute them predictably.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the odin-agent plugin — 46 skills shipped together

Good fit Use it with skills, AGENTS.md, CLAUDE.md, or linked agent documents when their steps or reference material need reorganizing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/writing-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 OutlineDriven/odin-claude-plugin --skill writing-for-agents
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-agent, the plugin that ships this one along with the rest of its 46 skills.

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 writing-for-agents

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

agentmods 80×15 button for writing-for-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/writing-for-agents"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00054 $0.01213
Opus 5 $0.00027 $0.00607
Sonnet 5 $0.00011 $0.00243
Haiku 4.5 $0.00005 $0.00121

Measured 7d ago against content hash 2ad91d50dd25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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

plugins/odin-agent/skills/writing-for-agents/SKILL.md · 60 lines

How it starts

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

Writing for agents

Contract

Field Bound contract
Trigger Author or restructure any agent-consumed document.
Authority Reversible-local: write only the named target document; rollback is undo or version-control restore. No remote mutation.
Side effect Target document edited, split, or pruned. No other file touched.
Done Cold agent routes and executes predictably with no stale duplication.

Inputs

Must be supplied: the target document path and the agent-consumed document type (skill, AGENTS.md, CLAUDE.md, or pointer-reached doc). Optionally: the current document content; if absent, read it before editing.

Procedure

  1. Read the target document fully. Identify whether it contains steps (ordered actions), reference (definitions, rules, facts), or both. Done when: the document is read and its content type (steps, reference, or both) is identified.
  2. Apply the information hierarchy: rank material by how immediately the agent needs it:
    • In-file step: the primary tier, what the agent does, in order.
    • In-file reference: consulted on demand. A flat peer-set of rules on one rung is fine.
    • Disclosed reference: pushed to a separate file, reached by a context pointer, loaded only when the pointer fires. Done when: every piece of material is placed on the hierarchy.
  3. For each context pointer (a reference naming out-of-context material with a trigger condition):
    • Front-load the leading word: the pointer's wording decides when the agent reaches the material.
    • One trigger per branch. Collapse synonyms that rename a single branch.
    • Cut identity the body already carries. Done when: every context pointer has a front-loaded leading word, one trigger per branch, and no redundant identity.
  4. For each step, verify the completion criterion is both checkable and exhaustive. A vague bound invites premature completion. Sharpen the bound first; only if irreducibly fuzzy and the rush is observed, hide later steps by splitting across a real context boundary. Done when: every step has a checkable and exhaustive completion criterion.
  5. Apply progressive disclosure: inline what every branch needs; push behind a pointer what only some branches reach. Keep a concept's definition, rules, and caveats under one heading (co-location), not scattered. Done when: branch-specific material is behind pointers and co-located concepts share one heading.
  6. Hunt leading words: compact concepts from pretraining that anchor behaviour in few tokens. Refactor restatements into single tokens. Avoid negation: prompt the positive target so the banned behaviour is never spoken. Done when: restatements are collapsed into leading words and negation is replaced with positive targets.
  7. Prune:
    • Keep each meaning in a single source of truth; duplication costs maintenance and tokens.
    • Cache only what the agent cannot find by looking. Leave one-file, one-command lookups to the environment.
    • Check every line for relevance. A line is irrelevant if it does not bear on the task or has gone stale.
    • Hunt no-ops sentence by sentence. If an instruction does not change the model's default behavior, delete the whole sentence. Done when: each meaning has one source of truth, no no-op sentences remain, and every line bears on the task.
  8. For skill documents specifically:
    • Choose invocation: model-invoked (omit disable-model-invocation, write a model-facing description with trigger branches) or user-invoked (set disable-model-invocation: true, description becomes human-facing summary). Pick model-invocation only when the agent must reach the skill on its own or another skill must.
    • Split by invocation when a distinct leading word should trigger independently; pay context load only if that independent reach is worth it.
    • Split by sequence when post-completion steps tempt the agent to rush the one in front of it. Done when: the invocation mode is chosen and any split decisions are made with their trade-off justified.
  9. Verify the final document is self-contained: it restates every safety, authority, execution, and proof rule the workflow needs. It contains no pointer to AGENTS.md, a system prompt, a rule file, another skill, or an optional peer step. Done when: the document is self-contained with no external runtime pointers.

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file 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. 7d ago First seen · 60 lines · 54 tokens per session scan A 2ad91d50dd25

Subscribe to this mod's changes

writing-for-agents is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed yesterday), licensed Apache-2.0. It adds 54 tokens to every session and 1,213 once invoked, about $0.0003 per session on Opus 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-04.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens