writing-for-agents

Write documentation for AI agents using context pointers, information hierarchy, and completion criteria.

Updated Sep 14, 2026
One-click install
npx skills add https://github.com/Suge8/skills --skill writing-for-agents-suge8
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: writing-for-agents
Source: https://github.com/Suge8/skills/tree/main/development/writing-for-agents
Command: npx skills add https://github.com/Suge8/skills --skill writing-for-agents-suge8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Documentation written for AI agents often fails because agents miss buried instructions, finish steps prematurely, or drown in bloated context. This Skill provides a systematic framework for writing agent-facing documents—skills, AGENTS.md/CLAUDE.md files, and referenced materials—so every run follows the same process reliably. ## Core Features & Use Cases - Context Pointers & Information Hierarchy: Teaches how to structure documents across inline steps, in-file references, and progressively disclosed external files so agents load only what each branch needs. - Completion Criteria & Lead Words: Shows how to write checkable, exhaustive step-completion standards and use compact pre-trained vocabulary (lead words) to anchor agent behavior with minimal tokens. - Skill Mechanics Reference: Covers skill-specific decisions via SKILL-MECHANICS.md, including frontmatter, model-invoked vs user-invoked invocation modes, and router skills. - Use Case: When revising an AGENTS.md that agents keep ignoring, apply the pointer wording rules and trimming discipline to strengthen trigger phrases, remove no-op instructions, and split content by branch. ## Quick Start Use the writing-for-agents skill to review and rewrite my AGENTS.md file so the agent reliably follows it.

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 documentation that AI agents actually follow?▼

Structure documents with clear steps ending in checkable completion criteria, keep always-loaded pointers tightly trimmed with trigger words first, and disclose branch-specific reference material behind pointers. State target behaviors positively rather than issuing blanket prohibitions.

What is a context pointer in agent documentation?▼

A context pointer is a reference in the agent's context that names material not currently loaded and encodes the conditions for reaching it. A skill description or an AGENTS.md line naming a document are both pointers, and their wording determines how reliably the agent reaches the target.

When should I split a skill into multiple skills?▼

Split by sequence when completed steps tempt the agent to rush the current one, or split by invocation when a standalone trigger word should fire on its own. Each new model-invoked skill adds context load through its description, so the independent reach must justify the cost.

Should a skill use model invocation or user invocation?▼

Use model invocation when the agent needs to discover and trigger the skill autonomously, keeping a model-facing description. Set disable-model-invocation: true for skills only reached through explicit commands or path pointers, writing the description as a one-line human summary.

Why does my agent finish tasks before the work is done?▼

Premature completion comes from vague completion criteria that cannot distinguish done from not-done. First tighten the criterion's boundary with checkable, exhaustive wording; only hide later steps across a real context boundary if the boundary stays blurry and rushing persists.

What are the limitations of negative instructions in prompts?▼

Blanket prohibitions drag the forbidden concept into context without stating what to do instead, and negation is a weak modifier overridden by strongly activated ideas. Prefer stating the positive target behavior, reserving direct bans for hard guardrails or specifically named failure modes.