@mutmutco/claude-plugin 3.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +11 -0
- package/.pi-plugin/package.json +23 -0
- package/bin/mmi-cli +6 -0
- package/bin/mmi-cli.cmd +3 -0
- package/bin/mmi-hook +2 -0
- package/bin/mmi-hook-console.cmd +10 -0
- package/bin/mmi-hook.exe +0 -0
- package/hooks/hooks.json +38 -0
- package/package.json +22 -0
- package/scripts/command-ladder-core.mjs +334 -0
- package/scripts/command-ladder-gate.mjs +126 -0
- package/scripts/deny-gate-crash.mjs +179 -0
- package/scripts/edit-tool-paths.mjs +113 -0
- package/scripts/env-write-lint.mjs +137 -0
- package/scripts/hook-io.mjs +22 -0
- package/scripts/hook-policy.mjs +73 -0
- package/scripts/hook-run.mjs +437 -0
- package/scripts/hook-trace.mjs +151 -0
- package/scripts/pretooluse-shell-gates.mjs +424 -0
- package/scripts/secret-echo-lint.mjs +177 -0
- package/scripts/secret-redact.mjs +552 -0
- package/scripts/throttle-core.mjs +324 -0
- package/scripts/validate-hook.mjs +156 -0
- package/scripts/vault-edit-gate.mjs +94 -0
- package/skills/bootstrap/SKILL.md +550 -0
- package/skills/bootstrap/seeds/Dockerfile.template +30 -0
- package/skills/bootstrap/seeds/README.template.md +37 -0
- package/skills/bootstrap/seeds/architecture.template.md +34 -0
- package/skills/bootstrap/seeds/decisions-readme.template.md +45 -0
- package/skills/bootstrap/seeds/docker-compose.template.yml +26 -0
- package/skills/bootstrap/seeds/gate.template.yml +85 -0
- package/skills/bootstrap/seeds/google-login.template.md +33 -0
- package/skills/bootstrap/seeds/manifest.json +26 -0
- package/skills/bootstrap/seeds/mmi-product-required-checks.template.json +23 -0
- package/skills/browser-automation/SKILL.md +95 -0
- package/skills/epic/SKILL.md +104 -0
- package/skills/hotfix/SKILL.md +165 -0
- package/skills/mmi/SKILL.md +404 -0
- package/skills/mmi-doctor/SKILL.md +63 -0
- package/skills/onboard/SKILL.md +85 -0
- package/skills/rcand/SKILL.md +208 -0
- package/skills/release/SKILL.md +599 -0
- package/skills/resume/SKILL.md +90 -0
- package/skills/secrets/SKILL.md +159 -0
- package/skills/stage/SKILL.md +153 -0
- package/skills/worktree/SKILL.md +151 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mmi
|
|
3
|
+
description: Show, claim, move, or file work on the repo board.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# mmi — start of work
|
|
7
|
+
|
|
8
|
+
Shows a dev their workboard for this repo: what they're working on, what's free to pick up, and what others
|
|
9
|
+
have claimed. Read-only by default — render the board, then get out of the way.
|
|
10
|
+
|
|
11
|
+
Explicit invocation is host-native: `/mmi:mmi` in Claude Code, `$mmi:mmi` in Codex, `/mmi`
|
|
12
|
+
(canonical `/skill:mmi`) in Kimi Code CLI, and the `mmi` skill (listed in Kilo's `/` picker, invoked via
|
|
13
|
+
the `skill` tool) in Kilo Code. The `/mmi` label used below names this workflow; it is not a
|
|
14
|
+
universal literal command.
|
|
15
|
+
|
|
16
|
+
Status values: `Todo · In Progress · In Review · Done` (GitHub enforces who can move what — don't re-explain
|
|
17
|
+
it on every move). Closed/finished items auto-archive after they go quiet; archived ones aren't on the board.
|
|
18
|
+
|
|
19
|
+
## Step 0 — identity, greet, eager preflight when stale
|
|
20
|
+
|
|
21
|
+
`/mmi` is the dev's hello-to-work — the most common command they run. Three pacing rules before anything else:
|
|
22
|
+
|
|
23
|
+
1. **Resolve login, then greet immediately** (before `board read` or doctor — still the first lines in
|
|
24
|
+
the response so the dev never stares at silent tool output). One emoji max in the whole response.
|
|
25
|
+
The greeting addresses the dev, never claims to *be* them (not "I'm @<login>"):
|
|
26
|
+
- **SessionStart banner** — if context carries `current human: <login>`, use that login.
|
|
27
|
+
- **Else** one fast call: `mmi-cli whoami --json` (cached Hub session in `hub-session.json` when
|
|
28
|
+
valid — no network; `gh` fallback only when the cache lacks `login`; exit 0 on `unknown`). Do
|
|
29
|
+
**not** call `gh api user` separately — `whoami` already covers it. Do **not** wait on `board read`
|
|
30
|
+
for identity — `viewer` is for work items only (Step 1).
|
|
31
|
+
- Known login → `👋 Welcome back, @<login> — pulling up your board…`
|
|
32
|
+
- `source: unknown` → generic `👋 Welcome back — pulling up your board…`
|
|
33
|
+
2. **Keep the board fast: read first, run doctor only when evidence says it can change this render (#2112).**
|
|
34
|
+
The normal happy path is identity → board read. Do **not** block the board on a doctor run just to
|
|
35
|
+
check freshness. Run doctor synchronously only after a hard signal that the current setup may be broken:
|
|
36
|
+
`mmi-cli` is missing, `board read` reports missing auth/project scope, the command surface is absent, or a
|
|
37
|
+
cached/session-start health line explicitly says a heal is needed.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
mmi-cli oracle board read --json # Step 1 — first useful render on the happy path
|
|
41
|
+
mmi-cli doctor --no-repo-writes # only after a hard setup signal — foreground, one at a time
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Since #4199 `--preflight` is **READ-ONLY** (docs/doctor-contract.md § Flag Grammar — the canon
|
|
45
|
+
reversal; jerv semantics win estate-wide): it measures and reports with the shared exit code and performs
|
|
46
|
+
zero writes. The heal lane for "fix my env before work" is `doctor --no-repo-writes` — the default heal
|
|
47
|
+
run minus repo working-tree mutation. Its heals are `npm install -g` and a marketplace remove → add →
|
|
48
|
+
install, both machine-global, serialised behind a machine-wide lock (#3489), so two concurrent runs no
|
|
49
|
+
longer interleave inside the npm prefix or the marketplace clone — the second waits, and if the first is
|
|
50
|
+
still installing after two minutes the second reports the heal as skipped rather than forcing it.
|
|
51
|
+
|
|
52
|
+
Still run it in the foreground and wait. The lock stops corruption, not confusion: a backgrounded run
|
|
53
|
+
that reports "skipped — lock busy" has healed nothing, and an agent that does not read that line will
|
|
54
|
+
carry on believing its tooling was fixed.
|
|
55
|
+
|
|
56
|
+
`doctor --no-repo-writes` heals a stale npm global or a stale/unresolved plugin install (the **env**
|
|
57
|
+
half of the interactive doctor, #3485/#3975) — it never touches the repo working tree. When it prints
|
|
58
|
+
`↻ Updating mmi tooling, one moment…`, relay that before waiting; when it prints `↻ MMI tooling
|
|
59
|
+
updated — …`, relay the reload/restart guidance.
|
|
60
|
+
|
|
61
|
+
What the env half heals:
|
|
62
|
+
|
|
63
|
+
- a behind npm global → `npm install -g @mutmutco/cli@<released version>`, pinned, never the floating
|
|
64
|
+
`@latest`, which npm can resolve off a cached packument and reinstall the stale version right after a
|
|
65
|
+
publish (#3422). Effective on the next invocation.
|
|
66
|
+
- a stale or unresolved Claude plugin → `claude plugin marketplace remove mmi` → `… remove mutmutco` →
|
|
67
|
+
`claude plugin marketplace add mutmutco/MMI-Hub` → `claude plugin install mmi@mutmutco`. A fresh
|
|
68
|
+
reinstall, never `claude plugin update`, which nests into itself past MAX_PATH on Windows and wipes the
|
|
69
|
+
marketplace clone (#1126). Effective after a reload: **restart Claude Code / run `/reload-plugins`**
|
|
70
|
+
(native), or **reopen the workspace** (VS Code extension).
|
|
71
|
+
- superseded plugin cache versions → the guarded auto-prune (#4199, canon per
|
|
72
|
+
docs/doctor-contract.md § Guarded cache prune): never the running/newest/installed version, a cache a
|
|
73
|
+
live session holds is named "still held" and never forced.
|
|
74
|
+
|
|
75
|
+
- **Fast path** → `whoami` then `board read`; no foreground doctor.
|
|
76
|
+
- **Hard setup signal** → run `doctor --no-repo-writes`, relay `↻` lines, then retry `board read` when appropriate.
|
|
77
|
+
- **`mmi-cli: command not found`** → plugin PATH provisioning has not applied, or the standalone CLI is not installed.
|
|
78
|
+
In Claude Code, reopen the session; if it persists, install the MMI plugin:
|
|
79
|
+
`/plugin marketplace add mutmutco/MMI-Hub` → `/plugin install mmi@mutmutco` → `/reload-plugins`.
|
|
80
|
+
On Codex, install the Hub-shipped plugin: `codex plugin marketplace add mutmutco/MMI-Hub` →
|
|
81
|
+
`codex plugin add mmi@mutmutco`, then trust the bundled hooks via `/hooks`. On Kimi Code CLI:
|
|
82
|
+
`/plugins install https://github.com/mutmutco/MMI-Hub` → `/reload`. On Cursor, run
|
|
83
|
+
`mmi-cli plugin heal`, then reload the Cursor window. On OpenCode and plain shell the standalone CLI
|
|
84
|
+
is the whole install:
|
|
85
|
+
```powershell
|
|
86
|
+
npm install -g @mutmutco/cli
|
|
87
|
+
```
|
|
88
|
+
In PowerShell from an `MMI-Hub` checkout, or when diagnosing a stale plugin cache, use the repo-local fallback:
|
|
89
|
+
```powershell
|
|
90
|
+
node cli/dist/index.cjs doctor --json
|
|
91
|
+
```
|
|
92
|
+
- **The host-native skill entry is missing** — `/mmi:mmi` is absent in Claude, `$mmi:mmi` is absent in
|
|
93
|
+
Codex, or `/skill:mmi` is absent in Kimi (the auto-heal below is Claude-only; Codex and Kimi ship the
|
|
94
|
+
same skills but repair is a manual reinstall — see their recipes above) → the plugin is stale,
|
|
95
|
+
duplicated, or disabled, so the skill surface is gone and you can't reach this workflow through the
|
|
96
|
+
host UI. Recover from the shell with the repo-local doctor, which detects and self-heals it:
|
|
97
|
+
```powershell
|
|
98
|
+
node cli/dist/index.cjs doctor # from an MMI-Hub checkout — auto-heals + prints the reload action
|
|
99
|
+
```
|
|
100
|
+
If `claude` isn't on PATH for the auto-heal, run the reinstall by hand (never `/plugin` in VS Code — it
|
|
101
|
+
isn't an updateable path there):
|
|
102
|
+
```bash
|
|
103
|
+
# Claude Code (native or VS Code extension)
|
|
104
|
+
claude plugin marketplace remove mmi && claude plugin marketplace remove mutmutco && claude plugin marketplace add mutmutco/MMI-Hub && claude plugin install mmi@mutmutco
|
|
105
|
+
# then: restart Claude Code / run /reload-plugins (VS Code: reopen the workspace)
|
|
106
|
+
```
|
|
107
|
+
- **A gate is ✗** → walk them through the printed fix; don't just echo it:
|
|
108
|
+
- **GitHub auth** (the usual one) — the board uses its `gh` token. Give them the
|
|
109
|
+
command to run **in their own terminal** (the browser step is theirs — an agent can't log in as them):
|
|
110
|
+
```bash
|
|
111
|
+
gh auth login --hostname github.com --git-protocol https --web --scopes "project"
|
|
112
|
+
```
|
|
113
|
+
The `project` scope is what lets `/mmi` read + move the board, granted here once. When they're back,
|
|
114
|
+
re-run `mmi-cli doctor` to confirm green.
|
|
115
|
+
- **Hub registry / board META** — `mmi-cli oracle org project get <owner/repo>` or `mmi-cli oracle board read` reports
|
|
116
|
+
missing project/board coords → a master-admin registers or backfills the repo's `PROJECT#<slug>` META.
|
|
117
|
+
There's no reliable project to read until that is fixed, so stop here.
|
|
118
|
+
|
|
119
|
+
A broken setup surfaces from `doctor --preflight` (read-only), a failed `board read`, or a gate that still fails after
|
|
120
|
+
heal — handle it then. A `command not found` from **either** command routes into the recovery paths above.
|
|
121
|
+
Don't block the all-green path on doctor noise.
|
|
122
|
+
|
|
123
|
+
## Authority (org-wide)
|
|
124
|
+
|
|
125
|
+
`/mmi` is the usual session start — agents should know the dev's role before any later train, vault, or
|
|
126
|
+
tenant request surfaces. After the board read (Step 1), you already have `viewer` in the JSON; for train
|
|
127
|
+
authority on this or another repo, run:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
mmi-cli oracle org access role <owner/repo> --json # { role, train } — Hub-verified from registry projectAdmins
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
When `role` is `project-admin` and `train` is true on **that** repo, the dev holds D14 authority there —
|
|
134
|
+
guide or execute via the matching skill (`/secrets`, `/rcand`, `/release`, `/hotfix`, `runtime tenant control`).
|
|
135
|
+
**Do not** redirect them to the master. Hub train is master-only; org-tier vault and access grants stay
|
|
136
|
+
master-only. Full matrix: `AGENTS.md` § Authority.
|
|
137
|
+
|
|
138
|
+
## Config
|
|
139
|
+
|
|
140
|
+
The project this repo is on lives in the Hub registry (`PROJECT#<slug>`: `projectOwner`, `projectNumber`,
|
|
141
|
+
`projectId`, `statusFieldId`, `statusOptions{}`, and optional Priority field ids), set by `/bootstrap`
|
|
142
|
+
(repos and projects are not 1:1 — a repo attaches to a chosen project). Refresh the registry META if a
|
|
143
|
+
lookup misses; do not read or repair committed repo-local board config.
|
|
144
|
+
|
|
145
|
+
## Step 1 — read the board (one call, caller-scoped)
|
|
146
|
+
|
|
147
|
+
SessionStart injects a **bounded board slice** (assigned + top claimable items, max five lines,
|
|
148
|
+
3s timeout, fail-soft) and, when task relevance is high-confidence, up to **two North Star context
|
|
149
|
+
cards** (title + compact intent, PRIOR-not-instruction framing — silent when ambiguous). For the
|
|
150
|
+
complete partition — secondary repos, taken items, bundle details — run the full command below.
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
mmi-cli oracle board read --json
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
This is the **only foreground call** on the happy path for **work items** (not identity — Step 0 already
|
|
157
|
+
resolved login). Its JSON carries `viewer`, `repo`, and the project title — do **not** run separate
|
|
158
|
+
`gh api user` / `gh repo view` calls; they just delay the board. If `repo` is missing from the JSON,
|
|
159
|
+
keep the board header generic. The CLI resolves the project from the Hub registry; to inspect it
|
|
160
|
+
directly, `mmi-cli oracle org project get --json`.
|
|
161
|
+
|
|
162
|
+
Use the returned `primary` group for current-repo items and `secondary` for other repos on the same Project.
|
|
163
|
+
Within each group, render `userOwned`, `claimable`, and `taken`.
|
|
164
|
+
|
|
165
|
+
CLI partition:
|
|
166
|
+
- **Yours** — assignee includes the viewer AND `Status ∈ {Todo, In Progress, In Review}`.
|
|
167
|
+
- **Free to claim** — `Status == Todo` AND unassigned AND the viewer has repo write permission
|
|
168
|
+
(`repos/<owner>/<repo>.permissions.push == true`). Issue filing stays available to any authenticated
|
|
169
|
+
org member; claiming work is gated by write access.
|
|
170
|
+
- **Taken** — assigned to someone else (any active status). Render id + status + owner ONLY — no title.
|
|
171
|
+
|
|
172
|
+
Do not cache claimable state. Every `/mmi` board is a fresh Project v2 read. Partial reads exit nonzero by
|
|
173
|
+
default; use `--allow-partial` only when the dev explicitly accepts an incomplete board. If the read fails
|
|
174
|
+
for a missing `read:project` scope, surface that verbatim — the dev grants it once at `gh auth login`.
|
|
175
|
+
|
|
176
|
+
## Step 2 — show the board
|
|
177
|
+
|
|
178
|
+
This render is the product: welcoming, guiding, clear — and gone in one glance. Plain **markdown**,
|
|
179
|
+
never a fenced code block (monospace hard-wraps long titles and the structure is lost). The shape:
|
|
180
|
+
|
|
181
|
+
- **Short refs.** `[RepoName#N](issue-url) · short title` — repo name + number only, no `owner/`
|
|
182
|
+
prefix, no `[type]` brackets. The ref is the clickable link; the title follows after `·`, trimmed
|
|
183
|
+
to its essence (drop boilerplate prefixes, keep it under ~8 words).
|
|
184
|
+
- **Flat `-` lists** under bold head lines — never `##` headings (too heavy for a three-section
|
|
185
|
+
board), never nested bullet trees, never tables, never a literal `•` glyph (it breaks GFM list
|
|
186
|
+
parsing).
|
|
187
|
+
- **Three heads, each with one factual clause** appended after an em dash — a fact the dev can act
|
|
188
|
+
on ("two train fixes in flight"), not cheerleading. Encouragement lives once, in the close.
|
|
189
|
+
- **On your plate** — the dev's items, status noted inline after the title (`· in review`) when
|
|
190
|
+
not In Progress. In Review means *awaiting admin review & merge* — caption it that way, never
|
|
191
|
+
"ready to move".
|
|
192
|
+
- **Up for grabs** — claimable items.
|
|
193
|
+
- **Taken** — id · status · owner ONLY, never the title. No commentary clause; it's reference.
|
|
194
|
+
- **Skip empty sections silently** — no "nothing here" filler. Empty board entirely → one warm line:
|
|
195
|
+
nothing assigned, point at Up for grabs or filing a new item.
|
|
196
|
+
- **Close with one grounding line** — no question, no hype, no pressure: `Pick one and claim it
|
|
197
|
+
when you're ready.` plus the standing quiet affordance `Or file a new item — say the word.`
|
|
198
|
+
- **One screen total.** Greeting + sections + optional Leverage (Step 6) + close.
|
|
199
|
+
|
|
200
|
+
Full example (greeting printed earlier, before the read):
|
|
201
|
+
|
|
202
|
+
> 👋 Welcome back, @dev — here's your board on **MMI-Hub**.
|
|
203
|
+
>
|
|
204
|
+
> **On your plate** — two train fixes in flight:
|
|
205
|
+
> - [MMI-Hub#834](https://github.com/mutmutco/MMI-Hub/issues/834) · automated hotfix apply path
|
|
206
|
+
> - [MMI-Hub#841](https://github.com/mutmutco/MMI-Hub/issues/841) · rcand stuck on required checks
|
|
207
|
+
>
|
|
208
|
+
> **Up for grabs** — ready when you are:
|
|
209
|
+
> - [MMI-Hub#821](https://github.com/mutmutco/MMI-Hub/issues/821) · redesign tenant env-writer
|
|
210
|
+
> - [MMI-Hub#839](https://github.com/mutmutco/MMI-Hub/issues/839) · revisit hotfix back-merge policy
|
|
211
|
+
>
|
|
212
|
+
> **Taken**
|
|
213
|
+
> - MMI-Hub#827 · In Progress · @otherdev
|
|
214
|
+
>
|
|
215
|
+
> **Leverage**
|
|
216
|
+
> - #834 and #841 are both train-lane — I can run them side by side, one PR each.
|
|
217
|
+
>
|
|
218
|
+
> Pick one and claim it when you're ready. Or file a new item — say the word.
|
|
219
|
+
|
|
220
|
+
Only an admin merges (a project-admin on their own project, the master-admin everywhere); the dev who
|
|
221
|
+
opened the PR waits on that review, they don't move it themselves.
|
|
222
|
+
|
|
223
|
+
## Step 3 — stop (act only on request)
|
|
224
|
+
|
|
225
|
+
Render the board and stop. Don't prompt for a choice, don't recommend a next move, don't ask "what now?".
|
|
226
|
+
The dev drives: when they say claim / continue / file — or accept a Leverage offer (Step 6) — do it.
|
|
227
|
+
Otherwise the board alone is the answer.
|
|
228
|
+
|
|
229
|
+
**Status moves happen automatically** as the work flows (claim, PR open, merge, release). The dev never
|
|
230
|
+
moves an item by hand, so **never suggest a status move** — not "advance to Test", not "mark this PR",
|
|
231
|
+
not "ready to move?". The board reflects state; it doesn't ask the dev to change it.
|
|
232
|
+
|
|
233
|
+
The one standing affordance is **filing a new item** — always available, no item needed. The Step 2
|
|
234
|
+
close line already carries it (`Or file a new item — say the word.`); never turn it into a status
|
|
235
|
+
nudge. If the dev takes it, run the guided flow in Step 5.
|
|
236
|
+
|
|
237
|
+
## Step 4 — load the full item before working it
|
|
238
|
+
|
|
239
|
+
The moment the dev commits to an item (continue or claim), read the **whole** work item before planning or
|
|
240
|
+
acting — never from the board title alone. Body **and every comment**, end-to-end; treat later comments as
|
|
241
|
+
potentially **superseding** the body. Only then greet into the work or propose a plan.
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# One shot — status, assignees, type, body, and every comment for one board item:
|
|
245
|
+
mmi-cli oracle board show <owner/repo#N> # add --json for machine-readable output
|
|
246
|
+
```
|
|
247
|
+
For an item **not on the board**, `mmi-cli oracle issue view <N> --comments` is the board-independent one-shot:
|
|
248
|
+
it returns the body **and** every comment as JSON in a single call (add `--context` for `linkedPrs` and, on
|
|
249
|
+
an epic, a `children` summary). Prefer it over raw `gh issue view --comments`, which in a non-TTY shell (every
|
|
250
|
+
agent/CI context) prints only the comments, hides the body, and prints nothing at all on a zero-comment issue.
|
|
251
|
+
```bash
|
|
252
|
+
mmi-cli oracle issue view <N> --repo <owner/repo> --comments # body + every comment, one call
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
> **Never reach for standalone `jq`** — it isn't installed on Windows dev machines, so each attempt burns a
|
|
256
|
+
> failed call (#230). `mmi-cli oracle board read|show` is already human-readable (drop `--json`); to parse JSON use
|
|
257
|
+
> `mmi-cli … --json` piped to `node`, or `gh`'s **built-in** `--jq`.
|
|
258
|
+
|
|
259
|
+
(Triggers only when a dev commits to an existing item — no-op for the *report a bug / request a feature /
|
|
260
|
+
something else* paths.)
|
|
261
|
+
|
|
262
|
+
## Step 5 — act
|
|
263
|
+
|
|
264
|
+
- **Claim:** when the dev takes an item, assign them + set `In Progress` in one go. This is the only status
|
|
265
|
+
write `/mmi` makes, and only as the mechanical side of claiming — never as a standalone "move" the dev
|
|
266
|
+
is offered. Every later transition (In Review on PR open, Done on merge) flows automatically from the
|
|
267
|
+
work, not from here.
|
|
268
|
+
```bash
|
|
269
|
+
mmi-cli oracle board claim <owner/repo#N> --json
|
|
270
|
+
```
|
|
271
|
+
The command validates `Todo` + unassigned, assigns the viewer, and moves the Project v2 `Status` to
|
|
272
|
+
`In Progress`. A partial claim exits nonzero unless the dev explicitly accepted `--allow-partial`.
|
|
273
|
+
Claiming several items (batch/parallel act-paths) takes them in **one call** — `board claim <ref> <ref> …`
|
|
274
|
+
— which shares the setup cost and reports per-item results (any per-item failure → nonzero exit).
|
|
275
|
+
- **File a new item (guided by type → template):** don't free-type an issue. Walk the dev through it:
|
|
276
|
+
1. **Pick the type** — `bug` · `feature` · `task` (the repo's three `.github/ISSUE_TEMPLATE/` forms;
|
|
277
|
+
each carries its own label). Offer the choice with the structured-question UI, one line each:
|
|
278
|
+
bug = something's broken · feature = new capability · task = chore/improvement.
|
|
279
|
+
2. **Fill that type's template.** Read its fields from `.github/ISSUE_TEMPLATE/<type>.yml` and gather
|
|
280
|
+
answers from the dev for each — draft where you can, ask where you can't (the template form is
|
|
281
|
+
interactive and won't drive in a non-TTY agent shell, so collect the fields, then create directly).
|
|
282
|
+
3. **Submit via `mmi-cli oracle issue create`** — the canonical create path. Before filing, read the live
|
|
283
|
+
`issue create` entry from `mmi-cli commands --json`; flags change, and a missing documented flag means
|
|
284
|
+
the installed CLI is stale until a fresh local build proves otherwise. It maps `--type` to the label,
|
|
285
|
+
`--priority` sets the board Priority **field** (never a `priority:*` label — #416), and `--surface`
|
|
286
|
+
supplies the repository's required single surface label. It always prints `{number,url}` JSON. Never
|
|
287
|
+
use `gh issue create`; it bypasses these board contracts:
|
|
288
|
+
```bash
|
|
289
|
+
mmi-cli oracle issue create --type <bug|feature|task> --title "<title>" --body "<filled template>" \
|
|
290
|
+
--priority <high|medium|low> --surface <surface>
|
|
291
|
+
```
|
|
292
|
+
For long markdown, materialize a temporary UTF-8 body file, pass its real path with
|
|
293
|
+
`--body-file <path>`, then remove it after the write succeeds. Do not pipe multiline markdown to
|
|
294
|
+
`--body-file -` on a guarded host.
|
|
295
|
+
A title with backticks needs `--title-file` (#3381). On Windows Git Bash, a title that starts
|
|
296
|
+
with `/` (or contains an MSYS-path-shaped token) is rewritten before `mmi-cli` sees it — e.g.
|
|
297
|
+
`--title "/update …"` becomes `C:/Program Files/Git/update …`. Prefer `--title-file <path>`, or
|
|
298
|
+
prefix the create with `MSYS_NO_PATHCONV=1` (#4373).
|
|
299
|
+
The command starts bounded related-issue discovery off-path. It auto-comments only high-confidence,
|
|
300
|
+
idempotent links. To inspect candidates manually before writing anything else:
|
|
301
|
+
```bash
|
|
302
|
+
mmi-cli oracle issue discover-related --repo <owner/repo> --number <number> --title "<title>" --body "<body>" --json
|
|
303
|
+
```
|
|
304
|
+
It lands on the board as Todo automatically — confirm the link from the JSON. (Templates differ per
|
|
305
|
+
repo; read the actual `.yml` set rather than assuming bug/feature/task.)
|
|
306
|
+
- **File a friction report (org-tooling pain):** `mmi-cli learning report --title "<one-line>" --body "<what hurt>"`
|
|
307
|
+
files it on the Hub board via your Hub session and dedups against the open reports (a confident
|
|
308
|
+
duplicate becomes a +1 comment, not a new issue). The actual GitHub write runs server-side with the
|
|
309
|
+
Hub App's own token (#263), so no MMI-Hub repo access is required to file. Never read Hub coordinates or
|
|
310
|
+
keys from a repo-local `.env`, call a repo-local report script, or POST the Hub API directly — the CLI
|
|
311
|
+
carries the endpoint and your Hub session intrinsically.
|
|
312
|
+
- Surface any `gh`/`mmi-cli` error verbatim.
|
|
313
|
+
|
|
314
|
+
## Step 6 — Leverage (offer where it fits)
|
|
315
|
+
|
|
316
|
+
`/mmi` is an agentic coding board — every item is written by an LLM agent, so the board can do more than
|
|
317
|
+
hand over one item at a time. Between the Taken section and the close, render an optional **Leverage**
|
|
318
|
+
block: **up to two** offers, one line each, under a bold `**Leverage**` head (see the Step 2 example).
|
|
319
|
+
**Default to silence:** if nothing below crisply fits, omit the whole block — never pad it. Never use a
|
|
320
|
+
question-UI, never pressure — the dev acts or ignores.
|
|
321
|
+
|
|
322
|
+
Pick up to two, in priority order:
|
|
323
|
+
|
|
324
|
+
1. **Split + fan out** — a single item plainly too large for one PR (body is multi-part, an umbrella or
|
|
325
|
+
epic). Offer to slice it into child issues. (First because it *creates* the items the rest act on.)
|
|
326
|
+
2. **Batch** — 2+ claimable items that are one coherent unit (shared title-prefix family, same subsystem)
|
|
327
|
+
**and** touch overlapping/adjacent paths. Coupled → one worktree, **one PR**.
|
|
328
|
+
3. **Parallel** — 2+ items that are mutually independent and touch **disjoint paths**. Independent → N
|
|
329
|
+
worktrees, **one PR each**, run concurrently.
|
|
330
|
+
4. **Background** — a single long-running item (broad refactor, large build/sweep). Kick it off in the
|
|
331
|
+
background so the dev isn't blocked.
|
|
332
|
+
|
|
333
|
+
Disjoint paths is the deciding signal between batch (overlap → one PR) and parallel (disjoint → N PRs).
|
|
334
|
+
When unsure which fits, prefer the more conservative offer — a marginal call is worse than a quiet board.
|
|
335
|
+
Two offers must not overlap (never the same item in both); a second marginal offer is worse than one
|
|
336
|
+
crisp one.
|
|
337
|
+
|
|
338
|
+
Bundling detail boundary: start from the metadata board. Only if there are multiple viable
|
|
339
|
+
`userOwned`/`claimable` candidates, fetch bodies/comments with:
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
mmi-cli oracle board read --json --bundle-details
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
That detail path may fetch bodies/comments only for `userOwned` and `claimable` issues. `taken` stays
|
|
346
|
+
metadata-only, always. Do not fetch Done items, do not cache claimables, and do not pass `--allow-partial`
|
|
347
|
+
unless the dev explicitly accepts an incomplete Leverage read. If detail lookup exits nonzero, render
|
|
348
|
+
the board without a Leverage block.
|
|
349
|
+
|
|
350
|
+
Offer lines — one line each, no UI, no "(Recommended)", phrased as available leverage:
|
|
351
|
+
|
|
352
|
+
- **Batch** — `These read like one change — I can take #66–#70 together in a single PR if you'd like.`
|
|
353
|
+
- **Parallel** — `#17 and #18 are independent — I can run them side by side, one PR each, if that helps.`
|
|
354
|
+
- **Background** — `#22 looks long-running — I can take it in the background so you're not blocked.`
|
|
355
|
+
- **Split** — `#60 looks large — I can slice it into child issues and fan them out, if you want.`
|
|
356
|
+
|
|
357
|
+
Act-paths run only on the dev's explicit go. Every path branches from `development` and lands by PR.
|
|
358
|
+
PR land cleans up at the branch boundary (`git worktree remove` + `git worktree prune`); batch/session
|
|
359
|
+
work should keep all related sequential issues in the same branch/PR where possible instead of merging and
|
|
360
|
+
destroying the worktree after each issue:
|
|
361
|
+
|
|
362
|
+
- **PR metadata:** read the live `pr create` or `pr edit` entry from `mmi-cli commands --json` before the
|
|
363
|
+
write. For multiline Markdown, materialize a temporary UTF-8 body file, pass its real path with
|
|
364
|
+
`--body-file <path>`, and remove it after the write succeeds. Do not pipe the body to `--body-file -`;
|
|
365
|
+
host prose guards require the materialized-file path.
|
|
366
|
+
- **Batch:** one worktree, claim each item (the Step 5 claim loop), make the coupled edits, open **one** PR
|
|
367
|
+
(`Closes #…, #…`). When an issue must stay open (HOLD/prep), never write `Does not close #N` — GitHub
|
|
368
|
+
still closes it; use `Part of #N` / `Refs #N` / `leaves #N open` only (JC#495).
|
|
369
|
+
- **Session/sequential:** multiple related same-repo items handled one after another in the same session
|
|
370
|
+
reuse the active worktree until the session or execution group ends; do not churn one worktree per
|
|
371
|
+
issue unless a branch/PR boundary, true parallelism, or explicit user ask requires it.
|
|
372
|
+
- **Parallel:** one isolated worktree per item, cut from `development`, run concurrently, **one PR per
|
|
373
|
+
item**. If two would touch the same file, serialize them or fold into a batch instead.
|
|
374
|
+
- **Background:** run off the hot path (a background task or CI job); poll with `/loop`, test with `/stage`
|
|
375
|
+
if useful; it still lands via its own worktree + PR. Bound it — never block silently.
|
|
376
|
+
- **Stage/worktree:** a local `/stage` is tied to the worktree that started it. Stop/destroy and recreate
|
|
377
|
+
it before moving to another worktree, or warn first when intent is unclear.
|
|
378
|
+
- **Split:** keep the original as the umbrella; file each child as a **native sub-issue** of it with
|
|
379
|
+
`mmi-cli oracle issue create --parent <umbrella-ref> …` (or `mmi-cli oracle issue link-child <umbrella> <child>` for a
|
|
380
|
+
child that already exists). The parent then renders a sub-issue checklist with each child's state and the
|
|
381
|
+
child renders its parent — no title prefix or body task-list to maintain. Refs are `#NN`, `owner/repo#NN`,
|
|
382
|
+
or a URL, and it works cross-repo (a Hub umbrella can track product-repo children). Get the dev's go before
|
|
383
|
+
filing the children; each child then becomes a parallel item. **When the last child merges, close the
|
|
384
|
+
umbrella** — its `Done` follows automatically.
|
|
385
|
+
|
|
386
|
+
## Notes
|
|
387
|
+
|
|
388
|
+
- Reads/moves use **your** `gh` token (needs `read:project`/`project`, granted once at `gh auth login`).
|
|
389
|
+
- Promotion (`/rcand`, `/release`, `/hotfix`) and the local test env (`/stage`) are their own skills — `/mmi`
|
|
390
|
+
is the board + start-of-work, not the train.
|
|
391
|
+
- **Board verbs:** `board read` · `board show <id>` · `board claim <id>` · `board move <status> <id>`.
|
|
392
|
+
`move` exists for an agent's own mechanical bookkeeping when **no PR rides the automation** — e.g.
|
|
393
|
+
setting `Done` on a no-PR `task` or closed-out item that will not auto-advance. It is a tool, not a
|
|
394
|
+
dev-facing offer: the "never suggest a status move" rule (Step 3) still governs the human flow. The verb
|
|
395
|
+
hides the `gh project item-edit` + option-id wiring, so reach for it, not raw `gh`.
|
|
396
|
+
|
|
397
|
+
## Retro — one check before you finish
|
|
398
|
+
Before your final report, answer one question honestly: did **this skill's own instructions** misfire
|
|
399
|
+
this run — ambiguous wording, a misleading message, or an environment failure it should have warned
|
|
400
|
+
about? (Process only — never the user's code or task; e.g. a board read that misreported what's
|
|
401
|
+
claimable, or a claim that moved the wrong item.) If yes, file **one** lesson and move on; a clean run is
|
|
402
|
+
silent (hard cap: one per run). It lands on the Hub board (deduped) and is fixed only via a reviewed PR —
|
|
403
|
+
never edit the skill live; the retro is advisory, so if the call fails, note it and continue:
|
|
404
|
+
`mmi-cli learning skill-lesson --skill mmi --title "<what misfired>" --body "<what; evidence; proposed amendment>"`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mmi-doctor
|
|
3
|
+
description: One hygiene pass — mmi-cli doctor heals and cleans by default.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**Host-native invocation:** Claude `/mmi:mmi-doctor` · Codex `$mmi:mmi-doctor` · jervcode/Kimi `/skill:mmi-doctor` · Kilo `skill` tool. A backticked `/name` in this doc names the matching workflow (this skill or a sibling), not a literal command.
|
|
7
|
+
|
|
8
|
+
# /mmi-doctor — one hygiene pass
|
|
9
|
+
|
|
10
|
+
One command. Run it when a session opens messy or before a handoff.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
mmi-cli doctor
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
By default this **heals and cleans** (MMI-Hub#3975): CLI/plugin/marketplace env repairs, managed
|
|
17
|
+
`.gitignore`, merged-branch / dead-worktree reap (including deferred IDE-locked removals), light board
|
|
18
|
+
mechanical fixes, docs-index working-tree heal, and related full-lane checks. Secrets stay **out** of
|
|
19
|
+
default doctor — use `mmi-cli vault secrets diff` when you need a catalog gap check.
|
|
20
|
+
|
|
21
|
+
## Flags
|
|
22
|
+
|
|
23
|
+
| Flag | Role |
|
|
24
|
+
|------|------|
|
|
25
|
+
| *(none)* | Heal + clean (default). |
|
|
26
|
+
| `--verbose` | Full checklist + per-row evidence. |
|
|
27
|
+
| `--no-repo-writes` | Env/plugin repairs only — no working-tree mutates (train preflight). |
|
|
28
|
+
| `--self` / `--fast` / `--banner` / `--preflight` | Cheap / read-oriented lanes (see `docs/doctor-contract.md`). |
|
|
29
|
+
| `--apply` | **Deprecated no-op** — kept so older instructions still parse. |
|
|
30
|
+
|
|
31
|
+
## Do not run the old multi-step ritual
|
|
32
|
+
|
|
33
|
+
Do **not** chain these as a `/mmi-doctor` substitute:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mmi-cli doctor --self
|
|
37
|
+
mmi-cli oracle board doctor
|
|
38
|
+
mmi-cli vault secrets diff
|
|
39
|
+
mmi-cli worktree gc
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Plain `mmi-cli doctor` already covers heal + clean. Reach for the individual verbs only when you want
|
|
43
|
+
that surface alone (e.g. a secrets catalog review, or an interactive `board doctor` without the rest).
|
|
44
|
+
|
|
45
|
+
## Notes
|
|
46
|
+
|
|
47
|
+
- `/mmi-doctor` is the hygiene pass; `/resume` is the lighter read-only session open.
|
|
48
|
+
- Prefer one doctor run over hand-editing board items, gitignore blocks, or marketplace pins.
|
|
49
|
+
- Doctor / `worktree list --stale` / `worktree gc` name the clone they audited. A green
|
|
50
|
+
"no leaks" / "nothing to clean" is refused when another primary checkout of the same remotes
|
|
51
|
+
exists, or when the jerv lease ledger points at another `mmi-worktrees` root (#4900 / #4897).
|
|
52
|
+
Run hygiene from the canonical `E:\AI Projects\Mutatis Mutandis\` primary — not from
|
|
53
|
+
`C:\Users\ssari\Projects\`. Treat a non-empty jerv worktree-lease ledger as a leak even if
|
|
54
|
+
this clone's `git worktree list` is empty.
|
|
55
|
+
|
|
56
|
+
## Retro — one check before you finish
|
|
57
|
+
Before your final report, answer one question honestly: did **this skill's own instructions** misfire
|
|
58
|
+
this run — ambiguous wording, a misleading message, or an environment failure it should have warned
|
|
59
|
+
about? (Process only — never the user's code or task; e.g. a doctor run that proposed deleting a live
|
|
60
|
+
branch.) If yes, file **one** lesson and move on; a clean run is silent (hard cap: one per run). It
|
|
61
|
+
lands on the Hub board (deduped) and is fixed only via a reviewed PR — never edit the skill live; the
|
|
62
|
+
retro is advisory, so if the call fails, note it and continue:
|
|
63
|
+
`mmi-cli learning skill-lesson --skill doctor --title "<what misfired>" --body "<what; evidence; proposed amendment>"`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onboard
|
|
3
|
+
description: Guided first session — readiness check, repo status, and the first command to run.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**Host-native invocation:** Claude `/mmi:onboard` · Codex `$mmi:onboard` · jervcode/Kimi `/skill:onboard` · Kilo `skill` tool. A backticked `/name` in this doc names the matching workflow (this skill or a sibling), not a literal command.
|
|
7
|
+
|
|
8
|
+
# /onboard — guided first session
|
|
9
|
+
|
|
10
|
+
For a developer's first session in a repo (or a fresh checkout): confirm the repo is wired into the org,
|
|
11
|
+
show what state it's in, and hand over the one concrete next command. Read-only — it diagnoses and points,
|
|
12
|
+
it does not change anything.
|
|
13
|
+
|
|
14
|
+
## Step 0 — readiness gate
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
mmi-cli onboard
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`onboard` reports the five things a machine needs to be workable and the exact next command to fix the
|
|
21
|
+
first gap:
|
|
22
|
+
|
|
23
|
+
- **Track** — the repo's branch + origin (is this an org checkout at all).
|
|
24
|
+
- **Board** — is the Project board reachable, and how many items are on it.
|
|
25
|
+
- **Registry** — is the repo registered in the Hub (`PROJECT#<slug>` META).
|
|
26
|
+
- **Secrets** — is a GitHub token available for the vault path.
|
|
27
|
+
- **Plugin** — is `mmi-updater` the single writer, and does its journal show every present surface at
|
|
28
|
+
the gated fleet version (#4945).
|
|
29
|
+
|
|
30
|
+
The **Plugin** row is per machine, not per repo. The Hub's thin Claude/Codex catalogs pin exact npm
|
|
31
|
+
packages; Git no longer transports plugin content, and background marketplace auto-update stays **off**
|
|
32
|
+
so it cannot race the scheduled updater. The updater gates a release tag+BOM, converges each present host,
|
|
33
|
+
and writes the journal stamp (`fleet <V> ✓`). A red row names `mmi-updater verify` or
|
|
34
|
+
`mmi-updater reconcile`; no marketplace ref or hand-edited auto-update ceremony remains.
|
|
35
|
+
|
|
36
|
+
A `✗` on any line comes with a `Next command:` — run **that** first. Common ones:
|
|
37
|
+
|
|
38
|
+
- Hub API URL not configured → `mmi-cli doctor` (fix wiring).
|
|
39
|
+
- Repo not registered → a master-admin runs `/bootstrap` (or `mmi-cli oracle org project set <owner/repo>`).
|
|
40
|
+
- GitHub auth missing → the dev runs `gh auth login --hostname github.com --git-protocol https --web --scopes "project"`.
|
|
41
|
+
|
|
42
|
+
## Step 1 — the picture
|
|
43
|
+
|
|
44
|
+
Once the gates are green:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
mmi-cli status # branch, worktrees, your PRs, your claimed items, stage
|
|
48
|
+
mmi-cli oracle next # the first claimable item + its claim command
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Step 2 — hand over the first move
|
|
52
|
+
|
|
53
|
+
Close with one grounding line: gates green (or the one gate to fix), and the single first command —
|
|
54
|
+
usually `mmi-cli oracle board claim <n>` for the recommended item, or the readiness fix if a gate is red. Don't
|
|
55
|
+
claim on the user's behalf; let them take the first item when ready.
|
|
56
|
+
|
|
57
|
+
## Step 2b — structure door (compute-at-read)
|
|
58
|
+
|
|
59
|
+
Before treating `docs/**` as current-state, teach the Hub door (Hub#4133 / #4148):
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
mmi-cli oracle repo-index search <path-or-symbol-or-meaning> # Hub cloud pointers (default)
|
|
63
|
+
mmi-cli oracle repo-index search "where …" --semantic # Titan meaning over embeddings
|
|
64
|
+
mmi-cli oracle repo-index status --cloud # is the estate index live?
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Host indexes (Cursor / Kilo) stay local helpers; **Hub `repo-index` is the org SSOT structure door**.
|
|
68
|
+
Living current-state still comes from live verbs (`org schedules`, `board read`, …) — see
|
|
69
|
+
`docs/Architecture/compute-at-read.md`. Do not invent wiki prose from pointer hits.
|
|
70
|
+
|
|
71
|
+
## Notes
|
|
72
|
+
|
|
73
|
+
- `/onboard` is the first-session, readiness-first wrapper. Once a repo is known-good, `/resume` is the
|
|
74
|
+
faster daily open and `/mmi` is the board.
|
|
75
|
+
- Everything here is read-only. The heavier setup (`/bootstrap`) is master-admin only.
|
|
76
|
+
|
|
77
|
+
## Retro — one check before you finish
|
|
78
|
+
Before your final report, answer one question honestly: did **this skill's own instructions** misfire
|
|
79
|
+
this run — ambiguous wording, a misleading message, or an environment failure it should have warned
|
|
80
|
+
about? (Process only — never the user's code or task; e.g. a readiness gate that reported green while a
|
|
81
|
+
board read actually failed, or a next command that pointed at the wrong fix.) If yes, file **one** lesson
|
|
82
|
+
and move on; a clean run is silent (hard cap: one per run). It lands on the Hub board (deduped) and is
|
|
83
|
+
fixed only via a reviewed PR — never edit the skill live; the retro is advisory, so if the call fails,
|
|
84
|
+
note it and continue:
|
|
85
|
+
`mmi-cli learning skill-lesson --skill onboard --title "<what misfired>" --body "<what; evidence; proposed amendment>"`
|