handoff
Context handoff for session transitions. Use when context window is getting large, switching work phases, or user requests /handoff. Creates structured checkpoint documents for seamless continuation in new sessions.
Best use case
handoff is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Context handoff for session transitions. Use when context window is getting large, switching work phases, or user requests /handoff. Creates structured checkpoint documents for seamless continuation in new sessions.
Teams using handoff should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/handoff/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How handoff Compares
| Feature / Agent | handoff | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Context handoff for session transitions. Use when context window is getting large, switching work phases, or user requests /handoff. Creates structured checkpoint documents for seamless continuation in new sessions.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Handoff Skill **Mục đích**: Chuyển giao ngữ cảnh từ session hiện tại sang session mới một cách có cấu trúc. --- ## Trigger Analysis Xác định thời điểm cần thực hiện handoff: | Trigger | Điều kiện | Hành động | |---------|-----------|-----------| | **Context Overflow** | >80% context window | Bắt buộc handoff | | **Phase Transition** | Chuyển từ planning → implementation | Khuyến nghị handoff | | **Task Completion** | Xong 1 task, bắt đầu task mới | Khuyến nghị handoff | | **Long Session** | >30 turns trong 1 conversation | Cảnh báo + gợi ý | | **Manual** | User yêu cầu `/handoff` | Thực hiện ngay | --- ## Context Extraction ### Ưu tiên CAO (PHẢI giữ) - **Decisions** – Các quyết định kiến trúc/thiết kế đã đưa ra - **Current State** – Trạng thái hiện tại của task (% hoàn thành) - **Modified Files** – Danh sách files đã thay đổi trong session - **Pending Tasks** – Tasks còn chưa hoàn thành - **Blockers** – Vấn đề/lỗi đang gặp phải ### Ưu tiên TRUNG (NÊN giữ) - **Relevant Code** – Code snippets quan trọng (functions, configs) - **Dependencies** – Thư viện/services đang sử dụng - **Test Status** – Kết quả tests gần nhất --- ## Execution Steps ### Step 1: Collect Context ``` 1. Scan recent conversation for decisions and context 2. Identify modified files using git diff or memory 3. Extract pending tasks from task.md or conversation 4. Note any blockers or issues encountered ``` ### Step 2: Create Checkpoint File Create file in `.handoff/checkpoints/` using template: - Filename format: `YYYY-MM-DD_HH-MM_[task-name].md` - Use template from `assets/handoff-template.md` ### Step 3: Generate Resume Prompt Create a ready-to-use prompt that the user can paste into a new session: - Include 2-3 sentence context summary - List key files to reference with @mentions - Specify the immediate next action - Reference the checkpoint file location ### Step 4: Verification - Confirm checkpoint file is saved - Confirm resume prompt is generated - List all files mentioned for easy access - Provide clear next steps --- ## Output Format When handoff is triggered, respond with: ```markdown ## 🔄 Handoff Created ### Checkpoint 📁 `.handoff/checkpoints/[filename].md` ### Resume Prompt > [Ready-to-paste prompt for new session] ### Quick Resume Trong session mới, paste prompt trên hoặc: ``` Tiếp tục task từ .handoff/checkpoints/[filename].md ``` ### Next Steps 1. [Immediate action] 2. [Follow-up action] ``` --- ## Commands | Command | Description | |---------|-------------| | `/handoff` | Full handoff với goal tự detect | | `/handoff [goal]` | Handoff với goal cụ thể | | `/checkpoint` | Chỉ save checkpoint, không switch | | `/resume [file]` | Load checkpoint và tiếp tục | --- ## Best Practices ### ✅ DO - Handoff khi chuyển phase (planning → implementation) - Giữ sessions ngắn: 15-20 turns - Ghi rõ decisions và lý do - Include file paths với relative paths ### ❌ DON'T - Đợi đến overflow mới handoff - Bỏ qua pending tasks trong handoff - Handoff không có next steps rõ ràng - Quên list modified files
Related Skills
agent-handoff
Generate comprehensive handoff documentation optimized for AI agent takeover by analyzing project structure, design docs, and codebase
u01874-handoff-contracting-for-marketing-and-storytelling
Operate the "Handoff Contracting for marketing and storytelling" capability in production for marketing and storytelling workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.
api-handoff
Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.
agent-handoffs
Agent parameter passing, memory files, and data handoffs between agents
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
mcp-create-declarative-agent
Skill converted from mcp-create-declarative-agent.prompt.md
MCP Architecture Expert
Design and implement Model Context Protocol servers for standardized AI-to-data integration with resources, tools, prompts, and security best practices
mathem-shopping
Automatiserar att logga in på Mathem.se, söka och lägga till varor från en lista eller recept, hantera ersättningar enligt policy och reservera leveranstid, men lämnar varukorgen redo för manuell checkout.
math-modeling
本技能应在用户要求"数学建模"、"建模比赛"、"数模论文"、"数学建模竞赛"、"建模分析"、"建模求解"或提及数学建模相关任务时使用。适用于全国大学生数学建模竞赛(CUMCM)、美国大学生数学建模竞赛(MCM/ICM)等各类数学建模比赛。
matchms
Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.
managing-traefik
Manages Traefik reverse proxy for local development. Use when routing domains to local services, configuring CORS, checking service health, or debugging connectivity issues.
managing-skills
Install, find, update, and manage agent skills. Use when the user wants to add a new skill, search for skills that do something, check if skills are up to date, or update existing skills. Triggers on: install skill, add skill, get skill, find skill, search skill, update skill, check skills, list skills.