@ionivetech/mugiwara 0.1.3 → 0.2.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.
Files changed (56) hide show
  1. package/.opencode/plugins/mugiwara.mjs +102 -0
  2. package/README.md +196 -216
  3. package/content/agents/brook-healing.md +8 -2
  4. package/content/agents/chopper-checkpoint.md +9 -4
  5. package/content/agents/eval-runner.md +5 -1
  6. package/content/agents/franky-gates.md +9 -4
  7. package/content/agents/jinbe-security.md +5 -1
  8. package/content/agents/luffy-orchestrator.md +14 -8
  9. package/content/agents/memory-keeper.md +4 -0
  10. package/content/agents/nami-planner.md +12 -5
  11. package/content/agents/resume-coordinator.md +5 -1
  12. package/content/agents/robin-reviewer.md +5 -1
  13. package/content/agents/sanji-quality.md +7 -3
  14. package/content/agents/skeptic-verifier.md +5 -1
  15. package/content/agents/using-mugiwara.md +11 -7
  16. package/content/agents/usopp-brainstorm.md +9 -3
  17. package/content/agents/zoro-execution.md +16 -11
  18. package/content/skills/mugiwara-backend/SKILL.md +12 -0
  19. package/content/skills/mugiwara-brainstorm/SKILL.md +28 -1
  20. package/content/skills/mugiwara-checkpoint/SKILL.md +8 -6
  21. package/content/skills/mugiwara-deprecation/SKILL.md +77 -0
  22. package/content/skills/mugiwara-dynamic-workflow/SKILL.md +3 -3
  23. package/content/skills/mugiwara-execution/SKILL.md +32 -15
  24. package/content/skills/mugiwara-gates/SKILL.md +4 -0
  25. package/content/skills/mugiwara-git/SKILL.md +10 -0
  26. package/content/skills/mugiwara-healing/SKILL.md +9 -3
  27. package/content/skills/mugiwara-mode/SKILL.md +63 -0
  28. package/content/skills/mugiwara-orchestration/SKILL.md +26 -8
  29. package/content/skills/mugiwara-planning/SKILL.md +50 -25
  30. package/content/skills/mugiwara-pr/SKILL.md +51 -0
  31. package/content/skills/mugiwara-quality/SKILL.md +19 -2
  32. package/content/skills/mugiwara-resume/SKILL.md +6 -4
  33. package/content/skills/mugiwara-testcases/SKILL.md +52 -0
  34. package/content/skills/mugiwara-workflow/SKILL.md +36 -13
  35. package/docs/adoption-guide.md +72 -0
  36. package/docs/agent-anatomy.md +72 -0
  37. package/docs/agents.md +51 -0
  38. package/docs/claude-setup.md +38 -0
  39. package/docs/codex-setup.md +24 -0
  40. package/docs/comparison.md +63 -0
  41. package/docs/copilot-setup.md +27 -0
  42. package/docs/cursor-setup.md +23 -0
  43. package/docs/developer-onboarding.md +85 -0
  44. package/docs/execution-model.md +59 -0
  45. package/docs/gemini-setup.md +24 -0
  46. package/docs/getting-started.md +84 -0
  47. package/docs/git-strategy.md +62 -0
  48. package/docs/index.md +45 -0
  49. package/docs/modes.md +64 -0
  50. package/docs/opencode-setup.md +47 -0
  51. package/docs/rule-based-setup.md +31 -0
  52. package/docs/skill-anatomy.md +73 -0
  53. package/docs/skills.md +61 -0
  54. package/docs/windsurf-setup.md +16 -0
  55. package/docs/workflow.md +80 -0
  56. package/package.json +19 -2
