handoff
БесплатноБез исполняемых скриптовНе проверенSession wrap-up and handoff to next agent. Verifies work, updates docs, creates handoff message, runs pre-mortem.
от dazuck★ 17 звёзд на GitHubОб этом скилле
Session Handoff Skill
Use this skill when wrapping up a work session to ensure continuity for the next session/agent.
When to Use
- End of a significant work session
- Before context gets too long
- When switching to a different task/project
- User says "let's wrap up" or "create a handoff"
Handoff Protocol
Execute these steps in order:
1. Verify Work
- Run tests: `pnpm test` (if tests exist)
- Run build: `pnpm build`
- Run lint: `pnpm lint` (if configured)
- Note any failures for handoff
1.5. Commit Changes
If there are uncommitted changes and verification passed, use the /commit skill:
- Run `/commit` — this handles staging, conventional commit format, AND post-commit reflection
- The commit skill will also surface any learnings from the session
- Note the commit SHA for diary entries
- Do NOT push unless user explicitly requests
This ensures work is preserved and learnings are captured before handoff.
2. Update Project Diary
Update .claude/project-diary.md (create if missing). The diary captures what git cannot.
DO add:
Decisions - Add rows to the Decisions Log table:
| Timestamp | Decision | Choice | Rationale | Revisit If | Commit | | 2024-12-25 14:30 | [title] | [choice] | [why] | [trigger] | abc1234 |Learnings - Add entries for insights worth preserving:
### 2024-12-25 14:30 - [Title] [What happened and the insight. 1-3 sentences.] Optional: Suggested action, relevant commits, links. ---Open Questions - Update the checklist with new/resolved items
DO NOT add:
- Lists of files created/modified (git has this)
- Quality gate checklists (put in commit message)
- Session play-by-play (git log has this)
- Every minor decision (only significant choices between alternatives)
Include timestamps (date + HH:MM) on all entries for correlation with git history.
3. Update Build Status
Update .claude/build-status.md (if exists):
- Mark completed tasks
- Update phase status
- Adjust "Next Actions"
- Update "Recent Completions"
4. Generate Handoff Message
Create a message using prompting best practices that the user can copy to start a new conversation. The handoff message should treat the receiving agent as a capable leader, not just a task executor.
Prompting Best Practices to Apply:
- Define the agent's role and identity - Give them a clear persona (e.g., "project lead", "orchestrator", "senior engineer")
- Set behavioral expectations - What does good leadership look like in this context?
- Establish non-negotiables - What protocols MUST be followed? (TDD, quality gates, etc.)
- Provide clear structure - Numbered priorities, ordered reading list, explicit first actions
- Include mindset/philosophy - Why does this work matter? What's the human context?
- Define success criteria - What does "done" look like?
- Use imperative, direct language - "Start now", "Do this first", not "You might want to..."
Handoff Message Template (streamlined):
You are [ROLE] for [PROJECT] at [PATH].
CONTEXT:
- Current state: [phase, what's working, what's not]
- Recent work: [1-2 sentence summary]
- Key files: [list 2-3 files to read first]
NEXT ACTIONS:
1. [First thing to do]
2. [Second thing]
3. [Third thing]
WATCH OUT FOR:
- [Gotcha or risk from pre-mortem]
Start by reading [specific file].
Key Principles:
- Keep it short - the next agent has access to all the docs
- Frontload what's different or non-obvious
- End with a clear first action
5. Surface Team Learnings
If you used /commit in Step 1.5, learnings were already captured during that skill's reflection phase. Review what was produced:
- Repo-specific learnings should have been routed to project docs (AGENT.md, CLAUDE.md, etc.)
- Cross-cutting learnings should have been appended to
AGENT-LEARNINGS.mdat the repo root
If you did NOT use /commit (e.g., no code changes this session), briefly self-reflect:
- Any non-obvious insights about the codebase, APIs, or tools?
- Any gotchas or dead-ends worth documenting?
If yes, append to AGENT-LEARNINGS.md using the format defined there. If no learnings, skip this step.
6. Pre-Mortem Analysis
Ask yourself:
- What could go wrong when the next agent picks this up?
- What context might they be missing?
- Are there any "landmines" in the code?
- Is any documentation stale or misleading?
Report findings and suggest mitigations.
7. System Improvement Suggestions
Consider if any of these should be updated:
- Project
CLAUDE.md - Global
~/.claude/CLAUDE.md - Skills
- Guides in
~/.claude/guides/ - This handoff skill itself
Propose specific changes if warranted.
8. Consider Documentation for Publication
If the session involved:
- Significant building or learning
- Insights worth sharing externally
- Artifacts that could be shown (code, configs, processes)
- Decisions or a
Установить handoff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл handoff?
Session wrap-up and handoff to next agent. Verifies work, updates docs, creates handoff message, runs pre-mortem.
Как установить скилл handoff?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл handoff запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic