# Writing Protocols: the authoring standard <!-- ref: @protocol/writing-protocols tags: [protocol-authoring, protocol-standards, protocol-design, writing] triggers: [writing a new protocol, authoring a protocol, protocol standards, what makes a good protocol, where should this protocol go] trigger_prompt: When you are about to write, author or restructure a protocol and need the standard for what a good one looks like and where it goes. version: 1 updated_at: 2026-11-27T02:52:22.879Z --> How to write a protocol: what makes one good or bad, and where it goes. Before writing, `/find` and `/search` for an existing entry and extend it instead of adding a near-duplicate. Grooming the ones that exist is `@protocol/groom-protocols`. ## The standard A protocol is **fetched, not loaded**. It meets a reader mid-task, holding a symptom, paying for every line. Three properties follow, and most grooming findings trace back to one of them being missed at authoring time. **Index by the symptom, not the subject.** Readers arrive with what went wrong, not with your table of contents. `triggers` and `trigger_prompt` are the load-bearing metadata: they decide whether the entry fires at all. An entry with none is search-only, which is a choice — make it deliberately. **Make the entry sectionable.** A reader who needs one part should be able to take one part. Real headings mean `?section=` works and `?max=` condenses cleanly; a wall of prose forces whole-entry fetches, and a protocol fetched whole rides every later call in that session. Size is visible — `?trunc=15` reports it (identity block) — so treat it as a budget rather than a surprise. **Build a tree, not a pile.** A short core that routes to branches beats one entry carrying every case, and beats a scatter of fragments that each need three hops. The pattern is `@protocol/information-tree`; the counterweight is the core's over-normalization rule, and both matter — the failure modes sit on opposite sides. **Group peers under a path, not the repo root.** The same tree applies across entries: protocols a reader uses together (one workflow's steps, one domain's traps, one client's playbook) share a path, such as `@wildeagency/business-opportunity/idea-generation`, so `/ls/@repo/<path>` shows the set and each one reads as part of it. The root is for entries that stand alone. A root of hundreds of unrelated slugs is a pile one level up: nobody can see what sits next to what. Create path-qualified entries with `POST /entry` and an explicit `path`. On 11-26, `POST /entry/publish` ignored both a path option and `?path=`; use frontmatter `path:` there only if you've confirmed it with a read-back. Moving existing root entries is a re-org, so put a path map to the operator before moving anything. **Load what every run needs; attach the rest.** An entry that embeds its setup steps or script source makes every run pay for the first run. The body keeps the run block, the actions, and the response and failure handling. Setup goes to a `<slug>_/<slug>-setup` appendix, and code goes to a file appendix that is downloaded and executed, never read (`@protocol/information-tree` rule 5). A groom finding of "cost too much" on an integration or tool entry is usually this. **Separate the rule from the record.** A rulebook is read to decide how to behave: bounded, evictable, no dates, no narrative. A ledger is written when something happens: unbounded, never read at boot. **Nothing may be both** — an entry that is both cannot be pruned, because deleting a line feels like destroying evidence. Splitting them is what makes a rulebook prunable, and it is the usual cure for an entry that has accreted scar tissue. For writing craft beyond structure, `@wildeagency-public/protocol-readability`. --- *Related: `@content/youtube/every-inc/i-tested-gpt-5-6-sol-for-a-month` · `@content/youtube/tiago-forte/the-code-challenge-finale-when-the-system-has-to-pay-off` · `@protocol/information-tree` · `@wildeagency-public/protocol-readability` · `@content/youtube/every-inc/2026-07-08-how-a-writer-uses-ai-without-losing-his-voice`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*