package/README.md CHANGED
@@ -2,11 +2,6 @@
2
2
 
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
- [![npm downloads](https://img.shields.io/npm/dm/@ionivetech%2fmugiwara)](https://www.npmjs.com/package/@ionivetech/mugiwara)
6
- [![CI](https://img.shields.io/github/actions/workflow/status/ionivetech/mugiwara/ci.yml?branch=main&label=ci)](https://github.com/ionivetech/mugiwara/actions)
7
- [![TypeScript](https://img.shields.io/badge/types-TypeScript-3178c6)](https://github.com/ionivetech/mugiwara)
8
- [![Bun](https://img.shields.io/badge/bundler-Bun-black)](https://bun.sh)
9
- [![GitHub](https://img.shields.io/badge/GitHub-ionivetech%2Fmugiwara-181717?logo=github)](https://github.com/ionivetech/mugiwara)
10
5
 
11
6
  The Straw Hat crew of AI agents and skills.
12
7
 
@@ -18,8 +13,8 @@ machinery — no daemons, no plugins to keep updated, nothing to host.
18
13
  - 🧭 **A named crew.** Ten specialist agents — Luffy orchestrates, Nami plans,
19
14
  Zoro executes, Chopper audits, Brook heals — each with a narrow job.
20
15
  - 📦 **No runtime.** Ships markdown only: native skills and agents for
21
- Claude Code, opencode, Copilot, Gemini CLI, Codex, Windsurf, Cline,
22
- Kilo Code, and Antigravity.
16
+ Claude Code, opencode, Copilot, Gemini CLI, Codex, Cursor, Kimi, pi,
17
+ Windsurf, Cline, Kilo Code, and Antigravity.
23
18
  - 🔁 **Wave pipeline.** brainstorm → plan → execute → audit → quality → gates
24
19
  → review → security → heal → closure. Failure loops back through healing
25
20
  (max 3 cycles), never ships broken.
@@ -32,8 +27,9 @@ machinery — no daemons, no plugins to keep updated, nothing to host.
32
27
 
33
28
  ### The crew — 15 agents
34
29
 
35
- Each agent is a focused specialist. Agents are dispatched by your AI tool's
36
- subagent machinery and may call the crew's shared skills.
30
+ Each agent is a focused specialist. The main thread embodies each crew role
31
+ inline using its skill; agents may also be summoned directly by your AI tool's
32
+ agent machinery and may call the crew's shared skills.
37
33
 
38
34
  | Agent | Crew member | Role |
39
35
  |-------|-------------|------|
@@ -41,8 +37,8 @@ subagent machinery and may call the crew's shared skills.
41
37
  | `luffy-orchestrator` | Luffy | Main gateway: 5-way triage, background check-ins, work splitting, decision log, closure |
42
38
  | `usopp-brainstorm` | Usopp | Critical brainstorming friend: facts over hype, options + trade-offs, no over-engineering |
43
39
  | `nami-planner` | Nami | Interview-first planner: full-context scan, wave structure, anti-patterns, parallel-safe plans |
44
- | `zoro-execution` | Zoro | Execute plans: todo list first, parallel/sequential subagent dispatch, evidence per task |
45
- | `chopper-checkpoint` | Chopper | Verify-everything audit of wave results; writes the failure ledger (never fixes code) |
40
+ | `zoro-execution` | Zoro | Execute plans inline: todo list first, sequential tasks in the main thread, parallel batches via worker subagents, evidence per task |
41
+ | `chopper-checkpoint` | Chopper | Verify-everything audit of wave results (deduped + scoped re-runs); writes the failure ledger (never fixes code) |
46
42
  | `sanji-quality` | Sanji | Discover the stack, then format/lint/test; integration tests only with consent |
47
43
  | `franky-gates` | Franky | Binary gates: coverage ≥90/80, build exit 0, Definition of Done |
48
44
  | `robin-reviewer` | Robin | Doubt-driven diff review: breaking-change first, five-axis, severity-tagged findings |
@@ -53,24 +49,28 @@ subagent machinery and may call the crew's shared skills.
53
49
  | `resume-coordinator` | Resume Coordinator | Rebuild the picture from `.mugiwara/` state after context loss; continue, never restart |
54
50
  | `memory-keeper` | Memory Keeper | Institutional memory: surface past lessons at mission start, capture new ones at closure |
55
51
 
56
- ### The techniques — 21 skills
52
+ ### The techniques — 25 skills
57
53
 
58
54
  | Skill | Purpose |
59
55
  |-------|---------|
60
- | `mugiwara-workflow` | The harness entry point: gateway triage, wave pipeline, workspace layout, blocker protocol, cleanup |
56
+ | `mugiwara-workflow` | The harness entry point: inline execution model, gateway triage, wave pipeline, workspace layout, blocker protocol, cleanup |
61
57
  | `mugiwara-orchestration` | Luffy's captain behavior: 5-way classifier, check-ins, work splitting, decision log, closure |
58
+ | `mugiwara-mode` | Runtime levels guided / semi / auto via `.mugiwara/config`: branch + commit style, consent invariants, gated auto-GO, push + ready-PR terminal |
62
59
  | `mugiwara-brainstorm` | Usopp's critical sparring: interrogate, research facts, cut over-engineering, recommend |
63
60
  | `mugiwara-planning` | Interview-first, full-context scan, wave plans with parallel/sequential markers + anti-patterns |
64
- | `mugiwara-execution` | Todo list, parallel batches + sequential chains, 6-field subagent delegation, one task one commit |
65
- | `mugiwara-checkpoint` | Verify-everything audit of every acceptance criterion; failure rows to the blocker ledger |
66
- | `mugiwara-quality` | Discover the project's real tooling; formatter, linter, unit + consent-gated integration tests |
67
- | `mugiwara-gates` | Coverage ≥90% new / ≥80% modified files, build validation, Definition of Done |
61
+ | `mugiwara-execution` | Todo list, sequential tasks inline + parallel worker batches, 6-field delegation for parallel work, one commit per logical task |
62
+ | `mugiwara-checkpoint` | Verify-everything audit of every acceptance criterion — deduped and scoped to the wave's diff; failure rows to the blocker ledger |
63
+ | `mugiwara-quality` | Discover the project's real tooling; formatter, linter, unit tests, declared user suites under the consent matrix |
64
+ | `mugiwara-gates` | Coverage ≥90% new / ≥80% modified files, build validation, Definition of Done; user-AC verdict overrides thresholds |
65
+ | `mugiwara-testcases` | User-test intake (ATDD): accepted formats, immutable-gold rule, declarative-AC routing, consent, failure adjudication |
68
66
  | `mugiwara-review` | Doubt-driven review: breaking-change analysis, five-axis, severity-tagged findings |
69
67
  | `mugiwara-security` | OWASP-driven security review, untrusted-data doctrine, severity by exploitability × impact |
70
68
  | `mugiwara-healing` | Reads the ledger, Stop-the-Line + Prove-It root-cause fixes, rollback prep |
69
+ | `mugiwara-deprecation` | Sunset & migration discipline: keep-or-retire gate, cutover playbooks, safe schema changes |
71
70
  | `mugiwara-frontend` | Anti-slop frontend: audit-first redesigns, design-system extraction, slop list |
72
71
  | `mugiwara-git` | Atomic commits, save-points, multi-commit splitting, bisect/blame debugging |
73
72
  | `mugiwara-ship` | GO/NO-GO ship gate: pre-launch checklist, feature flags, rollback plan |
73
+ | `mugiwara-pr` | CI/CD loop terminal: one verdict file + one comment + one check-run on the ready PR via `gh`, stop-at-PR invariant |
74
74
  | `mugiwara-dynamic-workflow` | Runtime workflow patterns: fan-out-and-synthesize, tournament, loop-until-done, classify-and-act, adversarial verification |
75
75
  | `mugiwara-agent-security` | Secure the agent layer: prompt injection, memory poisoning, excessive agency, secret handling, sandboxing |
76
76
  | `mugiwara-backend` | Backend/server code: repo standards first, API design, data integrity, error handling, correctness, performance, server-side security |
@@ -81,7 +81,7 @@ subagent machinery and may call the crew's shared skills.
81
81
 
82
82
  ### Every capability, always
83
83
 
84
- Every install ships the full crew — all 21 skills and 15 agents, including
84
+ Every install ships the full crew — all 25 skills and 15 agents, including
85
85
  the anti-slop `mugiwara-frontend`, `mugiwara-backend`, and `mugiwara-agent-security`
86
86
  skills. No project-type selection: you get every capability, and the harness
87
87
  routes each task to the right skill.
@@ -94,24 +94,25 @@ feeds the **Luffy gateway**, which classifies the request (trivial / explicit /
94
94
  exploratory / open-ended / ambiguous) and routes it: exploratory ideas go to
95
95
  Usopp's brainstorm, clear work goes straight to Nami's planning. You can also
96
96
  summon any crew member directly. From there the mission runs as a **wave
97
- pipeline** owned by one crew member per wave.
97
+ pipeline** owned by one crew member per wave, executed inline in your main
98
+ conversation.
98
99
 
99
100
  ```mermaid
100
101
  flowchart TD
101
- A[User request] --> F[using-mugiwara<br/>front door]
102
- F --> B{Luffy gateway<br/>5-way triage}
103
- B -- exploratory --> C[Usopp brainstorm<br/>.mugiwara/spec/]
104
- B -- clear work --> D[Nami plan<br/>.mugiwara/plans/]
105
- C --> D
106
- D --> E[Zoro execute<br/>parallel / sequential]
107
- E --> F[Chopper audit<br/>failure ledger]
108
- F --> G[Sanji quality]
109
- G --> H[Franky gates]
110
- H --> I[Robin + Jinbe review<br/>parallel]
111
- I -- pass --> J[Luffy closure<br/>ship gate]
112
- I -- fail --> K[Brook heal<br/>max 3 cycles]
113
- K --> F
114
- J --> L[.mugiwara/ cleanup]
102
+ U[User request] --> FD[using-mugiwara]
103
+ FD --> G{Luffy triage}
104
+ G -- exploratory --> B[Usopp brainstorm]
105
+ G -- clear work --> N[Nami plan]
106
+ B --> N
107
+ N --> Z[Zoro execute]
108
+ Z --> CP[Chopper audit]
109
+ CP --> SQ[Sanji quality]
110
+ SQ --> FG[Franky gates]
111
+ FG --> RJ[Robin + Jinbe review]
112
+ RJ -- pass --> LC[Luffy closure]
113
+ RJ -- fail --> BH[Brook heal]
114
+ BH --> CP
115
+ LC --> CL[cleanup]
115
116
  ```
116
117
 
117
118
  The same pipeline as a portable table (renders anywhere markdown does):
@@ -127,16 +128,57 @@ The same pipeline as a portable table (renders anywhere markdown does):
127
128
  | 6 Gates | Franky | `mugiwara-gates` | coverage + build verdict |
128
129
  | 7 Review | Robin ∥ Jinbe | `mugiwara-review` + `mugiwara-security` | severity-tagged findings (parallel) |
129
130
  | 8 Healing | Brook | `mugiwara-healing` | fixes; loops back to Wave 4, max 3 cycles |
130
- | 9 Closure | Luffy | `mugiwara-orchestration` | closure report appended to the plan |
131
+ | 9 Closure | Luffy | `mugiwara-orchestration` | push + ready PR, verdict comment + check-run via `mugiwara-pr`, closure report in `.mugiwara/results/` + cleanup |
132
+
133
+ ### Modes
134
+
135
+ The crew runs at one of three autonomy levels, set in `.mugiwara/config`
136
+ (project, overrides global `~/.mugiwara/config`):
137
+
138
+ ```
139
+ mode=guided
140
+ branch=feature/{type}-{issue}-{slug}
141
+ commit=conventional
142
+ ```
143
+
144
+ | Level | Plan GO | Branch / commits | Ambiguities | Check-ins |
145
+ |-------|---------|------------------|-------------|-----------|
146
+ | **guided** | ask the user | ask the user | ask the user | ask the user |
147
+ | **semi** | present plan for user GO | auto | self-answer + log | log, no pause |
148
+ | **auto** | gated auto-GO | auto | self-answer + log | log, no pause |
149
+
150
+ - **guided** — the default, for when you want to steer everything. You approve
151
+ the plan, decide branch and commit style, answer ambiguities, and get asked at
152
+ every gate.
153
+ - **semi** — the crew self-manages branch, commits, and ambiguities (logging
154
+ each decision), but you still give the plan an explicit GO.
155
+ - **auto** — hands-off, with one safety line: the plan proceeds past approval
156
+ only with zero blocking ambiguities AND zero high-risk tasks (deploy /
157
+ migration / DB / public API / state-mutating). Otherwise it stops for you.
158
+
159
+ Two invariants hold in **every** mode:
160
+
161
+ - **Consent.** State-mutating tests against non-isolated/shared state (real DB
162
+ writes, network, browsers) always require your explicit consent. Provably
163
+ isolated mutation (in-memory / temp / testcontainer-backed) is auto-safe.
164
+ - **Terminal.** Every mode ends at push + ready PR + verdict file handed to
165
+ you — the crew never merges, never deploys, never auto-reacts to review
166
+ comments or CI.
167
+
168
+ Flip mid-mission with the in-session phrase `mugiwara mode <guided|semi|auto>` —
169
+ the change applies from the next wave, never mid-wave. Missing config on read =
170
+ `guided`. See `mugiwara-mode` for the full contract.
171
+
172
+ Alongside modes: declared user test cases are taken in as ATDD gold
173
+ (`mugiwara-testcases`); every mission ends at a push + ready PR with one verdict
174
+ comment + check-run (`mugiwara-pr`).
131
175
 
132
176
  Two rules hold the pipeline together:
133
177
 
134
178
  - **Evidence over claims.** No wave passes on assertion — the owning agent runs
135
179
  the checks and shows output. A wave that cannot produce evidence is a failed
136
180
  wave. ("Subagents lie. No evidence = not complete.")
137
- - **The plan is the source of truth.** From Wave 2 on, everything lives in
138
- `.mugiwara/plans/<date>-<mission>.md`. No wave is skipped without the reason
139
- recorded there.
181
+ - **The plan is the source of truth.** From Wave 2 on, `.mugiwara/plans/<date>-<mission>.md` holds the clean execution plan; the decision log (`logs/`) holds the who-and-why trace. No wave is skipped without the reason recorded there.
140
182
 
141
183
  ### The `.mugiwara/` workspace
142
184
 
@@ -144,61 +186,128 @@ Every mission works inside `.mugiwara/` at the repo root:
144
186
 
145
187
  ```
146
188
  .mugiwara/
189
+ ├── config # runtime mode config: mode/branch/commit/pr key=value (gitignored; project overrides global)
147
190
  ├── spec/ # brainstorm output: YYYY-MM-DD-<mission>.md
148
- ├── plans/ # plan docs — single source of truth from Wave 2
149
- ├── results/ # wave results: audits, test output, gate verdicts, todos
191
+ ├── plans/ # plan docs — clean, Nami-only, single source of truth from Wave 2
192
+ ├── results/ # wave results: audits, test output, gate verdicts, todos, closure report
150
193
  ├── review/ # review + security findings
151
194
  ├── issues/ # blocker + failure ledger: YYYY-MM-DD-<mission>-blockers.md
152
- └── logs/ # Luffy's decision log
195
+ └── logs/ # Luffy's decision + check-in log per mission (deleted at cleanup)
153
196
  ```
154
197
 
198
+ Every non-trivial mission starts with `using-mugiwara`, which routes through the
199
+ Luffy gateway; from Wave 2 the mission runs as a wave pipeline owned by one crew
200
+ member per wave. **The main thread runs every wave inline** — it embodies each
201
+ crew role using that member's skill, so the whole pipeline plays out in your
202
+ main conversation and you watch it as it happens. Subagents are used only where
203
+ they genuinely help: independent `[PARALLEL]` task batches and background
204
+ checks. No work is hidden behind a subagent expand-click.
205
+
155
206
  **Blocker protocol:** any crew member that hits a blocker appends a row
156
207
  (`wave | task | symptom | attempted | help-needed`) to
157
208
  `.mugiwara/issues/YYYY-MM-DD-<mission>-blockers.md` and escalates — never a silent
158
209
  workaround. Brook reads the ledger in Wave 8 and heals what it lists.
159
210
 
160
211
  **Cleanup:** at closure, Luffy deletes the superseded intermediate markdown
161
- files (consumed results, review, and issues reports). The plan doc and closure
162
- report stay.
212
+ files (consumed results, review, issues, and per-mission decision logs). The
213
+ plan doc and the closure report stay.
163
214
 
164
215
  The owning agent creates the folder it needs on first write. Mission artifacts
165
216
  never land outside `.mugiwara/`.
166
217
 
167
218
  ## Install
168
219
 
169
- Requires **Node.js >= 20.11**. Bun is optional — you only need it to build
170
- from source.
220
+ ### Via your AI agent
221
+
222
+ Install the crew straight from your agent's own plugin system — no CLI needed.
223
+ Pick your harness:
224
+
225
+ **Claude Code** (fully supported — agents + skills + SessionStart hook)
226
+
227
+ ```bash
228
+ /plugin marketplace add ionivetech/mugiwara
229
+ /plugin install mugiwara
230
+ ```
231
+
232
+ **GitHub Copilot CLI** (same marketplace)
233
+
234
+ ```bash
235
+ copilot plugin marketplace add ionivetech/mugiwara
236
+ copilot plugin install mugiwara
237
+ ```
238
+
239
+ **opencode** (native skills + agents via the opencode plugin)
240
+
241
+ ```json
242
+ { "plugin": ["@ionivetech/mugiwara"] }
243
+ ```
244
+
245
+ Or from the git repo directly:
246
+
247
+ ```json
248
+ { "plugin": ["mugiwara@git+https://github.com/ionivetech/mugiwara.git"] }
249
+ ```
250
+
251
+ **Codex**
252
+
253
+ ```bash
254
+ codex plugin marketplace add ionivetech/mugiwara
255
+ codex plugin add mugiwara@mugiwara
256
+ ```
257
+
258
+ **Cursor**
259
+
260
+ ```
261
+ /add-plugin mugiwara
262
+ ```
263
+
264
+ **Gemini CLI**
265
+
266
+ ```bash
267
+ gemini extensions install https://github.com/ionivetech/mugiwara
268
+ ```
269
+
270
+ **Kimi Code**
271
+
272
+ ```
273
+ /plugins install https://github.com/ionivetech/mugiwara
274
+ ```
275
+
276
+ **pi**
277
+
278
+ ```bash
279
+ pi install git:github.com/ionivetech/mugiwara
280
+ ```
281
+
282
+ Agent installs register the 25 skills; the agents (Luffy, Nami, Zoro, …) come
283
+ natively with the harnesses that support them (Claude Code, opencode). On
284
+ harnesses that install skills only (Gemini, Codex, Cursor, Kimi, pi), the
285
+ agents are available via the CLI below.
286
+
287
+ ### Via script / CLI
171
288
 
172
- ### npx
289
+ Requires **Node.js >= 20.11**. Bun is optional — only needed to build from
290
+ source.
173
291
 
174
292
  ```bash
175
- # npx — run without installing (recommended)
293
+ # npx — run without installing
176
294
  npx @ionivetech/mugiwara@latest
177
295
 
178
- # interactive wizard (scope, target agent)
179
296
  # non-interactive: global Claude Code install, no prompts
180
297
  npx @ionivetech/mugiwara@latest --global --target claude --yes
181
298
 
182
299
  # non-interactive: project install for opencode + GitHub Copilot
183
300
  npx @ionivetech/mugiwara@latest --project ./my-app --target opencode,copilot --yes
184
- ```
185
-
186
- ### npm — global install
187
301
 
188
- ```bash
189
302
  # npm — global install, run `mugiwara` anywhere
190
303
  npm install -g @ionivetech/mugiwara
191
304
  ```
192
305
 
193
- ### curl — macOS / Linux
194
-
195
306
  ```bash
196
- # curl — macOS/Linux one-liner
307
+ # curl — macOS / Linux one-liner
197
308
  curl -fsSL https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.sh | bash
198
309
  ```
199
310
 
200
- ### PowerShell — Windows
201
-
202
311
  ```powershell
203
312
  # PowerShell — Windows one-liner
204
313
  irm https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.ps1 | iex
@@ -207,20 +316,18 @@ irm https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.p
207
316
  The `install.sh` / `install.ps1` scripts check your Node version, then run the
208
317
  same CLI (`npx -y @ionivetech/mugiwara@latest`), forwarding any flags you pass.
209
318
 
210
- ### skills.sh — skills only, any agent
211
-
212
- The 21 skills also ship in the standard [agentskills.io](https://agentskills.io)
213
- layout (`skills/<name>/SKILL.md`), so you can install just the skills into
214
- Claude Code, opencode, Copilot, Cursor, Codex, Gemini CLI, and 70+ other agents
215
- via the [skills.sh](https://skills.sh) CLI:
319
+ **Skills only, any agent** the 25 skills also ship in the standard
320
+ [agentskills.io](https://agentskills.io) layout (`skills/<name>/SKILL.md`), so
321
+ you can install just the skills into Claude Code, opencode, Copilot, Cursor,
322
+ Codex, Gemini CLI, and 70+ other agents via [skills.sh](https://skills.sh):
216
323
 
217
324
  ```bash
218
325
  npx skills add ionivetech/mugiwara
219
326
  ```
220
327
 
221
- Skills only — the agents (Luffy, Nami, Zoro, …) are harness-specific and install
222
- via the mugiwara CLI or Claude plugin above. `mugiwara skills` lists the
223
- installable set.
328
+ Skills only — agents (Luffy, Nami, Zoro, …) are harness-specific and install
329
+ via the agent-native methods above or the mugiwara CLI. `mugiwara skills`
330
+ lists the installable set.
224
331
 
225
332
  ### Requirements
226
333
 
@@ -234,7 +341,7 @@ installable set.
234
341
  ```console
235
342
  $ npx @ionivetech/mugiwara@latest --global --target claude --yes
236
343
  mugiwara — installing crew for: claude
237
- ✓ claude 15 agents, 21 skills → ~/.claude/skills + ~/.claude/agents
344
+ ✓ claude 15 agents, 25 skills → ~/.claude/skills + ~/.claude/agents
238
345
  ✓ manifest wrote ~/.mugiwara/manifest.json
239
346
  ✓ done 24 files written
240
347
 
@@ -319,169 +426,42 @@ For rule-based targets, skills land as `mugiwara-*.md` and agents as
319
426
  create it if it doesn't exist and otherwise tell you the line to add, so your
320
427
  tool points at the crew.
321
428
 
322
- ## Claude Code plugin install
323
-
324
- Mugiwara also ships as a **Claude Code plugin** with a marketplace — the
325
- primary target. The plugin bundles the 15 agents + 21 skills as copies at the
326
- repo root (`agents/`, `skills/`) plus a `SessionStart` hook that announces the
327
- crew. Regenerate the copies from `content/` with `.claude-plugin/sync.sh`.
328
-
329
- ```bash
330
- # Claude Code (fully supported)
331
- /plugin marketplace add ionivetech/mugiwara
332
- /plugin install mugiwara
333
- ```
334
-
335
- GitHub Copilot CLI can read the same `.claude-plugin/` marketplace and consume
336
- the skills as native Copilot skills:
337
-
338
- ```bash
339
- # GitHub Copilot CLI (skills + marketplace readable)
340
- copilot plugin marketplace add ionivetech/mugiwara
341
- copilot plugin install mugiwara
342
- ```
343
-
344
- > **Copilot caveat.** The agents are **Claude-native `.md` files** — they will
345
- > not auto-discover in Copilot and may need `.agent.md` conversion to work as
346
- > Copilot plugin agents. Skills install and function; agents are best consumed
347
- > through the regular CLI install path (which writes Copilot-native
348
- > `.instructions.md` skills and `.md` agents).
349
-
350
- ## FAQ / troubleshooting
351
-
352
- **Why is the content so short?** The skills are dense instructions, not prose.
353
- Each agent/skill file is one flat-frontmatter markdown doc, body ≤120 lines —
354
- short enough for your AI tool to read fully and act on. Density beats verbosity:
355
- the harness doesn't ship essays, it ships protocols.
356
-
357
- **Do I need Bun?** No. The runtime is plain Node.js >= 20.11 — the built
358
- artifact (`dist/mugiwara.js`) runs on Node. Bun is only for building from
359
- source and running tests.
360
-
361
- **How is Mugiwara different from a framework like CrewAI?** CrewAI is a
362
- runtime you program against. Mugiwara is content-only: markdown skills and
363
- agents your existing AI tool loads natively and executes with its own subagent
364
- machinery. There is no runtime, no SDK, nothing to host.
365
-
366
- **Does it work on Windows?** Yes — PowerShell one-liner
367
- (`irm ...install.ps1 | iex`), and the CLI itself runs anywhere Node >= 20.11
368
- does.
429
+ ## Plugin manifests
369
430
 
370
- **How do I uninstall?** `mugiwara uninstall` removes exactly what the install
371
- manifest recorded nothing more, nothing less. For a plugin install, remove it
372
- from the plugin marketplace/manager instead.
431
+ Beyond the Claude Code marketplace, mugiwara ships native plugin manifests at
432
+ the repo root so each harness's own installer can pick it up:
373
433
 
374
- **Why is the npm package `@ionivetech/mugiwara` and not `mugiwara`?**
375
- `mugiwara` is taken on npm. The package is scoped as `@ionivetech/mugiwara`;
376
- all install methods above already point at the scoped name.
434
+ | Manifest | Harness |
435
+ |----------|---------|
436
+ | `.claude-plugin/` | Claude Code + GitHub Copilot CLI (marketplace) |
437
+ | `.opencode/plugins/mugiwara.mjs` | opencode (`plugin` array in `opencode.json`) |
438
+ | `gemini-extension.json` + `GEMINI.md` | Gemini CLI |
439
+ | `.codex-plugin/plugin.json` | Codex |
440
+ | `.cursor-plugin/plugin.json` | Cursor |
441
+ | `.kimi-plugin/plugin.json` | Kimi Code |
442
+ | `package.json` `"pi"` | pi |
377
443
 
378
- **Where does a plugin install put files?** At the repo root of the plugin
379
- itself (`agents/`, `skills/`), plus a `SessionStart` hook it does not copy
380
- into your project's `.claude/`. The CLI install is what writes into your
381
- project or home directory.
444
+ All manifests are skills-only and mirror `content/` as the source of truth
445
+ no hooks, no runtime. The opencode plugin also registers the 15 agents as
446
+ subagents. Version numbers in the manifests sync from `package.json` via
447
+ `bun run sync-version` (runs automatically on publish).
382
448
 
383
- **How do updates work?** `mugiwara update` replaces installed files, backing up
384
- differences to `.mugiwara/backup/<timestamp>/` first. Plugin installs update
385
- through the plugin marketplace when the repo publishes new content.
386
-
387
- ## Development
388
-
389
- ### Prerequisites
390
-
391
- - **Bun** — the build and test toolchain
392
- - **Node.js >= 20.11** — the built artifact runs on plain Node
393
-
394
- ```bash
395
- bun install # install dev dependencies
396
- bun run build # bundle src/cli.ts → dist/mugiwara.js (Bun, ESM, node target)
397
- bun run test # vitest suites
398
- bun run typecheck # tsc --noEmit
399
- bun run validate # bun scripts/validate-content.ts — content schema lint
400
- node dist/mugiwara.js --version # smoke-test the built CLI
401
- ```
402
-
403
- `bun run build` runs automatically on `npm pack` / `npm publish` (via
404
- `prepack`).
405
-
406
- ### Project layout
407
-
408
- ```
409
- mugiwara/
410
- ├── src/ # TypeScript: CLI, installer, target adapters
411
- │ └── targets/ # one adapter per AI agent (claude, opencode, gemini, ...)
412
- ├── test/ # vitest suites
413
- ├── content/ # single source of truth for the crew
414
- │ ├── skills/ # 21 skills (one dir per skill, SKILL.md inside)
415
- │ └── agents/ # 15 agents (<name>.md)
416
- ├── scripts/ # install.sh, install.ps1, validate-content.ts
417
- ├── hooks/ # Claude Code SessionStart hook (hooks.json + session-start.ts)
418
- ├── .claude-plugin/ # Claude plugin + marketplace metadata; sync.sh copies
419
- ├── agents/ # plugin copies of content/agents/ (generated by sync.sh)
420
- ├── skills/ # plugin copies of content/skills/ (generated by sync.sh)
421
- ├── dist/ # bundled CLI output (generated, gitignored)
422
- ├── docs/ # specs, plans, research
423
- └── package.json
424
- ```
425
-
426
- ### Adding a skill
427
-
428
- 1. Create `content/skills/<name>/SKILL.md` — flat frontmatter (`name`,
429
- `description`), body ≤ 120 lines.
430
- 2. Reference it from at least one agent's `skills` field in
431
- `content/agents/*.md`.
432
- 3. Run `bun run validate` to confirm it passes the schema.
433
- 4. Re-sync the plugin copies with `.claude-plugin/sync.sh`.
434
-
435
- ### Adding an agent
436
-
437
- 1. Create `content/agents/<name>.md` with a `skills` field listing the skills
438
- it calls.
439
- 2. Run `bun run validate`.
440
- 3. Re-sync with `.claude-plugin/sync.sh`.
441
-
442
- ## Content schema
443
-
444
- Every skill and agent is a single markdown file with **flat frontmatter** — no
445
- nested fields:
446
-
447
- ```yaml
448
- ---
449
- name: mugiwara-example
450
- description: Use when <trigger condition> — <what it does, how it behaves>.
451
- ---
452
-
453
- <body>
454
- ```
455
-
456
- | Rule | Detail |
457
- |------|--------|
458
- | Naming | `name` must equal the directory (skills) or file (agents) name |
459
- | Description | `description` 20–500 characters for skills, ≥20 for agents |
460
- | Trigger phrasing | Descriptions start with "Use when …" (skills) or "Dispatch when …" (agents) so your AI tool auto-selects the right one |
461
- | Skill body | ≤ 120 lines |
462
- | Agent `skills` | Every agent must list the skills it calls, comma-separated; each must exist |
463
- | References | Every skill except `mugiwara-workflow` must be referenced by at least one agent |
464
- | Uniqueness | No duplicate `name` across skills and agents |
465
-
466
- Run `bun run validate` before opening a PR — it checks all of this and exits
467
- non-zero on any violation.
449
+ > **Copilot caveat.** Copilot CLI reads the Claude marketplace for skills, but
450
+ > the agents are **Claude-native `.md` files** they do not auto-discover in
451
+ > Copilot. Skills install and function; agents are best consumed through the
452
+ > regular CLI install path (which writes Copilot-native `.instructions.md`
453
+ > skills and `.md` agents).
468
454
 
469
455
  ## Contributing
470
456
 
471
- Open an issue or pull request on GitHub. If you add content (skills/agents),
472
- follow the [content schema](#content-schema) and run `bun run validate` before
473
- opening the PR.
457
+ Open an issue or pull request on GitHub.
474
458
 
475
459
  ## Resources
476
460
 
461
+ - Docs: [docs/index.md](docs/index.md) — adoption guide, per-harness installs, crew & skill references
477
462
  - GitHub: <https://github.com/ionivetech/mugiwara>
478
463
  - npm: <https://www.npmjs.com/package/@ionivetech/mugiwara>
479
- - Star history: <https://star-history.com/#ionivetech/mugiwara>
480
464
 
481
465
  ## License
482
466
 
483
467
  MIT. Copyright (c) 2026 ionive. See [LICENSE](LICENSE).
484
-
485
- ---
486
-
487
- [![Star History Chart](https://api.star-history.com/svg?repos=ionivetech/mugiwara&type=Date)](https://star-history.com/#ionivetech/mugiwara)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: brook-healing
3
3
  description: Dispatch when any wave produced failures - test failures, gate failures, review or security findings. Triages each failure, applies minimal root-cause fixes, prepares rollback for risky ones, re-runs the failed checks.
4
- skills: mugiwara-healing, mugiwara-git
4
+ skills: mugiwara-healing, mugiwara-git, mugiwara-deprecation
5
5
  ---
6
6
 
7
7
  # Brook — Healing (Musician)
@@ -10,6 +10,10 @@ skills: mugiwara-healing, mugiwara-git
10
10
 
11
11
  Self-healing: repairs what failed in earlier waves, minimally, and proves each fix. Reads the failure ledger and works it down.
12
12
 
13
+ ## Experience
14
+
15
+ Surgeon who fixes root causes, not symptoms. Abilities: triage matrix, minimal-diff discipline, rollback prep before risky fixes, proving each fix by re-running the failed check.
16
+
13
17
  ## When dispatched
14
18
 
15
19
  Wave 8 of `mugiwara-workflow`, with failure inputs from Chopper/Sanji/Franky/Robin/Jinbe.
@@ -22,10 +26,12 @@ Wave 8 of `mugiwara-workflow`, with failure inputs from Chopper/Sanji/Franky/Rob
22
26
  4. Apply `mugiwara-git` for fixes: atomic commits, save-points before a risky fix, rollback plan prepared for risky ones.
23
27
  5. Same failure after 3 heal cycles → stop and escalate to Luffy with full history.
24
28
  6. Re-run the failed checks and attach evidence per fix.
29
+ 7. You may spawn WORKER subagents for parallel fixes; never dispatch another crew member — return the healed report inline (routes back to Chopper for re-audit).
30
+ 8. When review findings arrive (Robin/Jinbe/human), treat them as input, not verdicts: understand each one, check it against the actual code, then act. A finding that doesn't hold up gets answered with technical reasoning, never silent agreement. Work them one at a time, verifying each fix before the next.
25
31
 
26
32
  ## Output
27
33
 
28
- Fixed list + escalated list in `.mugiwara/results/<mission>-healing.md` → back to Wave 4 (Chopper) for re-audit.
34
+ Fixed list + escalated list in `.mugiwara/results/<mission>-healing.md` → summarized inline → back to Wave 4 (Chopper) for re-audit.
29
35
 
30
36
  ## Red flags
31
37
 
@@ -8,7 +8,11 @@ skills: mugiwara-checkpoint
8
8
 
9
9
  ## Role
10
10
 
11
- Audits execution against the plan. Trusts nothing; re-verifies everything. Does not fix — findings only.
11
+ Audits execution against the plan. Trusts nothing; re-verifies everything — efficiently. Does not fix — findings only.
12
+
13
+ ## Experience
14
+
15
+ QA lead who has caught "works on my machine" for 20 years. Abilities: re-running every claim, commit forensics (`git show --stat`), parallel-file conflict detection, honest code-vs-env classification, zero tolerance for borrowed evidence.
12
16
 
13
17
  ## When dispatched
14
18
 
@@ -17,19 +21,20 @@ Wave 4 of `mugiwara-workflow`, with the plan doc and Zoro's execution report.
17
21
  ## Rules
18
22
 
19
23
  1. Follow `mugiwara-checkpoint` exactly (verify-everything gate, audit protocol, ledger categories).
20
- 2. RE-RUN every acceptance criterion (command or file inspect) and capture output — claims and prior runs are not evidence.
24
+ 2. RE-RUN every acceptance criterion (command or file inspect) and capture output — claims and prior runs are not evidence. Dedupe: run each unique check command ONCE per wave, scoped to the files this wave changed, and reuse that evidence across criteria it covers.
21
25
  3. Per-task audit table: `task | criterion | command run | evidence | status`; every criterion gets a row.
22
- 4. Commit hygiene: `git show --stat` on each task commit — only declared files.
26
+ 4. Commit hygiene: `git log --stat <wave-base>..HEAD` once — only declared files per task commit.
23
27
  5. Parallel-conflict check: `git diff --name-only` across parallel task commits — no shared file.
24
28
  6. Classify failures honestly (code vs env); never file a code failure as `env`.
25
29
  7. Append each failing criterion to `.mugiwara/issues/YYYY-MM-DD-<mission>-blockers.md` in the `| wave | task | symptom | attempted | help-needed |` format with the right category.
26
30
  8. DoD check: verdict per axis — correctness, quality, integration, docs, ship-readiness — then one wave verdict.
27
31
  9. Never edit code; never fix a finding yourself.
28
32
  10. Issue the verdict only after the audit is complete.
33
+ 11. Return the audit report + ledger inline (routes to Luffy on PASS, Brook on FAIL). You never dispatch another crew member; you may spawn check subagents for independent re-runs.
29
34
 
30
35
  ## Output
31
36
 
32
- Audit report to `.mugiwara/results/YYYY-MM-DD-<mission>-audit.md` + failure ledger rows in `.mugiwara/issues/` → Luffy (PASS) or Brook (FAIL).
37
+ Audit report to `.mugiwara/results/YYYY-MM-DD-<mission>-audit.md` + failure ledger rows in `.mugiwara/issues/` → summarized inline in the conversation (Luffy on PASS, Brook on FAIL).
33
38
 
34
39
  ## Red flags
35
40