writing-for-agents

writing-for-agents is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 62 tokens per session (1,807 once invoked), scanned A, original, MIT.

A writing guide for documents that coding agents read, such as skills, project instructions, and agent definitions. It explains how to organize context, priorities, completion rules, and detail.

In plain words
What is it for?
Use it when creating or editing agent instructions, skills, AGENTS.md files, CLAUDE.md files, and other agent-facing documentation.
Why use it?
It helps agents find the right instructions and follow them consistently instead of missing important context or reading unnecessary material.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it when creating or editing agent instructions, skills, AGENTS.md files, CLAUDE.md files, and other agent-facing documentation.

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

Made for: Claude Code, Codex.

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/monkilabs/opencastle/writing-for-agents/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/writing-for-agents)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/writing-for-agents"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/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/monkilabs/opencastle/writing-for-agents"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,807 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.00062 $0.01807
Opus 5 $0.00031 $0.00903
Sonnet 5 $0.00012 $0.00361
Haiku 4.5 $0.00006 $0.00181

Measured 5d ago against content hash a4601ee7d479, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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.

src/orchestrator/skills/writing-for-agents/SKILL.md · 85 lines

How it starts

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

Writing for Agents

Reference for any document an agent consumes: a skill, an instruction file, a doc reached by a pointer. The packaging differs, the writing does not. The same levers make each one predictable, because the agent takes the same process every run rather than producing the same output.

Context pointers

A context pointer is a reference held in the agent's context that names out-of-context material and encodes the condition for reaching it. A skill's description is one. The pointer's wording, not its target, decides when and how reliably the agent reaches the material. 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.

A pointer does two jobs: state what the material is, and list the branches that should trigger reaching it. Every word costs on every turn, so it earns harder pruning than the body.

  • Front-load the leading word. The pointer is where it does its triggering work.
  • One trigger per branch. Synonyms renaming a single branch are one branch written twice.
  • Cut identity the body already carries.

The two loads

Every document and pointer spends one of two budgets.

  • Context load is the cost of always-loaded material on the agent's window. It spends tokens and attention whether or not it fires.
  • Cognitive load is the cost on the human: which documents exist and when to reach for each. Not a cost to minimise, it is the price of human agency. Spend it where human judgement matters, remove it where it does not.

Material reached only through a pointer escapes context load at the price of the pointer's own line. Material with no pointer rides entirely on cognitive load.

Information hierarchy

A document is built from steps (ordered actions) and reference (definitions, rules, facts consulted on demand). The two mix freely. The core decision is where each piece sits on a ladder ranked by how immediately the agent needs it:

Read the full file on GitHub · 85 lines

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. 5d ago First seen · 85 lines · 62 tokens per session scan A a4601ee7d479

Subscribe to this mod's changes

writing-for-agents is a skill published in the GitHub repository monkilabs/opencastle (61 stars, last pushed 11d ago), licensed MIT. It adds 62 tokens to every session and 1,807 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-03.

Related

Other skills, from other repositories

product-architect

Complete product development system with 80 agents and 36 frameworks. Use when the user wants to build a product, write a PRD, plan an MVP or roadmap, design an app, research a market or check whether a feature already exists or is novel, do competitive analysis, run a security audit, build a financial model, plan…

ankitjha67/product-architect · 253 tokens

cursor-prompting

Internal guidance for composing cursor-agent prompts and picking models for coding, review, diagnosis, and research tasks inside the Cursor Claude Code plugin.

zebbern/agent-collab · 31 tokens

cursor-result-handling

Internal guidance for presenting Cursor helper output back to the user.

zebbern/agent-collab · 16 tokens

goal-runner

Use when the user asks to advance, continue, or work on the project's long-horizon goal (or to set one up) — the policy for goal-driven increments driven through the goal companion, one increment at a time, delegated via the codex/cursor delegation skills, honestly recorded.

zebbern/agent-collab · 62 tokens

agentflow

Expert guidance for building, debugging, and extending applications with AgentFlow (10xscale-agentflow). TRIGGER when: code imports from agentflow (e.g. from agentflow import, StateGraph, Agent, ToolNode, AgentState); user references agentflow.json or CLI commands (agentflow init, agentflow api, agentflow play…

10xHub/agentflow-cli · 0 tokens

agentflow

Expert guidance for building, debugging, and extending applications with AgentFlow (10xscale-agentflow). TRIGGER when: code imports from agentflow (e.g. from agentflow import, StateGraph, Agent, ToolNode, AgentState); user references agentflow.json or CLI commands (agentflow init, agentflow api, agentflow play…

10xHub/agentflow-cli · 0 tokens