Loading...
Loading...
Create structured handoff for session continuation. Triggers: handoff, pause, save context, end session, pick up later, continue later.
npx skill4agent add boshu2/agentops handoffQuick Ref: Create structured handoff for session continuation. Output:+ continuation prompt..agents/handoff/YYYY-MM-DD-<topic>.md
/handoff [topic]mkdir -p .agents/handoff# Recent commits
git log --oneline -5 --format="%s" | head -1
# Check current issue
bd current 2>/dev/null | head -1
# Check ratchet state
ao ratchet status 2>/dev/null | head -3auth-refactorapi-validationsession-$(date +%H%M)session-1430# Recent commits this session (last 2 hours)
git log --oneline --since="2 hours ago" 2>/dev/null
# Recent file changes
git diff --stat HEAD~5 2>/dev/null | head -20
# Research produced
ls -lt .agents/research/*.md 2>/dev/null | head -3
# Plans created
ls -lt .agents/plans/*.md 2>/dev/null | head -3
# Issues closed
bd list --status closed --since "2 hours ago" 2>/dev/null | head -5bd list --status in_progress 2>/dev/null | head -5# Recently modified
git diff --name-only HEAD~5 2>/dev/null | head -10
# Key artifacts
ls .agents/research/*.md .agents/plans/*.md 2>/dev/null | tail -5.agents/handoff/YYYY-MM-DD-<topic-slug>.md# Handoff: <Topic>
**Date:** YYYY-MM-DD
**Session:** <brief session description>
**Status:** <Paused mid-task | Between tasks | Blocked on X>
---
## What We Accomplished This Session
### 1. <Accomplishment 1>
<Brief description with file:line citations>
**Files changed:**
- `path/to/file.py` - Description
### 2. <Accomplishment 2>
...
---
## Where We Paused
<Clear description of pause point>
**Last action:** <what was just done>
**Next action:** <what should happen next>
**Blockers (if any):** <anything blocking progress>
---
## Context to Gather for Next Session
1. <Context item 1> - <why needed>
2. <Context item 2> - <why needed>
---
## Questions to Answer
1. <Open question needing decision>
2. <Clarification needed>
---
## Files to Read
### Step 7: Write Continuation Prompt
**Write to:** `.agents/handoff/YYYY-MM-DD-<topic-slug>-prompt.md`
```markdown
# Continuation Prompt for New Session
Copy/paste this to start the next session:
---
## Context
<2-3 sentences describing the work and where we paused>
## Read First
1. The handoff doc: `.agents/handoff/YYYY-MM-DD-<topic-slug>.md`
2. <Other critical files>
## What I Need Help With
<Clear statement of what the next session should accomplish>
## Key Files
### Step 8: Extract Learnings (Optional)
If significant learnings occurred this session, also run retro:
```bash
# Check if retro skill should be invoked
# (if >3 commits or major decisions made)
git log --oneline --since="2 hours ago" 2>/dev/null | wc -l/retro/retro<promise>DONE</promise><promise>EMPTY</promise>
Reason: No session activity found to hand offHandoff created:
.agents/handoff/2026-01-31-auth-refactor.md
.agents/handoff/2026-01-31-auth-refactor-prompt.md
Session captured:
- 5 commits, 12 files changed
- Paused: mid-implementation of OAuth flow
- Next: Complete token refresh logic
To continue: Copy the prompt from auth-refactor-prompt.md
<promise>DONE</promise>/handoff # Capture state for continuation
/retro # Extract learnings for futureao ratchet status.agents/handoff/