| name | docs-maintenance-after-work |
| description | Run standardized post-implementation documentation maintenance and quality checks. |
Docs Maintenance After Work
Use this skill after implementation to keep project docs synchronized with reality and prevent drift.
Trigger conditions
- End of
/pwf-work execution.
- End of
/pwf-work-plan phase execution.
Core flow
- Run
doc-shepherd (always).
- Run
plan-sync when work maps to an active plan/work-plan context.
- Conditionally run specialized doc writers:
backend-module-doc-writer
frontend-feature-doc-writer
lambda-doc-writer
- Run
pattern-extractor when a reusable pattern emerged.
- Apply documentation quality gate.
Agent paths
doc-shepherd -> agents/docs/doc-shepherd.md
plan-sync -> agents/docs/plan-sync.md
backend-module-doc-writer -> agents/docs/backend-module-doc-writer.md
frontend-feature-doc-writer -> agents/docs/frontend-feature-doc-writer.md
lambda-doc-writer -> agents/docs/lambda-doc-writer.md
pattern-extractor -> agents/docs/pattern-extractor.md
Inputs required for doc agents
diff — relevant git diff for implementation scope
changed_files — modified/created/deleted file list
work_summary — short implementation summary
Documentation quality gate
Before claiming completion:
- Specificity — real file/symbol references, no vague text.
- State clarity — clear implemented vs planned separation.
- Operational usefulness — invariants/gotchas/checklists are concrete.
- Contract accuracy — APIs/DTOs/entities/flows match current code.
- Cross-doc consistency — no contradictions with critical patterns.
- Signal over noise — concise and actionable content.
Constraints
- Never skip docs maintenance on work/work-plan flows.
- Do not delete protected docs trees.
- If uncertain, mark assumptions explicitly and suggest follow-up.