cc-guide
A plugin for Claude Code (primary), Codex, and OpenCode that writes guides you can trust and keeps them current, from one plugin directory.
You point it at the material you have: source repositories, walkthrough transcripts, tickets, links, and notes. It interviews you about audience and personas, plans the guide with you, and then writes it page by page. A fresh reviewer checks every page against the sources, pinned to exact commits, before the next page starts. When the sources move on, the plugin shows which pages cite changed files and updates only those.
The method comes from building the Secure Agent Workspace guide, where per-page reviews found a factual error in nearly every page. The lessons are in guide/docs/learnings.md.
Commands
| Command | What it does |
|---|
/guide:create | Interview, scaffold, pin sources, plan, write and review every page, final review, run summary |
/guide:evolve | Drift report against the baseline, targeted page updates with the same reviews, new baseline written last; --check reports drift only, --adopt brings in an existing guide, --pages and --visuals add GitHub Pages or captured visuals; --help explains the modes, the guide setups, and where to run it, without checking anything |
/guide:preview | Build and serve the guide locally with live reload; shareable or internal view |
/guide:export | One PDF of the whole guide with a title page, linked table of contents, and page numbers |
/guide:upstream | Re-verify collected source problems on the current default branch, draft reports, file only what you approve |
/guide:validate | Run the guide's check commands against a cluster: read-only by default, full recipes only on a disposable cluster |
Output formats
| Format | Pages | Site | PDF |
|---|
antora | AsciiDoc | Antora with the RHDP showroom UI | Antora html-single export, printed with Playwright |
mkdocs | Markdown | MkDocs Material | print-site page, printed with Playwright |
gfm | Markdown rendered on GitHub | no build needed (Pandoc HTML for checks and the tarball) | Pandoc assembly, printed with Playwright |
All three share one contract: the same make targets (doctor, fetch-baseline, site, site-internal, check, preview, pdf, dist, drift), baseline values injected at build time instead of typed versions, an optional internal part that never reaches the shareable build, and content checks that fail the build. Details are in guide/docs/adapters.md.
A gfm guide can also live inside the repository it documents (embedded mode): the guide sits in one subdirectory, the repository's README becomes the guide's source-verified front page, development material moves to a developer README, and /guide:evolve keeps the README current as the code changes. Run /guide:create at the root of an existing repository, or pass --embedded. See guide/docs/embedded.md.
Install
cc-guide runs on Claude Code (primary), Codex, and OpenCode from one plugin directory. Each harness reads only its own entry point and resolves the same shared skills, so the command set and behavior are the same across harnesses except for the documented degradations below.
Claude Code
# from a checkout of this repository
make install
Codex
Register this checkout as a local plugin and install it through Codex's own plugin mechanism. Codex reads guide/.codex-plugin/plugin.json and discovers the guide skills directly; there is no command layer, and the skills run guide:preflight themselves. create and evolve need Codex's multi-agent features enabled (multi_agent = true in ~/.codex/config.toml), because per-page writing and review are dispatched to parallel subagents; preflight stops with a prerequisite message when that capability is not available.
OpenCode
Install the command shims into a project with the bundled installer:
bash guide/opencode/install.sh --project-dir <project>
It copies the six guide commands into <project>/.opencode/plugins/guide/command/; each one chains guide:preflight and the matching guide skill, so OpenCode runs the same shared logic as the other harnesses with no behavior fork. OpenCode is delivered best-effort on the shared adapter (install, command discovery, and launch); the multi-agent prerequisite and the degradations below apply the same way as on Codex.
Requirements (every harness)