From dev-workflow
Resume work from a previous session checkpoint. Loads checkpoint.md, verifies git state, and presents a resumption summary before continuing. Use at the start of a new session to restore context from a previous checkpoint.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:dev-resumeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the [discovery script](scripts/discover.sh):
Run the discovery script:
bash "$DISCOVER" root
Where $DISCOVER is the absolute path to scripts/discover.sh within this skill's directory.
Path safety — shell state does not persist between tool calls, so you must provide full script paths on each call:
$HOME instead of the literal home directory (e.g., bash "$HOME/code/…/discover.sh", not bash "/Users/name/…/discover.sh"). This prevents username hallucination.$PROJECT_ROOT), copy it verbatim from that command's output. Never retype a path from memory.Store the output as $PROJECT_ROOT. If the command fails, inform the user and stop.
Run the discovery script to find checkpoints:
bash "$DISCOVER" checkpoints "$PROJECT_ROOT" "$ARGUMENTS"
Pass $ARGUMENTS as the third argument only if the user provided one; omit it otherwise.
.dev/ directory): inform the user, stop.$CHECKPOINT_PATH.Never construct paths from raw $ARGUMENTS. Use only paths from script output.
After selection, validate with the validation script:
bash "$VALIDATE" checkpoint-path "$CHECKPOINT_PATH" "$PROJECT_ROOT"
Where $VALIDATE is the absolute path to scripts/validate.sh within this skill's directory. Apply the path safety rules from Step 0 ($HOME, copy from output). Outputs $FEATURE_NAME on success; on failure, STOP immediately — do not continue with an unvalidated path.
Run the git state script:
bash "$GIT_STATE" brief
Where $GIT_STATE is the absolute path to scripts/git-state.sh within this skill's directory. Apply the path safety rules from Step 0 ($HOME, copy from output).
Parse the output lines:
git:false → not a git repo, skip git-related checksbranch:<name> → store as $CURRENT_BRANCHuncommitted:<true|false> → store as $HAS_UNCOMMITTEDLaunch the context-loader agent to parse the checkpoint and compare state:
"Parse the checkpoint at $CHECKPOINT_PATH.
Current git state (gathered by parent skill):
- Branch: $CURRENT_BRANCH
- Uncommitted changes: $HAS_UNCOMMITTED
Compare this against the checkpoint frontmatter and report any drift.
Extract context summary, decisions, blockers, and next actions.
Read the PRD files listed in the checkpoint."
Use subagent_type=dev-workflow:context-loader and model=haiku.
After the agent returns, check context validity:
X, you're on Y. Switch or continue?"Present the agent's summary in this format:
**Status**: [Current phase/step from context]
**Last session**: [1-sentence summary of what was accomplished]
**Decisions**: [Key decisions, or "None recorded"]
**Watch out for**: [Blockers, or "Nothing flagged"]
**Start with**: [Concrete first action from next steps]
Wait for go-ahead — do not proceed until the user confirms.
| Situation | Action |
|---|---|
| File differs from checkpoint | Proceed, note drift |
| Key file missing or renamed | STOP — ask how to proceed |
| New files not in checkpoint | Proceed, mention them |
| PRD files missing | STOP — cannot resume without PRD |
Before beginning work:
00-master-plan.md), current sub-PRD, and key implementation filesNever write new code from scratch when similar code already exists in the codebase.
After confirmation, proceed with the first action from the agent's summary. Follow the PRD phases and gates.
CRITICAL: PHASE GATE ENFORCEMENT
At every ⏸️ **GATE**: in the PRD — this is a HARD STOP:
/dev-checkpoint?"STEP-LEVEL STOPS
After completing each implementation step within a phase:
This prevents jumping ahead to the next task before the current one is tested.
Warn the user if checkpoint/PRD files contain: absolute paths with usernames, secrets/credentials, or personal information.
npx claudepluginhub andreaserradev-gbj/dev-workflow --plugin dev-workflowResumes coding sessions by detecting blockers, reconciling STATE.md with filesystem, and suggesting next actions from checkpoints or plans.
Saves and resumes state for multi-phase commands like /debug, /epic, /feature, /implement, and /plan, enabling work to survive session interruptions.
Restores session context from a previous Claude Code session after context resets, compaction, or new conversations. Checks for handoff files and project state to resume work.