Skip to content

About

Kit for generating grounded product documentation of an implemented codebase by agents - conventions, templates, a scribe agent, a one-prompt application procedure

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

docs-by-agents

A self-contained kit for generating product documentation of an implemented codebase — doc conventions, page templates, scribe + verifier agents, a fumadocs docs-site layer, and a one-prompt application procedure. The reference pipeline targets a TypeScript + TanStack Start repo — the kit sets up the fumadocs docs layer if the target lacks one (fumadocs/RECIPE.md). The conventions themselves are stack-agnostic, but the runnable end-to-end path is the reference stack — off it, two branches, honest up-front: a target with NO docs app parks at stack recon for a human-chosen docs stack (pipeline/02 § Park on blocker); a target with an existing buildable docs app passes recon (kit layer: none recorded), but the docs-layer duties downstream — derived frontmatter, the [name] resolver, link validation, the open-questions registry, the emphasis-density census, all fumadocs-layer — have no runnable form without the layer: expect the run to park at the first such duty (05/07/09) unless the adopter adapts those contracts.

Docs written by agents, read by humans: pages address the human cold reader in product language, every claim is verified against code (per-claim provenance records), and gaps are marked, never invented.

Applying the kit

One prompt: fill the template in APPLY.md with a target repo's path and a focus feature, paste it into an agent session, send. The agent runs the nine-phase pipeline (intake → stack recon → domain discovery → IA proposal — the one human checkpoint — → generation → grounding verification → navigation → reader-panel QA → build validation), parking on blockers instead of guessing; a tree an earlier run already produced takes the upgrade re-entry instead (pipeline/10-upgrade). Two session modes — sit in the kit and point at the target, or sit in the target and point at a kit checkout — differ only in which side is local; outputs always land in the target repo.

Where your own asks go — two durable channels, never conversation memory: the intake brief and the instance's decisions registry (APPLY.md § Handing in your requests).

Layout

  • conventions/ — the doctrine, in three layers:
    • any-docs/ — rules for any doc in a tree (SSOT + cross-refs, orientation intro, content-type form, confidence-with-provenance — the last an adapted interim copy from the kit's not-yet-published upstream substrate; see its header).
    • agent-loaded/ — terseness rules for artifacts agents load (this kit's own agent defs, conventions, the instruction text inside templates).
    • product-docs/ — product-page rules (register, structure, grounding).
  • templates/ — page shape-contracts + exemplars (feature page, concept page, folder index, glossary section, stub).
  • decisions/ — this kit's ADRs (own numbering; upstream doctrine cited as adrs-for-agents ADR-NNN, never restated).
  • APPLY.md, pipeline/, agents/, qa/ — the application procedure: the one-prompt template, nine phase contracts plus the upgrade re-entry, the scribe / verifier agent defs, the reader-archetype QA panel.
  • fumadocs/ — the docs-site layer: a setup recipe for an existing TanStack Start app, the remark [name]-resolver plugin, and the shared page-scope / derivation / chain / parse modules the build-order scripts run on.
  • sample/ — a minimal reference app (TanStack Start + fumadocs) exercising the layer end-to-end: build, [name] links, link validation, generated indexes and open-questions registry, TOC, search.
  • LEDGER.md — the kit identity ledger: content-digest recipe + one block per published digest; kit-revision records the digest, 10-upgrade resolves it here (kit ADR-007).

Doctrine lineage

Built on adrs-for-agents — ADR-001 (closer-reader shapes each surface), ADR-002 (docs never duplicate code), ADR-003 (positional orientation intro), ADR-004 (doc rules homed by consumer). The kit cites these by repo + number and never restates their bodies; it is operable standalone.

The kit's own files follow their own medicine: positional opening intros, SSOT with cross-refs, agent-loaded terseness.

License

MIT

About

Kit for generating grounded product documentation of an implemented codebase by agents - conventions, templates, a scribe agent, a one-prompt application procedure

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages