{"data":{"slug":"discovered-98f0a965a819dd344f10f7a07740855b1597542b586a5bec","title":"Agent Document Authoring","summary":"Write or audit documents that agents consume predictably, ensuring consistency across runs. The deliverable is a document such as AGENTS.md, CLAUDE.md, or a skill description, with a focus on clarity and reliability.","url":"https:\/\/skillshunter.net\/skills\/discovered-98f0a965a819dd344f10f7a07740855b1597542b586a5bec","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-98f0a965a819dd344f10f7a07740855b1597542b586a5bec","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-98f0a965a819dd344f10f7a07740855b1597542b586a5bec.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-98f0a965a819dd344f10f7a07740855b1597542b586a5bec\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Name the document's kind and its consumer (which agent, on which host). Read the document, every file its pointers name, and every environment source it restates (e.g., package.json, Makefile, config, directory layout). An unread target or source stays unknown; never fill it from assumption.","instructions":"---\nname: andino-agent-document-authoring\ndescription: Use when writing, auditing, trimming or restructuring a document another agent reads, such as AGENTS.md, CLAUDE.md, a SKILL.md body or description, a context pointer or a disclosed reference, or when choosing how a skill is invoked or split. Operates under Andino Workflow governance.\n---\n\n# Write documents agents follow the same way every run\n\nInternal method ID: `andino-agent-document-authoring` (aliases: `agent-document-authoring`, `writing-for-agents`).\n\n> **Andino Workflow Member Skill**\n> Operates under Andino Workflow: proportional investigation, evidence-based\n> decisions, one durable checkpoint and clean handoff. Do not invoke the workflow\n> recursively. Loading this resource changes neither tools nor permissions.\n\n## Purpose\n\nMake a document an agent consumes predictable: the agent takes the same process every\nrun, even when its output differs. A skill, an `AGENTS.md` or `CLAUDE.md`, and a file\nreached through a pointer differ in packaging, not in writing, so the same levers apply to\neach. A shorter document is often the result and never the goal: a cut that removes\nbehavior the document must produce is a regression.\n\n## Trigger and non-trigger\n\nUse when writing, auditing, trimming or restructuring a document another agent reads\n(`AGENTS.md`, `CLAUDE.md`, a skill's body or description, a pointer line, a disclosed\nreference), or when choosing how a skill is invoked, split or routed.\n\nDo not select for:\n\n- Building and testing an executable skill end to end. `skill-maker` owns baseline runs,\n  trigger probes and skill TDD, and applies these levers to the skill's wording.\n- ADRs, specs or glossaries written for people: `documentation-and-adrs`.\n- Rules a linter, formatter or type checker can enforce: move them into that tool.\n- Prose polish of text people read: `natural-writing`.\n- Notes for the current conversation only, or cuts made only to save length.\n\n## Select a resource, not a second lifecycle\n\nLoad only the resource the current need names. It runs inside this procedure and current\nauthority; it starts no second plan.\n\n| Current need | Resource | Skip when |\n| :--- | :--- | :--- |\n| The document is a skill: description, invocation, splitting, routers | [skill mechanics](resources\/skill-mechanics.md) | The document is not a skill |\n| Auditing an existing document: checks, report, ledger, JSON | [audit rubric](resources\/audit-rubric.md) | Writing a new document |\n| A step's end condition is vague, or agents finish steps early | [completion criteria](resources\/completion-criteria.md) | Every step already ends on a clear, demanding criterion |\n| Starting a new document | [templates](resources\/templates.md) | Revising an existing one |\n| Writing or auditing a repository's whole reference set (AGENTS.md, CLAUDE.md, CONTEXT.md, ADRs, open questions) | [project reference set](resources\/templates.md#project-reference-set) | One document only |\n| Seeing one audit end to end | [worked example](resources\/worked-example.md) | The procedure is already clear |\n| Seeing a whole reference set audited up to the owner's questions | [reference-set example](resources\/reference-set-example.md) | One document only, or the procedure is already clear |\n\n## Prerequisites\n\nName the document's kind and its consumer (which agent, on which host). Read the document,\nevery file its pointers name and every environment source it restates (`package.json`,\n`Makefile`, config, the directory layout). An unread target or source stays unknown; never\nfill it from assumption.\n\n## Procedure\n\nAuthor mode writes a new document. Audit mode revises an existing one and records findings.\n\n1. **Classify the load.** Always loaded: root guidance, a skill description, and every\n   pointer line in either. Loaded on demand: a skill body, a disclosed reference.\n   Always-loaded lines earn the hardest pruning. For a skill, read\n   [skill mechanics](resources\/skill-mechanics.md).\n2. **Map branches and rungs.** List the distinct cases the document serves (its branches).\n   Place each piece of content on a rung of the information hierarchy below. Mark\n   duplication, scattering, branch-only material inlined, dead disclosure and broken\n   pointers. Done when every section has a rung and every pointer target is resolved or\n   recorded as broken.\n3. **Apply the levers in order**, each pass shrinking the next: prune, then hierarchy,\n   then pointers, then steps and completion criteria, then wording. In audit mode, record\n   each finding as you find it: location, check, evidence and fix\n   ([audit rubric](resources\/audit-rubric.md)).\n4. **Re-read as the consumer.** Walk each branch from its trigger: start at the\n   always-loaded pointer, follow it, and reach every step and must-have rule that branch\n   needs. Done when every branch walk reaches its material and every rule of the original\n   has a ledger verdict: kept, moved, merged, or removed with a reason.\n5. **Report** as described in Output. A claim that a sentence is a no-op, or that an edit\n   changes behavior, is a hypothesis until the same task runs with and without it; label\n   it as one.\n\n## Levers\n\n### Context pointers\n\nA context pointer is a reference held in the agent's context that names out-of-context\nmaterial and encodes the condition for reaching it. A skill's description is one; a line\nin `AGENTS.md` naming a document is the same object. The pointer's wording, not its target,\ndecides when and how reliably the agent reaches the material. A must-have target behind a\nweakly worded pointer is a variance bug: sharpen the wording first, and inline the material\nonly if sharpening fails.\n\nA pointer does two jobs: it says what the material is, and it names the branches that\nshould trigger reaching it. A branch is a distinct case the document handles, so different\nruns take different paths through it. Every word of an always-loaded pointer costs on every\nturn, so prune it harder than the body:\n\n- Front-load the leading word; the pointer is where it does its triggering work.\n- One trigger per branch. Synonyms that rename one branch are that branch written twice;\n  collapse them and keep only distinct branches.\n- Cut identity the target already carries.\n\n### The two loads\n\nEvery document and pointer you add spends one of two budgets:\n\n- **Context load** is always-loaded material on the agent's window, such as an `AGENTS.md`\n  line or a skill description. It spends tokens and attention every turn, whether or not\n  it fires.\n- **Cognitive load** is the cost on the person, who must know which documents exist and\n  when to reach for each. It is the price of human agency, not a cost to minimise: spend it\n  where human judgment matters and remove it where it does not.\n\nMaterial reached only through a pointer escapes context load at the price of the pointer's\nline. Material with no pointer at all rides entirely on cognitive load.\n\n### Information hierarchy\n\nA document holds steps (ordered actions) and reference (definitions, rules and facts\nconsulted on demand), in any mix. The core decision is where each piece sits on a ladder\nranked by how immediately the agent needs it:\n\n1. **In-file step**: what the agent does, in order.\n2. **In-file reference**: consulted on demand. A flat set of peer rules on one rung is a\n   fine arrangement.\n3. **Disclosed reference**: a separate file reached by a pointer and loaded only when the\n   pointer fires, from a sibling file to fully external material.\n\nPush too little down and the top bloats; push too much and you hide material the agent\nneeds. **Progressive disclosure** moves material down the ladder to keep the top legible.\nBranching is the cleanest test: inline what every branch needs and disclose what only some\nbranches reach. Reference that should be disclosed buries the steps around it and turns\nattending to them into a coin-flip. The opposite failure is **dead disclosure**: must-have\nmaterial behind a pointer that no step or branch names, so the agent never opens it.\n\n**Co-location** decides what sits beside a piece once it is placed. Keep a concept's\ndefinition, rules and caveats under one heading, so reading one part brings its neighbours\nwith it. Scattering fragments one meaning across sections; duplication repeats it.\n**Sprawl** is a document simply too long, even when every line is live: attention thins\nacross the excess. The cure is the ladder: disclose, and split by branch or sequence.\n\n### Steps and completion criteria\n\nEvery step ends on a completion criterion. **Clarity** asks whether the agent can tell done\nfrom not done. A vague end invites **premature completion**: attention slips to being done,\npulled by the visible steps still ahead. **Demand** is how much the criterion requires.\n\"Every modified model accounted for\" forces legwork that \"produce a change list\" does not,\nand \"every rule applied\" binds flat reference the same way. The strongest criteria are\nboth checkable and exhaustive; a judgment with an exhaustiveness bar is as valid as a\ncommand's exit code. Forms and examples: [completion criteria](resources\/completion-criteria.md).\n\nWhen an agent rushes a step, sharpen the bound first. Only when the step is irreducibly\nfuzzy and the rush has been observed, hide the later steps by splitting across a real\ncontext boundary, such as a hand-off or a subagent dispatch. Splitting text inside one\nloaded file clears nothing.\n\n### When to split\n\nSplitting a document spends one of the two loads, so split only when the cut earns it:\n\n- **By sequence**, where later steps tempt the agent to rush the current one. Merging\n  sequences does the reverse and invites premature completion.\n- **By invocation**, for skills: see [skill mechanics](resources\/skill-mechanics.md).\n\n### Leading words and negation\n\nA **leading word** is a compact concept already in the model's pretraining that the agent\nthinks with, such as *tracer bullet*, a *tight* loop or a *red* test. Repeated as a token,\nnever as a sentence, it anchors a whole region of behavior in few tokens. It anchors twice:\nin the body it steers execution, and in a pointer, when the same word lives in your\nprompts, docs and code, it helps the agent reach the material. Hunt for restatements a\nleading word retires, such as a triad spelled out at three sites or a sentence gesturing at\none idea. A coined label recruits no priors, so you pay to define it, and it sets a\nregister the agent may copy; reach for an existing word first.\n\n**Negation** steers by naming the forbidden behavior and so makes it more available, not\nless. State the target behavior instead (\"write one-line comments\"). A prohibition earns\nits place only as a hard guardrail you cannot phrase positively, and even then it comes\npaired with what to do instead.\n\n### Pruning\n\n- **Single source of truth.** Keep each meaning in one place, so changing it is a one-place\n  edit. Duplication costs maintenance and tokens and inflates a meaning past its rank. A\n  leading word repeats a token on purpose, never the meaning.\n- **Environment as source.** Scripts, config files, the directory layout and `--help`\n  output are sources of truth too. A document that restates them is a cache, earning its\n  load only when the lookup is expensive. Cache what the agent cannot find by looking: an\n  unwritten convention, the reason behind a choice, a gotcha no config confesses.\n- **Relevance.** A line loses relevance when it never bears on the task, or when it goes\n  stale as the behavior it describes changes. Without pruning, stale layers settle as\n  **sediment**.\n- **No-ops.** Hunt sentence by sentence for instructions the model already follows by\n  default. The test is model-relative and is settled by running the document, not by\n  debate. Delete the whole sentence rather than trimming words. A leading word too weak to\n  beat the default (*be thorough*) is a no-op; the fix is a stronger word (*relentless*) or\n  a more demanding criterion.\n\n## Ownership and permission boundary\n\nAndino coordinates selection, shared progress, resource guards and final status from\nevidence. This skill owns its procedure, resources and checks, and coordinator brevity\nnever truncates them. Edit only the documents the request names, and report any renamed or\nmoved file that other documents link to. Loading this skill grants no commit, push,\npublication or installation authority.\n\n## Output\n\n- **Author mode:** the document or documents, plus the pointer line that reaches each\n  disclosed file.\n- **Audit mode:** the findings table, the revised document or a diff, the preservation\n  ledger ([audit rubric](resources\/audit-rubric.md)) and one \"Not verified\" line naming the\n  behavior claims that were not run.\n\n## Verification\n\nEvery pointer target exists, every step ends on a completion criterion and every original\nrule has a ledger verdict. These are properties of the document. Whether agents behave\nbetter needs a with-and-without trial on a real task, which `skill-maker` runs for skills.\n\n## Worked example and anti-pattern\n\n[The worked example](resources\/worked-example.md) audits a testing section end to end and\nends with a structural check you can adapt.\n[The reference-set example](resources\/reference-set-example.md) audits a repository's whole\nreference set and ends on the owner's questions with no file changed.\n\nAnti-patterns: deleting guardrails or branch detail to look short; copying template slots\nthat have no content; replacing a judgment criterion with a shell command that does not\ntest it; reporting a hunch as a proven no-op; rewriting a repository's existing reference\ndocuments before the owner approves; an ADR whose reason reads \"not recorded\".\n\n## Fallback\n\nA pointer target or environment source that cannot be read becomes a `needs decision`\nfinding, never a guess. When the host's loading behavior is unknown, state the assumption\nthe classification rests on.\n\n## Local resources\n\nThe resources above are packaged with this skill; upstream repositories are not runtime\ndependencies. The MIT notice is in [references\/license.md](references\/license.md).\n\n## Provenance\n\nAdapted closely from Matt Pocock's `writing-for-agents` (`SKILL.md` and\n`SKILL-MECHANICS.md`, mattpocock\/skills commit 3216582, 2026-08-19) under the MIT license.\nThe procedure, audit rubric, templates, completion-criteria catalog and worked example are\nAndino additions.\n","use_cases":["Writing a new AGENTS.md or CLAUDE.md document","Auditing an existing agent document for consistency and clarity","Restructuring a skill description or pointer line for improved agent processing","Choosing how a skill is invoked or split based on document requirements"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/andinoferdi\/andino-skills\/blob\/639c62b294a835b77a167cc4af1aa1f306d0cc45\/skills\/andino-workflow\/skills\/agent-document-authoring\/SKILL.md","source_commit":"639c62b294a835b77a167cc4af1aa1f306d0cc45","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T10:50:13.000000Z","updated_at":"2026-11-30T06:51:11.000000Z","seo_title":"Agent Document Authoring for Predictable Agent Consumption","seo_description":"Ensure agents consume documents predictably by writing or auditing AGENTS.md, CLAUDE.md, or skill descriptions with consistent formatting and clear pointers.","seo_keywords":["agent document authoring","predictable agent consumption","AGENTS.md formatting","skill description audit","document pointer clarity","Andino Workflow governance"]}}