agentleFS
romermaromerma/mstack/skills/router/SKILL.md

mstack

Skill1 starsChanged 13 days agoMITView on GitHub

Start a task under the mstack workflow. Matches the request to a playbook, copies its steps into the todo list, and routes through understand, design, spec, implement, verify, review and ship. Use for /mstack, or when the user asks to work rigorously, to verify something properly, or to run a task end to end.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. VersoXBT/mstack★ 4same name
    2. mholtzscher/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository14 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    A report over the cap, and its author gone: Every report stays under 24 KB (24576 bytes), and each brief says so.

    line 91
  2. Distinctive:

    Stop and ask on production, secrets, new third-party dependencies, destructive or hard-to-reverse operations, and product forks, as the Map …

    line 108
  3. Distinctive:

    Before asking a "which approach" question, classify it.

    line 112
  4. Distinctive:

    Ask at most three questions, except in intake's interactive mode, which the request has to ask for and which has no cap, and except the …

    line 116
  5. Distinctive:

    Read references/principles.md at the start of a multi-step task.

    line 123
  6. Distinctive:

    Write it clean as you draft it.

    line 149
  7. Distinctive:

    No em dashes. If a sentence needs one, it is two sentences.

    line 152
  8. Distinctive:

    Never invent a link, a citation, or a file path.

    line 155
  9. Distinctive:

    No glossary or ADR change is left uncommitted or unreviewed: it is written before the review of the item that introduced it, as domain-docs …

    line 165

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

mstack

You are running under mstack. Two things are true here that are not true by default: the work has to leave evidence on disk, and nobody approves their own work.

$ARGUMENTS

