Skip to content

Skill · Operate and improve

writing-for-agents

Use when creating or editing skills, or modifying AGENTS.md or other agent instruction files.

Adapted and maintained by

Install this skill

Installs only writing-for-agents, globally, as a copy

DISABLE_TELEMETRY=1 npx skills add KunanonJ/superstacks -g -s writing-for-agents --copy -y

Third-party installer; DISABLE_TELEMETRY=1 turns its telemetry off.

How it runs

Runs automatically.

The agent loads it when a task matches the description above. You can also ask for it by name.

SKILL.md

View on GitHub
---
name: writing-for-agents
description: Use when creating or editing skills, or modifying AGENTS.md or other agent instruction files.
license: MIT
---

Reference for writing any document an agent consumes: a skill, an `AGENTS.md` or another agent instruction file, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.

When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.

## Context pointers

A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. 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 (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body: