/claudops:phfrom Claudops
Captures current implementation state into a cold-start HANDOFF.md file so a fresh Claude session can resume work without re-exploring the codebase. Useful when context windows run long or work spans multiple sessions.
Ships in Claudops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If
.claude/skills/ph/SKILL.md.disabledexists, stop before reading a fallback. Project configuration: If the current project contains.claude/skills/ph/SKILL.md, read and apply it instead of this bundled default. The project copy is the capability source of truth. Repository context: Read../setup/references/task-context.mdwhen resolving a task, project commands, named agent roles, or legacy.claude/resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.
Announcement: Begin with: "I'm using the ph skill to prepare a session handoff."
Capture the current implementation state into a cold-start brief (HANDOFF.md) so a fresh Claude session can resume work without re-exploring the codebase. This is invoked when context windows run long or when work spans multiple sessions.
Resolve the task with ../setup/references/task-context.md before writing. Use the selected task
root, preserve an existing plan or compact TASK.md, and record the handoff link, current state,
evidence, blockers, and one next action in that task record. A read-only request may return the
proposed path without creating it.
Context may compact while this skill runs. Create HANDOFF.md with section headers immediately after STEP 1, then fill each section as you complete STEPS 2–5. A partially-written handoff on disk is more useful than a fully-planned one that never gets saved. Produce every section through to the end — do not stop early due to token concerns.
/si Continue mode works well when the task document is perfectly up to date. In practice, handoffs happen mid-step when docs are stale — checkmarks don't reflect actual code state, recent decisions aren't documented, and the next session wastes tokens re-discovering what this session already knew.
HANDOFF.md solves this by capturing a point-in-time snapshot that the next session can load directly.
$ARGUMENTS, the linked active task, or the configured task convention with
../setup/references/task-context.md.HANDOFF.md already exists, read and reconcile it with the task document before editing it;
otherwise create it with the section headers from STEP 5 immediately after resolving the task.
Never overwrite an existing handoff before reading it; fill the reconciled artifact as the
remaining steps complete.Run all of the following bash calls in the same turn — they are independent. Batch them into a single response with parallel tool calls rather than issuing them one at a time.
# Branch and last commit
git branch --show-current
git log --oneline -5
# Working tree state
git status --short
# Uncommitted changes summary
git diff --stat
git diff --cached --stat
# Stash list
git stash list
git diff --name-only $(git merge-base HEAD main)..HEAD
{{TEST_CMD}} 2>&1 | tail -20
The git diff --name-only call above can run in the same turn as the test command and the STEP 2 git calls — batch them with parallel tool calls.
Write to <resolved-task-root>/HANDOFF.md (preserve any legacy path already selected). Use the
existing handoff schema when one exists; the template below is a default set of facts, not a required
legacy heading layout:
# Session Handoff
**Date**: YYYY-MM-DD
**Branch**: [branch-name]
**Last Commit**: [sha] [message]
---
## Current State
**Step in progress**: Step [N]: [description]
**Completed steps**: [list of checked steps with brief notes]
**Overall progress**: [X of Y steps complete]
## Files to Read First
Load these files to rebuild context (ordered by importance):
1. `[path/to/most-critical-file]` — [why: e.g., "main implementation file for this step"]
2. `[path/to/test-file]` — [why: e.g., "failing test that needs GREEN implementation"]
3. `[path/to/related-module]` — [why: e.g., "dependency modified in Step 2"]
4. `[path/to/task-doc]` — [why: "source of truth for requirements"]
5. `[path/to/context-file]` — [why: e.g., "database schema with new model"]
## Working Tree State
[git status output]
**Uncommitted changes**: [description of what's in progress but not committed]
**Stashes**: [any stashed work and what it contains]
## Test State
[test output summary — passing/failing counts]
**Failing tests**: [list with file:line if applicable]
**Reason**: [why they fail — e.g., "RED phase, implementation not written yet"]
## Key Decisions Made This Session
| # | Decision | Rationale |
|---|----------|-----------|
| 1 | [what was decided] | [why] |
## Blockers & Gotchas
- [any known issues the next session should be aware of]
## Deferred Issues
- [pre-existing problems not in scope, logged here for awareness]
## Next Actions
1. [Immediate next thing to do — be specific]
2. [Then this]
3. [Then this]
**Handoff prepared**: See HANDOFF.md for session context.
Link the handoff and the final evidence/next action from the task record before pausing./si CONTINUE MODE USES HANDOFF.mdWhen /si detects Continue mode, it checks for HANDOFF.md in the resolved task root:
After /si Continue mode successfully resumes:
HANDOFF.md to HANDOFF-[date].md (archive, don't delete — useful for debugging session boundaries)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alexandrbasis/claudops --plugin claudops40 skills in this plugin
/analyzeCompare a task's discovery or product requirements with its tech decomposition and report traceability gaps. Use when asked to 'analyze consistency', 'check alignment', 'verify spec matches plan', 'traceability check', 'spec drift', 'are my docs aligned', or after /ct completes to verify the plan covers the requirements. `/ct` may invoke this check when traceability is material; otherwise it remains an explicit read-only command. NOT for code review (use /sr), NOT for code analysis (use /code-analysis), NOT for debugging (use /dbg)./antigravity-cliRun Google Antigravity CLI (agy) for web-grounded research, cross-AI review, or validation when those capabilities are explicitly needed or another skill delegates to agy. One-shot only; do not select it for an ordinary review without an explicit provider choice./Other plugins' skills for the same job