/dev:safe-pausefrom dev
Brings a running Claude Code session and its subagents to a resumable stop at a task, milestone, or project boundary. Handles commit, resume memory, and peer notifications.
Ships in dev. 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.
Bring this session and every subagent it owns to a stop that /dev:safe-resume can continue from without asking what was happening.
Violating the letter of these rules is violating their spirit. A pause that leaves one worktree dirty, pushes one branch, or forgets one owed step is not a pause.
/dev:safe-pause [task|milestone|project] [--now]. Default task.
| Mode | Stop point | While running down |
|---|---|---|
task | Each live subagent finishes the unit it is on (the commit, the test run, the review pass), commits, writes its resume memory, exits. Bound ~20 min. --now: stop at the last green point instead of finishing the unit. | Session exits once the last subagent has. |
milestone | Agents run to the end of the current milestone as its plan defines it: all its commits, its targeted tests, its review, READY reported. The next milestone is not started. | Session stays up to orchestrate, declines anything new, prints a progress line every 30 min. |
project | The session completes the whole dispatched item: every milestone through LAND READY, and LANDED where a lander session exists. | Nothing new accepted during the run-down. |
PAUSED (<mode>), resumes on the user's word and logged into RESUME.md under Peer messages logged.wip(pause): <what is built> / <what is owed>.~/.local/state/mk-pause/<session-name>/RESUME.md. Never /tmp.Use bash with set -euo pipefail and "${VAR:?}" for every path variable. PS below is python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pause_state.py (run --help for the subcommands).
ListAgents shows a peer it has already exchanged messages with. Note the lander the same way. A session that runs independently reports to the user only.task mode each one finishes its unit (or, with --now, stops at its last green point), commits, writes its own RESUME.md section (branch, worktree, tip, tests passed and owed, review state, exact next command), and exits. In milestone and project modes keep orchestrating until the mode's stop point, then do the same.PS dirty --repo <repo> [--repo <repo2>] --owned <branch> [--owned <branch2>] lists what is still dirty. In each listed worktree commit the real work or a wip(pause): <built> / <owed> commit. Repeat until dirty exits 0. The primary checkout is never listed and never committed on: files already there, whoever left them, are recorded as a baseline instead.## First message — the exact text to re-send to the coordinator on resume, or none.## First command — the single exact command to run first on resume.## In-flight — one bullet per branch: worktree, tip, tests passed, tests owed, review state.## Queue — remaining work in order.## Blockers — each with who holds it.## Subagents — each subagent's section from step 3.## Peer messages logged — every message acknowledged during the run-down.PS write --session <session-name> --session-id <id> --mode <mode> --repo <repo> [--repo <repo2>] --owned <branch> [--owned <branch2>] --body <file> [--coordinator <name>] [--lander <name>]. Pass every repo the session touched, so resume verifies all of them. Pass --owned for each branch (or worktree path) the session owns; without it every non-primary worktree is treated as the session's, including other sessions'. It records each owned worktree's branch and tip, records each primary checkout as a baseline, and refuses while an owned worktree is dirty or an --owned name matches nothing. The session name is the one set with /rename; the id is $CLAUDE_SESSION_ID when set, else the id in this session's scratchpad path.MEMORY.md: - [Paused <session-name>](...) — resume via /dev:safe-resume, state at <RESUME.md path>.task: exit when the last subagent has. milestone: stop after READY is reported, session stays up. project: stop after LAND READY (or LANDED).PS write refuses dirty owned worktrees for this reason.--repo and the session's branches with --owned; a refusal names an owned worktree to commit.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mayank-io/mstack --plugin dev13 skills in this plugin
/apply-feedbackApply tagged review comments (e.g. [REV], [EXT]) in the current document immediately, using per-tag interpretation rules from `~/.mstack/dev/feedback-tags.json`. Use when the user says "apply feedback", "apply REV comments", "apply review notes", "apply my edits", or wants tagged comments incorporated directly into a document without an approval gate./code-review-iterativeRun iterative code review with diminishing fix thresholds. Use when the user says "review my code", "iterative review", "code review", "review this iteratively", or after completing a feature implementation./complete-statusUse when the user says "status", "status?", "complete status", "complete-status", "full status", or asks where the project stands, and whenever a session that owns a project reports an event (a landing, a failure, a finished review, a new blocker). Produces the complete status report for the whole project the session owns - milestones, backlog, landing tables, decisions, blockers with time estimates, paused items, next project - re-read from source, never from memory.