docsgen

command
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command docsgen renders the skill-derived guide pages of the documentation site, so those pages are never a second copy of the docs that can drift from the first.

Its one source is the agent skill compiled into the binary (internal/skill/assets) — the prose an AI reads before driving fft, and the best usage documentation the repo has. Its files map one-to-one onto guide pages, and every page docsgen writes says so in its front matter:

source: internal/skill/assets/references/recipes.md

That key is the whole ownership contract. A page carrying one is generated: edit the skill asset, not the page. A page without one — install, auth, the setup guides — is hand-written and docsgen never touches it. The sweep at the end of a run deletes generated pages this run did not write, so renaming a skillPages entry drops its orphan instead of leaving one behind that the no-drift gate cannot see.

Everything it writes is committed, and CI re-runs it and fails on a diff — the same no-drift contract make generate has.

go run ./tools/docsgen -skill internal/skill/assets -out docs/guide

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL