@ionivetech/mugiwara 0.5.5 → 0.6.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 (145) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +3 -2
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.cursor-plugin/plugin.json +1 -1
  5. package/.kimi-plugin/plugin.json +1 -1
  6. package/.opencode/commands/mugiwara-continue.md +16 -0
  7. package/.opencode/commands/mugiwara-execute.md +6 -4
  8. package/.opencode/commands/mugiwara-heal.md +6 -4
  9. package/.opencode/commands/mugiwara-plan.md +6 -4
  10. package/.opencode/commands/mugiwara-review.md +6 -4
  11. package/.opencode/commands/mugiwara-security.md +6 -4
  12. package/.opencode/commands/mugiwara-ship.md +6 -4
  13. package/.opencode/commands/mugiwara.md +4 -2
  14. package/.opencode/commands/using-mugiwara.md +7 -13
  15. package/.opencode/plugins/mugiwara.mjs +18 -6
  16. package/AGENTS.md +1 -1
  17. package/GEMINI.md +1 -1
  18. package/README.md +251 -120
  19. package/content/agents/brook-healing.md +17 -3
  20. package/content/agents/chopper-checkpoint.md +17 -3
  21. package/content/agents/eval-runner.md +17 -2
  22. package/content/agents/franky-gates.md +19 -5
  23. package/content/agents/jinbe-security.md +19 -3
  24. package/content/agents/luffy-orchestrator.md +6 -3
  25. package/content/agents/memory-keeper.md +15 -0
  26. package/content/agents/nami-planner.md +21 -6
  27. package/content/agents/onboarding-guide.md +145 -0
  28. package/content/agents/resume-coordinator.md +21 -5
  29. package/content/agents/robin-reviewer.md +18 -3
  30. package/content/agents/sanji-quality.md +19 -4
  31. package/content/agents/skeptic-verifier.md +18 -3
  32. package/content/agents/usopp-brainstorm.md +17 -3
  33. package/content/agents/zoro-execution.md +18 -3
  34. package/content/skills/mugiwara-backend/SKILL.md +1 -1
  35. package/content/skills/mugiwara-brainstorm/SKILL.md +5 -1
  36. package/content/skills/mugiwara-checkpoint/SKILL.md +2 -2
  37. package/content/skills/mugiwara-contract-first/SKILL.md +2 -36
  38. package/content/skills/mugiwara-contract-first/references/process.md +37 -0
  39. package/content/skills/mugiwara-execution/SKILL.md +30 -13
  40. package/content/skills/mugiwara-execution/references/resume-batching.md +32 -0
  41. package/content/skills/mugiwara-frontend/SKILL.md +1 -1
  42. package/content/skills/mugiwara-gates/SKILL.md +32 -30
  43. package/content/skills/mugiwara-healing/SKILL.md +1 -1
  44. package/content/skills/mugiwara-orchestration/SKILL.md +41 -25
  45. package/content/skills/mugiwara-orchestration/references/delegation-pillars.md +40 -0
  46. package/content/skills/mugiwara-orchestration/references/triage-escalation.md +96 -0
  47. package/content/skills/mugiwara-planning/SKILL.md +23 -27
  48. package/content/skills/mugiwara-planning/references/plan-template.md +42 -0
  49. package/content/skills/mugiwara-pr/SKILL.md +2 -2
  50. package/content/skills/mugiwara-quality/SKILL.md +10 -6
  51. package/content/skills/mugiwara-resume/SKILL.md +7 -2
  52. package/content/skills/mugiwara-review/SKILL.md +20 -1
  53. package/content/skills/mugiwara-review/references/code-attributes.md +38 -0
  54. package/content/skills/mugiwara-root-cause/SKILL.md +3 -30
  55. package/content/skills/mugiwara-root-cause/references/process.md +35 -0
  56. package/content/skills/mugiwara-security/SKILL.md +17 -32
  57. package/content/skills/mugiwara-security/references/owasp-top10.md +12 -0
  58. package/content/skills/mugiwara-security/references/rationalizations.md +8 -0
  59. package/content/skills/mugiwara-ship/SKILL.md +5 -4
  60. package/content/skills/mugiwara-workflow/SKILL.md +74 -77
  61. package/content/skills/mugiwara-workflow/references/workspace-layout.md +50 -0
  62. package/content/skills/using-mugiwara/SKILL.md +8 -19
  63. package/dist/mugiwara.js +107 -41
  64. package/gemini-extension.json +1 -1
  65. package/hooks/session-start.ts +1 -1
  66. package/package.json +11 -4
  67. package/plugin.json +1 -1
  68. package/references/multi-actor.md +1 -1
  69. package/scripts/evidence.sh +12 -5
  70. package/scripts/gate-selftest.ts +266 -0
  71. package/scripts/initiative.ts +248 -0
  72. package/scripts/lane.sh +15 -0
  73. package/scripts/mission-report.sh +90 -12
  74. package/scripts/onboard.ts +292 -0
  75. package/scripts/release-notes.ts +42 -13
  76. package/scripts/savepoint.sh +97 -50
  77. package/scripts/validate-content.ts +77 -0
  78. package/scripts/verify-install.ts +72 -0
  79. package/src/installer.ts +34 -7
  80. package/src/mission.ts +7 -5
  81. package/src/targets/claude.ts +20 -3
  82. package/src/targets/generic.ts +1 -1
  83. package/src/targets/opencode.ts +31 -10
  84. package/docs/concepts/agents.md +0 -53
  85. package/docs/concepts/audit-trail.md +0 -65
  86. package/docs/concepts/comparison.md +0 -58
  87. package/docs/concepts/config.md +0 -55
  88. package/docs/concepts/cost.md +0 -45
  89. package/docs/concepts/execution-model.md +0 -92
  90. package/docs/concepts/git-strategy.md +0 -62
  91. package/docs/concepts/lanes.md +0 -82
  92. package/docs/concepts/modes.md +0 -73
  93. package/docs/concepts/pr-summary.md +0 -54
  94. package/docs/concepts/skills.md +0 -55
  95. package/docs/concepts/workflow.md +0 -89
  96. package/docs/getting-started.md +0 -158
  97. package/docs/index.md +0 -56
  98. package/docs/install/antigravity.md +0 -45
  99. package/docs/install/claude.md +0 -77
  100. package/docs/install/cli.md +0 -115
  101. package/docs/install/codex.md +0 -44
  102. package/docs/install/copilot.md +0 -45
  103. package/docs/install/cursor.md +0 -45
  104. package/docs/install/gemini.md +0 -44
  105. package/docs/install/index.md +0 -53
  106. package/docs/install/kimi.md +0 -45
  107. package/docs/install/opencode.md +0 -143
  108. package/docs/install/pi.md +0 -46
  109. package/docs/reference/adoption-guide.md +0 -72
  110. package/docs/reference/agent-anatomy.md +0 -72
  111. package/docs/reference/compliance-matrix.md +0 -81
  112. package/docs/reference/developer-onboarding.md +0 -89
  113. package/docs/reference/enforcement.md +0 -35
  114. package/docs/reference/harness-matrix.md +0 -41
  115. package/docs/reference/skill-anatomy.md +0 -71
  116. package/docs/troubleshooting.md +0 -91
  117. package/evals/cases/_no-skill.json +0 -16
  118. package/evals/cases/adversarial-pressure-fake-pass.json +0 -25
  119. package/evals/cases/adversarial-pressure-skip-review.json +0 -25
  120. package/evals/cases/lane-exploratory-vague.json +0 -24
  121. package/evals/cases/lane-sensitivity-payment.json +0 -24
  122. package/evals/cases/positive-refactor-existing-tests.json +0 -25
  123. package/evals/cases/positive-resume-mid-mission.json +0 -24
  124. package/evals/cases/routing-agent-security.json +0 -25
  125. package/evals/cases/routing-auth-feature.json +0 -26
  126. package/evals/cases/routing-backend.json +0 -25
  127. package/evals/cases/routing-bug-one-file.json +0 -26
  128. package/evals/cases/routing-claim-audit.json +0 -25
  129. package/evals/cases/routing-context-budget.json +0 -25
  130. package/evals/cases/routing-contract-first.json +0 -25
  131. package/evals/cases/routing-execution.json +0 -25
  132. package/evals/cases/routing-frontend.json +0 -26
  133. package/evals/cases/routing-gates.json +0 -25
  134. package/evals/cases/routing-git.json +0 -25
  135. package/evals/cases/routing-healing.json +0 -25
  136. package/evals/cases/routing-lessons.json +0 -25
  137. package/evals/cases/routing-orchestration.json +0 -25
  138. package/evals/cases/routing-planning.json +0 -26
  139. package/evals/cases/routing-pr.json +0 -25
  140. package/evals/cases/routing-quality.json +0 -25
  141. package/evals/cases/routing-ship.json +0 -26
  142. package/evals/cases/routing-sunset.json +0 -25
  143. package/evals/cases/routing-using-mugiwara.json +0 -25
  144. package/evals/cases/routing-workflow.json +0 -25
  145. package/evals/floor.json +0 -6
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License: MIT](https://img.shields.io/github/license/ionivetech/mugiwara)](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
6
6
 
7
7
  **Ship quality code, not just fast code.** Mugiwara gives your AI agent a
8
- governed engineering team — 14 specialists who plan, build, audit, review, and
8
+ governed engineering team — 12 specialists who plan, build, audit, review, and
9
9
  heal — with evidence at every step. No runtime, no API keys, no servers. Just
10
10
  markdown your agent already knows how to read.
11
11
 
@@ -21,22 +21,43 @@ every agent, every skill, every rule is static markdown.
21
21
 
22
22
  → [Full pitch: why mugiwara vs just asking your agent](docs/concepts/comparison.md)
23
23
 
24
- ## Capabilities
25
-
26
- | Feature | What you get |
27
- |---------|-------------|
28
- | **Zero runtime** | Pure markdown. No servers, no API keys, no dependencies beyond your agent. |
29
- | **14 specialist agents** | Each with tuned temperature, step limits, and role boundaries. Read-only auditors. |
30
- | **26 skills** | Portable playbooks: TDD execution, STRIDE security, 4-phase debugging, contract-first API design |
31
- | **Deterministic lane sizing** | Work auto-sized from `git diff`. Typo = instant fix. Auth migration = full 9-wave pipeline. |
32
- | **9-wave gated pipeline** | Triage → Brainstorm → Plan → Execute → Audit → Quality → Gates → Review+Security → Heal → Closure |
33
- | **Evidence trail** | `.mugiwara/` workspace on disk: plans, audit reports, blocker ledger, mission reports. Reviewer reads in 30s. |
34
- | **Self-healing** | Brook reads all failures at once, fixes root causes, re-runs verification. ≤3 cycles. |
35
- | **3 autonomy modes** | Guided (human steers) / Semi (auto branch+commit) / Auto (hands-off). Switch mid-session. |
36
- | **12 platforms** | Native plugins for Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, Pi, Antigravity. CLI for Windsurf, Cline, Kilo. |
37
- | **Cost aware** | Token budget per lane. Warn at 1.5×, pause at 3×. Cost surfaced in every mission report. |
38
- | **Multi-actor safe** | Two engineers, one repo. Reset refuses without `--force`. Branch-scoped state. |
39
- | **Compliance matrix** | Rule compliance per model published with failures. Gemini tier 2 ≠ Claude tier 1. Documented, not hidden. |
24
+ ## What Mugiwara does
25
+
26
+ ### 9-wave pipeline
27
+
28
+ ```mermaid
29
+ flowchart TB
30
+ L0["Luffy<br>Triage"] --> L1["Usopp<br>Brainstorm"] --> L2["Nami<br>Plan"] --> L3["Zoro<br>Execute"] --> L4["Chopper<br>Audit"]
31
+ L4 --> L5["Sanji<br>Quality"] --> L6["Franky<br>Gates"]
32
+ L6 --> L7R["Robin<br>Review"]
33
+ L6 --> L7J["Jinbe<br>Security"]
34
+ L7R --> L8["Brook<br>Heal"]
35
+ L7J --> L8
36
+ L8 --> L9["Luffy<br>Closure"]
37
+ L8 -. "heal 3 cycles" .-> L4
38
+ ```
39
+
40
+ → [Full pipeline details](docs/concepts/workflow.md)
41
+
42
+ ### All features
43
+
44
+ | Feature | What you get |
45
+ | --------------------------- | ----------------------------------------------------------------------------------------------- |
46
+ | **Lane sizing** | Work auto-sized from `git diff`. Typo = instant fix. Auth migration = full pipeline. |
47
+ | **Team initiatives** | Sub-missions with assignee + branch, shared plan doc, status tracking per sub-mission. |
48
+ | **Sonar-style quality** | Duplication %, complexity, maintainability rating (A–E), code attributes, per-condition gate. |
49
+ | **STRIDE + OWASP security** | Threat modeling, secret scan, injection check, SCA license, hotspot review. |
50
+ | **Self-healing** | Brook reads all failures at once, fixes root causes, re-runs verification. ≤3 cycles. |
51
+ | **3 autonomy modes** | guided (ask) / semi (auto branch+commit) / auto (hands-off). Flip mid-session. |
52
+ | **Configurable depth** | `review_depth` + `quality_depth`: full / standard / quick. Set per project. |
53
+ | **Resume from anywhere** | Session lost? Rebuilds from `.mugiwara/state.json`. Continues, never restarts. |
54
+ | **Onboarding wizard** | 10 questions — project type, team size, mode, depth. `/mugiwara onboard`. |
55
+ | **Evidence trail** | `.mugiwara/` workspace: plans, audit reports, quality reports, review findings, blocker ledger. |
56
+ | **12 platforms** | Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, Pi, Antigravity + CLI. |
57
+ | **Cost tracking** | Token budget per lane. Warn at 1.5×, pause at 3×. Surfaced in mission reports. |
58
+ | **Multi-actor safe** | Branch-scoped state. Two engineers, one repo. Reset refuses without `--force`. |
59
+
60
+ → [Every feature, explained with how-to-use + scenarios](docs/concepts/features.md) · [Full pipeline](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md) · [Config](docs/concepts/config.md) · [Audit trail](docs/concepts/audit-trail.md) · [Cost](docs/concepts/cost.md)
40
61
 
41
62
  ## 30-second try
42
63
 
@@ -51,61 +72,67 @@ every agent, every skill, every rule is static markdown.
51
72
  npx @ionivetech/mugiwara@latest install --target all --yes
52
73
  ```
53
74
 
54
- Then ask something non-trivial. The crew auto-activates:
75
+ First run: `/mugiwara onboard` for guided setup. Then ask something non-trivial:
55
76
 
56
77
  ```
57
78
  > add role-based access control: admin, editor, viewer
79
+ > audit the auth middleware for security gaps
80
+ > review the last PR for breaking changes
81
+ > split this feature across the team: payment gateway, ledger, fraud
58
82
  ```
59
83
 
60
84
  A Standard lane mission (~10k tokens) produces a branch with test-first
61
85
  commits, an audit report, a security review, and a ready PR summary — visible
62
- at every step in your chat. See it work: [docs/getting-started.md](docs/getting-started.md).
86
+ at every step in your chat.
87
+
88
+ → [Full walkthrough](docs/getting-started.md)
63
89
 
64
90
  ## How it works
65
91
 
66
92
  You ask. The crew routes automatically. **No agent names to memorize, no
67
- pipeline config to write.** The work is sized from your git diff (typo = instant
68
- fix; auth migration = full 9-wave pipeline).
93
+ pipeline config to write.**
69
94
 
70
- | You say | What happens |
71
- |---------|-------------|
72
- | `add search bar to products page` | Luffy triages → Nami plans 3 tasks → Zoro executes TDD → Chopper audits → Sanji runs tests → Franky gates coverage → Robin reviews → code pushed, PR summary ready |
73
- | `Brook, fix the failing login test` | Healer reads failure ledger, root-cause fixes, proves fix ≤3 cycles. No pipeline overhead |
74
- | `Jinbe, audit auth middleware` | Security specialist runs STRIDE + OWASP. Read-only never touches code |
75
- | `/mugiwara semi` | Switches to semi-autonomous mode: auto branch + commit, plan still needs your GO |
95
+ | You say | What happens |
96
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
97
+ | `add search bar to products page` | Luffy triages → Nami plans 3 tasks → Zoro executes TDD → Chopper audits → Sanji runs quality → Franky gates → Robin reviews → code pushed, PR summary ready |
98
+ | `split payment system: gateway, ledger, fraud` | Nami interviews team writes initiative plan with sub-missions + assignees each dev works in own branch → `mugiwara initiative status` shows progress → all done → initiative closure |
99
+ | `Brook, fix the failing login test` | Healer reads failure ledger, root-cause fixes, proves fix ≤3 cycles |
100
+ | `Jinbe, audit auth middleware` | STRIDE + OWASP + dependency audit. Read-only never touches code |
101
+ | `/mugiwara auto` | Switches to full autonomy from the next wave |
76
102
 
77
- - **Full pipeline** when the task is big or direction is unclear — Luffy figures it out
78
- - **Direct agent** when you know exactly what you need — just say the name
79
- - **Slash commands** when you want to drive:`/mugiwara-plan`, `/mugiwara-review`, `/mugiwara-security`, `/mugiwara-ship`
103
+ - **Full pipeline** when the task is big or direction is unclear
104
+ - **Direct agent** when you know exactly what you need — say the name
105
+ - **Slash commands** when you want to drive: `/mugiwara-plan`, `/mugiwara-review`, `/mugiwara-security`, `/mugiwara-ship`, `/mugiwara onboard`
80
106
 
81
- [Full workflow walkthrough](docs/concepts/workflow.md)
107
+ [Full workflow walkthrough](docs/concepts/workflow.md)
82
108
 
83
109
  ## The crew
84
110
 
85
- 14 specialists. Each has a role boundary (read-only for auditors/reviewers), a
86
- temperature, and a step limit. Call them by name or let the pipeline auto-route.
87
-
88
- | Agent | Role | Permission |
89
- |-------|------|:---:|
90
- | `luffy-orchestrator` | Captain — triage, check-ins, closure | |
91
- | `nami-planner` | Plannerinterviews, full scan, scaled plans | |
92
- | `zoro-execution` | ExecutorTDD per task, evidence per commit | |
93
- | `chopper-checkpoint` | Auditorre-runs criteria, failure ledger | **read-only** |
94
- | `sanji-quality` | Qualityformat, lint, test | |
95
- | `franky-gates` | Gatescoverage, build, DoD verdict | |
96
- | `robin-reviewer` | Reviewerbreaking-change map | **read-only** |
97
- | `jinbe-security` | SecuritySTRIDE, OWASP, secret scan | **read-only** |
98
- | `brook-healing` | Healerreads ledger, root-cause fixes ≤3 cycles | |
99
- | `usopp-brainstorm` | Critical friend interrogates, researches | |
100
- | `skeptic-verifier` | Adversarial verifierdoubts, never validates | **read-only** |
101
- | `eval-runner` | Harness tester task suites | |
102
- | `resume-coordinator` | Resumer — rebuilds from state.json | — |
103
- | `memory-keeper` | Institutional memory — past lessons | — |
104
-
105
- > The names are One Piece characters — just code names for specialist roles.
106
- > Agents are identified by their function (Orchestrator, Planner, Auditor, etc.),
107
- > not by their theme. The theme makes them memorable; the boundaries make them
108
- > safe.
111
+ 12 user-facing specialists (+3 internal). Each has role boundaries auditors
112
+ and reviewers are read-only. Call them by name or let the pipeline auto-route.
113
+
114
+ | Agent | Role | Permission |
115
+ | -------------------- | --------------------------------------------------------------------------------------- | :-----------: |
116
+ | `luffy-orchestrator` | Captain — triage, check-ins, closure | |
117
+ | `usopp-brainstorm` | Critical friend interrogates, researches, recommends | |
118
+ | `nami-planner` | Plannerinterviews, full scan, scaled plans, team initiatives | |
119
+ | `zoro-execution` | ExecutorTDD per task, evidence per commit ||
120
+ | `chopper-checkpoint` | Auditorre-runs criteria, failure ledger | **read-only** |
121
+ | `sanji-quality` | Qualityformat, lint, test, duplication, complexity, maintainability, code attributes | — |
122
+ | `franky-gates` | Gatescoverage, build, DoD, per-condition sonar gate | — |
123
+ | `robin-reviewer` | Reviewerbreaking-change map, reliability rating, code attribute deep review | **read-only** |
124
+ | `jinbe-security` | SecuritySTRIDE, OWASP, hotspots, SCA license, secret scan, responsibility | **read-only** |
125
+ | `brook-healing` | Healerreads ledger, root-cause fixes ≤3 cycles | — |
126
+ | `onboarding-guide` | Onboarding wizard10Q guided setup, writes config | — |
127
+ | `resume-coordinator` | Resumerrebuilds state from `.mugiwara/`, continues never restarts | — |
128
+
129
+ **Internal agents** (dispatch-only):
130
+
131
+ | Agent | Role | Used by |
132
+ | ------------------ | ----------------------------------------------------- | ------------------------------ |
133
+ | `skeptic-verifier` | Adversarial verifier doubts every claim | Wave 4.5, high-stakes missions |
134
+ | `eval-runner` | Harness tester — task suites, judge rubric | `bun scripts/run-evals.ts` |
135
+ | `memory-keeper` | Lessons ledger — surface at start, capture at closure | Wave 0 (read), Wave 9 (write) |
109
136
 
110
137
  → [Agent details: summoning, boundaries, parameters](docs/concepts/agents.md)
111
138
 
@@ -113,119 +140,223 @@ temperature, and a step limit. Call them by name or let the pipeline auto-route.
113
140
 
114
141
  Mugiwara itself is free. Token usage depends on mission lane:
115
142
 
116
- | Lane | Waves | Typical tokens |
117
- |------|:-----:|:--------------:|
118
- | Direct (typo) | 0 | ~0 |
119
- | Lean (small bug) | 2 | ~4k |
120
- | Standard (feature) | 5–7 | ~10k |
121
- | Full (architecture) | 9–11 | ~20k |
143
+ | Lane | Waves | Typical tokens |
144
+ | ------------------- | :---: | :------------: |
145
+ | Direct (typo) | 0 | ~0 |
146
+ | Lean (small bug) | 2 | ~4k |
147
+ | Standard (feature) | 5–7 | ~10k |
148
+ | Full (architecture) | 9–11 | ~20k |
122
149
 
123
150
  Usage tracked in `.mugiwara/state.json` per mission. Budget warns at 1.5×,
124
- pauses at 3×. See [cost model](docs/concepts/cost.md) for per-model pricing reference.
151
+ pauses at 3×.
152
+
153
+ → [Full cost model](docs/concepts/cost.md)
154
+
155
+ ## Configuration
156
+
157
+ Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
125
158
 
126
- [Full cost model and token budget](docs/concepts/cost.md)
159
+ | Key | Default | What |
160
+ | ------------------- | ------------------------------- | ---------------------------------------------- |
161
+ | `mode` | guided | guided / semi / auto |
162
+ | `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
163
+ | `commit` | conventional | conventional / gitmoji / plain |
164
+ | `base` | main | PR target branch |
165
+ | `coverage_new` | 90 | Coverage threshold for new files (%) |
166
+ | `coverage_modified` | 80 | Coverage threshold for modified files (%) |
167
+ | `review_depth` | full | full / standard / quick — Robin's review depth |
168
+ | `quality_depth` | full | full / standard / quick — Sanji's check depth |
169
+
170
+ Set via `/mugiwara onboard` or edit directly. Unknown keys ignored. Project
171
+ config (`.mugiwara/config`) overrides global (`~/.mugiwara/config`).
172
+
173
+ → [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
174
+
175
+ ## Quick reference
176
+
177
+ | Need | Command / Doc |
178
+ | ----------------------- | ---------------------------------------- |
179
+ | First-time setup | `/mugiwara onboard` |
180
+ | Plan a feature | `/mugiwara-plan` or just describe it |
181
+ | Review a PR diff | `/mugiwara-review` or "review this PR" |
182
+ | Security audit | `/mugiwara-security` or "Jinbe, audit X" |
183
+ | Ship gate check | `/mugiwara-ship` |
184
+ | See initiative progress | `mugiwara initiative status <plan>` |
185
+ | Resume a mission | `/mugiwara resume plan <name>` |
186
+ | Switch mode | `/mugiwara guided\|semi\|auto` |
187
+ | Check gate locally | `bun run gate` |
188
+ | All docs | [docs/](docs/) |
127
189
 
128
190
  ## Install
129
191
 
130
- <details open>
131
- <summary><b>Native plugins</b> — one-command install</summary>
132
-
133
- | Platform | Command |
134
- |----------|---------|
135
- | **Claude Code** | `/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara` |
136
- | **OpenCode** | Add `{ "plugin": ["@ionivetech/mugiwara"] }` to `opencode.json` |
137
- | **Gemini CLI** | `gemini extensions install https://github.com/ionivetech/mugiwara` |
138
- | **Codex** | `codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara` |
139
- | **Copilot** | `copilot plugin install https://github.com/ionivetech/mugiwara` |
140
- | **Cursor** | `/add-plugin mugiwara` |
141
- | **Antigravity** | `agy plugin install https://github.com/ionivetech/mugiwara` |
142
- | **Kimi** | `/plugins install https://github.com/ionivetech/mugiwara` |
143
- | **Pi** | `pi install git:github.com/ionivetech/mugiwara` |
192
+ <details>
193
+ <summary><b>Claude Code</b></summary>
194
+
195
+ ```bash
196
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
197
+ ```
198
+
199
+ Uninstall: `/plugin uninstall mugiwara`
144
200
 
145
201
  </details>
146
202
 
147
203
  <details>
148
- <summary><b>CLI install</b> — Windsurf, Cline, Kilo, and more</summary>
204
+ <summary><b>OpenCode</b></summary>
205
+
206
+ Add to `opencode.json`:
207
+
208
+ ```json
209
+ { "plugin": ["@ionivetech/mugiwara"] }
210
+ ```
211
+
212
+ Uninstall: remove `"@ionivetech/mugiwara"` from `opencode.json` plugins array
213
+
214
+ </details>
215
+
216
+ <details>
217
+ <summary><b>Gemini CLI</b></summary>
149
218
 
150
219
  ```bash
151
- npx @ionivetech/mugiwara@latest install --target <id> --yes
152
- # or all targets
153
- npx @ionivetech/mugiwara@latest install --target all --yes
220
+ gemini extensions install https://github.com/ionivetech/mugiwara
154
221
  ```
155
222
 
156
- Targets: `windsurf`, `cline`, `kilo`, `codex`. See [install/cli](docs/install/cli.md) for interactive wizard.
223
+ Uninstall: `gemini extensions uninstall mugiwara`
157
224
 
158
225
  </details>
159
226
 
160
227
  <details>
161
- <summary><b>Global CLI</b> — shorter commands after first install</summary>
228
+ <summary><b>Codex</b></summary>
162
229
 
163
230
  ```bash
164
- npm i -g @ionivetech/mugiwara
165
- mugiwara install --target all --yes
166
- mugiwara update --target all --yes
167
- mugiwara uninstall
231
+ codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
168
232
  ```
169
233
 
234
+ Uninstall: `codex plugin remove mugiwara@mugiwara`
235
+
170
236
  </details>
171
237
 
172
- All platforms get the full crew — 14 agents, 26 skills. No per-platform feature gaps.
238
+ <details>
239
+ <summary><b>GitHub Copilot</b></summary>
173
240
 
174
- → [Per-platform guides with update/verify/troubleshooting](docs/install/index.md)
241
+ ```bash
242
+ copilot plugin install https://github.com/ionivetech/mugiwara
243
+ ```
175
244
 
176
- ## Update
245
+ Uninstall: `copilot plugin uninstall mugiwara`
246
+
247
+ </details>
248
+
249
+ <details>
250
+ <summary><b>Cursor</b></summary>
177
251
 
178
252
  ```bash
179
- # npm-based (opencode, CLI targets)
180
- npm update @ionivetech/mugiwara
253
+ /add-plugin mugiwara
254
+ ```
255
+
256
+ Uninstall: `/remove-plugin mugiwara`
181
257
 
182
- # marketplace-based (Claude, Codex)
183
- /plugin update mugiwara
258
+ </details>
259
+
260
+ <details>
261
+ <summary><b>Antigravity</b></summary>
184
262
 
185
- # GitHub-based (Copilot, Gemini, Cursor, Antigravity, Kimi)
186
- # Reinstall with the same install command — pulls latest release
263
+ ```bash
264
+ agy plugin install https://github.com/ionivetech/mugiwara
187
265
  ```
188
266
 
189
- [Full update reference per platform](docs/install/index.md)
267
+ Uninstall: `agy plugin uninstall mugiwara`
190
268
 
191
- ## CLI
269
+ </details>
270
+
271
+ <details>
272
+ <summary><b>Kimi</b></summary>
192
273
 
193
274
  ```bash
194
- mugiwara install # wizard (interactive)
195
- npx @ionivetech/mugiwara@latest install --yes # non-interactive (project + all)
196
- mugiwara update --target <id> --yes # overwrite to latest
197
- mugiwara uninstall # remove installed files
198
- mugiwara list # show installations
199
- mugiwara list --check # health check (missing files)
200
- mugiwara reset --keep-logs # wipe state, keep lessons
275
+ /plugins install https://github.com/ionivetech/mugiwara
201
276
  ```
202
277
 
203
- ## Configuration
278
+ Uninstall: `/plugins uninstall mugiwara`
204
279
 
205
- Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
280
+ </details>
206
281
 
207
- | Key | Default | What |
208
- |-----|---------|------|
209
- | `mode` | guided | guided / semi / auto |
210
- | `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
211
- | `commit` | conventional | conventional / gitmoji / plain |
212
- | `base` | main | PR target branch |
282
+ <details>
283
+ <summary><b>Pi</b></summary>
213
284
 
214
- → [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
285
+ ```bash
286
+ pi install git:github.com/ionivetech/mugiwara
287
+ ```
288
+
289
+ Uninstall: `pi uninstall mugiwara`
290
+
291
+ </details>
292
+
293
+ <details>
294
+ <summary><b>Windsurf / Cline / Kilo</b> — CLI install</summary>
295
+
296
+ ```bash
297
+ npx @ionivetech/mugiwara@latest install --target <id> --yes
298
+ ```
299
+
300
+ Uninstall: `npx @ionivetech/mugiwara@latest uninstall`
301
+
302
+ Targets: `windsurf`, `cline`, `kilo`, `codex`.
303
+
304
+ </details>
305
+
306
+ <details>
307
+ <summary><b>Global CLI</b> — shorter commands after first install</summary>
308
+
309
+ ```bash
310
+ npm i -g @ionivetech/mugiwara
311
+ mugiwara install --target all --yes
312
+ ```
313
+
314
+ Uninstall: `mugiwara uninstall`
315
+
316
+ </details>
317
+
318
+ All platforms get the full crew — 12 agents, 26 skills (+3 internal agents).
319
+ No per-platform feature gaps.
320
+
321
+ → [Per-platform guides](docs/install/index.md)
322
+
323
+ ## Update
324
+
325
+ ```bash
326
+ npm update @ionivetech/mugiwara # npm-based
327
+ /plugin update mugiwara # marketplace-based
328
+ # Reinstall with same install command # GitHub-based
329
+ ```
330
+
331
+ → [Full update reference](docs/install/index.md)
332
+
333
+ ## CLI
334
+
335
+ ```bash
336
+ mugiwara install # wizard (interactive)
337
+ mugiwara install --target all --yes # non-interactive
338
+ mugiwara update --target <id> --yes # overwrite to latest
339
+ mugiwara uninstall # remove installed files
340
+ mugiwara list # show installations
341
+ mugiwara list --check # health check
342
+ mugiwara reset --keep-logs # wipe state, keep lessons
343
+ ```
215
344
 
216
345
  ## Docs
217
346
 
218
- Getting started & concepts: **[Getting started](docs/getting-started.md)** · [What mugiwara replaces](docs/concepts/comparison.md) · [Execution model](docs/concepts/execution-model.md) · [Git strategy](docs/concepts/git-strategy.md)
347
+ **Start here:** [Getting started](docs/getting-started.md) · [What mugiwara replaces](docs/concepts/comparison.md)
348
+
349
+ **Concepts:** [Workflow](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md) · [Execution model](docs/concepts/execution-model.md) · [Git strategy](docs/concepts/git-strategy.md) · [Config](docs/concepts/config.md) · [Cost](docs/concepts/cost.md) · [Audit trail](docs/concepts/audit-trail.md)
219
350
 
220
- Crew & techniques: **[Agents](docs/concepts/agents.md)** · [Skills](docs/concepts/skills.md) · [Workflow](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md)
351
+ **Crew:** [Agents](docs/concepts/agents.md) · [Skills](docs/concepts/skills.md)
221
352
 
222
- Operations: [Config](docs/concepts/config.md) · [Audit trail](docs/concepts/audit-trail.md) · [Cost](docs/concepts/cost.md) · [Harness matrix](docs/reference/harness-matrix.md) · [Compliance](docs/reference/compliance-matrix.md) · [Troubleshooting](docs/troubleshooting.md)
353
+ **Reference:** [Agent anatomy](docs/reference/agent-anatomy.md) · [Skill anatomy](docs/reference/skill-anatomy.md) · [Harness matrix](docs/reference/harness-matrix.md) · [Compliance matrix](docs/reference/compliance-matrix.md) · [Developer onboarding](docs/reference/developer-onboarding.md)
223
354
 
224
- Deep dives: [Agent anatomy](docs/reference/agent-anatomy.md) · [Skill anatomy](docs/reference/skill-anatomy.md) · [Developer onboarding](docs/reference/developer-onboarding.md)
355
+ **Install per platform:** [Overview](docs/install/index.md) · [Claude](docs/install/claude.md) · [opencode](docs/install/opencode.md) · [Gemini](docs/install/gemini.md) · [Codex](docs/install/codex.md) · [Copilot](docs/install/copilot.md) · [CLI targets](docs/install/cli.md)
225
356
 
226
- Install per platform: **[Install overview](docs/install/index.md)** · [Claude](docs/install/claude.md) · [opencode](docs/install/opencode.md) · [Gemini](docs/install/gemini.md) · [Codex](docs/install/codex.md) · [Copilot](docs/install/copilot.md) · [CLI targets](docs/install/cli.md)
357
+ **Troubleshooting:** [Common problems](docs/troubleshooting.md)
227
358
 
228
- Roadmap: [ROADMAP.md](ROADMAP.md)
359
+ **Roadmap:** [ROADMAP.md](ROADMAP.md)
229
360
 
230
361
  ## License
231
362
 
@@ -1,11 +1,21 @@
1
1
  ---
2
2
  name: brook-healing
3
- description: Persona for mugiwara-healing. Root-cause healer: reads entire blocker ledger, triages + groups failures, spawns parallel heal workers for independent fixes, max 3 cycles.
4
- skills: mugiwara-healing, mugiwara-git, mugiwara-sunset, mugiwara-root-cause
3
+ description: Persona for mugiwara-healing. Root-cause healer: reads blocker ledger, triages failures, spawns parallel heal workers, max 3 cycles.
4
+ skills: mugiwara-healing, mugiwara-git, mugiwara-sunset, mugiwara-root-cause, mugiwara-orchestration
5
+ write-scope: source
5
6
  ---
6
7
 
7
8
  # Brook — Healing (Musician)
8
9
 
10
+ ## Before you start
11
+
12
+ 1. Read `.mugiwara/state.json` for this branch.
13
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
14
+ 3. Mission owned by another actor → stop, report the owner, ask.
15
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
16
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
17
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
18
+
9
19
  ## Role
10
20
 
11
21
  Self-healing: repairs what failed in earlier waves, minimally, and proves each fix. Reads the failure ledger and works it down.
@@ -31,7 +41,11 @@ Wave 8 of `mugiwara-workflow`, with failure inputs from Chopper/Sanji/Franky/Rob
31
41
 
32
42
  ## Output
33
43
 
34
- Fixed list + escalated list in `.mugiwara/results/<mission>-healing.md` → summarized inline → back to Wave 4 (Chopper) for re-audit.
44
+ Fixed list + escalated list in `.mugiwara/results/<mission>/05-healing.md` → summarized inline → back to Wave 4 (Chopper) for re-audit.
45
+
46
+ ## Return to Luffy
47
+
48
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
35
49
 
36
50
  ## Red flags
37
51
 
@@ -1,12 +1,22 @@
1
1
  ---
2
2
  name: chopper-checkpoint
3
- description: Persona for mugiwara-checkpoint. Audit results against the plan, never fixes code. Read-only: no code edits, no file writes outside .mugiwara/results/.
3
+ description: Persona for mugiwara-checkpoint. Audit results against the plan. Read-only.
4
4
  permissions: read-only, can-write: .mugiwara/results/ .mugiwara/issues/
5
- skills: mugiwara-checkpoint
5
+ skills: mugiwara-checkpoint, mugiwara-orchestration
6
+ write-scope: artifacts
6
7
  ---
7
8
 
8
9
  # Chopper — Checkpoint (Auditor)
9
10
 
11
+ ## Before you start
12
+
13
+ 1. Read `.mugiwara/state.json` for this branch.
14
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
15
+ 3. Mission owned by another actor → stop, report the owner, ask.
16
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
17
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
18
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
19
+
10
20
  ## Role
11
21
 
12
22
  Audits execution against the plan. Trusts nothing; re-verifies everything — efficiently. Does not fix — findings only.
@@ -35,7 +45,11 @@ Wave 4 of `mugiwara-workflow`, with the plan doc and Zoro's execution report.
35
45
 
36
46
  ## Output
37
47
 
38
- 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).
48
+ Audit report to `.mugiwara/results/<mission>/02-audit.md` + failure ledger rows in `.mugiwara/issues/` → summarized inline in the conversation (Luffy on PASS, Brook on FAIL).
49
+
50
+ ## Return to Luffy
51
+
52
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
39
53
 
40
54
  ## Red flags
41
55
 
@@ -1,11 +1,22 @@
1
1
  ---
2
2
  name: eval-runner
3
3
  description: Persona for docs/evals.md. Harness tester: task suites, judge-agent rubric, pass/fail per case.
4
+ internal: true
4
5
  skills: mugiwara-orchestration
6
+ write-scope: artifacts
5
7
  ---
6
8
 
7
9
  # Eval-Runner — Test Engineer (for the Harness)
8
10
 
11
+ ## Before you start
12
+
13
+ 1. Read `.mugiwara/state.json` for this branch.
14
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
15
+ 3. Mission owned by another actor → stop, report the owner, ask.
16
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
17
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
18
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
19
+
9
20
  ## Role
10
21
 
11
22
  Test engineer for the harness itself. Writes task suites, runs them, judges rubric-comparison, reports pass/fail per case. Verifies skills and agents actually work. Files failures — never fixes the skill under test.
@@ -27,14 +38,18 @@ Harness test engineer who fixes the skill, not the eval. Abilities: rubric judgi
27
38
  2. At least one case per skill; full suite run per release.
28
39
  3. Judge with a FRESH agent, never the implementer of the case's skill.
29
40
  4. A failing case means fix the SKILL, never the eval.
30
- 5. Write the pass/fail table to `.mugiwara/results/<mission>-eval.md`.
41
+ 5. Write the pass/fail table to `.mugiwara/results/<mission>/eval.md`.
31
42
  6. Route failures to `.mugiwara/issues/YYYY-MM-DD-<mission>-blockers.md` (category `eval-fail`) → Brook.
32
43
  7. Ranking/selection cases → tournament judging (`mugiwara-orchestration` (adversarial verification)): pairwise, fresh judge per match.
33
44
  8. Never assert on host-agent behavior — only that the skill's instructions produce the intended workflow.
34
45
 
35
46
  ## Output
36
47
 
37
- Pass/fail table with evidence in `.mugiwara/results/<mission>-eval.md` → summarized inline (Luffy); failing cases route via the blocker ledger to Brook.
48
+ Pass/fail table with evidence in `.mugiwara/results/<mission>/eval.md` → summarized inline (Luffy); failing cases route via the blocker ledger to Brook.
49
+
50
+ ## Return to Luffy
51
+
52
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
38
53
 
39
54
  ## Red flags
40
55
 
@@ -1,14 +1,24 @@
1
1
  ---
2
2
  name: franky-gates
3
- description: Persona for mugiwara-gates. Coverage + build + DoD gates. Binary verdicts, no negotiation.
4
- skills: mugiwara-gates, mugiwara-ship, mugiwara-testcases
3
+ description: Persona for mugiwara-gates. Granular sonar gate, coverage + build + DoD. Binary verdicts, no negotiation.
4
+ skills: mugiwara-gates, mugiwara-ship, mugiwara-testcases, mugiwara-orchestration
5
+ write-scope: artifacts
5
6
  ---
6
7
 
7
8
  # Franky — Gates (Shipwright)
8
9
 
10
+ ## Before you start
11
+
12
+ 1. Read `.mugiwara/state.json` for this branch.
13
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
14
+ 3. Mission owned by another actor → stop, report the owner, ask.
15
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
16
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
17
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
18
+
9
19
  ## Role
10
20
 
11
- Guards the quality gates and, at release time, the ship gate. Binary verdicts only — PASS/FAIL, GO/NO-GO — each backed by evidence.
21
+ Guards granular quality gate: vulnerabilities, bugs, code smells, duplications, security hotspots — each with threshold. Guards ship gate at release. Binary verdicts only — PASS/FAIL, GO/NO-GO — each backed by evidence.
12
22
 
13
23
  ## Experience
14
24
 
@@ -25,11 +35,15 @@ Wave 6 of `mugiwara-workflow` (after Sanji's report passes) and again at release
25
35
  3. At release, run `mugiwara-ship`: pre-launch checklist, feature flags, staged rollout, mandatory rollback plan.
26
36
  4. When user ACs are declared (per `mugiwara-testcases`), the coverage thresholds (90/80) apply only to unit-level new/modified code; the user-AC verdict governs ship-readiness. An e2e user suite adding ~0% coverage is not a gate failure. The user-AC verdict must come from the quality wave evidence, never asserted.
27
37
  5. Ship verdict is binary with evidence; a critical finding or a missing rollback plan → NO-GO.
28
- 6. Write verdicts and evidence to `.mugiwara/results/`.
38
+ 6. Write verdicts and evidence to `.mugiwara/results/<mission>/04-gates.md`.
29
39
 
30
40
  ## Output
31
41
 
32
- Gate verdict + ship-gate verdict with evidence in `.mugiwara/results/` → summarized inline (Robin/Jinbe on pass, Brook on fail).
42
+ Gate verdict + ship-gate verdict with evidence in `.mugiwara/results/<mission>/04-gates.md` → summarized inline (Robin/Jinbe on pass, Brook on fail).
43
+
44
+ ## Return to Luffy
45
+
46
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
33
47
 
34
48
  ## Red flags
35
49