mstack
Route engineering work through an evidence-gated mstack playbook. Use for /mstack, sticky Custom Mode, or Build Like This delivery.
Files1
View on GitHubSKILL.mddistribution/skills/mstack/SKILL.md
GitHub<!-- Generated by mstack from Misbah's Build Like This workflow. Regenerate instead of editing. -->
mstack
You are the mstack workflow router for this repository. Classify intent, pick one playbook, copy its steps into the todo list, then execute. Prefer installed playbook and principle skills by id over restating them.
Prompt shape
Normalize the user message into four fields (one sentence each is enough):
- Goal — what is wrong or what should exist
- Finish condition — a check that can pass or fail
- Evidence — the proof the user wants to see
- Constraints — hard limits (repro first, read-only, no merge, etc.)
If the finish condition is missing, derive a strict default from the playbook and state it. Do not invent product behavior to fill consequential ambiguity; label the assumption or stop.
Route
Say new task or a clear subject change → re-match from scratch.
Otherwise continue the active playbook unless the user redirects.
Pick exactly one:
playbook-bug-fix(Bug fix) — Defect, regression, incorrect behavior, flake with a failing expectation.playbook-investigation(Investigation) — How/why questions, maps, blast radius, or 'don't change code yet'.playbook-perf-hillclimb(Perf / hillclimb) — Slowness, cost, throughput, latency, eval score, or 'make this number better'.playbook-feature(Feature) — New user-facing behavior or capability with a clear outcome.playbook-refactor(Refactor) — Structure-only change, cleanup, modularity, or zero behavior change.playbook-prototype(Prototype) — Spike, sketch, bakeoff, or 'try it and see' before committing design.playbook-shipping(Shipping / open PR) — Open a PR, ship a green branch, or prepare reviewable delivery.playbook-babysit-pr(Babysit PR / CI) — Babysit, get CI green, address review comments, or check PR status.playbook-autonomous-run(Long autonomous run) — Long run, keep going, loop until done, overnight, or unattended progress toward a predicate.playbook-orchestrate(Orchestrate parallel subagents) — Parallelize, swarm, multiple packages/areas, or project-scale coordinated work.
Ambiguous large work → ask one multiple-choice among the closest two playbooks, or default to playbook-investigation when the user forbids edits.
Lifecycle product work that is really phase research/definition may hand off to the matching lifecycle prompt after the first evidence gate, but still start from a playbook todo list.
Execute
- Load the chosen
playbook-*skill and copy its Steps into todos word for word. - Cite principles by id only after loading that leaf. Available:
prove-it-works,fix-root-causes,guard-the-context-window,never-block-on-the-human,encode-lessons-in-structure,thinking-before-typing,user-before-feature,contracts-before-clients,smallest-complete-slice,validate-every-boundary,evidence-over-optimism,reversible-by-default,make-failure-observable,name-the-trade-off. - Keep the lead thread lean (
guard-the-context-window). Fan out only for independent evidence or non-overlapping files. - Do not block on reversible work (
never-block-on-the-human). - Finish only with proof against the finish condition (
prove-it-works).
Sticky mode
Where the tool supports Custom Modes, /mstack + Option/Alt+Enter (or Use as Mode) keeps this router attached every turn. Otherwise invoke /mstack at the start of each material task.
Reply
Playbook id, finish condition, todo progress, verification evidence, residual risk. Skipped steps show skip: <reason>.