| name | udoc |
| description | Update documentation and generate changelog after task implementation. Use when asked to 'update docs', 'generate changelog', 'sync documentation with code', or when a task is complete and docs need updating. NOT for creating new product docs (use /product). |
| argument-hint | ["task-path"] |
Update Documentation (UDOC)
Announcement: Begin with: "I'm using the udoc skill for documentation update and changelog."
PRIMARY OBJECTIVE
Generate documentation updates and changelog entries from a completed task implementation.
CONTEXT
Use when:
- Task implementation is complete (before or after PR/merge)
- Documentation needs updating to reflect code changes
- Changelog entry needed for the task
WORKFLOW
STEP 1: Resolve Task Path
- Parse
$ARGUMENTS for a task directory path
- If not provided — Ask: "Which task to update docs for? Provide task directory path (e.g.,
tasks/task-2026-02-09-feature-name/)."
(Don't guess — picking the wrong task would generate a misleading
changelog that may end up in the repo history.)
- Validate: find
tech-decomposition-*.md inside the task directory
- If not found — error with available task directories
STEP 2: Update Docs + Generate Changelog (parallel subagents)
Spawn both subagents in the same turn — they operate on the same task
document and do not depend on each other's output:
- docs-updater — "Review the task document at [TASK_DOCUMENT_PATH] and update all relevant documentation files based on the implemented changes. Return a summary of what documentation was updated."
- changelog-generator — "Generate a changelog entry based on the task document at [TASK_DOCUMENT_PATH] covering the main feature implementation. The docs-updater runs in parallel; its updates will be included in the same commit."
Do not default to sequential. When calls have no dependencies, batch them in one turn.
Capture both outputs: the summary of documentation changes and the changelog entry.
STEP 3: Offer Commit (user-gated)
- Show user what changed:
git diff --stat for modified files
- Brief summary from both agents
- Ask: "Commit these documentation and changelog updates?"
(This skill may run before a PR is opened; the user may want to
squash docs into the feature commit rather than create a separate
docs commit.)
- If approved:
git add <files listed in docs-updater summary> \
docs/changelogs/YYYY-MM-DD/changelog.md
git commit -m "docs: update documentation and changelog
- Documentation updates: [DOCS_SUMMARY]
- Changelog entry: [CHANGELOG_SUMMARY]
Generated by docs-updater and changelog-generator agents."
- If on a feature branch, ask whether to push
STEP 4: Summary
Report to user:
Documentation updated!
**Docs**: [list of updated files]
**Changelog**: docs/changelogs/YYYY-MM-DD/changelog.md
**Committed**: Yes/No
ERROR HANDLING
- Task not found: List available task directories under
tasks/
- No changes detected: Inform user, suggest checking if docs are already up to date
- Agent fails: Report which agent failed, suggest running manually
SUCCESS CRITERIA