Automatically creates comprehensive documentation for completed features, bug fixes, and session handoffs to prevent context loss and documentation debt.
This skill ensures comprehensive documentation is created as part of completing work, preventing documentation debt and context loss between sessions.
Without proactive documentation:
This skill treats documentation as part of "done" - not an afterthought.
Activate this skill automatically when:
1. **Feature implementation completed** - Any new capability has been added
2. **Bug fix committed** - Any issue has been resolved
3. **Significant code changes made** - More than trivial edits
4. **Session ending** - User says "done", "finished", or "ending session"
5. **Handoff requested** - User asks for summary, handoff, or status
6. **PR ready** - Before creating a pull request
Monitor for these signals:
Create documentation with ALL of these sections:
#### Minimum Required Sections
**What Was Done**
**Why It Was Done**
**How to Verify**
**What Remains**
#### Additional Sections (when applicable)
**Decisions Made**
**Gotchas and Warnings**
**Related Updates**
Create a comprehensive handoff document with:
**Current State**
**Completed This Session**
**Blocked Items**
**Next Steps (Prioritized)**
1. Highest priority task
2. Second priority task
3. Third priority task
**Verification Commands**
```bash
```
**Key Files**
| File | Purpose |
|------|---------|
| path/to/file | Clear description of role |
Before considering documentation complete, verify:
**Structure**
**Content**
**Completeness**
Place documentation in the correct location:
| Type | Location | Example Use Case |
|------|----------|------------------|
| Session handoff | `docs/development/SESSION_HANDOFF_YYYYMMDD.md` | Ending a work session |
| Feature docs | `docs/architecture/` or `docs/guides/` | New capability added |
| Bug fix notes | Commit message + CHANGELOG | Issue resolution |
| Technical details | `docs/development/` | Implementation specifics |
| Postmortem | `docs/development/POSTMORTEM_*.md` | Session analysis |
```
"Fixed the bug in scheduler.py"
```
```markdown
```bash
pytest backend/tests/test_scheduler.py::test_hst_conversion -v
```
Scheduler assumed UTC timestamps but database stored local time in HST timezone,
causing 10-hour scheduling offset for Hawaii-based users.
```
Documentation is complete when:
1. All required sections are present with substantive content
2. Another developer could continue the work without asking questions
3. Verification commands successfully prove the work functions
4. Future sessions won't need to rebuild context from scratch
5. The documentation passes the quality checklist
This skill integrates with:
Remember: Documentation is not optional polish - it's how future sessions (including your own) avoid starting from zero. The time invested in documentation now saves multiples of that time in context rebuilding later.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/session-documentation-enforcer-s7swv8/raw