From sdlc
End-of-session ceremony — articulate what's next, write `.ai-docs/handoff.md`, update memory, update CLAUDE.md if structural decisions landed, verify clean working tree. Symmetric counterpart to `/prime`. Use when wrapping up a session, before clearing context, or whenever the user signals they want to save state.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdlc:handoffWhen to use
User says "let's handoff", "wrap up", "ending session", "save state", "/handoff", "before I clear context", "summarize what we did and prep next session".
This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
End-of-session ceremony. The symmetric counterpart to [`prime`](../prime/SKILL.md), which loads what this skill writes.
End-of-session ceremony. The symmetric counterpart to prime, which loads what this skill writes.
The ordering is load-bearing: articulating "what's next" first surfaces forgotten todos AND structural conventions that should land in CLAUDE.md before we lose them.
Branch: !git branch --show-current
Status:
!git status --short
Recent commits:
!git log --oneline -5
Graphite stack:
!st status 2>/dev/null || echo "(st not available or no stack)"
Run sequentially — each step's output informs the next.
Before writing anything, state in chat:
Doing this first surfaces things you'd otherwise drop: incomplete todos, missing tracker entries, conventions that should land in CLAUDE.md.
.ai-docs/handoff.mdTerse — 5-10 lines. The cold-start /prime skill loads this verbatim into the next session.
Format:
# Handoff — <YYYY-MM-DD>
**Branch:** `<branch>`
**Last action:** <one-line description of last meaningful change>
**Next action:** <specific next step — file path or command, not "continue X">
**Obstacles:** <bulleted, or "none">
## Notes
<optional: anything the next session needs that doesn't fit above>
Overwrite the existing handoff.md if present. Previous version is in git history.
Memory lives at ~/.claude/projects/-Users-USER-Projects-PROJECT/memory/.
For this session, write any of these that apply (skip what doesn't):
**Why:** and **How to apply:** lines per global memory protocol).Don't save: code patterns, fix recipes, ephemeral state, anything in CLAUDE.md, anything in commit messages. Index each new file in MEMORY.md with a one-line hook.
For each completed work item:
state:* labels per .claude/primitives/task-management/<value>.md.For each parked / discovered work item:
If no tracker writes are needed (e.g. a meta-session that didn't touch issues), skip explicitly.
Edit CLAUDE.md only if the session introduced a convention, layout rule, or tool that future sessions need to know and that isn't documented elsewhere. Examples:
.claude/ or .ai-docs/.Don't duplicate content that lives in skills, primitives, or RFCs — link to them from CLAUDE.md instead.
Run:
git status
st status 2>/dev/null || true
For each uncommitted file:
handoff.md references it explicitly.Never auto-commit, auto-stash, or auto-discard. Surface the state and let the user decide.
Print a single block summarizing:
/prime will surface next session as the opening move.Wait for the user to confirm before they clear context.
git reset, git rebase, force-push, or amend during handoff.npx claudepluginhub pattern-stack/claudecode-patterns --plugin sdlcProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.