/mstack:m-startfrom mstack
Router that reads .mstack/ state to pick the right m-skill or resume in-flight work. Use at conversation start and on terse prompts like 继续/开工/接着干.
Ships in mstack. 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.
mstack is the front door: before doing any work, inspect .mstack/ state and the user's request to decide which sibling skill owns the task, then run it. On terse prompts it infers the current phase and continues instead of asking the user to name a skill.
Use at the top of every conversation, including when the user just says "继续" or pastes a log. Use it to route to one of: m-think, m-plan, m-goal, m-team, m-dispatch, m-verify, m-debug, m-review, m-ship, m-qa, m-research, m-handoff, m-learn, m-deslop, m-guard, m-cua. Do not use it when a sibling skill is already running with clear in-progress state — hand back to that skill instead.
Using m-start: — say this first, before any tool call.
Rule: no work before a one-line routing decision that names a skill, and no resume from state you have not read. No exceptions: a terse prompt is not a reason to guess the phase; "I remember where we were" is not reading; a stale goal is reported, never resumed or cleaned up by you.
| You will be tempted to think… | Reality |
|---|---|
"The ## Closeout heading is missing/present, so I know the goal's status." | The skeleton creates that heading at the start. Status comes from state.json or a status: line (reviews/2026-11-06-round2.md #8). |
"I'll look for plans/<slug>.md; nothing there, so no plan exists." | Plan files carry a date prefix; glob *-<slug>.md. The wrong glob restarted finished planning (reviews/2026-11-04-acceptance.md #13). |
| "「继续」 means I can pick any task up and start." | Read handoff and goal files first, then resume the recorded phase; trust files over memory. |
| "This goal looks abandoned, I'll close it for them." | Staleness is advisory. Report it with its resume hint; the user decides. |
| "The user just said 提PR, I'll push now." | Route to m-ship; push and PR are outward-facing and stop for approval there. |
| "I'll skip the routing line and start working." | The routing line is what lets the user catch a wrong pick in one glance. |
Red flags — stop and route: you edited a file before naming a skill; you cite a goal's status without having opened its state file; you ran rm or edited on stale state; your routing line names two skills.
.mstack/handoff.md first (if present) and any .mstack/goals/<slug>.md or .mstack/plans/*-<slug>.md (plans carry a <YYYY-MM-DD>- prefix) that names the current task. When the code lives where your file tools cannot read it (a WSL root checkout, a remote host), keep .mstack/ in one readable folder and record the code's path in its handoff.md (the Code: line of m-handoff's template).## Closeout heading exists from creation, so its presence means nothing):
.mstack/goals/<slug>.md) is stale when its <slug>.state.json has "status": "active" and the state file's mtime is older than 2 hours. Its resume hint is the goal file path plus the last row of its checkpoint table — an unfinished goal has no resume-hint of its own.## Closeout contains no status: line, while its state.json is missing, counts as abnormally interrupted (the loop died before writing either). A ## Closeout that holds only the placeholder text from creation is not a closeout..mstack/team/<slug>/) is stale when the newest v<N>.md has no status: line and its mtime is older than 2 hours. status: active|done|failed is written into each round file's round-close block (m-team owns that line); resume from that file plus history.md.done and failed are terminal and never stale. Anything you cannot read, say you could not read./go pipeline (the plugin's commands/go.md): it picks the stages itself and writes .mstack/runs/<id>/progress.json so the user can watch. Also resume any run there with status running or blocked before starting new work..mstack/ shows work in progress, resume it: trust the state files over your memory; do not redo steps already marked done.m-think for anything new or ambiguous; prefer m-debug for a broken behavior; route "提PR/提交/发布" to m-ship, "review一下/审一下" to m-review, "分派/并行" to m-dispatch, "组队/team/一直优化/卡在局部最优" to m-team.Ruling: decision | reason | cost if wrong.Gate function — before saying "resuming X" or "nothing in flight":
| claim | evidence required | evidence that is NOT enough |
|---|---|---|
| goal is in flight / stale | its state.json status and mtime, read this turn | the goal file's headings; memory of last session |
| no work in flight | a glob of .mstack/goals/, plans/, team/ that returned nothing | one failed guess at a filename |
No new files on its own. It produces a one-line routing decision — plus a stale-state warning whenever step 2 fires — and then hands off to the chosen sibling skill, whose own Output section governs. When resuming, it replays the current phase from .mstack/ state.
Counts: 2 hours is the staleness line; ask at most one question per routing. Stop and ask only when the request is genuinely ambiguous AND no .mstack/ state resolves it, or when the next action is irreversible/external (per principle 8). Otherwise keep moving: a terse prompt is not permission to stall.
.mstack/ dir; skills under ~/.dsh/skills.m-explorer for read-only mapping) are spawned by the skills you route to, not by m-start.codex exec runs headless — write the routing decision to the log rather than the chat.What SKILL.md sets; muted values are Claude Code's defaults
At the start of every conversation and whenever a terse prompt ("继续", "开工", pasted logs) needs routing to a skill or a resume from .mstack/ state.
Three short reads, in order
npx claudepluginhub mola-maker/mstack --plugin mstack17 skills in this plugin
/m-cuaDrive a real desktop app, Android device or browser to prove L3/L4 acceptance. Use for 点一下/操作界面/真机验收/computer use./m-debugRoot-cause a bug or failing test: reproduce, competing hypotheses, regression test. Use for debug一下/为什么报错/这个测试挂了./m-deslop删掉 AI 味和冗余——多余注释、死代码、无谓抽象、套话堆砌,先保护行为再减。Use when the user says "deslop / 去AI味 / 删冗余 / 这段太啰嗦 / 精简一下", or a diff feels bloated./m-dispatchFan independent subtasks out to Claude subagents, DSH headless, Codex or Orca; isolate, merge, verify. Use for 分派/并行/开N个agents./m-goalLong-running goal loop: goal file, checkpoints, stop rules, mandatory closeout. Use for run-until-done work, 别停/一直做到完成./m-guardGuardrails: destructive-command checks, folder freeze, plugin vetting, loop brake, known traps. Use for 小心点/冻结目录/这插件安全吗/死循环了.Other plugins' skills for the same job