docs-steward
Skill1 starsChanged 31 days agoMITView on GitHub
Instructions for the upstream workflow: Scoped documentation map for multi-component projects (server + client + tools + …). Detects components, classifies every doc as global vs component-scoped, and produces a per-component index (DOCS.md) listing local docs + links to the relevant global docs — so an LLM coder bounded to one component loads only its scope, not every other component's documentation. Frames token cost (full project docs vs scoped load) and treats .md as LLM-facing, .html as human reference. Use when a project has several components and you want to cut the docs an agent must read, or asks how to organise docs for a monorepo.
In this repository114 other files it gives its agents.
- agent-cacheSkill
- agent-compressionSkill
- agent-intelSkill
- agent-overlapSkill
- agent-stateSkill
- ambient-hudSkill
- app-testSkill
- audit-dagSkill
- auto-distillSkill
- auto-memorySkill
- auto-routerSkill
- benchSkill
- bootstrapSkill
- botte-learnSkill
- botte-nnSkill
- botte-proxySkill
- botte-wrapSkill
- cacheSkill
- call-chainsSkill
- capabilitiesSkill
- cardinalSkill
- checkupSkill
- clarificationSkill
- clusterSkill
- code-complexitySkill
- code-duplicationSkill
- code-fingerprintSkill
- code-rulesSkill
- code-stateSkill
- code-wrappersSkill
- comfyuiSkill
- completion-proofSkill
- conductorSkill
- context-budgetSkill
- context-compressorSkill
- context-profilerSkill
- context-slicerSkill
- context-windowsSkill
- control-loopSkill
- cost-estimatorSkill
- dag-optimizerSkill
- dashboardSkill
- decision-ladderSkill
- demoSkill
- diff-languageSkill
- directives-auditSkill
- docgenSkill
- dynamic-workflowsSkill
- efficiencySkill
- eventsSkill
- fallow-likeSkill
- fallowSkill
- fast-contextSkill
- fixSkill
- fleetSkill
- hailo-visionSkill
- harness-deltaSkill
- harvestSkill
- hermes-bridgeSkill
- hermes-second-brainSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
Read-only summary via the docs_lifecycle MCP tool (lifecycle_report).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
docs-steward — the right docs, at the right scope
Package scope and prerequisites
This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.
A monorepo accumulates docs at several scopes: global docs at the root, and component docs inside each component's folder. When an LLM coder is bounded to one component (e.g. the server), loading every other component's docs wastes tokens every turn. The steward builds a scoped map so each bounded coder loads only its own docs + links to the relevant global docs.
python -m skills.docs_steward.cli map . # the scoped docs map
python -m skills.docs_steward.cli index . --component server # preview server/DOCS.md
python -m skills.docs_steward.cli index . --write # write a DOCS.md per component
python -m skills.docs_steward.cli tasks . # lifecycle: finished tasks + report sprawl
python -m skills.docs_steward.cli prune . --write # strip done tasks (archived, not lost)
python -m skills.docs_steward.cli reports . --keep 5 --archive # tidy .botte reports
python -m skills.docs_steward.cli review . # annual review due list (preview)
python -m skills.docs_steward.cli review-prompt . AGENTS.md --tier local
python -m skills.docs_steward.cli review-apply . result.json # preview verified result
python -m skills.docs_steward.cli audience . # read-only Markdown/HTML audit
python -m skills.docs_steward.cli knowledge-audit . # Wiki/second-brain proposalsHow it maps
- Detect components — top-level dirs with a manifest (
package.json,pyproject.toml,go.mod, …), known names (server/client/api/tools/…), or code; monorepo containers (apps/,packages/,services/) expand to their children. Pure-doc/asset dirs are never components. - Classify docs — every
.md/.mdx/.rst/.txt/.htmlis assigned to the deepest component it lives under, else it's global. - Scope + frame — each component gets its local docs, links to the global
(LLM-facing) docs, and a token cost: scoped load (local + globals) vs all
project docs.
.md= load;.html= human reference (linked, not loaded). - Index (confirm-gated) —
index --writedrops aDOCS.mdin each component telling a bounded coder exactly what to load. Preview by default;--writeto commit the files.
Expected upstream output: a JSON map. Confirm the runtime and actual result. Exposed via [[llm-mcp]] as
docs_map. Related: [[directives-audit]] (agent-guidance file health),
[[metrics]] (per-component cost), [[checkup]].
Docs lifecycle (finished tasks + report sprawl)
Finished work shouldn't keep costing tokens. lifecycle.py adds two
confirm-gated jobs (preview by default, act only on --write/--archive):
- tasks/plans —
scan_tasksfinds checkbox markdown (- [ ]/- [x]) and counts open vs done + the token waste of done items still in-file.prunestrips done items (preserving them in.botte/archive/<name>.done.md— nothing is lost) and moves fully-done plans out of the working tree. - reports —
report_hygiene/reports --archivekeep the N most recent of each.bottereport and move the rest to.botte/reports/archive/.
Read-only summary via the docs_lifecycle MCP tool (lifecycle_report); the
prune/archive actions stay CLI-only and confirm-gated.
Recurring Markdown review
review.py turns periodic instruction cleanup into a fail-closed contract:
- 365 days by default — override with
--interval-daysor copyconfigs/docs-review.example.jsonto the local, Git-ignored.botte/docs-review.json. The config controls include/exclude/focus globs, review-on-change, model hints, and explicit upgrade notes. - Local inventory —
reviewcomputes hashes, due dates, priority, token estimates, and evidence-labelled model references. A textual reference is never reported as proof that a model is active. No network/model call occurs. - Bounded prompt —
review-promptreviews one file. Cloud tier returns fullupdated_md; local tier returns exact unique find/replace edits. Both bind the result to the source SHA-256 and preserve project facts, preferences, safety, architecture, APIs, commands, and provenance. - Verified application —
review-applypreviews by default.--writerejects stale hashes and unsafe paths, archives the exact prior bytes under.botte/archive/docs-review/<timestamp>/, writes atomically, then records the review in Git-ignored.botte-cache/docs-review-state-v1.json. - Small-model tolerance — the result parser accepts raw JSON, one strict
botte-llmprovenance line, and one barejsonfence. Any other surrounding prose still fails closed before application. - No-change review —
review-markrecords an explicit human/model review; it also requires--writeto change local state.
The tool never schedules an OS task and never calls a cloud provider. Cron,
Task Scheduler, CI, or an agent may invoke the read-only review command at a
user-selected cadence.
/checkup now includes due/current counts. Never-reviewed bootstrap files are
informational; only elapsed intervals or explicitly watched content changes
become drift.
trends snapshot persists only aggregate review counts (due/current,
overdue/changed, never-reviewed); paths, content, prompts, and model responses
remain outside the historical journal.
Wiki and second-brain integrity
knowledge_integrity.py detects a project Wiki, memory files, daily notes, or
the governed Memory Hub only when one is present. The deterministic audit checks
entry points, authority/precedence, provenance, freshness, state-versus-event
write rules, human approval, project/privacy boundaries, and the declared or
inferred always-loaded surface.
knowledge-audit is preview-only and uses 0 LLM tokens. Every gap becomes a
bounded proposal with a priority, target file, and suggested change; it never
rewrites the knowledge base. Use repeatable --always-loaded <file> arguments
to replace filename inference with explicit runtime knowledge. /checkup
includes the score and turns P1/P2 gaps into an actionable drift item.
The coverage boundary is explicit: this pass verifies mechanisms, not the truth of every claim. Semantic contradictions still require comparing current-sounding claims with the freshest evidence. A report with zero proposals is therefore not a guarantee that no stale fact exists.
Markdown/HTML audience policy
audience.py makes the format boundary enforceable without taking ownership of
the user's publishing workflow:
- Markdown is canonical for LLMs —
.md/.mdx/.markdownare editable sources..htmlis an optional human rendering or standalone interface. - HTML never inflates context budgets — maps still list HTML as a human reference, but global, local, scoped, and total token counts include only LLM-facing documents.
- Freshness needs provenance — a renderer can embed
<!-- botte-docs-source: path=docs/guide.md; sha256=<source-sha256> -->.audiencethen reportscurrentorstalefrom content hashes. A same-stem pair without the marker staysunverified; standalone HTML is informational. - Read-only and optional —
audiencenever converts, rewrites, deletes, or requires an HTML copy for Markdown. RootMEMORY.md, local agent state, and symlinked documents are excluded from discovery.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

