From operator-skills
Wraps up sessions by verifying tests/build/lint with pnpm, committing via /commit, updating .claude/project-diary.md and build-status.md, generating handoff messages.
How this skill is triggered — by the user, by Claude, or both
Slash command
/operator-skills:handoffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when wrapping up a work session to ensure continuity for the next session/agent.
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.
npx claudepluginhub dazuck/operator-skills --plugin operator-skillsGenerates a passoff package (session summary, PROGRESS/CLAUDE/memory updates, commit, next-session prompt) for clean handoffs to future-you or a coworker brief mode.
Produces a compact handoff document that transfers context, state, and next objective without copying source material. Use when ending a session or passing work to another agent.
Wraps up a work session by recording changed files, caveats, decisions, and next steps so a fresh session can resume without re-deriving context.