Create comprehensive session documentation for seamless handoff to future agents
Creates comprehensive session documentation for seamless handoff to future agents. Use when wrapping up work or transferring context to ensure no progress is lost.
/plugin marketplace add lpasqualis/lpclaude/plugin install lpclaude-config@lpclaude-marketplacebrief session summary or focus areadocs/Document the complete status of the work done in this session, incorporating any provided context: {{args}}
This command creates comprehensive session documentation that enables seamless handoff to future agents without losing progress or context.
First, systematically gather session context using parallel analysis:
Determine which aspects of the session require documentation:
When analyzing sessions with multiple complex aspects (more than 3 areas):
Identify Work Items: Determine all aspects requiring analysis:
Execute Parallel Analysis: Launch multiple Task calls simultaneously with Read template: Read('workers/docs-capture-session-workers/analyzer.md') then use Task with subagent_type: 'general-purpose'
# IMPORTANT: Execute these in a single message with multiple tool uses for true parallelism
Task 1: "Analyze project structure and architecture patterns in /src and /lib directories"
Task 2: "Review git status and last 10 commits for development patterns"
Task 3: "Examine technical implementations in core modules and API endpoints"
Task 4: "Document business requirements and constraints from README and docs"
Task 5: "Analyze test coverage and validation approaches"
Task 6: "Review configuration files and environment setup"
Task 7: "Examine error handling and logging patterns"
Task 8: "Document external dependencies and integrations"
Task 9: "Analyze performance considerations and optimizations"
Task 10: "Review security implementations and access controls"
Batching Strategy: If more than 10 items:
Result Aggregation Protocol:
Sequential Fallback: For simpler sessions (3 or fewer aspects), analyze sequentially for efficiency
Systematically collect session information:
LS and Glob to map current project layoutgit status and recent commits using BashRead and GrepCompile findings into structured documentation with these sections:
Systematically determine the optimal save location:
Check Documentation Structure: Use LS to identify existing documentation patterns:
docs/dev_notes/ directory (preferred for session docs)docs/ directory (general documentation)notes/ or documentation/ directoriessession_ prefixCreate Descriptive Filename: Include date and session focus:
YYYY-MM-DD_session_[focus-area].md2025-08-07_session_api-optimization.mdEnsure the documentation is:
Before saving, verify documentation includes: