Document progress and generate handover prompt for next session
Documents implementation progress and generates a copy-paste handover prompt to resume work in the next session.
/plugin marketplace add lefant/claude-code-plugins/plugin install lefant@lefant-claude-code-pluginsDocument current implementation progress and generate a copy-paste handover prompt to resume work in the next session.
Extra user prompt: $ARGUMENTS
/handover [top-priority-instructions]
Arguments should specify the top priority for the next session (e.g., "make sure test coverage is good and all tests are passing").
_progress.md devlog with what has been accomplished in thoughts/shared/devlog/The command generates a prompt ready for copy-paste that includes:
/implement_plan command at the TOP (triggers slash command when pasted)Key requirement: The /implement_plan command MUST be at the top of the output so when the entire block is pasted into a new session, the slash command triggers immediately.
If no plan is explicitly referenced in the conversation:
thoughts/shared/plans/ls -lt thoughts/shared/plans/ to see files sorted by modification time (newest first)git log --oneline --all -- thoughts/shared/plans/ | head -5.md file in that directorythoughts/shared/plans/Create progress devlog in thoughts/shared/devlog/ with _progress.md suffix to indicate work in progress:
thoughts/shared/devlog/YYYY-MM-DD_<session-slug>_progress.mdCapture detailed test information:
## Test Status
### Working Tests ā
- `test/feature/test-name.test.ts`: Description of what this validates
- `test/integration/another.test.ts`: What this covers
### Failing Tests ā
- `test/feature/broken.test.ts`:
- Error: [error message]
- Root cause: [brief analysis]
- Fix needed: [what needs to be done]
### Test Coverage
- Current coverage: [percentage if available]
- Critical gaps: [areas needing tests]
Output a formatted prompt block ready for copy-paste.
IMPORTANT: Place /implement_plan command at the TOP so it triggers when pasted.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
HANDOVER PROMPT - Copy and paste this entire block
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
/implement_plan thoughts/shared/plans/YYYY-MM-DD_plan-name.md
Continue implementation of [FEATURE NAME]
**Plan**: `thoughts/shared/plans/YYYY-MM-DD_plan-name.md`
**Progress Log**: `thoughts/shared/devlog/YYYY-MM-DD_session_progress.md`
## Current Status
- ā
Completed: [list completed phases/items]
- š In Progress: [current phase/item]
- ā³ Remaining: [pending phases/items]
## Test Status
- ā
Passing: [count] tests
- ā Failing: [count] tests (see progress log for details)
- š Coverage: [percentage or "needs improvement"]
## Top Priority
{{$ARGUMENTS - the top priority instructions provided by the user}}
Focus areas:
1. [Specific failing test or missing coverage]
2. [Next implementation item]
3. [Any blockers to address]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
# Implementation Progress Log ā {{YYYY-MM-DD}}
**Implementation**: {{what-is-being-implemented}}
**Plan Document**: `thoughts/shared/plans/{{plan-doc}}.md`
**Status**: š PARTIAL
## Progress Summary
Brief overview of where we are in the implementation and what has been accomplished so far.
## Completed Work
- [x] Implemented feature/component A
- [x] Added tests for A
- [x] Integrated with system B
## Current Work
- [ ] Working on feature/component C
- Completed: [specific parts done]
- Remaining: [specific parts pending]
## Test Status
### Working Tests ā
List all passing tests with brief description of what they validate:
- `path/to/test.test.ts`: Validates [functionality]
- `path/to/another.test.ts`: Ensures [behavior]
### Failing Tests ā
For each failing test, document:
- **Test**: `path/to/test.test.ts::test name`
- **Error**: [error message or description]
- **Root Cause**: [why it's failing]
- **Fix Needed**: [what needs to be done]
### Test Coverage Gaps
Areas that need test coverage:
- [ ] Missing tests for [feature/component]
- [ ] Need integration tests for [workflow]
- [ ] Edge cases to cover: [scenarios]
## Implementation Details
### What Works
Components/features that are functioning correctly:
- Feature A with [specific capabilities]
- Integration between B and C
- [etc.]
### What's Incomplete
Components/features that are partially done:
- Feature D: [what's done] / [what's pending]
- Integration E: [status and blockers]
### Known Issues
- Issue 1: [description and impact]
- Issue 2: [description and impact]
## Blockers
- [ ] Blocker 1: [description and what's needed]
- [ ] Blocker 2: [description and what's needed]
## Next Steps
Ordered list of what needs to happen next:
1. [ ] Fix failing test in [location]
2. [ ] Complete implementation of [feature]
3. [ ] Add tests for [coverage gap]
4. [ ] Verify [integration/behavior]
## Notes for Next Session
Any important context or decisions to remember:
- Technical decision about [X] because [reason]
- Pattern to follow for [Y]
- Watch out for [Z] when implementing [W]
**Environment**: {{tech-stack-versions}}
**Session Duration**: {{implementation-timeframe}}
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
HANDOVER PROMPT - Copy and paste this entire block
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
/implement_plan thoughts/shared/plans/2025-10-27_pdf-sync-implementation.md
Continue implementation of Notion Paper Sync PDF handling
**Plan**: `thoughts/shared/plans/2025-10-27_pdf-sync-implementation.md`
**Progress Log**: `thoughts/shared/devlog/2025-10-27_pdf-sync_progress.md`
## Current Status
- ā
Completed: Phase 1 (PDF extraction), Phase 2 (Notion integration)
- š In Progress: Phase 3 (Error handling and validation)
- ā³ Remaining: Phase 4 (E2E testing), Phase 5 (Documentation)
## Test Status
- ā
Passing: 12 tests
- ā Failing: 3 tests (validation edge cases, see progress log)
- š Coverage: 73% - needs improvement in error paths
## Top Priority
Make sure the test coverage is good and all tests are passing.
Focus areas:
1. Fix 3 failing validation tests in `test/pdf/validation.test.ts`
2. Add test coverage for error paths (target: 85%+)
3. Complete Phase 3 error handling implementation
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
/implement_plan at the TOP - ensure slash command triggers when pastedThis command bridges implementation sessions:
/research_codebase_generic) ā documents patterns/create_plan_generic) ā creates strategy/implement_plan) ā builds solution/handover) ā documents progress and enables resumption/implement_plan from handover prompt/devlog) ā final completion documentation (no _progress suffix)Use /handover when:
Note: Use /devlog (not /handover) when the implementation is fully complete.