joabgonzalez/ai-agents-skills/context-handoff
Claude Code and agent skill by joabgonzalez/ai-agents-skills
- community
Checking that the SKILL.md file is still in the repository.
Paste-ready session summary for context transfer to a new chat. Trigger: User says 'context handoff', 'start fresh', or session needs to continue.
Install
npx vskill@latest install joabgonzalez/ai-agents-skills/context-handoffSKILL.md
The same SKILL.md was published earlier as joabgonzalez/ai-agents-skills/context-handoff.
Context Handoff
Distill a conversation into a paste-ready block that gives a cold agent full context to continue the work without loss. Strips noise, keeps decisions and their rationale, captures open threads.
When to Use
- User says "context handoff", "summarize the chat", "start a new chat", or "I need to continue this elsewhere"
- Session is long and approaching context limits
- User wants to hand off work to a different agent or model
- User wants a checkpoint before switching focus
Don't use for:
- Summarizing code or a single file (read the file directly)
- Generating release notes or changelogs
- Internal mid-task notes — this is for cross-session handoffs only
Critical Patterns
✅ REQUIRED [CRITICAL]: Paste-Ready Output
The entire handoff block must be inside a single fenced code block so the user can copy it in one action. No surrounding prose that breaks the copy.
Context Handoff
...
✅ REQUIRED: Decisions With Rationale
Never record a decision without its why. Rationale-free decisions decay — the next agent can't judge edge cases.
✅ REQUIRED: Verbatim Technical References
File paths, function names, error messages, CLI commands — copy them exactly. Never paraphrase technical identifiers.
✅ REQUIRED: Single Specific Next Step
The next-step field must be one concrete action, not a direction. The cold agent must be able to start immediately.
❌ NEVER: Include Conversation Meta
Don't reference the conversation itself. The handoff block must read as if it were written independently.
❌ NEVER: Omit Open Threads
Unresolved questions and blocked items are the highest-value content in a handoff. Skipping them forces the next agent to rediscover them.
Decision Tree
Conventions
The handoff block always follows this structure:
Context Handoff
Goal: [what we're trying to achieve — one sentence]
Stack / Constraints: [tech stack, versions, key constraints]
Decisions made:
- [decision] ([rationale])
- [decision] ([rationale])
Current state: [what's done, what's in-progress, last file/line touched]
Open threads:
- [unresolved question or blocked item]
- [unresolved question or blocked item]
Next step: [single specific action the next agent should do first]
Omit Decisions made if none were made. All other fields are always present.
Example
After a session working on an auth module:
Context Handoff
Goal: Add JWT authentication to the Express API at /Users/dev/myapp
Stack / Constraints: Node.js 20, Express 4, TypeScript, PostgreSQL — no existing auth infrastructure
Decisions made:
- JWT auth (stateless, no session infra needed)
- Access token 15 min, refresh token 7 days (balance between security and UX)
- Refresh token stored in httpOnly cookie (XSS protection)
- Passwords hashed with bcrypt, cost factor 12
Current state: POST /auth/login implemented and tested (src/routes/auth.ts:1-67). Refresh endpoint not started.
Open threads:
- Rate limiting not decided — per-IP or per-user?
- Token blacklist on logout: in-memory Set (dev only) or Redis? Not resolved.
Next step: Implement POST /auth/refresh in src/routes/auth.ts — validate refresh token from cookie, issue new access token, rotate refresh token
Edge Cases
Very long session with many topics: Focus on the active work stream. If multiple unrelated threads exist, create one handoff block per thread or ask the user which to carry forward.
Session with no decisions: Skip the Decisions section entirely. Don't write "No decisions made" — just omit it.
Blocked task with no clear next step: Write the next step as "Resolve blocker: [describe it]" so the next agent knows to start there.
User wants a handoff mid-task: Capture in-progress state precisely — include the last file edited, last line touched, and what was being attempted so the next agent doesn't restart from zero.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/context-handoff/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joabgonzalez/ai-agents-skills/context-handoff)