| name | audit-docs |
| description | Audit documentation coverage across CLI commands, web features, and configuration. Builds the CLI, discovers all commands/flags, checks web pages, and cross-references against docs/ and apps/docs/. |
| metadata | {"internal":true} |
Audit Documentation
Discover all CLI commands, web features, and configuration options, then cross-reference against the documentation in apps/docs/ to identify gaps, outdated content, and missing sections.
Instructions
Arguments in $ARGUMENTS are optional flags:
--fix — after reporting gaps, update the documentation files to fill them
--cli-only — only audit CLI command documentation
--web-only — only audit web feature documentation
--verbose — include per-flag detail in the report
--since-last-release — only check for items added since the last release. Look at the last git tag and determine whether changes since that tag have been documented.
If no arguments are provided, run a full audit and produce a report (no fixes).
Phase 1: Build the CLI
- Build the development binary so we have the latest commands:
make install-dev
- Verify the binary works:
vibeview-dev --version
Phase 2: Discover CLI commands and flags
- Get the top-level help: Run
vibeview-dev --help and parse the list of available commands.
- For each command, run
vibeview-dev <command> --help to capture:
- Usage string
- Description (Short + Long)
- All flags (name, type, default, description)
- Subcommands (if any)
- For commands with subcommands, recurse: run
vibeview-dev <command> <subcommand> --help.
- Also capture global flags from
vibeview-dev --help.
- Store all of this as a structured inventory for comparison.
Phase 3: Discover web features
- Read the web app source to identify all pages/views:
- Glob
apps/web/src/pages/*.tsx for page components
- Glob
apps/web/src/components/*/ for feature areas
- Read
apps/web/src/App.tsx to extract route definitions (URL paths).
- Read
apps/cli/internal/server/*.go to identify API endpoints served by the backend.
- Compile a list of:
- Pages: name, URL path, key features
- API endpoints: method, path, description
Phase 4: Discover configuration options
- Read
apps/cli/cmd/vibeview/main.go and apps/cli/internal/settings/ to extract global flags and config loading.
- Read any config-related files (grep for config file references or
viper usage) to find all supported config keys.
- Check for any example config files.
Phase 5: Cross-reference against documentation
For each discovered item, check whether it is documented:
CLI Commands → Documentation
For each command discovered in Phase 2:
apps/docs/guide/cli.md (docs site):
- Is the command listed?
- Does it have its own section with usage examples?
- Are all flags documented?
- Are examples accurate (flag names, defaults match reality)?
Web Features → Documentation
For each page/API endpoint discovered in Phase 3:
apps/docs/guide/web-interface.md (docs site):
- Is the page/view listed?
- Are key features described?
- Are API endpoints documented?
Getting Started → Documentation
- Check
apps/docs/getting-started/installation.md and apps/docs/getting-started/quick-start.md:
- Are install instructions accurate?
- Do quick-start steps match current CLI behavior?
Phase 6: Generate report
Produce a structured markdown report with these sections:
## Documentation Audit Report
### Summary
- Total CLI commands: X (documented: Y, missing: Z)
- Total CLI flags: X (documented: Y, missing: Z)
- Total web pages: X (documented: Y, missing: Z)
- Total API endpoints: X (documented: Y, missing: Z)
- Total config options: X (documented: Y, missing: Z)
### CLI Command Gaps
For each undocumented or partially documented command:
- Command name
- What's missing (entire section, specific flags, examples)
- Which doc file(s) need updating
### Web Feature Gaps
For each undocumented page or endpoint:
- Feature name
- What's missing
- Which doc file(s) need updating
### Configuration Gaps
For each undocumented config option:
- Option name
- Which doc file(s) need updating
### Stale/Inaccurate Documentation
Items where docs don't match the actual CLI behavior:
- Flag name mismatches
- Wrong defaults
- Missing or renamed commands
### Navigation Issues
- Broken sidebar links
- Orphan pages
Print the report to stdout.
Phase 7: Fix gaps (only if --fix was passed)
If $ARGUMENTS contains --fix:
- For each gap identified in Phase 6, update the relevant documentation file:
- Add missing command sections to
apps/docs/guide/cli.md
- Add missing flag tables
- Add missing web feature descriptions to
apps/docs/guide/web-interface.md
- Add missing config options
- Follow the existing documentation style and formatting conventions in each file.
- After making changes, list all modified files.
If --fix was NOT passed, end with: "Run /audit-docs --fix to automatically update documentation."
Error Handling
- If
make install-dev fails, report the build error and stop.
- If a command's
--help output can't be parsed, note it in the report and continue.
- If a documentation file doesn't exist, note it as a gap.