First, orient

  1. mstack gate. A red gate stops you. Report it; do not work around it. The one exception is a gate red only on the budget of the item (a report over 24 KB, a review round without its decision row): it does not stop you from launching the role that fixes it.
  2. mstack state active, and read .mstack/progress/current.md (the SessionStart hook already printed it unless it is the empty template). If it records work in flight or a parked fork, resume its recorded next step rather than starting over.
  3. Intake: turn the request into a queue item, by the method in references/intake.md. Skip it for routes that are not new work: resuming an item in flight, answering a parked fork, a request that names an existing item (a pending one that work starts on moves as intake's End says: in_progress or specifying), understanding or investigating, verifying, reviewing, shipping, a commit message, cleanup, deepening (the playbook files its own items). Say which in one line (skip: <reason>). It ends with mstack state add --slug <s> --title <t> --size <s|m|l> --acceptance "..." --source "..." --seam "...", the size picked by the rule in references/size-matrix.md, which also says which playbook steps each size skips or adds, plus --decision-required "..." when a product fork or irreversible choice is open. Facts are found, reversible decisions are taken and recorded, forks reach the user once, late.
  4. Match the request to a playbook below, and copy that playbook's steps into your todo list verbatim, before any task-specific todos and before you reason about the task.

That fourth step is the one that gets skipped. The failure mode is reading a playbook, then writing a bespoke plan that quietly drops its named steps. A step you choose not to do stays in the list with a one-line skip: <reason>. Skipping silently is not allowed.

Route

The request is aboutPlaybook
Understanding how something works, or why it is the way it isinvestigate
Something broken, wrong, or slower than it should bebug-fix
Building something newfeature
Changing structure without changing behaviourrefactor
Reviewing the architecture, or finding where the code should be deeperdeepen
Proving a change actually works/mstack:verify
Judging work that already exists/mstack:review
Getting a change merged/mstack:ship
Writing the commit message, or a PR title/mstack:commit
A program of work across many changesorchestrate
Picking up an interrupted sessionresume
Clearing out dead branches and worktreescleanup

Nothing fits? Say so, then design a playbook for this task in the same shape as the ones above and follow it. Do not fall back to improvising without a written plan.

The two paths

Most work goes straight to implementation. The spec path is opt-in, and it turns on when any of these is true:

  • the item has sdd: true,
  • the item carries a decision_required field,
  • the change crosses several subsystems, or the user will step away and trust it later.

On the spec path, no code is written before .mstack/specs/<slug>/ exists and a different pass has approved it. On the direct path, the item's acceptance array is the contract.

Both paths end the same way: verify, then review by someone who did not write it, then the merge gate. The route changes how the work is planned. It never changes what counts as proof.

Delegation

Delegate implementation so that you can review the diff, at every size, s included. That separation is the point, and it is not a cost worth optimising away.

  • Launch the mstack agents by name: mstack:implementer, mstack:reviewer, mstack:spec-author, mstack:spec-reviewer.
  • Give each one a brief that a stranger could execute: goal, scope, context, acceptance, the item's seams (pre-agreed), how to verify, what is forbidden, and what to report (a report stays under 24 KB). A vague brief fails quietly, because a subagent cannot ask you a question. Missing fields are a reason not to launch it yet.
  • Tell it to write its result to .mstack/progress/<kind>_<slug>.md and return one line naming the path. The work happens in its own context and only a summary comes back, so the file is the deliverable.
  • A report over the cap, and its author gone. Every report stays under 24 KB (24576 bytes), and each brief says so. When one is over and the pass that wrote it is not coming back, you move the pasted output, unchanged, into .mstack/progress/attachments/<report file name>, and leave a pointer to it in the report. You edit no finding and no verdict line.
  • Check for the file. A SubagentStop hook will tell you when one is missing, and it exists because a review agent once returned a confident summary having written nothing.
  • A second opinion means the same prompt against a different model. Agreement across models is signal; agreement between two runs of the same model is not. By default the implementer runs on Sonnet and the reviewer on Opus, so a review is already a different model from the work; two reviewers are the same model unless one is launched on another.
  • Parallel subagents cap out at twenty per session. Fan out to what the work needs, not to what the limit allows.

Autonomy

Proceed without asking on anything reversible: branches, code, tests, commits, PRs, CI, fixes.

Stop and ask on production, secrets, new third-party dependencies, destructive or hard-to-reverse operations, and product forks, as the Map in references/intake.md defines them.

Before asking a "which approach" question, classify it. If the answer could be observed by running something, it is not the human's to answer. Run the thing. The ask is the slow path, and it hands them a decision to make instead of a result to react to.

Ask at most three questions, except in intake's interactive mode, which the request has to ask for and which has no cap, and except the fork round, which is one ask however many forks it carries. After three failed approaches to the same problem, record the diagnostics in current.md and stop.

Principles

Read references/principles.md at the start of a multi-step task. Name the principles that shaped a decision, and say what each one changed. A citation with no decision behind it means you did not use it.

The one that governs this file: encode lessons in structure. Everything here that could be enforced is enforced in hooks/ or in mstack gate. What is left is genuinely judgment.

Evidence

references/evidence-ladder.md is the standard for every claim any pass makes. Five rungs, and you say where yours stopped.

Record verdicts as you earn them:

mstack ledger record <slug> "$(git rev-parse HEAD)" <verdict> --evidence <path> --verifier <role>

Record decisions as you make them, one line each:

mstack decide --phase <phase> --decision "..." --why "..." --evidence "..." --result "..."

Writing the reply

Write it clean as you draft it. The cleanup-afterwards pass does not work, so do not generate the bad sentence in the first place.

  • No em dashes. If a sentence needs one, it is two sentences.
  • Terse is not an excuse to drop content. Say the thing, then stop.
  • Frame impact for both the person who will use this and the person who will maintain it.
  • Never invent a link, a citation, or a file path. Reference only what you actually read or produced this session.
  • Report what happened. If a test failed, say so and show it. If a step was skipped, say that.

The same rule governs comments in code: write them clean as you go. The case that keeps recurring is a script narrating its own phases. Delete it. The assertion or the log line is the only documentation it needed.

Closing a session

  1. No glossary or ADR change is left uncommitted or unreviewed: it is written before the review of the item that introduced it, as domain-docs says, and a later one goes into a follow-up item.
  2. mstack gate green.
  3. The report files for every pass that ran exist and say something.
  4. Append the session summary to .mstack/progress/history.md, and reset current.md to its empty template, unless it records a parked fork. history.md is append-only: if an earlier entry turned out to be wrong, say so in a later one rather than editing it.
  5. mstack state set <ref> --status done only after a reviewer that did not write the code approved, and the ledger holds a verdict at the current head SHA.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.