skills/handoff/SKILL.md
Session wrap-up and handoff to next agent. Verifies work, updates docs, creates handoff message, runs pre-mortem.
npx skillsauth add dazuck/operator-skills handoffInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when wrapping up a work session to ensure continuity for the next session/agent.
Execute these steps in order:
- Run tests: `pnpm test` (if tests exist)
- Run build: `pnpm build`
- Run lint: `pnpm lint` (if configured)
- Note any failures for handoff
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.
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:
Include timestamps (date + HH:MM) on all entries for correlation with git history.
Update .claude/build-status.md (if exists):
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:
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:
If you used /commit in Step 1.5, learnings were already captured during that skill's reflection phase. Review what was produced:
AGENT-LEARNINGS.md at the repo rootIf you did NOT use /commit (e.g., no code changes this session), briefly self-reflect:
If yes, append to AGENT-LEARNINGS.md using the format defined there. If no learnings, skip this step.
Ask yourself:
Report findings and suggest mitigations.
Consider if any of these should be updated:
CLAUDE.md~/.claude/CLAUDE.md~/.claude/guides/Propose specific changes if warranted.
If the session involved:
Suggest running /writeup before closing:
"This session had some learnings that might be worth documenting for your audience. Want to run
/writeupbefore closing?"
The /writeup skill will assess the work and recommend an appropriate format (tweet, thread, week notes, or full blog post).
Output should be terminal-friendly (minimal markdown, plain text where possible).
Present in this order:
Work done:
Handoff housekeeping:
/writeupKeep this section short. Skip entirely if nothing notable.
Put the handoff message in a code block at the very end. User should be able to scroll up slightly and copy it cleanly.
development
Document work and learnings for publication. Assesses session work, recommends format (tweet, thread, week notes, full write-up), drafts in your voice, writes to draft folder.
development
Explain technical projects or codebases to a non-engineer. Use for "orient me" or "explain this repo".
tools
Adapt any skill to your specific workflow, or create new ones for repetitive tasks. Use when adapting skills to your tools/process.
development
Prepare a demo artifact for daily team show & tell. Aggregates work from the last 24 hours into a presentable format with evidence (command output, screenshots). Use when asked to "prep for show and tell", "what did I do today", or "prepare my demo".