session-handoff
/session-handoff
Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fre
- Author
- adobe ↗
- Repository
- spectrum-web-components ↗
- Licence
- Apache-2.0
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 11
- Scripts
- 5
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 5 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: evals/setup_test_env.py, scripts/check_staleness.py, scripts/create_handoff.py, scripts/list_handoffs.py, scripts/validate_handoff.py
What it does and when to use it
Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fre
Triggers from the description
Original author description
Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fre
How it works
- Mindset
- Mode Selection
- CREATE Workflow
- RESUME Workflow
- Handoff Chaining
- Storage Location
- Resources
SKILL.md preview
---
name: session-handoff
description: "Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fresh agents to continue with zero ambiguity."
---
# Handoff
Creates comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves the long-running agent context exhaustion problem.
## Mindset
You are a project manager. Context is the most perishable asset in software development. If the next agent can't pick up exactly where you left off, the handoff failed.
## Mode Selection
Determine which mode applies:
**Creating a handoff?** User wants to save current state, pause work, or context is getting full.
- Follow: CREATE Workflow below
**Resuming from a handoff?** User wants to continue previous work, load context, or mentions an existing handoff.
- Follow: RESUME Workflow below
**Proactive suggestion?** After substantial work (5+ file edits, complex debugging, major decisions), suggest:
> "We've made significant progress. Consider creating a handoff document to preserve this context for future sessions. Say 'create handoff' when ready."
## CREATE Workflow
### Step 1: Generate Scaffold
Run the smart scaffold script **from the project root** so handoffs are created in the project's `.ai/handoffs/` directory:
```bash
cd /path/to/spectrum-web-components
python .ai/skills/session-handoff/scripts/create_handoff.py [task-slug]
```
Example: `python .ai/skills/session-handoff/scripts/create_handoff.py implementing-user-auth`
**For continuation handoffs** (linking to previous work):
```bash
python .ai/skills/session-handoff/scripts/create_handoff.py "auth-part-2" --continues-from 2024-01-15-auth.md
```
The script uses the current working directory as the project path. Running from project root ensures handoffs live at `project-root/.ai/handoffs/`.
The script will:
- Create `.ai/handoffs/` at project root if needed
- Generate timestamped filename
- Pre-fill: timestamp, project path, git branch, recent commits, modified files
- Add handoff chain links if continuing from previous
- Output file path for editing
### Step 2: Complete the Handoff Document
Open the generated file and fill in all `[TODO: ...]` sections. Prioritize these sections:
1. **Current State Summary** - What's happening right now
2. **Important Context** - Critical info the next agent MUST know
3. **Immediate Next Steps** - Clear, actionable first steps
4. **Decisions Made** - Choices with rationale (not just outcomes)
Use the template structure in [references/handoff-template.md](references/handoff-template.md) for guidance.
### Step 3: Validate the Handoff
Run the validation script (from project root; pass path to handoff file):
```bash
python .ai/skills/session-handoff/scripts/validate_handoff.py .ai/handoffs/<handoff-file>
```
The validator checks:
- [ ] No `[TODO: ...]` placeholders remaining
- [ ] Required sections present and populated
- [ ] No potential secrets detected (API keys, passwords, tokens)
- [ ] Referenced files exist
- [ ] Quality score (0-100)
**Do not finalize a handoff with secrets detected or score below 70.**
**When Python or the scripts are unavailable:** (a) Create the handoff manually using [references/handoff-template.md](references/handoff-template.md), and/or (b) output a structured handoff in chat for the user to save.
### Step 4: Confirm Handoff
Report to user:
- Handoff file location
- Validation score and any warnings
- Summary of captured context
- First action item for next session
## RESUME Workflow
### Step 1: Find Available Handoffs
List handoffs (run from project root so the script finds `.ai/handoffs/`):
```bash
cd /path/to/spectrum-web-components
python .ai/skills/session-handoff/scripts/list_handoffs.py
```
This shows all handoffs with dates, titles, and completion status.
**When Python or the scripts are unavailable:** List handoffs manually from the project root's `.ai/handoffs/` (naming: `YYYY-MM-DD-HHMMSS-[slug].md`), then load and verify context using the resume checklist.
### Step 2: Check Staleness
Before loading, check how current the handoff is (from project root):
```bash
python .ai/skills/session-handoff/scripts/check_staleness.py .ai/handoffs/<handoff-file>
```
Staleness levels:
- **FRESH**: Safe to resume - minimal changes since handoff
- **SLIGHTLY_STALE**: Review changes, then resume
- **STALE**: Verify context carefully before resuming
- **VERY_STALE**: Consider creating a fresh handoff
The script checks:
- Time since handoff was created
- Git commits since handoff
- Files changed since handoff
- Branch divergence
- Missing referenced files
### Step 3: Load the Handoff
Read the relevant handoff document completely before taking any action.
If handoff is part of a chain (has "Continues from" link), also read the linked previous handoff for full context.
### Step 4: Verify Context
Follow the checklist in [references/resume-checklist.md](references/resume-checklist.md):
1. Verify project directory and git branch match
2. Check if blockers have been resolved
3. Validate assumptions still hold
4. Review modified files for conflicts
5. Check environment state
### Step 5: Begin Work
Start with "Immediate Next Steps" item #1 from the handoff document.
Reference these sections as you work:
- "Critical Files" for important locations
- "Key Patterns Discovered" for conventions to follow
- "Potential Gotchas" to avoid known issues
### Step 6: Update or Chain Handoffs
As you work:
- Mark completed items in "Pending Work"
- Add new discoveries to relevant sections
- For long sessions: create a new handoff with `--continues-from` to chain them
## Handoff Chaining
For long-running projects, chain handoffs together to maintain context lineage:
```
handoff-1.md (initial work)
↓
handoff-2.md --continues-from handoff-1.md
↓
handoff-3.md --continues-from handoff-2.md
```
Each handoff in the chain:
- Links to its predecessor
- Can mark older handoffs as superseded
- Provides context breadcrumbs for new agents
When resuming from a chain, read the most recent handoff first, then reference predecessors as needed.
## Storage Location
Handoffs are stored in the **project root's** `.ai/handoffs/` directory. Run the create script from project root so new handoffs go there.
Naming convention: `YYYY-MM-DD-HHMMSS-[slug].md`
Example: `2024-01-15-143022-implementing-auth.md`
## Resources
### scripts/
| Script | Purpose |
| ---------------------------------------------------- | ------------------------------------------- |
| `create_handoff.py [slug] [--continues-from <file>]` | Generate new handoff with smart scaffolding |
| `list_handoffs.py [path]` | List available handoffs in a project |
| `validate_handoff.py <file>` | Check completeness, quality, and security |
| `check_staleness.py <file>` | Assess if handoff context is still current |
### references/
- [handoff-template.md](references/handoff-template.md) - Complete template structure with guidance
- [resume-checklist.md](references/resume-checklist.md) - Verification checklist for resuming agents
Files in this package (11)
- SKILL.md 8 KB
- evals/model-expectations.md 7 KB
- evals/results-opus-baseline.md 3 KB
- evals/setup_test_env.py 10 KB
- evals/test-scenarios.md 5 KB
- references/handoff-template.md 4 KB
- references/resume-checklist.md 3 KB
- scripts/check_staleness.py 13 KB
- scripts/create_handoff.py 10 KB
- scripts/list_handoffs.py 4 KB
- scripts/validate_handoff.py 11 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · adobe/spectrum-web-components | 100 | Apache-2.0 |
| iuliandita/skills | 100 | MIT |
| cardene777/agent-shuriken | 100 | MIT |
| mcorbett51090/ravenclaude | 100 | MIT |
| upex-galaxy/agentic-qa-boilerplate | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| h2xd/skills | 100 | MIT |
| davila7/claude-code-templates | 100 | MIT |
| sebabottero/ai-setup | 100 | MIT |
Database snapshot: 13.11.2026 · package version ad961aa4668e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100handoff
Make sure to use this skill whenever the user types /handoff (with or without a filename argument), says "handoff", "save state", "context rot", "save session", "create a handoff", "I need a clean start", wants to snapshot progress before clearing context or switching sessions,… - 100handoff
Compact the current conversation into a handoff document so another agent or future session can continue the work without losing context. Use when ending a session, switching tasks, the context is getting long, or user says handoff, wrap up, save progress, or "continue this later". - 100handoff
Create compact handoff documents for another agent, session, or human to continue work. Use when a task is long-running, context is about to compact, work must pause, an audit needs resumable state, or the user asks for a handoff, continuation note, checkpoint, or next-session brief. - 90ring:creating-handoffs
Creating a handoff document that captures session state (completed work, decisions, open items, next steps) and delivering it via Plan Mode so the user gets the native 'clear context and continue implementing' resume option. Use when ending a session, when context grows large,… - 90handoff
Write or resume a session handoff so work continues cleanly in a new Claude Code session. Use when context is around 60-70% at a task boundary, when a context-guard warning appears, when the user asks for a handoff or to "turn the session over", and when resuming from a handoff file. - 100handoff
Use when splitting work to another agent, session, or worktree; creating a paste-ready context handoff; or when the user asks to "handoff frontend", "handoff backend", "handoff QA", "handoff migration", or copy context for another coding agent. Do not use for same-session…