@ionivetech/mugiwara 0.5.1 → 0.5.3

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.
Files changed (53) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +18 -0
  3. package/.claude-plugin/plugin.json +64 -0
  4. package/.claude-plugin/sync.sh +18 -0
  5. package/.codex-plugin/plugin.json +18 -0
  6. package/.cursor-plugin/plugin.json +19 -0
  7. package/.kimi-plugin/plugin.json +18 -0
  8. package/.opencode/commands/mugiwara.md +13 -7
  9. package/.opencode/commands/using-mugiwara.md +26 -0
  10. package/.opencode/plugins/mugiwara-helpers.mjs +90 -0
  11. package/.opencode/plugins/mugiwara.mjs +10 -107
  12. package/AGENTS.md +183 -0
  13. package/GEMINI.md +12 -0
  14. package/README.md +86 -56
  15. package/content/agents/luffy-orchestrator.md +1 -1
  16. package/content/agents/zoro-execution.md +1 -1
  17. package/content/skills/mugiwara-execution/SKILL.md +2 -5
  18. package/content/skills/{mugiwara-proof-order/SKILL.md → mugiwara-execution/references/tdd.md} +4 -7
  19. package/content/skills/using-mugiwara/SKILL.md +52 -0
  20. package/dist/mugiwara.js +35 -4
  21. package/docs/adoption-guide.md +1 -1
  22. package/docs/agents.md +5 -3
  23. package/docs/claude-setup.md +1 -1
  24. package/docs/developer-onboarding.md +1 -1
  25. package/docs/getting-started.md +1 -1
  26. package/docs/index.md +1 -1
  27. package/docs/install-antigravity.md +45 -0
  28. package/docs/install-claude.md +75 -0
  29. package/docs/install-cli.md +103 -0
  30. package/docs/install-codex.md +44 -0
  31. package/docs/install-copilot.md +45 -0
  32. package/docs/install-cursor.md +45 -0
  33. package/docs/install-gemini.md +44 -0
  34. package/docs/install-kimi.md +45 -0
  35. package/docs/install-opencode.md +129 -0
  36. package/docs/install-pi.md +46 -0
  37. package/docs/install.md +53 -0
  38. package/docs/opencode-setup.md +1 -1
  39. package/docs/skills.md +1 -1
  40. package/evals/cases/routing-claim-audit.json +1 -1
  41. package/evals/cases/routing-using-mugiwara.json +25 -0
  42. package/evals/floor.json +1 -1
  43. package/gemini-extension.json +6 -0
  44. package/hooks/hooks.json +11 -0
  45. package/hooks/mugiwara-mode-tracker.ts +80 -0
  46. package/hooks/session-start.ts +1 -1
  47. package/package.json +13 -2
  48. package/plugin.json +15 -0
  49. package/src/targets/opencode.ts +39 -3
  50. package/.opencode/commands/mugiwara-mode.md +0 -6
  51. package/content/agents/using-mugiwara.md +0 -44
  52. package/content/skills/mugiwara-proof-order/references/proof-order-examples.md +0 -62
  53. package/evals/cases/routing-proof-order.json +0 -25
