writing-for-agents
Was er macht
Er gibt Schreibhilfen für Dokumente, die KI-Agenten lesen, etwa Skills und Projekt-Anweisungsdateien. Er ist für Menschen gedacht, die Anweisungen schreiben, denen ein Agent zuverlässig folgen muss.
Wann du ihn nutzt
- ✓Wenn du einen Skill für deinen Agenten erstellst oder bearbeitest.
- ✓Wenn du eine AGENTS.md- oder CLAUDE.md-Datei schreibst.
- ✓Wenn du willst, dass ein Agent ein Dokument bei jedem Lauf gleich befolgt.
Link zum Skill
https://github.com/mattpocock/skills/blob/main/skills/productivity/writing-for-agents/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Hilf mir, meine CLAUDE.md neu zu schreiben, damit der Agent unsere Projektregeln zuverlässiger befolgt.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er erklärt, wie man klare Verweise und Auslöser schreibt, damit der Agent weiß, wann er welchen Teil lesen soll. Er empfiehlt, die Formulierung zu schärfen, bevor mehr Material hinzugefügt wird.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Was ist ein Kontext-Verweis?
Ein Verweis, den der Agent behält, der auf bestimmtes Material zeigt und erklärt, wann es zu lesen ist.
Deckt er auch die Einrichtung von Skill-Dateien ab?
Ja. Für Skills verweist er auf eine eigene Referenz zu Frontmatter und zur Aufrufweise von Skills.
Warum ist die Formulierung so wichtig?
Der Skill sagt, die Formulierung eines Verweises bestimmt, wann der Agent das Material erreicht, mehr als das Material selbst.
Details
Originalbeschreibung des Autors
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
repo: mattpocock/skills
Beliebtheit
- GitHub-Sterne
- 310k
- Platz im Ranking
- #125
- Lizenz
- MIT
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
ask-matt
310kLässt deinen Agenten als Wegweiser durch eine Reihe von Coding-Skills dienen und dich für deine Situation zum richtigen Skill führen, von der Idee bis zum ausgelieferten Code.
code-review
310kPrüft deine Änderungen gegen die Coding-Standards deines Repos und die ursprüngliche Spezifikation und führt beide Prüfungen nebeneinander durch, bevor du zusammenführst.
domain-modeling
310kErstellt ein gemeinsames Projekt-Glossar und hält zentrale Designentscheidungen fest, damit dein Code dieselben Begriffe verwendet wie dein Team.
implement-spec
310kVerwandelt eine fertige Spezifikation mit ihren Tickets in lauffähigen Code, bearbeitet die Tickets der Reihe nach und führt sie in einem Branch zusammen.
Ähnliche Skills
writing-skills
311kBringt deinem Agenten bei, neue Skills zu schreiben und jeden zuerst zu testen, und zu prüfen, ob der Skill das Verhalten des Agenten tatsächlich verändert.
bengali-nlp
280kLässt deinen Agenten bengalischen Text verarbeiten. Er hilft, die Sprache zu verstehen, normalisiert Texte und berücksichtigt ihre Besonderheiten.
prompt-caching-strategy
280kHilft deinem Agenten, Prompts für Sprachmodelle zu optimieren. Er analysiert den Aufbau und senkt Kosten sowie Antwortzeiten durch Wiederverwendung.