writing-for-agents

writing-for-agents is a skill for Claude Code from HECer/yoke. It costs 55 tokens per session (440 once invoked), scanned A, original, MIT.

A guide for writing reliable instructions for coding agents, such as AGENTS.md, CLAUDE.md, skills, and workflow documents. It focuses on clear triggers, ordered actions, context links, and checkable completion criteria.

In plain words
What is it for?
Use it to create or revise agent instructions, define when an instruction applies, document decisions and constraints, and make completion observable.
Why use it?
It reduces ambiguity, repeated instructions, and workflows that an agent cannot reliably finish or verify. It also helps keep important rules in the right place.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the yoke plugin — 34 skills, 1 hook shipped together

Good fit Use it to create or revise agent instructions, define when an instruction applies, document decisions and constraints, and make completion observable.

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

Made for: Claude Code.

Or install yoke, the plugin that ships this one along with the rest of its 34 skills, 1 hook.

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/hecer/yoke/writing-for-agents/github.svg)](https://agentmods.dev/skills/hecer/yoke/writing-for-agents)
Your own site
<a href="https://agentmods.dev/skills/hecer/yoke/writing-for-agents"><img src="https://agentmods.dev/badge/skills/hecer/yoke/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/hecer/yoke/writing-for-agents"><img src="https://agentmods.dev/badge/skills/hecer/yoke/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 440 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.00055 $0.00440
Opus 5 $0.00028 $0.00220
Sonnet 5 $0.00011 $0.00088
Haiku 4.5 $0.00006 $0.00044

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

canon/skills/writing-for-agents/SKILL.md · 43 lines

What it actually says

Writing for agents

Write instructions that produce a repeatable process with observable completion, while preserving authorization, safety rules, acceptance criteria, and precise domain language.

Context pointers

A pointer names out-of-context material and states when to load it. A skill description and an AGENTS.md link serve the same routing function.

  • Front-load the capability or trigger.
  • Name each genuinely different branch once; remove synonymous trigger lists.
  • Keep must-have instructions behind a pointer only when its trigger is strong enough to load them.
  • Spend always-loaded context on rules needed broadly; disclose branch-specific reference material.

Information hierarchy

  1. Put ordered actions and their completion criteria in the main file.
  2. Co-locate definitions, rules, and caveats that an action needs.
  3. Move substantial branch-specific reference behind a named link and say when to read it.
  4. Keep each durable meaning in one source of truth. Treat scripts, config, and directory structure as discoverable sources instead of copying facts that will go stale.

Every step needs a checkable completion criterion. Prefer an exhaustive observable bound such as "every changed public interface has a passing contract test" over "review the interfaces."

Editing pass

  • Remove duplicated, contradictory, stale, or no-op instructions.
  • Replace vague verbs with concrete actions, paths, commands, evidence, and stopping conditions.
  • Separate durable project rules from details that belong only to the current task.
  • Phrase the desired behavior positively. Keep prohibitions for real guardrails and pair them with the action the agent should take.
  • Keep examples only when they distinguish correct behavior from a likely mistake.
  • Preserve user scope: completing a workflow never grants unrelated external or destructive action.

When the document is a skill, read SKILL-MECHANICS.md.

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. 8d ago First seen · 43 lines · 55 tokens per session scan A 8f542e97cf02

Subscribe to this mod's changes

writing-for-agents is a skill published in the GitHub repository HECer/yoke (2 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 440 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-08-31.

Related

Other skills, from other repositories

add-new-agent-support

Add a new agent (tool) support to agent-command-sync following the registry pattern.

skill-mill/agent-skill-porter · 21 tokens

neo4j-document-import-skill

Ingests unstructured and semi-structured documents into Neo4j as a knowledge graph. Use when chunking PDFs, HTML, plain text, or Markdown; extracting entities and relationships from text with an LLM (SimpleKGPipeline, neo4j-graphrag); loading JSON via apoc.load.json; building Document→Chunk→Entity graph structures; or…

neo4j-contrib/neo4j-skills · 187 tokens

neo4j-aura-agent-skill

Manages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke Aura agents backed by an AuraDB instance. Use when configuring Aura Agent tools (CypherTemplate, SimilaritySearch, Text2Cypher), setting system prompts, deploying agents to REST or MCP endpoints, or invoking agents with…

neo4j-contrib/neo4j-skills · 142 tokens

neo4j-graphql-skill

Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). Covers Neo4jGraphQL constructor, getSchema(), assertIndexesAndConstraints(), type definitions with @node, @relationship (IN/OUT/UNDIRECTED), @cypher for custom resolvers, @authorization/@authentication for JWT/JWKS…

neo4j-contrib/neo4j-skills · 169 tokens

neo4j-modeling-skill

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with…

neo4j-contrib/neo4j-skills · 152 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

agent-skills-hub/agent-skills-hub · 74 tokens