package/GEMINI.md ADDED
@@ -0,0 +1,12 @@
1
+ # Mugiwara
2
+
3
+ The Straw Hat crew of AI agents and skills. 14 specialist agents — Luffy
4
+ orchestrates, Nami plans, Zoro executes, Chopper audits, Brook heals — plus 26
5
+ skills covering brainstorming, planning, execution, checkpointing, quality,
6
+ gates, review, security, and self-healing.
7
+
8
+ Start any non-trivial mission by loading the `using-mugiwara` skill (or ask "how do I
9
+ use mugiwara?") — it routes you to the right crew member. See
10
+ `content/skills/mugiwara-workflow/SKILL.md` for the full pipeline.
11
+
12
+ For development standards when working on mugiwara itself, see `AGENTS.md`.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@ionivetech%2fmugiwara)](https://www.npmjs.com/package/@ionivetech/mugiwara)
4
4
  [![License: MIT](https://img.shields.io/github/license/ionivetech/mugiwara)](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
5
5
 
6
- Your coding agent becomes a governed engineering team. 15 specialists — triage,
6
+ Your coding agent becomes a governed engineering team. 14 specialists — triage,
7
7
  plan, build, audit, review, heal — with evidence at every step, cost tracking,
8
8
  and a process that sizes itself to your work. Pure markdown, zero runtime.
9
9
 
@@ -11,13 +11,16 @@ and a process that sizes itself to your work. Pure markdown, zero runtime.
11
11
 
12
12
  ```bash
13
13
  # Claude Code
14
- /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
14
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara@mugiwara
15
15
 
16
16
  # opencode — add to opencode.json
17
17
  { "plugin": ["@ionivetech/mugiwara"] }
18
18
 
19
- # CLI for any target
20
- npx @ionivetech/mugiwara@latest --project . --target all --yes
19
+ # Gemini CLI
20
+ gemini extensions install https://github.com/ionivetech/mugiwara
21
+
22
+ # Any platform via npm
23
+ npx @ionivetech/mugiwara@latest install --project . --target all --yes
21
24
  ```
22
25
 
23
26
  Then just ask. The crew auto-activates — no agent names to remember.
@@ -99,7 +102,7 @@ One file. Any reviewer reads it in 30 seconds. That's the governance trail.
99
102
 
100
103
  | Capability | What it does |
101
104
  |-----------|-------------|
102
- | **15 specialist agents** | Luffy triages, Nami plans, Zoro builds TDD, Chopper audits, Sanji checks quality, Franky enforces gates, Robin maps breaking changes, Jinbe runs STRIDE, Brook heals failures. Each with role boundaries: auditors read-only, executor no-network. |
105
+ | **14 specialist agents** | Luffy triages, Nami plans, Zoro builds TDD, Chopper audits, Sanji checks quality, Franky enforces gates, Robin maps breaking changes, Jinbe runs STRIDE, Brook heals failures. Each with role boundaries: auditors read-only, executor no-network. |
103
106
  | **Lane sizing** | Process scaled to work size — computed from `git diff` by `scripts/lane.sh`. Typo = 0 waves. Auth migration = full 9-wave pipeline. Sensitive paths auto-escalate. |
104
107
  | **9-wave gated pipeline** | Triage → Plan → Execute → Audit → Quality → Gates → Review+Security → Heal → Closure. Each wave gated by evidence. Pipeline runs inline — you watch everything. |
105
108
  | **Evidence trail** | No wave passes on a claim. `scripts/evidence.sh` captures command output. Chopper re-runs criteria. Mission report at closure — one file any reviewer reads in 30 seconds. |
@@ -127,7 +130,7 @@ team — in your chat window, running inline, visible at every step.
127
130
 
128
131
  ## The crew
129
132
 
130
- 15 personas, 26 skills. Each with a permission boundary.
133
+ 14 agents, 26 skills. The front door is the `using-mugiwara` skill — type `/using-mugiwara` or load it from any platform. Each agent has a permission boundary.
131
134
 
132
135
  | Agent | Role | Permission |
133
136
  |-------|------|------------|
@@ -145,93 +148,119 @@ team — in your chat window, running inline, visible at every step.
145
148
  | Resume | Continuity — rebuilds from state.json, never restarts | — |
146
149
  | Memory | Cross-mission lessons — read at start, write at closure | — |
147
150
 
148
- See [all 15 agents](docs/agents.md) and [all 26 skills](docs/skills.md).
151
+ See [all 14 agents](docs/agents.md) and [all 26 skills](docs/skills.md).
149
152
 
150
153
  ## Install
151
154
 
152
- ### Claude Code
155
+ Mugiwara installs as a native plugin on every platform. Full details in the per-platform guides.
153
156
 
154
- <details>
155
- <summary><b>Install / Update / Uninstall</b></summary>
157
+ | Platform | Guide |
158
+ |----------|-------|
159
+ | **Claude Code** | [`/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara@mugiwara`](docs/install-claude.md) |
160
+ | **OpenCode** | [`{ "plugin": ["@ionivetech/mugiwara"] }`](docs/install-opencode.md) |
161
+ | **Gemini CLI** | [`gemini extensions install https://github.com/ionivetech/mugiwara`](docs/install-gemini.md) |
162
+ | **Codex** | [`codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara`](docs/install-codex.md) |
163
+ | **Copilot** | [`copilot plugin install https://github.com/ionivetech/mugiwara`](docs/install-copilot.md) |
164
+ | **Cursor** | [`/add-plugin mugiwara`](docs/install-cursor.md) |
165
+ | **Antigravity** | [`agy plugin install https://github.com/ionivetech/mugiwara`](docs/install-antigravity.md) |
166
+ | **Kimi** | [`/plugins install https://github.com/ionivetech/mugiwara`](docs/install-kimi.md) |
167
+ | **Pi** | [`pi install git:github.com/ionivetech/mugiwara`](docs/install-pi.md) |
168
+ | **Windsurf / Cline / Kilo** | [`npx @ionivetech/mugiwara install --target <id> --yes`](docs/install-cli.md) |
169
+
170
+ → **[Full install guide with troubleshooting](docs/install.md)**
171
+
172
+ ### Claude Code
156
173
 
157
174
  ```bash
158
- /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara # install
159
- /plugin update mugiwara # update
160
- /plugin uninstall mugiwara # uninstall
175
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara@mugiwara
161
176
  ```
162
- </details>
163
177
 
164
- ### opencode
178
+ Update: `/plugin update mugiwara`
179
+ Uninstall: `/plugin uninstall mugiwara`
180
+
181
+ ### OpenCode
165
182
 
166
- <details>
167
- <summary><b>Install / Update / Uninstall</b></summary>
183
+ Add to `opencode.json`:
168
184
 
169
185
  ```json
170
- { "plugin": ["@ionivetech/mugiwara"] } // add to opencode.json
186
+ { "plugin": ["@ionivetech/mugiwara"] }
171
187
  ```
172
188
 
173
- ```bash
174
- mugiwara update # update
175
- # remove the plugin entry from opencode.json to uninstall
176
- ```
189
+ Update: replace the plugin entry version, or `npm update @ionivetech/mugiwara`
190
+ Uninstall: remove the plugin entry from `opencode.json`.
177
191
 
178
192
  Restart opencode after install.
179
- </details>
180
193
 
181
- ### GitHub Copilot
194
+ ### Gemini CLI
195
+
196
+ ```bash
197
+ gemini extensions install https://github.com/ionivetech/mugiwara
198
+ ```
182
199
 
183
- <details>
184
- <summary><b>Install / Update / Uninstall</b></summary>
200
+ Update: `gemini extensions update mugiwara`
201
+ Uninstall: `gemini extensions remove mugiwara`
202
+
203
+ ### Codex
185
204
 
186
205
  ```bash
187
- copilot plugin marketplace add ionivetech/mugiwara && copilot plugin install mugiwara
188
- copilot plugin update mugiwara
189
- copilot plugin uninstall mugiwara
206
+ codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
190
207
  ```
191
- </details>
192
208
 
193
- ### Gemini CLI · Codex · Cursor
209
+ Update: `codex plugin update mugiwara`
210
+ Uninstall: `codex plugin remove mugiwara`
194
211
 
195
- <details>
196
- <summary><b>Gemini</b></summary>
212
+ ### GitHub Copilot
197
213
 
198
214
  ```bash
199
- gemini extensions install https://github.com/ionivetech/mugiwara
200
- gemini extensions update mugiwara
201
- gemini extensions remove mugiwara
215
+ copilot plugin install https://github.com/ionivetech/mugiwara
216
+ ```
217
+
218
+ Update: reinstall with the same command.
219
+ Uninstall: `copilot plugin uninstall mugiwara`
220
+
221
+ ### Cursor
222
+
202
223
  ```
203
- </details>
224
+ /add-plugin mugiwara
225
+ ```
226
+
227
+ Update: re-run `/add-plugin mugiwara`.
228
+ Uninstall: `/remove-plugin mugiwara`
204
229
 
205
- <details>
206
- <summary><b>Codex</b></summary>
230
+ ### Antigravity
207
231
 
208
232
  ```bash
209
- codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
210
- codex plugin update mugiwara
211
- codex plugin remove mugiwara
233
+ agy plugin install https://github.com/ionivetech/mugiwara
212
234
  ```
213
- </details>
214
235
 
215
- <details>
216
- <summary><b>Cursor</b></summary>
236
+ Update: reinstall with the same command.
237
+ Uninstall: `agy plugin uninstall mugiwara`
238
+
239
+ ### Kimi
217
240
 
218
241
  ```
219
- /add-plugin mugiwara # install & update
220
- /remove-plugin mugiwara # uninstall
242
+ /plugins install https://github.com/ionivetech/mugiwara
221
243
  ```
222
- </details>
223
244
 
224
- ### Kimi · pi · Windsurf · Cline · Kilo · Antigravity
245
+ Update: reinstall.
246
+ Uninstall: `/plugins remove mugiwara`
247
+
248
+ ### Pi
249
+
250
+ ```bash
251
+ pi install git:github.com/ionivetech/mugiwara
252
+ ```
225
253
 
226
- <details>
227
- <summary><b>All other harnesses</b></summary>
254
+ ### Windsurf · Cline · Kilo · Codex CLI
228
255
 
229
256
  ```bash
230
- npx @ionivetech/mugiwara@latest --project . --target all --yes # install
231
- mugiwara update # update
232
- mugiwara uninstall # uninstall
257
+ npx @ionivetech/mugiwara@latest install --project . --target all --yes
233
258
  ```
234
- </details>
259
+
260
+ Substitute `all` with a specific target: `windsurf`, `cline`, `kilo`, `codex`, etc.
261
+
262
+ Update: `mugiwara update`
263
+ Uninstall: `mugiwara uninstall`
235
264
 
236
265
  ### Any agent (skills only)
237
266
 
@@ -292,8 +321,9 @@ matter to you, this is the wrong tool.
292
321
  | Doc | What it covers |
293
322
  |-----|---------------|
294
323
  | [Getting started](docs/getting-started.md) | First mission, lane 0-3 examples, setup walkthrough |
324
+ | [Install](docs/install.md) | Per-platform guides: Claude Code, OpenCode, Gemini, Codex, Copilot, Cursor, Antigravity, Kimi, Pi, CLI |
295
325
  | [Workflow](docs/workflow.md) | Full 9-wave pipeline with heal loop detail |
296
- | [Agents](docs/agents.md) | 15 crew members, roles, permissions, how to summon |
326
+ | [Agents](docs/agents.md) | 14 crew members, roles, permissions, how to summon |
297
327
  | [Skills](docs/skills.md) | 26 techniques, 3-layer disclosure model |
298
328
  | [Lanes](docs/lanes.md) | Deterministic lane sizing — computed from git diff |
299
329
  | [Audit trail](docs/audit-trail.md) | 15 artifact types, how to read as reviewer |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: luffy-orchestrator
3
3
  description: Persona for mugiwara-orchestration + mugiwara-workflow. Captain: triage, check-ins, closure.
4
- skills: mugiwara-workflow, mugiwara-orchestration, mugiwara-ship, mugiwara-pr, mugiwara-context-budget
4
+ skills: using-mugiwara, mugiwara-workflow, mugiwara-orchestration, mugiwara-ship, mugiwara-pr, mugiwara-context-budget
5
5
  ---
6
6
 
7
7
  # Luffy — Orchestrator (Captain)
@@ -2,7 +2,7 @@
2
2
  name: zoro-execution
3
3
  description: Persona for mugiwara-execution. Executes plan: sequential inline + parallel worker batches. No network: code only, no remote calls.
4
4
  permissions: read-write code, no-network
5
- skills: mugiwara-execution, mugiwara-backend, mugiwara-git, mugiwara-proof-order, mugiwara-contract-first, mugiwara-testcases
5
+ skills: mugiwara-execution, mugiwara-backend, mugiwara-git, mugiwara-contract-first, mugiwara-testcases
6
6
  ---
7
7
 
8
8
  # Zoro — Execution (Dispatcher)
@@ -59,12 +59,9 @@ A delegation prompt shorter than ~30 lines is too short — beef it up. Thin pro
59
59
 
60
60
  ## TDD discipline
61
61
 
62
- The test's proof value comes from WHEN it runs, not that it exists. A test that passes on first run has proven nothing it never demonstrated it could catch the bug.
62
+ Full TDD discipline: `references/tdd.md` RED-GREEN-REFACTOR, test pyramid, rationalizations, red flags89 lines.
63
63
 
64
- 1. **Proof order matters:** the failing test comes first, and you must SEE it fail for the intended reason (the feature is missing, not a typo or a wrong assertion). Only then write the minimal implementation that turns it green.
65
- 2. **No grace for untested code:** production code written before its test is not salvageable "as reference" — discard it and redo it test-first.
66
- 3. **Each test targets one behavior**, names it plainly, and asserts on real behavior rather than mocks where reasonably possible.
67
- 4. **Green is a floor, not a finish**: refactor while the test stays green; never silence a failing test by deleting or weakening it.
64
+ The test's proof value comes from WHEN it runs, not that it exists. A test that passes on first run has proven nothing.
68
65
 
69
66
  ## User tests as the oracle (per `mugiwara-testcases`)
70
67
 
@@ -1,17 +1,14 @@
1
- ---
2
- name: mugiwara-proof-order
3
- description: Use when writing code — TDD, RED-GREEN-REFACTOR, test-driven. Proof value from WHEN the test runs, not that it exists. One test = one behavior.
4
- ---
5
-
6
1
  # Test-Driven Development
7
2
 
3
+ Full TDD discipline: `references/tdd.md` — 5 sections, 89 lines.
4
+
5
+ A test proves nothing by existing. It proves nothing by passing. Its entire value lives in WHEN it runs and HOW it fails. TDD is the discipline that makes that proof real.
6
+
8
7
  ## Skip when
9
8
 
10
9
  - No production code written: docs, config, or pure dependency bump.
11
10
  - Refactor already fully covered by existing passing tests (record the reason).
12
11
 
13
- A test proves nothing by existing. It proves nothing by passing. Its entire value lives in WHEN it runs and HOW it fails. TDD is the discipline that makes that proof real.
14
-
15
12
  ## When to use
16
13
 
17
14
  Every task that writes production code — feature, bug fix, refactor, new function. The moment code leaves your keyboard, its test must already have failed first.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: using-mugiwara
3
+ description: Use at session start or on any task — explains how the crew works, classifies missions, routes to the right specialist. Front door to the Straw Hat crew.
4
+ ---
5
+
6
+ # Using Mugiwara (Front Door)
7
+
8
+ ## Skip when
9
+
10
+ - Lane 0 direct work: typo, rename, or single-file fix under 20 LOC.
11
+ - User explicitly declined the crew for this request.
12
+
13
+ Mugiwara is a governed engineering team in your coding agent. 14 specialists — triage, brainstorm, plan, execute, audit, quality, gates, review, security, heal — with evidence at every step and cost tracking. Runs inline in the main conversation.
14
+
15
+ ## How it works
16
+
17
+ 1. The crew auto-activates for non-trivial requests. You do NOT need to call `using-mugiwara` at session start — it's an optional router.
18
+ 2. The pipeline: Luffy triage → Usopp brainstorm → Nami plan → Zoro execute → Chopper audit → Sanji quality → Franky gates → Robin/Jinbe review → Brook heal → Luffy closure.
19
+ 3. Every wave runs inline in the main thread. Subagents only for [PARALLEL] task batches.
20
+ 4. Evidence over claims — no wave passes on assertion. Checks must be re-run.
21
+ 5. Autonomy modes: `/mugiwara guided|semi|auto`. Flip applies next wave.
22
+ 6. Workspace: `.mugiwara/` at repo root — plans, results, issues, logs, state.
23
+
24
+ ## Crew
25
+
26
+ | Agent | Role |
27
+ |-------|------|
28
+ | Luffy | Captain — triage, check-ins, closure |
29
+ | Usopp | Brainstorm — research, explore, recommend |
30
+ | Nami | Planner — interview, scan, write scaled plans |
31
+ | Zoro | Executor — TDD per task, commit per logical unit |
32
+ | Chopper | Auditor — re-run criteria, failure ledger (read-only) |
33
+ | Sanji | Quality — format, lint, test |
34
+ | Franky | Gates — coverage, build, DoD |
35
+ | Robin | Reviewer — breaking-change map (read-only) |
36
+ | Jinbe | Security — STRIDE, OWASP, secret scan (read-only) |
37
+ | Brook | Healer — reads ledger, fixes failures |
38
+ | Skeptic | Adversarial verifier (read-only) |
39
+ | Resume | Continuity — rebuild from state.json |
40
+
41
+ ## What to do
42
+
43
+ 1. If the user asks how mugiwara works — summarize in 3 lines.
44
+ 2. If the user gives a task — classify: Trivial / Explicit / Exploratory / Open-ended / Ambiguous.
45
+ 3. Route:
46
+ - Clear, small → Nami (plan) or Zoro (execute).
47
+ - Vague, needs direction → Usopp (brainstorm).
48
+ - Anything else → Luffy (full triage + check-ins).
49
+ - Review → Robin. Security → Jinbe. Audit → Chopper. Heal → Brook.
50
+ 4. Record the route in `.mugiwara/logs/`.
51
+
52
+ Full pipeline: see skills/mugiwara-workflow.
package/dist/mugiwara.js CHANGED
@@ -152,6 +152,36 @@ var target = {
152
152
 
153
153
  // src/targets/opencode.ts
154
154
  import { join as join2 } from "node:path";
155
+ var CREW = {
156
+ "luffy-orchestrator": { color: "#ef4444", temperature: 0.2, steps: 15 },
157
+ "usopp-brainstorm": { color: "#f59e0b", temperature: 0.6, steps: 15 },
158
+ "nami-planner": { color: "#f97316", temperature: 0.2, steps: 15 },
159
+ "zoro-execution": { color: "#22c55e", temperature: 0.1, steps: 30 },
160
+ "chopper-checkpoint": { color: "#3b82f6", temperature: 0.1, permission: { edit: "deny" }, steps: 15 },
161
+ "sanji-quality": { color: "#a855f7", temperature: 0.1, permission: { edit: "deny" }, steps: 10 },
162
+ "franky-gates": { color: "#06b6d4", temperature: 0.1, permission: { edit: "deny" }, steps: 10 },
163
+ "robin-reviewer": { color: "#8b5cf6", temperature: 0.2, permission: { edit: "deny" }, steps: 15 },
164
+ "jinbe-security": { color: "#6366f1", temperature: 0.2, permission: { edit: "deny" }, steps: 15 },
165
+ "brook-healing": { color: "#ec4899", temperature: 0.1, steps: 20 },
166
+ "skeptic-verifier": { color: "#64748b", temperature: 0.1, permission: { edit: "deny" }, steps: 12 },
167
+ "eval-runner": { color: "#14b8a6", temperature: 0.2, steps: 15 },
168
+ "resume-coordinator": { color: "#d97706", temperature: 0.2, steps: 10 },
169
+ "memory-keeper": { color: "#d946ef", temperature: 0.2, steps: 8 }
170
+ };
171
+ function agentFrontmatter(name, description) {
172
+ const crew = CREW[name];
173
+ const lines = [`description: ${description}`, `mode: all`];
174
+ if (crew) {
175
+ lines.push(`color: '${crew.color}'`, `temperature: ${crew.temperature}`, `steps: ${crew.steps}`);
176
+ if (crew.permission) {
177
+ lines.push("permission:");
178
+ for (const [k, v] of Object.entries(crew.permission))
179
+ lines.push(` ${k}: ${v}`);
180
+ }
181
+ }
182
+ return lines.join(`
183
+ `);
184
+ }
155
185
  var target2 = {
156
186
  id: "opencode",
157
187
  label: "opencode",
@@ -167,10 +197,11 @@ var target2 = {
167
197
  };
168
198
  },
169
199
  transformAgent(data, body) {
170
- const fm = { name: data.name, description: data.description };
171
- if (data.tools)
172
- fm.tools = data.tools;
173
- return { relPath: `${data.name}.md`, text: stringifyFrontmatter(fm, body) };
200
+ const fm = agentFrontmatter(data.name, data.description);
201
+ return { relPath: `${data.name}.md`, text: `---
202
+ ${fm}
203
+ ---
204
+ ${body}` };
174
205
  },
175
206
  refsDir({ scope, projectDir, home }, skillName) {
176
207
  const root = scope === "global" ? join2(home, ".config", "opencode") : join2(projectDir, ".opencode");
@@ -14,7 +14,7 @@ markdown rule files everywhere else.
14
14
  | You want skills-only, any tool | `npx skills add ionivetech/mugiwara` (agentskills.io layout) |
15
15
  | You only use one niche tool | Its per-harness guide (index → install by harness) |
16
16
 
17
- Native targets (Claude Code, opencode, Copilot) register the 15 agents directly.
17
+ Native targets (Claude Code, opencode, Copilot) register the 14 agents directly.
18
18
  Rule-based targets (Gemini, Codex, Cursor, Windsurf, Cline, Kilo, Antigravity)
19
19
  get the same 32 skills as markdown rules plus a bootstrap pointer, so the crew
20
20
  is still steered even where subagents don't exist.
package/docs/agents.md CHANGED
@@ -1,12 +1,14 @@
1
- # The Crew — 15 Agents
1
+ # The Crew — 14 Agents
2
2
 
3
3
  Every agent is a focused specialist. The main thread embodies each role inline
4
4
  using its skill; you can also summon any member directly. "Dispatch" below
5
5
  means "route the mission to this role."
6
6
 
7
+ The front door is the `using-mugiwara` skill — load it for crew overview.
8
+ Slash command: `/using-mugiwara`.
9
+
7
10
  | Agent | Crew member | Role | Summon for |
8
11
  |-------|-------------|------|------------|
9
- | `using-mugiwara` | Front Door | Router — classifies and routes, never implements | "how do I use mugiwara?", any new mission |
10
12
  | `luffy-orchestrator` | Luffy | Captain — 5-way triage, check-ins, decisions, closure | mission start, wave boundaries, escalations |
11
13
  | `usopp-brainstorm` | Usopp | Critical friend — interrogates, researches, no rubber-stamps | vague ideas, direction, options |
12
14
  | `nami-planner` | Nami | Planner — interview-first, full-context scan, scaled plans | turning an idea into an execution plan |
@@ -44,7 +46,7 @@ check-ins. The harness stays coherent either way.
44
46
 
45
47
  ## The crew ships whole
46
48
 
47
- Every install gets all 15 agents and all 26 skills. No project-type selection —
49
+ Every install gets all 14 agents and all 26 skills. No project-type selection —
48
50
  the harness routes each task to the right specialist.
49
51
 
50
52
  See [skills.md](skills.md) for the 26 techniques, or
@@ -27,7 +27,7 @@ npx @ionivetech/mugiwara@latest --project ./my-app --target claude --yes
27
27
  ## What you get
28
28
 
29
29
  - 32 skills in `~/.claude/skills/` (global) or `.claude/skills/` (project).
30
- - 15 agents in `~/.claude/agents/` or `.claude/agents/`.
30
+ - 14 agents in `~/.claude/agents/` or `.claude/agents/`.
31
31
  - A SessionStart hook that announces the crew and auto-activates the workflow —
32
32
  a non-trivial request runs the pipeline by itself. `/using-mugiwara` is an
33
33
  optional explicit router if you want to hand-route a mission.
@@ -45,7 +45,7 @@ resolve to `content/` and never diverge.
45
45
  ## Validation
46
46
 
47
47
  ```bash
48
- bun run validate # 32 skills + 15 agents: names, descriptions, skip gates, line limits
48
+ bun run validate # 26 skills + 14 agents: names, descriptions, skip gates, line limits
49
49
  bun run validate --check-sync # symlinks resolve to content/, never diverge
50
50
  bun run typecheck # tsc --noEmit
51
51
  bun run test # vitest
@@ -150,7 +150,7 @@ six. See [audit-trail.md](audit-trail.md) for the full artifact map.
150
150
 
151
151
  ## 6. Next steps
152
152
 
153
- - Meet the [crew](agents.md) — 15 agents with permission boundaries.
153
+ - Meet the [crew](agents.md) — 14 agents with permission boundaries.
154
154
  - Browse the [skills](skills.md) — 26 skills with the 3-layer disclosure model.
155
155
  - Understand the [lanes](lanes.md) — how work is sized before it runs.
156
156
  - Set your [mode](modes.md) — guided/semi/auto.
package/docs/index.md CHANGED
@@ -19,7 +19,7 @@ claim.
19
19
  | [Modes](modes.md) | guided / semi / auto — the autonomy levels, what each asks you |
20
20
  | [Config](config.md) | Full reference for `.mugiwara/config` keys and commit styles |
21
21
  | [Auto-PR](pr-summary.md) | What the crew hands off at closure: push + a ready-to-paste PR summary (it never creates a PR) |
22
- | [The crew](agents.md) | All 15 agents and when to summon each |
22
+ | [The crew](agents.md) | All 14 agents and when to summon each |
23
23
  | [The techniques](skills.md) | All 32 skills and what each enforces |
24
24
  | [The wave pipeline](workflow.md) | How a mission flows Wave 0 → Wave 9 |
25
25
  | [Execution model](execution-model.md) | Inline-by-default: why the crew runs in your main conversation |
@@ -0,0 +1,45 @@
1
+ # Antigravity Install
2
+
3
+ Mugiwara installs as an Antigravity plugin from this repo.
4
+
5
+ ## Prerequisites
6
+
7
+ - [Antigravity](https://antigravity.google) installed
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ agy plugin install https://github.com/ionivetech/mugiwara
13
+ ```
14
+
15
+ ## How it works
16
+
17
+ Antigravity reads `.agents/plugins/marketplace.json` and installs the plugin
18
+ from the repo root. Skills and agents are auto-discovered.
19
+
20
+ ## Verify
21
+
22
+ Ask:
23
+
24
+ ```
25
+ what mugiwara crew members are available?
26
+ ```
27
+
28
+ ## Update
29
+
30
+ Reinstall with the same command:
31
+
32
+ ```bash
33
+ agy plugin install https://github.com/ionivetech/mugiwara
34
+ ```
35
+
36
+ ## Uninstall
37
+
38
+ ```bash
39
+ agy plugin uninstall mugiwara
40
+ ```
41
+
42
+ ## Configuration
43
+
44
+ After install, configure mugiwara in `.mugiwara/config` (project) or
45
+ `~/.mugiwara/config` (global). See [docs/config.md](config.md).
@@ -0,0 +1,75 @@
1
+ # Claude Code Install
2
+
3
+ Mugiwara is a full Claude Code native plugin with agents, skills, and a
4
+ session-start hook.
5
+
6
+ ## Prerequisites
7
+
8
+ - [Claude Code](https://claude.ai/code) installed
9
+ - Node.js >= 20.11
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara@mugiwara
15
+ ```
16
+
17
+ ## How it works
18
+
19
+ Claude Code clones the repo and reads from:
20
+
21
+ - `skills/` and `agents/` — symlinks to `content/skills/` and
22
+ `content/agents/`. Claude Code auto-discovers all 26 skills and 14 agents.
23
+ - `hooks/hooks.json` — defines a SessionStart hook that runs
24
+ `hooks/session-start.ts`, injecting the crew announce header at every
25
+ session start.
26
+
27
+ The hook announces: "Mugiwara crew available. The workflow auto-activates
28
+ for non-trivial requests..."
29
+
30
+ ## Verify
31
+
32
+ Ask:
33
+
34
+ ```
35
+ what mugiwara crew members are available?
36
+ ```
37
+
38
+ Or start any task — the crew auto-activates at session start.
39
+
40
+ ## Update
41
+
42
+ ```
43
+ /plugin update mugiwara
44
+ ```
45
+
46
+ ## Uninstall
47
+
48
+ ```
49
+ /plugin uninstall mugiwara
50
+ ```
51
+
52
+ ## Configuration
53
+
54
+ After install, configure mugiwara in `.mugiwara/config` (project) or
55
+ `~/.mugiwara/config` (global). See [docs/config.md](config.md).
56
+
57
+ Switch autonomy mode with `/mugiwara-mode guided|semi|auto`.
58
+
59
+ ## Troubleshooting
60
+
61
+ ### Plugin not showing up
62
+
63
+ 1. Verify marketplace is registered: `/plugin marketplace list`
64
+ 2. If not, re-run the marketplace add command
65
+ 3. Check Claude Code is up to date
66
+
67
+ ### Skills not found
68
+
69
+ 1. Check that `skills/` and `agents/` symlinks resolve correctly
70
+ 2. Reinstall: `/plugin uninstall mugiwara` then reinstall
71
+
72
+ ### Hook not running
73
+
74
+ The session-start hook requires Claude Code plugin hook support. Ensure
75
+ you're on a recent Claude Code version.