ffroliva/gflow-cli/skills/doc-review/SKILL.md
doc-review
Use before cutting any gflow-cli release or after a major documentation change — systematic council-driven audit that combines a mechanical 7-section checklist with a 3-agent parallel review (completeness / cross-reference / drift). Produces a consensus verdict and a concrete fix list.
- Source repository stars
- 96
- Declared platforms
- 0
- Static risk flags
- 2
- Last source update
- 2026-08-04
- Source checked
- 2026-08-04
Decision brief
What it does—and where it fits
Run this gate before cutting a release. Two phases:
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/ffroliva/gflow-cli --skill "skills/doc-review"Inspect the Agent Skill "doc-review" from https://github.com/ffroliva/gflow-cli/blob/c64a8d8b246f9551e8a96c7fcf363d15e045c9b2/skills/doc-review/SKILL.md at commit c64a8d8b246f9551e8a96c7fcf363d15e045c9b2. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Setup
Review the “Setup” section in the pinned source before continuing.
Review and apply the “Setup” source section. - 02
0 · Pre-flight
Confirm you are on the release branch (release/vX.Y.Z or hotfix/...), not on develop or main.
Confirm you are on the release branch (release/vX.Y.Z or hotfix/...), not on develop or main.If a release spec exists at docs/superpowers/specs/YYYY-MM-DD--design.md, identify it now — the council auditors will use it as the ground truth for "what was supposed to ship."If there is no spec, that is also fine — the council will work from the docs alone, but flag the absence as a process risk. - 03
1 · Version references
Check these files for stale version strings (old numbers, outdated status labels):
Check these files for stale version strings (old numbers, outdated status labels):Historical references in CHANGELOG.md, docs/LIVEVERIFICATIONv.md, and milestone-history rows in docs/PROJECTSTATUS.md are allowed. - 04
2 · docs/INDEX.md completeness
Every .md in docs/ needs an entry; every entry must point to a real file. AGENTS.md and llms.txt also need rows since they are agent-facing entry points.
Every .md in docs/ needs an entry; every entry must point to a real file. AGENTS.md and llms.txt also need rows since they are agent-facing entry points. - 05
Files in docs/ missing from INDEX.md
for f in docs/.md; do grep -q "$(basename "$f")" docs/INDEX.md || echo "MISSING from INDEX: $f" done
for f in docs/.md; do grep -q "$(basename "$f")" docs/INDEX.md || echo "MISSING from INDEX: $f" done
Permission review
Static risk signals and limitations
Writes files
The documentation asks the agent to create, modify, or delete local files.
not). If it should be published: create the file under `website/docs/`, add itsRuns scripts
The documentation asks the agent to run terminal commands or scripts.
git log --oneline "$(git describe --tags --abbrev=0)"..HEADRuns scripts
The documentation asks the agent to run terminal commands or scripts.
git diff --stat "$(git describe --tags --abbrev=0)"..HEADEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 84/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 96 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- ffroliva/gflow-cli
- Skill path
- skills/doc-review/SKILL.md
- Commit
- c64a8d8b246f9551e8a96c7fcf363d15e045c9b2
- License
- MIT
- Collected
- 2026-08-04
- Default branch
- develop
View the original SKILL.md
/gflow:doc-review — Documentation Review Gate
Run this gate before cutting a release. Two phases:
- Mechanical checks (sections 1–7 below) — fast, scripted, deterministic. Run inline.
- LLM council audit (section 8) — 3 parallel review subagents, then consensus synthesis. The mechanical pass catches stale strings and dead links; the council catches drift between docs, fictional claims, and gaps a human reader would notice.
Every item reports PASS / UPDATED / WARN / FAIL. Any FAIL or any RED council verdict blocks the release.
Provenance: the council protocol below was validated on the v0.8.1 docs refresh release (2026-05-23). The audit found 11 fixable issues that the mechanical checklist alone missed (e.g., the
experimental/subpackage fiction in 3 files, thegflow video i2vnon-working hero snippet in README). Keep the council step — it pays for itself.
0 · Pre-flight
- Confirm you are on the release branch (
release/vX.Y.Zorhotfix/...), not ondevelopormain. - If a release spec exists at
docs/superpowers/specs/YYYY-MM-DD-*-design.md, identify it now — the council auditors will use it as the ground truth for "what was supposed to ship." - If there is no spec, that is also fine — the council will work from the docs alone, but flag the absence as a process risk.
1 · Version references
Check these files for stale version strings (old numbers, outdated status labels):
| File | What to verify |
|---|---|
README.md | Status badge, "Project status" section, install example |
AGENTS.md | Module list, exit-code range, dev-environment commands |
llms.txt | Header summary (Python version, stable surface claims) |
CLAUDE.md | "Active phase" pointer if present |
PLAN.md | Phase status (IN PROGRESS / DONE) and version annotations |
KNOWN_ISSUES.md | Open entries resolved by this release → move to Resolved with evidence |
CHANGELOG.md | [Unreleased] empty; link footer matches new version |
pyproject.toml + src/gflow_cli/__init__.py | Both set to the new version |
docs/PROJECT_STATUS.md | "Current release" subsection + milestone-history row for this version |
Quick grep:
grep -rn "v[0-9]\+\.[0-9]" README.md AGENTS.md llms.txt CLAUDE.md PLAN.md KNOWN_ISSUES.md CHANGELOG.md pyproject.toml docs/PROJECT_STATUS.md
Historical references in CHANGELOG.md, docs/LIVE_VERIFICATION_v*.md, and milestone-history rows in docs/PROJECT_STATUS.md are allowed.
2 · docs/INDEX.md completeness
Every .md in docs/ needs an entry; every entry must point to a real file. AGENTS.md and llms.txt also need rows since they are agent-facing entry points.
# Files in docs/ missing from INDEX.md
for f in docs/*.md; do
grep -q "$(basename "$f")" docs/INDEX.md || echo "MISSING from INDEX: $f"
done
# Entries in INDEX.md pointing to deleted files
grep -o 'docs/[^)]*\.md' docs/INDEX.md | while read path; do
[ -f "$path" ] || echo "DEAD LINK in INDEX: $path"
done
# AGENTS.md, llms.txt rows present?
grep -E "AGENTS\.md|llms\.txt" docs/INDEX.md || echo "MISSING: agent-facing root files row"
3 · Per-release evidence file
After each release a docs/LIVE_VERIFICATION_vX.Y.Z.md must exist.
- Latest version has one (create stub if live run already documented elsewhere).
docs/INDEX.md"latest release" cue points to it.- Previous versions' files are preserved (historical record — never delete).
- File contains both a Pre-tag gates section (filled before signing) and a Post-tag evidence section (filled after publish).
4 · Doc-link validation
Run the link checker:
$env:PYTHONUTF8=1
uv run python scripts/ci/check_doc_links.py
Expected: All links resolved across N files. (exit 0). Broken links must be fixed in source docs before continuing — do not edit the script to ignore them.
If scripts/ci/check_doc_links.py is absent, create it from the v0.8.1 plan (it is a 30-line stdlib-only Python script).
4b · Published website (website/) — part of the documentation work, not a follow-up
website/ is the mkdocs-material site published to GitHub Pages, and
website/docs/ is an anonymized copy of canonical docs/. Treat updating
it as part of the same change that touched the docs: a documentation uplift is
not done until the published surface reflects it. The mirror has drifted
silently for months before (PR #362 shipped a PII leak; content lagged
canonical for whole releases), which is why all three gates below exist.
1. PII gate (the CI check — a leak fails the build):
$env:PYTHONUTF8=1
uv run python scripts/ci/check_website_docs_pii.py
Expected: No private identifiers found across N published website/docs files.
2. Content-drift + nav check — the mirror is generated from canonical by
scripts/ci/generate_website_docs.py (the anonymization map is data in that
script). Verify it is in sync (this is the same check CI runs):
$env:PYTHONUTF8=1
uv run python scripts/ci/generate_website_docs.py --check
Expected: website/docs mirror in sync (N files), nav complete.
-
Any
DRIFT:line is a FAIL — a canonical doc changed and the mirror was not regenerated. Fix it:uv run python scripts/ci/generate_website_docs.py # regenerate, then stage website/docs/ -
Any
NAV-ORPHAN:line is a FAIL — the page is published but nonav:entry inwebsite/mkdocs.ymlpoints at it, so it exists on the site only for whoever guesses the URL. Mirroring a doc and wiring it into the nav are two separate acts; add the entry under the right nav section and re-run.
3. New canonical doc → decide explicitly whether it is published. Not every
doc belongs on the site (release evidence, recon specs, and plans generally do
not). If it should be published: create the file under website/docs/, add its
nav: entry in website/mkdocs.yml, and the generator maintains the content
thereafter. If it should not, say so in the review so the omission is a
decision rather than an oversight.
CHANGELOG.md and the bespoke site pages (index.md, agents.md,
installation.md, onboarding*.md) are intentionally NOT generated — the
generator's WEBSITE_ONLY set excludes them.
4c · Code↔docs parity (git-driven — the highest-value lens)
The mechanical checks and the council's drift auditor read from the docs
outward ("does this doc claim match the code?"). They do NOT reliably catch
the inverse — shipped work that no doc mentions at all — because no string
sweep notices an absent doc. This lens (adapted from the
auditing-documentation skill's dimension 3) reads from the code outward.
# Everything that shipped since the last release tag (or origin/develop on a feature branch).
git log --oneline "$(git describe --tags --abbrev=0)"..HEAD
git diff --stat "$(git describe --tags --abbrev=0)"..HEAD
For each shipped surface — new CLI flags/env vars, new modules under
src/gflow_cli/, new operational behavior — name the doc that covers it, and
assign a coverage grade: D0 (nothing) · D1 (docstrings only) · D2
(one line in INDEX/README) · D3 (dedicated how-to-operate doc) · D4 (D3
- troubleshooting + linked from an entrypoint). Anything operator-facing must be D3+; a new env var or command at D0/D1 is a release-blocking finding. List every surface below D3 with its grade and the doc it needs.
5 · Skill files (skills/ + .claude/commands/gflow/)
Canonical skill CONTENT lives in skills/<name>/SKILL.md; .claude/commands/gflow/
holds thin wrappers. Scan BOTH for stale phase/version references:
Scan all skills for stale phase/version references:
grep -rn "v[0-9]\+\.[0-9]\|Phase [A-Z0-9]" skills/ .claude/commands/gflow/
Also confirm the process skills stay in step with infra changes — e.g. when a
new CI gate or published surface lands (scripts/ci/*, the website/docs/
mirror), the skills that should run it (check, doc-review, release) name it.
Update in the release prep commit if any references are wrong. The release.md skill's step list and the plan.md skill's phase pointers age fastest.
6 · CHANGELOG link footer
tail -10 CHANGELOG.md
Must read: [Unreleased]: …compare/vNEW_VERSION…HEAD and each prior [X.Y.Z]: …compare/vPREV…vCURR.
7 · Memory files
Check C:\Users\ffrol\.claude\projects\C--development-github-gflow-cli\memory\:
| File | What to verify |
|---|---|
MEMORY.md | All listed files exist; no dangling entries |
phase-b-followups.md | Items shipped in this release marked done |
video-generation-spec.md | PR/status accurate |
image-generation-401-next.md | Resolution status and evidence pointer still valid |
release-signing.md | Procedure section matches what was actually done |
release-back-merge-gap-recovery.md | Still relevant; gap from any prior release recorded |
cd "C:\Users\ffrol\.claude\projects\C--development-github-gflow-cli\memory"
grep -o '\[.*\]([^)]*\.md)' MEMORY.md | grep -o '([^)]*)' | tr -d '()' | while read f; do
[ -f "$f" ] || echo "DEAD LINK: $f"
done
8 · LLM council audit (NEW — required for every release ≥ v0.8.1)
The mechanical checks above catch stale strings, dead links, and missing files. They do not catch:
- A doc claiming a subpackage exists when it does not (no string sweep would notice).
- Two docs covering the same topic with subtly different facts.
- A working-looking hero snippet that points to a stub command (
gflow video i2vreturned "not yet available" but appeared as a production loop above the fold in v0.8.1). - A user-facing onboarding gap that a fresh reader would hit immediately.
The council does. Dispatch three review subagents in parallel (they are read-only and independent). Each writes its verdict to tmp/council/.
Setup
mkdir -p tmp/council
Auditor 1 — Completeness
Role: as a fresh user / fresh AI agent, what do you need that isn't there?
Audit:
README.md,AGENTS.md,llms.txt,CLAUDE.md,docs/INDEX.md,docs/PROJECT_STATUS.mddocs/ARCHITECTURE.md(especially any new sections)docs/LIVE_VERIFICATION_v*.md(latest)CHANGELOG.md(just the new entry)pyproject.toml- The release spec at
docs/superpowers/specs/(if present) - The implementation plan at
docs/superpowers/plans/(if present)
Output to tmp/council/01-completeness.md with verdict GREEN / YELLOW / RED and four sections:
- Critical gaps (block release)
- Important gaps (fix before next release)
- Nice-to-haves (track for next version)
- What's done well (preserve)
Auditor 2 — Cross-reference & alignment
Role: do the docs agree with each other? Where two files cover the same topic, do they say the same thing?
Check:
- Install instructions, auth flow, headed-browser story, version number, Python requirement — all match exactly?
- Internal
[X](path)links — files exist AND claims at the link target equivalent to the linking-doc's claim? - Routing chain (README → AGENTS.md → CLAUDE.md → docs/INDEX.md) — consistent? Any contradictions?
- CHANGELOG vs PROJECT_STATUS — milestone history matches changelog entries?
- Spec vs implementation — does the shipped state match the design spec?
Output to tmp/council/02-crossref.md with verdict + four sections (inconsistencies / drift / broken anchors / well-aligned).
Auditor 3 — Drift & staleness
Role: does the documentation match the actual code and project state? Where are claims unverifiable, contradicted by reality, or referencing things that no longer exist?
Check empirically (every claim needs ls / grep / cat evidence cited inline):
- Version claims —
pyproject.toml,__init__.py, every "v0.8.1 — alpha" statement agree? - Module / file claims — every
src/gflow_cli/{...}module list verified against the actual source tree? - Subpackage claims (e.g.,
experimental/) — do those directories exist? - CLI command claims in hero snippets — is the subcommand really implemented? Does it actually do what the example shows, or is it a stub?
- Exit-code claims — verify the range against
errors.py::EXIT_CODE_MAP. - Skill files, GIF assets, slash-command files — exist at the paths claimed?
Output to tmp/council/03-drift.md with verdict + three sections (fictional claims / stale references / verified-real).
Consensus
After all three reports return:
- Read all three. List every distinct finding.
- Tier the findings:
- Tier 1 (release-blocking) — any RED verdict, any "block release" finding, any fictional claim that ships to PyPI.
- Tier 2 (important polish) — drift between related docs, minor mismatches, missing-but-recoverable references.
- Tier 3 (track for later) — nice-to-haves, prose improvements, deferred features.
- Apply Tier 1 fixes immediately (block the release until done).
- Apply Tier 2 fixes if the release schedule permits, otherwise open issues.
- Tier 3 → backlog (memory
phase-X-followups.mdor a new GitHub issue).
Synthesize a single fix-plan comment under the relevant LIVE_VERIFICATION_vX.Y.Z.md Pre-tag gates entry for /gflow:doc-review:
Council verdict: <GREEN|YELLOW|RED> across all 3 auditors. findings; Tier 1 fixed in commit , Tier 2 fixed in commit , Tier 3 deferred to backlog. Council reports at
tmp/council/0{1,2,3}-*.md(local-only).
If any auditor returns RED, stop and escalate to the user. Do not apply fixes blindly to a RED finding — it usually means the doc is wrong about the code, the code is wrong about the doc, or both.
Output format
After each section write one line:
[0] Pre-flight — PASS (release spec at docs/superpowers/specs/YYYY-MM-DD-*.md)
[1] Version refs — PASS
[2] INDEX completeness — UPDATED (added AGENTS.md row)
[3] Evidence file — PASS
[4] Doc-link check — PASS (9 files, 0 broken)
[5] Skill files — UPDATED (refreshed /gflow:plan phase pointer)
[6] CHANGELOG footer — PASS
[7] Memory files — WARN: phase-b-followups.md has shipped items not yet ticked
[8] Council audit — YELLOW (11 findings, all fixed in commit abc1234)
Then list every UPDATED change, every WARN / FAIL finding, and the council fix list for the user to review.
Integration with /gflow:release
This skill is invoked at step 9 of /gflow:release (between "review commands for staleness" and "commit the release prep"). The mechanical pass (sections 1–7) is the same as before; the council audit (section 8) is the new requirement and runs after the mechanical pass succeeds.
All discovered fixes are folded into the release prep commit unless genuinely unrelated to the release.
Post-release: memory consolidation
After the release ships and the back-merge completes, the release spec and implementation plan under docs/superpowers/{specs,plans}/ are project-management artifacts, not user-facing docs. The durable knowledge they contain (patterns learned, governance rules, architecture decisions) should be extracted into project memory at ~/.claude/projects/<...>/memory/, then the spec/plan files deleted from the repo in a final cleanup commit.
This keeps the public-facing docs/ tree focused on what users and contributors need, while the planning artifacts live on as memory entries usable by future Claude Code sessions. See the release-back-merge-gap-recovery memory and the v0.8.1 release commit history for an example.
Alternatives
Compare before choosing
ffroliva/gflow-cli
pr-council-review
Multi-dimensional LLM council review of an open PR (default) or a local feature branch (§ 8 branch mode, invoked via `/gflow:branch-review`). Five baseline dimensions (correctness, quality, security, tests, memory-hygiene) plus adaptive dimensions per surface (transports / data / CLI / docs / auth / BDD / scripts / release-gate). Each agent invokes specialized skills (security-review, code-review, verify) for its dimension. Reads files via `git show <sha>:<path>` to avoid stale-working-tree fals
wshobson/agents
brand-landingpage
Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens —
wanshuiyin/Auto-claude-code-research-in-sleep
experiment-bridge
Use it for deployment and documentation tasks; the detail page covers purpose, installation, and practical steps.
wondelai/skills
improve-code-quality
Guided journey from a working-but-untested vibe-coded prototype to a production-ready product with tests, clean structure, a business-rules boundary, and resilience at scale. Orchestrates nine skills phase by phase - working-with-legacy-code, clean-code, refactoring-patterns, software-design-philosophy, clean-architecture, pragmatic-programmer, release-it, system-design, ddia-systems - asking the user questions at every decision point and recording results in the project docs/ folder (TESTING.md