handoff
Handoff
Create handoff messages to continue work seamlessly in new AI sessions.
Getting Started
If you have no prior context of a conversation, this is likely a new session. Read any existing HANDOFF.md file in the current directory and follow its instructions to continue the work.
When to Create a Handoff
Create a handoff when:
- The user wants to save work for a future session
- A session is ending and work needs to continue later
- The user explicitly asks to "create a handoff" or "save context"
Creating a Handoff
1. Analyze the Conversation
Extract what matters for continuing the work:
Identify relevant files (8-15 files, up to 20 for complex work):
- Files that will be edited
- Dependencies being touched
- Relevant tests, configs, key reference docs
- Be generous—missing a critical file means rediscovery
Draft context and goal description:
- Describe what we're working on
- Preserve: decisions, constraints, user preferences, technical patterns
- Exclude: conversation back-forth, dead ends, meta-commentary
2. Respect User Input
The user controls what context matters. If they mentioned something to preserve, include it.
3. Output Format
Save the handoff to HANDOFF.md in the current working directory:
# Handoff: [Brief Title]
## Goal
[Clear description of what needs to be done]
## Context
[Relevant background, decisions, constraints]
## Key Files
- `path/to/file1.ts` - [why it matters]
- `path/to/file2.ts` - [why it matters]
...
## Next Steps
1. [Step one]
2. [Step two]
...
Example Handoff Structure
# Handoff: Add User Authentication
## Goal
Implement JWT-based authentication for the API endpoints.
## Context
- Decided to use `jsonwebtoken` library
- Tokens expire after 24 hours
- Refresh tokens stored in httpOnly cookies
- User model already has `password_hash` field
## Key Files
- `src/routes/auth.ts` - Main auth routes (login, register, refresh)
- `src/middleware/auth.ts` - JWT verification middleware
- `src/models/user.ts` - User schema with password methods
- `tests/auth.test.ts` - Auth endpoint tests
- `.env.example` - JWT_SECRET configuration
## Next Steps
1. Install jsonwebtoken dependency
2. Implement register endpoint with password hashing
3. Implement login endpoint with token generation
4. Add auth middleware to protected routes
5. Write tests for all auth flows
More from pc-style/skills
self-subagent
Orchestrate parallel sub-tasks by spawning non-interactive instances of your own CLI as subagents. Use when you need to parallelize work across multiple files, run independent investigations simultaneously, or delegate heavy multi-step tasks. Works with ANY AI coding CLI agent (Amp, Claude Code, Codex, Cursor, OpenCode, aider, Cline, Roo, goose, Windsurf, Copilot CLI, pi, etc.). Triggers on "run in parallel", "subagent", "delegate", "fan out", "concurrent tasks", or any complex task that benefits from parallel execution.
4aidr
Offload context-heavy but low-complexity codebase work to Aider through a thin CLI wrapper. Use when another AI agent should avoid loading large repository context for tasks like discovery, repetitive refactors, cross-file version bumps, and broad search/explain passes. Supports safe read-only scanning, scoped edit runs, model-mode routing, and setup/model diagnostics.
3skill-creator
Create or update AgentSkills. Use when designing, structuring, or publishing skills with references and assets. Triggers on requests like "create a skill", "build a skill for X", "publish this skill", or when the user wants to design, structure, or publish AgentSkills.
3adk-agent-extension
Use this skill when the user wants any MCP-capable agent or IDE assistant to interact with Google ADK agents through the adk-agent-extension MCP server. Trigger for requests like wiring ADK tools into Codex/Claude Code/Cursor/Cline/Gemini, registering a stdio MCP server, listing ADK servers/agents, creating sessions, and chatting with ADK agents.
3openclaw-config
Configure OpenClaw (AI chat gateway) on any OS, VM, or platform. Use when the user mentions openclaw, openclaw config, openclaw.json, openclaw setup, openclaw channels, openclaw gateway, openclaw sandbox, openclaw docker, openclaw install, or needs to create or edit an existing OpenClaw configuration. Handles fresh installs, editing existing configs, adding channels, models, providers, sandboxing, cron, hooks, sessions, and all gateway settings.
1