Session Documenter Skill
Document work, decisions, and context with explicit commands.
Contract
Inputs:
- Current session context, redacted for secret-like values
- Files changed, decisions made, blockers, and next steps
- Optional task or PRD references
Outputs:
- Appended session entry in
.agents/sessions/YYYY-MM-DD.mdwith secrets removed - Related summary/task updates when needed
Creates/Modifies:
.agents/sessions/daily session file.agents/memory/*.mdwhen a decision changes durable project context (architecture, deployment, migrations, gotchas)
External Side Effects:
- None
Confirmation Required:
- Before rewriting existing session history
- Before promoting session notes into permanent rules or skills
Delegates To:
rules-capturefor reusable preferences discovered during the sessionskill-capturefor reusable workflows discovered during the sessionsession-endfor wrap-up flow
Commands
| Command | Action |
|---------|--------|
| /start | Begin new session - creates/appends to today's file, loads context |
| /end | Finalize session - writes entry with all tracked work, updates related files |
How It Works
/start- Creates.agents/sessions/YYYY-MM-DD.mdif missing, or loads existing context- During session - You tell me what to track: decisions, files changed, mistakes
/end- I write a redacted session entry with flowcharts, decisions, next steps
Critical Rules
Session File Naming (ONE FILE PER DAY)
✅ CORRECT: .agents/sessions/2025-11-15.md
❌ WRONG: .agents/sessions/2025-11-15-feature-name.md
Multiple sessions same day → Same file, Session 1, Session 2, etc.
Flowcharts (MANDATORY for features)
Include flowchart for:
- New features
- Feature modifications
- Multi-component bug fixes
Redaction (MANDATORY)
Before writing session notes:
- Replace API keys, tokens, passwords, cookies, private credentials, and secret
values with
[REDACTED_SECRET]. - Summarize sensitive command output instead of copying it verbatim.
- Do not store full request/response payloads if they contain personal data, private URLs, or credentials; record only the decision-relevant fields.
Session Entry Structure
- Session number and title
- System flow diagram (mermaid or text)
- Affected components (frontend, backend, data, external)
- What was done (task checklist)
- Key decisions (with rationale)
- Files changed
- Mistakes and fixes
- Next steps
Related Files to Update
.agents/memory/*.md— when a decision changes durable repo context (architecture, deployment, migrations, gotchas). Bump the file'slast_verifieddate when you touch it.