# Grooming Protocols
<!--
ref: @protocol/groom-protocols
type: protocol
tags: [hygiene, groom-op, audit, protocols, bootstrap, search, impulses, authoring, context-budget]
aliases: [groom-protocols, protocol-grooming]
triggers: [groom my protocols, groom the protocols, protocol hygiene, audit my protocol usage, clean up my usage, my bootstrap is bloated, this protocol did not answer, the knowledge base is messy, my entries are stale, too many protocols, protocol never fires]
trigger_prompt: When the thing being groomed is a protocol, a knowledge base, or the way a session discovers and fetches them — a bootstrap that grew, entries that never fire, searches that return nothing, a protocol that blew the context budget. The general grooming method lives in @protocol/grooming; this is the protocol-specific branch.
category: core
audience: [agent-author, claude-code-user, agent]
version: 7
updated_at: 2026-11-26T19:47:12.016Z
-->

The protocol-specific branch of grooming: the surfaces to sweep (bootstrap, authored content, search, impulses, topics), the telemetry that reveals them, and how to write an entry that fires when needed and does not blow the reader context budget.

**The general method is in the core and is not repeated here** — the trace as evidence, the five shapes (misfired, cost too much, didn't answer, was wrong, fired too many times), the disposal ranking, the over-normalization guard, the edit discipline. Fetch the core if you do not have it. This entry adds only what is specific to protocols: the surfaces to sweep, the telemetry that reveals them, and how to write an entry that does not blow a reader's context.

## Two doorways

A **friction groom** starts from one rough path and usually ends in one or two edits — that is the core's flow, scoped to an entry. A **standing groom** sweeps every surface on a cadence: quarterly, when the composed bootstrap passes ~15k tokens, after a major workflow shift, or when zero-hit searches keep recurring. Only the standing pass needs the telemetry below.

## Pull the telemetry

```bash
curly protocol /user/bootstrap/preview       # composed shape + token count
curly protocol /user/bootstrap/config        # the include list
curly protocol /user/bootstrap/suggestions   # richest single signal
curly protocol "/find/@$PROTOCOL_USER_HANDLE"        # what you have authored
curly protocol "/impulse/mine?status=open"           # open work
```

In `suggestions`, `source` is the key field: `fetch` means agents keep fetching something absent from the bootstrap; `search` means they searched and found nothing anywhere; `both` is the strongest include candidate. `threads[]` carries per-session `callCount` / `missCount`. Respect `dismissedCount` — never re-propose a dismissed suggestion without saying it was dismissed.

**A tag-based sweep needs a known-positive control.** A `tag:` query answers from the search index, and an entry whose *metadata alone* changed may not have been reindexed — so a tag you just applied can return nothing while the tag is genuinely set. Pair any tag query with one whose result you already know before concluding a tag is unused.

## The surfaces

Walk each, skip what does not apply, and name the shape before the edit. Each row is a finding; the disposal is the linked operation.

**Bootstrap.** Over 15k composed → `@protocol/tighten-bootstrap-token-budget`. Under 3k while the work is varied → under-utilised; check suggestions. Unread 14+ days → `@protocol/retire-unused-bootstrap-include` (demote to `title` first). Unread 30+ days and its domain is gone → remove. `full`-depth never read whole → demote, but never auto-demote `full` silently. `source: fetch` with `fetchCount ≥ 3 × weeks` → add at `summary` via `@protocol/bootstrap-edit`.

**Authored content.** `last_reviewed` over 6 months on entries still being fetched → reauthor. No `triggers` / `trigger_prompt` → shape 1; it will never auto-load. Very short bodies beside richer siblings → shape 5; consolidate. No inbound links and unfetched 90+ days → archive. Overlapping triggers across entries → `@protocol/cross-context-divergence`.

**Search and discovery.** Recurring `source: search` zero-hits → `@protocol/convert-search-miss-to-protocol`. High `missCount / callCount` → same path. Explanations the operator keeps re-typing → `@protocol/promote-recurring-explanation`. Fetched often *via search* despite a generic `trigger_prompt` → shape 1; tighten the phrasing so it loads on its own.

**Impulses.** More than 15–20 open with no recent digest → triage. Recurring impulses that never satisfy → ask whether they are blocked on a missing protocol. Intents older than 90 days → still real? A question re-asked on the same impulse is a protocol gap, not an impulse — see `@protocol/impulse-the-recurring-task`.

**Topics.** Bodies inlining refs unread 30+ days → move them out. Vocabulary leaking across directions → split. Never triggered → retire, or its phrasing is wrong.

**Single entry.** For one entry's instruction logic — decorative rules, dead seams, contradictions — `@protocol/protocol-audit` is the lint. For its text — quoting, paths, titles — the server's scrub pass.

## Writing an entry that does not blow the context

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`.

## Apply through the canonical path

Bootstrap changes via `@protocol/bootstrap-edit`. A search miss via `@protocol/convert-search-miss-to-protocol`. Entry edits via `PATCH /entry/{id}` with `baseVersion`. A stale impulse via `POST /impulse/{id}/complete`. Confirm bootstrap changes with `/user/bootstrap/preview` — the `tokens` field is the receipt, so surface the before/after delta.

Read by ref, write by id: there is no `GET /entry/{id}`, so resolve with `@repo/slug?format=json` → `.id`. Pass `?scrub=none` to protect your prose from the async rewrite pass — and on a public repo, read your own content back afterwards, because scrub is also the net that catches a private name on its way out.

## Record the pass

Append a short digest to a recurring `grooming` impulse (open one if absent — `type=intent`, recurring monthly): token and include deltas, what was demoted, removed or added, search-miss patterns flagged but not converted, deferred items, open questions. **The next pass starts by reading the prior digest** — without that trail every audit re-discovers the same findings.

## What good looks like

A bootstrap of 5–15 includes and 5–10k composed tokens, every include earning its place. Every entry fetched in the last 90 days carrying a current `last_reviewed`. A suggestions endpoint that is mostly empty. Open impulses tracking real work. Short, direction-shaped topic bodies. A grooming digest going back more than one entry.

---

*Part of the grooming ecosystem: the general entry point is `@protocol/grooming`; sibling operations are `/search?q=tag:groom-op`.*

---

*Related: `@protocol/bootstrap-core` · `@content/youtube/wes-mcdowell/the-5-biggest-youtube-mistakes-businesses-make-1-200-channels-studied` · `@content/youtube/wes-mcdowell/youtube-growth-strategy-for-business-channels-the-d-n-a-framework` · `@content/youtube/cole-medin/your-ai-second-brain-is-slowly-rotting-here-s-how-to-fix-it` · `@protocol/retro`*

---

*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).*