From vini-workflow
Analyzes codebase structure and updates README.md and docs/ directories to reflect current code state, including changes since last doc update. Triggers on 'update docs' or staleness checks.
npx claudepluginhub vinicius91carvalho/.claude --plugin vini-workflow**/README.md**/docs/**This skill uses the workspace's default tool permissions.
Analyze the codebase and update documentation to accurately reflect the current state of the code.
Updates project documentation (README, API docs, auto-detect) based on recent git changes. Asks scope, analyzes diffs, spawns docs-keeper agent, verifies links/examples.
Audits codebase documentation for accuracy, completeness, and freshness by comparing against code structure. Auto-fixes small discrepancies in fix mode, reports structural changes. Works with any language/framework.
Updates existing README.md using codebase scans, git history since last edit, changelog refresh, and audits for stale/missing sections.
Share bugs, ideas, or general feedback.
Analyze the codebase and update documentation to accurately reflect the current state of the code. Produces concise, accurate documentation — not verbose filler.
Identify what documentation exists and what the project contains.
Search for:
- README.md (root and subdirectories)
- docs/ or documentation/ directories
- CHANGELOG.md
- Any .md files referenced in README
- API documentation (OpenAPI, Swagger)
- workflow/ directory (for workflow repos)
Spawn an Explore agent (haiku model) with this prompt:
Analyze the project structure and return a structured summary:
- Project type: (web app, CLI, library, monorepo, workflow system, etc.)
- Tech stack: (languages, frameworks, key dependencies)
- Entry points: (main files, exports, bin scripts)
- Directory structure: (top-level dirs with purpose — 1 line each)
- Key components: (modules, services, hooks, skills, agents — whatever the project uses)
- Scripts/commands: (package.json scripts, Makefile targets, shell scripts)
- Configuration: (env vars, config files, settings)
- Tests: (test framework, test location, how to run)
Be concise. One line per item. Skip empty categories.
If in a git repo with history:
# What changed since docs were last updated?
DOCS_LAST_MODIFIED=$(git log -1 --format="%H" -- README.md docs/ 2>/dev/null)
if [ -n "$DOCS_LAST_MODIFIED" ]; then
git diff --name-only "$DOCS_LAST_MODIFIED"..HEAD -- ':!README.md' ':!docs/'
fi
This tells you which code changed since docs were last touched.
Compare the Explore agent's findings against existing documentation.
For each doc file, identify:
Create a mental checklist:
[ ] README.md — missing: [list], stale: [list]
[ ] docs/architecture.md — missing: [list], stale: [list]
...
Report this checklist to the user before making changes:
Documentation audit:
- README.md: 3 sections stale, 2 missing
- docs/hooks.md: 1 section stale
- docs/api.md: current (no changes needed)
Proceed with updates?
Wait for user confirmation unless running autonomously.
For any project README:
For workflow/system repos (like ~/.claude):
For libraries/packages:
For web apps:
After all edits:
]( in markdown files and verify targets exist# Quick link checker
grep -rn ']\(' README.md docs/ 2>/dev/null | grep -oP '\]\(\K[^)]+' | while read -r link; do
if [[ "$link" != http* ]] && [[ ! -e "$link" ]]; then
echo "BROKEN LINK: $link"
fi
done
Output a concise summary:
Documentation updated:
- README.md: updated project structure (+2 hooks), removed stale API section
- docs/hooks.md: added validate-i18n-keys.sh and verify-worktree-merge.sh sections
- docs/architecture.md: no changes needed
Verified: 0 broken links, 0 stale commands, 0 missing paths.