From devflow
Audits project documentation (READMEs, API docs, guides) against actual source code to find outdated, missing, or inaccurate content, then updates it. Use this when documentation may have drifted from the code after refactors, API changes, or feature additions.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin codingthefuturewithai-claude-code-primitivesThis skill is limited to using the following tools:
1. **Explore the repository FIRST. Read documentation SECOND.** Do NOT let documentation guide your exploration. You must independently discover what exists, then compare with what is documented.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Explore the repository FIRST. Read documentation SECOND. Do NOT let documentation guide your exploration. You must independently discover what exists, then compare with what is documented.
Never assume documentation is complete. Undocumented components are findings, not oversights to ignore. New code may exist that has never been documented.
Progressive disclosure is mandatory. Work in layers. Report findings at each layer and get user confirmation before going deeper. Never try to read all code and all docs in one pass.
Bidirectional verification. Check both directions:
No edits without approval. Present your findings and proposed changes. Wait for the user to approve what gets created, updated, or deleted.
Goal: Understand the repo layout and locate documentation.
Actions:
docs/, doc/, docs/, documentation/, wiki/, .github/, guides/mkdocs.yml, docusaurus.config.js, .readthedocs.yml, book.toml, vitepress, astro.config.*README.md, CONTRIBUTING.md, ARCHITECTURE.md, CHANGELOG.mdReport to user:
Wait for confirmation before Layer 2.
Goal: Build a complete manifest of what exists in this codebase, independent of documentation.
Actions:
Report to user:
Wait for confirmation before Layer 3.
Goal: Catalog what is currently documented without deep-reading every file.
Actions:
Report to user:
Wait for confirmation before Layer 4.
Goal: Compare the component inventory (Layer 2) against the documentation inventory (Layer 3).
Produce three buckets:
Components discovered in Layer 2 that have no corresponding documentation. These may need new documents created.
Documentation that covers components which exist but may have drifted. These need accuracy verification in Layer 5.
Documentation covering components, features, or patterns that no longer exist in the codebase. Candidates for removal or rewrite.
Report to user:
Wait for explicit approval on what to tackle before Layer 5.
Goal: For user-approved items only, do detailed verification and make changes.
For each approved item, based on its bucket:
Work in batches. If there are many items, group them logically and process one group at a time. Report progress between groups.
The optional argument lets the user focus the audit:
all → Full repo audit, all layersfrontend, api) → Focus component discovery and doc audit on that areadocs) → Only audit that documentation directory's accuracyWhen scoped, still perform Layer 1 discovery to understand the full context, but limit Layers 2-5 to the specified scope.