From sd0x-dev-flow
Researches current code state and updates corresponding documentation to keep docs in sync with code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sd0x-dev-flow:update-docsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Keywords: update docs, sync docs, docs out of date, update-docs
/codex-review-doc)/tech-spec or /create-request)/doc-refactor)Auto-triggered after precommit Pass, only when the change maps to a feature under docs/features/ (see @rules/auto-loop.md Doc Sync Note). Can also be invoked manually.
Key principle: can't find target → ## Gate: ⚠️ Need Human — don't guess or create new docs.
Use the shared feature context resolution algorithm (see @skills/tech-spec/references/feature-context-resolution.md):
| Confidence | Action |
|---|---|
| high/medium | Proceed with detected feature |
| low | Proceed with warning |
| null (not found) | Output ## Gate: ⚠️ Need Human — do not guess |
Key research items:
| Item | Doc Description | Current Code | Status |
|---|
Update document content based on differences:
After update:
After doc sync, compare code diff against pre-sync baseline. If new code changes exist (e.g., lint:fix modified code), return to review loop.
## Doc Update Report
| Document | Sections Updated | Status |
|----------|-----------------|--------|
## Changes Made
- <summary of each update>
## Verification
- [ ] New modules documented
- [ ] Removed modules cleaned
- [ ] Diagrams updated
npx claudepluginhub sd0xdev/sd0x-dev-flow --plugin sd0x-dev-flowSyncs documentation with code after implementation changes, refactoring, or bug fixes. Maps code diffs to impacted docs like AGENTS.md or API docs.
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.
Checks whether project documentation is up-to-date after code changes by scanning git diffs and reporting stale or missing docs.