Commands

August 12, 2026 · View on GitHub

After installing the plugin, everything lives under one namespace: /docflow:<verb>. Type /docflow: in Claude Code to see them all. The setup/authoring entries are skills — you can type the command or just ask in plain English (e.g. "is docflow set up here?") and the matching skill triggers automatically. The three generators take free-text arguments.

Commands & skills

NeedCommandAlso triggers on (plain English)Output
Check readiness/docflow:check"is docflow set up", "what do I do next"One status: ready / needs setup / adoption / repair / blocked
Inspect a repo/docflow:doctor"check docs setup", "doctor"Read-only recommendation: init, adopt, repair, or OK
Start empty docs/docflow:init"set up docflow", "scaffold docs"docs/, docflow.json, guidance files, helpers
Adopt existing docs/docflow:adopt"adopt my docs into docflow"Missing infrastructure added; existing docs preserved
Repair generated files/docflow:repair"regenerate the docs map"Fresh docs/INDEX.md, installed/refreshed managed helpers, link/placeholder report
Validate docs/docflow:validate"validate the docs"Profile-aware blockers plus warning-only adoption cleanup
Find the right doc/docflow:router"where is X documented", "what's the roadmap"Routes a question to one doc
Write a doc/docflow:author"write a doc", "add an ADR"New doc in the right folder with the right name
Record shipped work/docflow:changelog"what changed", "add to changelog"Entry in the monthly changelog
Plan feature work/docflow:feature-plan <msg>docs/plans/features/(mmm-yy)-<slug>.md
Write product behavior/docflow:product-spec <msg or code path>docs/product-spec/00-overview.md or NN-<topic>.md
Draft from repo signals/docflow:scanAuto-draft spec and roadmap candidates

After updating a local plugin, run /reload-plugins if new commands do not autocomplete.

Examples

ExampleUse when
/docflow:doctorYou just opened a repo and need the right setup path
/docflow:checkYou want one answer: is docflow usable, and what's next
/docflow:validateYou changed docs and need to know whether anything blocks completion
/docflow:feature-plan add team comments to documentsYou know the feature idea and need a status/log doc
/docflow:product-spec src/features/commentsCode exists and product WHAT docs should be drafted from it
/reload-pluginsYou updated the local plugin but new commands do not autocomplete

Codex Skills

SkillUse it for
checkOne-screen readiness status and next command
doctorSame read-only diagnosis as /docflow:doctor
initInitialize when doctor recommends init
adoptAdopt existing docs without overwriting
repairSafe generated-file maintenance and managed-helper upgrades
validateRead-only strict/adopted validation gate for links, map freshness, metadata, update logs, and blockers
routerRoute questions to the right doc before editing
authorAuthor product specs, technical specs, ADRs, reviews, and plans
changelogAdd shipped work to monthly changelog

Bash Scripts

The skills and commands above call these helper scripts. You can also run them directly in any agent or shell. Script names are stable and unchanged.

ScriptSafe to run anytime?Purpose
scripts/docflow-check.sh --target <repo>YesOne-screen readiness status and next command
scripts/docflow-doctor.sh --target <repo>YesRead-only repo diagnosis
scripts/scaffold.sh --target <repo> --docs-root docs --project "Name" [--validation-profile strict|adopted]New docs setup onlyCreate full docflow tree without overwriting files
scripts/docflow-adopt.sh --target <repo> --docs-root docs --project "Name"Explicit setup onlyCreate missing infrastructure around existing docs
scripts/docflow-repair.sh --target <repo>Yes for docflow reposRegenerate map, refresh managed helpers, and report issues
scripts/docflow-validate.sh --target <repo> [--profile strict|adopted]YesValidate docs readiness and exit non-zero on blockers
scripts/docflow-spec.sh <code-path> --target <repo>Draft onlyGenerate a technical spec draft from source files
scripts/docflow-plan.sh --target <repo> --days 30Draft onlyGenerate roadmap candidates from TODO/FIXME markers and git churn
scripts/docflow-map.sh docsYesRegenerate docs/INDEX.md
scripts/check-links.sh docsYesReport broken local Markdown links