From dev-workflow
Generate handoff prompt for seamless session continuation. Use before /clear to preserve context across sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:handoffThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a copy-pasteable prompt that enables seamless work continuation in a new session.
Generate a copy-pasteable prompt that enables seamless work continuation in a new session.
Flow: /handoff → copy prompt → /clear → paste prompt → /resume-work launches with context
git branch --show-current. No other use.Scan for all existing work documents:
.claude/dev-workflow/epic/*/epic.md.claude/dev-workflow/story/*/spec.md.claude/dev-workflow/task/*/review.mdIf no documents are found, output:
Active な作業はありません。引き継ぎプロンプトを生成するには、作業中のwork unitが必要です。
Then stop.
If exactly one work unit found: Use it directly, no user interaction needed.
If multiple work units found: Present all discovered work units to the user with AskUserQuestion and let them select which one to hand off.
Display format for each option:
add-auth)For the selected work unit, collect the following information:
| Condition | Type |
|---|---|
epic.md exists in directory | Epic |
spec.md exists in directory | Story |
Directory is under task/ | Task |
Evaluate in priority order:
| Priority | State | Condition |
|---|---|---|
| 1 | review_complete | review.md exists and Phase = LGTM |
| 2 | in_review | review.md exists and Phase ≠ LGTM |
| 3 | potentially_complete | plan.md exists and all Progress items are [x] |
| 4 | in_progress | plan.md exists and some Progress items are [x] |
| 5 | planned | plan.md exists but no Progress items are [x] |
| 6 | spec_only | spec.md exists but no plan.md |
| 7 | epic_next_story | epic.md with Stories that have "Not Started" status |
| 8 | blocked | Implementation cannot proceed |
How to check review.md Phase:
review.md and find the line matching - **Phase**: {value}How to check plan.md Progress:
plan.md and find the ## Progress section- [x] (done) and - [ ] (pending)If plan.md exists:
[x]) and total progress items{done}/{total} steps completedIf spec.md contains a ## Branch section:
git branch --show-current to get current branchIf review.md exists:
Ask the user with AskUserQuestion:
"Session notes to include in the handoff prompt? (e.g., discoveries, gotchas, tips for next session)"
Options:
If the user selects "Add notes", they will provide free-text input. Include it in the generated prompt.
Generate the handoff prompt and output it in a fenced code block that the user can copy.
The path argument for /resume-work should be the most advanced document:
review.md (e.g., .claude/dev-workflow/task/{name}/review.md)plan.md exists: use path to plan.mdspec.md exists: use path to spec.mdepic.md exists: use path to epic.mdOutput the following, with the code block clearly marked for copying:
以下のプロンプトをコピーして、`/clear` 後に貼り付けてください:
Then output the prompt inside a fenced code block:
/resume-work {document-path}
## Previous Session Context
- **Type**: {Epic|Story|Task}
- **State**: {state category}
- **Progress**: {done}/{total} steps completed
- **Branch**: {spec branch name} (current: {current git branch})
{if review phase exists:}
- **Review Phase**: {phase value}
## Session Notes
{user's session notes, or omit this section entirely if skipped}
Rules for the generated prompt:
**Progress** line if no plan.md exists**Branch** line if no Branch section in spec**Review Phase** line if no review.md exists## Session Notes section entirely if user skipped notesresume-work handles detailed state analysis.claude/dev-workflow/ are discovered/resume-work with contextGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub choplin/my-claude-marketplace --plugin dev-workflow