一键导入
doc-sweep
Audit documentation for accuracy and completeness — checks command refs, landing page, feature pages, and developer docs against the actual codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit documentation for accuracy and completeness — checks command refs, landing page, feature pages, and developer docs against the actual codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit codebase for architectural drift, pattern violations, complexity creep, dead code, and test gaps from continuous autonomous development
Pick an issue from the backlog, implement it in a fresh worktree, and open a PR
Audit CLI output, docs, and site content for personality and tone consistency
Strategic product ownership — roadmap health checks, spec authoring, and vision-coherence enforcement for mine
Cut a release: analyze unreleased work, propose semver bump, draft CHANGELOG, tag, and push
Audit the autodev pipeline health, recent PR quality, and identify improvement opportunities
| name | doc-sweep |
| description | Audit documentation for accuracy and completeness — checks command refs, landing page, feature pages, and developer docs against the actual codebase |
| disable-model-invocation | true |
You are a documentation accuracy auditor for the mine CLI tool. Your job is to find
factual drift between what the code does and what the docs say — missing flags, stale
examples, undocumented features, and inaccurate claims. This is distinct from
/personality-audit which checks tone; this checks truth.
The user may scope the audit: $ARGUMENTS
| Invocation | Scope |
|---|---|
/doc-sweep | Full sweep — all scopes |
/doc-sweep commands | Command reference pages vs Cobra definitions |
/doc-sweep site | Landing page components and quick-start |
/doc-sweep features | Feature overview pages vs shipped features |
/doc-sweep repo | Developer docs (README, CONTRIBUTING, LIFECYCLE) |
Read these files first to establish ground truth:
docs/internal/STATUS.md — what has shippedCLAUDE.md — architecture patterns and command conventionsCHANGELOG.md — recent changesRun whichever scopes are requested (all if no argument given).
commandsGround truth: Cobra command definitions in cmd/*.go
For each command file, extract:
Use: — the command nameShort: / Long: — descriptionFlags(). / PersistentFlags(). calls — available flags, defaults, typesAddCommand()Compare against site/src/content/docs/commands/<command>.md:
Example grep pattern to extract flags from a command file:
grep -E '(Flags|PersistentFlags)\(\)\.(String|Bool|Int|StringSlice|StringArray|Duration)\(' cmd/todo.go
Pay particular attention to: commands that received features in recent PRs (check CHANGELOG.md for "Added" entries).
siteFiles to check:
site/src/components/FeatureTabs.tsx — featured commands and examplessite/src/components/TerminalDemo.tsx — animated demo scriptssite/src/content/docs/index.mdx — docs landing page claimssite/src/content/docs/getting-started/quick-start.md — onboarding examplesChecks:
lines: arrays or fenced code blocks — does it use real flags? Does the subcommand exist?FeatureTabs.tsx has limited feature slots. Are the featured commands still the highest-value ones, or have higher-value features shipped since?"ship v0.2") that should be updatedcurl -fsSL https://mine.rwolfe.io/install | bash still the correct install flow?featuresFiles: site/src/content/docs/features/*.md
Checks:
features/task-management.md link to features/focus-sessions.md for the mine dig --todo integration?)site/src/content/docs/contributors/building-plugins.md — does the example manifest match internal/plugin/ structure? Check the JSON schema and lifecycle hooks.site/src/content/docs/contributors/plugin-protocol.md — do invocation types (hook, command, lifecycle) match actual implementation?repoFiles to check:
README.md — quick-start section, feature list, install commandCONTRIBUTING.md — build commands (make build, make test, make cover), test conventions, Go versiondocs/internal/LIFECYCLE.md — pipeline diagram accuracy, phase descriptionsdocs/internal/autodev-pipeline.md — workflow file names, trigger schedules, circuit breaker valuesChecks:
Makefile?go.mod)?Note: CLAUDE.md is flagged but never modified — findings are reported to the human.
For each finding, assign a severity:
| Severity | Meaning | Example |
|---|---|---|
| Error | Factually wrong — will mislead or break workflows | Documented flag doesn't exist |
| Missing | Real feature with no documentation | Shipped command with no docs page |
| Stale | Docs reference removed/renamed behavior | Old flag name in an example |
| Advisory | Minor inaccuracy or improvement opportunity | Version number in example is old |
Output a structured report:
Doc Sweep Report — [scope] scope
Generated: YYYY-MM-DD
## Errors (fix immediately)
commands/todo.md:45 Flag --project documented but not in cmd/todo.go (removed in recent PR)
FeatureTabs.tsx:27 Example uses `mine stash push` — correct command is `mine stash add`
## Missing (undocumented shipped features)
features/ No feature page for `mine agents` (shipped in v0.4.0)
commands/ No command reference for `mine status` (shipped, no docs)
## Stale (outdated content)
quick-start.md:12 Example shows `mine todo add "task" --due 2024-01-01` — year is past
TerminalDemo.tsx:49 Demo shows `mine todo add "ship v0.2"` — version stale
## Advisory (minor drift)
LIFECYCLE.md Diagram doesn't show autodev-release workflow (added recently)
autodev-pipeline.md Circuit breaker max turns says 100, actual is 150
## Summary
Errors: N Missing: N Stale: N Advisory: N
Files scanned: N
In the skill (interactive) mode:
In workflow mode (the doc-sweep.yml GitHub Action):
::notice::)For each Missing finding, file a GitHub issue:
gh issue create \
--repo rnwolfe/mine \
--title "docs: add feature page for mine <command>" \
--body "..." \
--label "documentation,backlog/ready"
Missing docs issues are small, well-scoped, and good candidates for autodev implementation.
/personality-audit. Don't flag copy for being "flat" — only flag if it's factually wronginternal/plugin/manifest.go and internal/plugin/runtime.go against the contributor docs