From mina
Use this skill whenever the user asks to resume work, pick up where they left off, continue a previous session, restart an interrupted task, or asks about background processes (dev servers, watch builds, long-running tests). Also activates when the user mentions session IDs, `claude --resume`, `--continue`, or "yesterday's work". Defines how to map prior sessions/changes/processes to a clear resume path.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mina:process-resumeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Two distinct things both called "resume":
Two distinct things both called "resume":
claude --resume <id> or claude --continue, restores conversation contextThis skill handles both. Background process tracking is bonus.
.mina/
├── state.json ← workflow state (active change/phase/plan, history, sessions, processes, checkpoints)
├── tokens/
│ └── <change>.jsonl ← timeline of activity per change
└── checkpoints/
└── <name>.json ← named state snapshots
state.json structure:
{
"version": "1.3",
"active": {
"change": "feat-add-dashboard-ssr",
"phase": "03",
"plan": "03-03-PLAN.md",
"jira_key": "ENG-1234",
"since": "2026-05-14T09:00:00Z"
},
"sessions": [
{"id": "abc12345", "started_at": "...", "change": "...", "status": "active"}
],
"background_processes": [
{"pid": 12384, "command": "npm run dev", "started_at": "...", "log_path": "..."}
],
"checkpoints": [
{"name": "before-refactor", "timestamp": "...", "change": "...", "git_commit": "abc1234", "notes": "..."}
],
"history": [
{"ts": "...", "event": "change_started", "change": "..."},
{"ts": "...", "event": "phase_started", "phase": "03"}
]
}
When user says "where was I", "resume", "continue":
.mina/state.json → active fieldOutput:
You were working on:
ENG-1234 feat-add-dashboard-ssr
Phase 03 plan 03-03-PLAN.md (Performance gating)
Last touched 6 hours ago
To pick up:
1. Confirm branch: feat/eng-1234-add-dashboard-ssr ← currently checked out: yes
2. Run /mina:status for full progress view
3. Continue work via /gsd-execute-phase 3 or direct edits
Native commands:
claude --resume → interactive picker showing recent sessionsclaude --resume <session-id> → directly resume that sessionclaude --continue → most recent session in current cwdclaude --resume <id> --print "..." → resume in non-interactive modeMap session ID → change via state.json.sessions[]. If user picks a session for resume, surface the matching change so they understand the work context.
Often the user wants both: resume conversation context AND continue the work. Recommend:
# In your shell (outside Claude Code)
claude --resume <session-id-from-state.json>
Inside the resumed session, the SessionStart hook (if enabled) will print current state.json summary so you're oriented.
Claude Code's Bash tool supports is_background: true for long-running commands. Those processes:
--clear or new sessions automaticallyWhen user starts something long-running (dev server, watch test, build daemon) that should be tracked across sessions:
# After starting, capture PID and register
echo "{\"pid\": $!, \"command\": \"npm run dev\", \"started_at\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"log_path\": \"/tmp/mina-bg-$!.log\"}" \
>> .mina/processes-register.jsonl
# Then /mina:processes will pick it up
# Verify a tracked PID is still alive
for entry in $(jq -c '.background_processes[]' .mina/state.json 2>/dev/null); do
PID=$(echo "$entry" | jq -r '.pid')
kill -0 "$PID" 2>/dev/null && echo "$PID alive" || echo "$PID dead"
done
/mina:processes --prune removes entries where PID no longer responds to kill -0.
~/.claude/projects/<encoded-cwd>/<session-id>.jsonl. If Claude Code was uninstalled or cache cleared, resume fails. Always verify file exists before suggesting resume.state.json.background_processes should include hostname for safety.state.json.history events instead.npx claudepluginhub astronaut1712/astronaut-ai --plugin minaGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.