writing-for-agents

Write and structure documents that AI agents consume, including skills and AGENTS.md files.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/GregM1991/skills --skill writing-for-agents-gregm1991
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: writing-for-agents
Source: https://github.com/GregM1991/skills/tree/main/skills/vendor/mattpocock/writing-for-agents
Command: npx skills add https://github.com/GregM1991/skills --skill writing-for-agents-gregm1991

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Documents written for AI agents often fail unpredictably: agents miss instructions, rush steps, or ignore reference material. This Skill provides a systematic reference for writing agent-facing documents (skills, AGENTS.md, CLAUDE.md) so the agent behaves predictably on every run. ## Core Features & Use Cases - Context pointer design: Write descriptions and pointer lines whose wording reliably triggers the agent to reach the right material at the right branch. - Information hierarchy: Place content on the right tier (in-file steps, in-file reference, disclosed reference) using progressive disclosure and co-location to prevent sprawl. - Completion criteria and splitting: Define clear, demanding completion criteria for steps, and split documents by sequence or invocation to prevent premature completion. - Use Case: When authoring a new skill or editing an AGENTS.md file, apply the two-loads model (context load vs. cognitive load), leading words, and pruning rules to produce a lean document the agent follows reliably. ## Quick Start Ask the agent to review your SKILL.md or AGENTS.md draft using the writing-for-agents principles and suggest improvements to pointers, structure, and pruning.

Frequently Asked Questions about writing-for-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a good skill description for an AI agent?▼

Write the description as a context pointer: front-load the leading trigger word, list one trigger per distinct branch the skill handles, and cut any identity the body already carries. Every word of an always-loaded description costs context on every turn, so prune it harder than body text.

How do I structure an AGENTS.md or CLAUDE.md file?▼

Organize content along an information hierarchy: in-file steps first, in-file reference consulted on demand, and disclosed reference pushed behind pointers into separate files. Keep each concept's definition, rules, and caveats co-located under one heading.

When should I split a skill into multiple skills?▼

Split by sequence when visible later steps tempt the agent to rush the current one, or by invocation when a distinct trigger word should fire a skill independently. Each split spends context or cognitive load, so the cut must earn its cost.

What is the difference between model-invoked and user-invoked skills?▼

A model-invoked skill keeps a description so the agent and other skills can fire it autonomously, paying permanent context load. A user-invoked skill sets disable-model-invocation: true, removing that load but requiring the human to remember and invoke it by name.

Why does my agent ignore instructions in my documentation?▼

Common causes are weakly worded pointers, no-op instructions the model already follows by default, and negations that activate the forbidden behavior. Sharpen pointer wording, delete sentences that fail the default-behavior test, and state positive target behaviors instead of prohibitions.