writing-for-agents
O que ela faz
Oferece orientações de escrita para documentos que agentes de IA leem, como skills e arquivos de instruções de projeto. É indicado para quem escreve instruções que um agente precisa seguir de forma confiável.
Quando usar
- ✓Quando você está criando ou editando uma skill para o seu agente.
- ✓Quando está escrevendo um arquivo AGENTS.md ou CLAUDE.md.
- ✓Quando quer que um agente siga um documento da mesma forma em todas as execuções.
Link da skill
https://github.com/mattpocock/skills/blob/main/skills/productivity/writing-for-agents/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me ajude a reescrever meu CLAUDE.md para que o agente siga as regras do projeto com mais confiabilidade.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica como escrever ponteiros e gatilhos claros, para que o agente saiba quando ler cada parte. Ela recomenda aprimorar a redação antes de acrescentar mais material.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
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 (every rule of a review on one rung), which is a fine arrangement, not a smell.
- Disclosed reference is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
Progressive disclosure is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
Co-location is the within-file companion: where the ladder decides how far down a piece sits, co-location decides what sits beside it once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
Sprawl is the failure mode here: a document simply too long, even when every line is live and unique. Attenti
Perguntas frequentes
O que é um ponteiro de contexto?
Uma referência que o agente guarda, que nomeia certo material e explica quando lê-lo.
Ela também cobre a configuração de arquivos de skill?
Sim. Para skills, ela indica uma referência separada sobre o frontmatter e como as skills são invocadas.
Por que a redação importa tanto?
A skill diz que a redação de um ponteiro decide quando o agente chega ao material, mais do que o próprio material.
Detalhes
Descrição original do autor
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
repo: mattpocock/skills
Popularidade
- Estrelas no GitHub
- 310 mil
- Posição no ranking
- #125
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
ask-matt
310 milPermite que seu agente atue como guia de um conjunto de skills de programação, indicando a skill certa para a sua situação, desde a ideia até o código entregue.
code-review
310 milConfere suas mudanças com os padrões de código do seu repositório e com a especificação original, rodando as duas revisões lado a lado antes do merge.
domain-modeling
310 milCria um glossário compartilhado do projeto e registra as decisões de design importantes, para que seu código use as mesmas palavras que a sua equipe usa.
implement-spec
310 milTransforma uma especificação pronta e seus tickets em código funcionando, tratando os tickets em ordem e reunindo tudo em uma única branch.
Skills parecidas
writing-skills
311 milEnsina seu agente a escrever novas skills e testar cada uma antes, conferindo se a skill realmente muda o comportamento do agente.
bengali-nlp
280 milFaz seu agente processar textos em bengali. Ajuda a entender e trabalhar com a língua, normalizando o texto e lidando com suas características únicas.
prompt-caching-strategy
280 milAjuda seu agente a otimizar prompts para modelos de linguagem, reduzindo custos e deixando as respostas mais rápidas ao reaproveitar informações.