writing-for-agents
БесплатноБез исполняемых скриптовНе проверенWriting documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
от FradSer★ 598 звёзд на GitHubОб этом скилле
Reference for writing any document an agent consumes: a skill, an AGENTS.md / CLAUDE.md, 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 for frontmatter, invocation choice, and router skills.
Model-aware instruction audit
Apply these principles when authoring or auditing skills, AGENTS.md, CLAUDE.md, and task prompts. Revisit instructions against the models actually used by contributors; do not assume scaffolding that helped one model helps all of them. Preserve instructions that encode real project constraints.
- Narrow triggers. Keep skill descriptions as short as possible while naming the actual workflow and its trigger conditions. Long, overlapping descriptions compete for context and load irrelevant guidance.
- Minimal routing. For a multi-workflow skill, make the root a minimal router to supporting docs with clear loading conditions. Load only the branch the task needs; unnecessary guidance spends context and brings compaction closer.
- Outcomes over itineraries. Specify constraints and completion criteria; leave implementation choices to the agent unless a particular sequence is essential.
- Contextual repository guidance. Revisit always-loaded instruction files after model upgrades. Replace blanket pre-reading with targeted pointers, and keep reading proportional to the task: a typo fix needs no full repository tour.
- Evidence-based pruning. Remove stale workarounds, conflicting guidance, and reminders already satisfied by the model's default behavior. Retain task-specific verification requirements and explicit repository contracts.
- Safe autonomy and decision boundaries. State what may proceed without repeated approval and where approval is required. Only claim a check is safe when verified true. Retain explicit approval boundaries for production writes, destructive operations, and external publication: perceived model capability does not grant permission.
- Persistence with a finish line. Define completion before work begins. If delivery includes running it, inspecting the result, fixing failures, and rerunning affected checks, say so: a first implementation is not that finish line. Keep a stop-for-review gate only when a human decision is genuinely needed, and name the exploration scope and stopping condition for work beyond the first pass.
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:
- Front-load the leading word: the pointer is where it does its triggering work.
- One trigger per branch. Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
- Cut identity the body already carries.
The two loads
Every document and pointer you add spends one of two budgets:
- Context load is the cost of always-loaded material on the agent's window: an
AGENTS.mdline, a skill description, anything sitting in context every turn, spending 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. The human is the index. 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 at all rides entirely on cognitive load.
Information hierarchy
A document is built from two content types: steps (the ordered actions the agent performs) and reference (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the information hierarchy, a ladder ranked by how immediately the agent needs the material:
- In-file step is the primary tier: what the agent does, in order.
- In-file reference is consulted on demand. Often a legitimately flat peer-set (
Установить writing-for-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл writing-for-agents?
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Как установить скилл writing-for-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл writing-for-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic