@ionivetech/mugiwara 0.5.5 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +3 -2
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.kimi-plugin/plugin.json +1 -1
- package/.opencode/commands/mugiwara-continue.md +16 -0
- package/.opencode/commands/mugiwara-execute.md +6 -4
- package/.opencode/commands/mugiwara-heal.md +6 -4
- package/.opencode/commands/mugiwara-plan.md +6 -4
- package/.opencode/commands/mugiwara-review.md +6 -4
- package/.opencode/commands/mugiwara-security.md +6 -4
- package/.opencode/commands/mugiwara-ship.md +6 -4
- package/.opencode/commands/mugiwara.md +4 -2
- package/.opencode/commands/using-mugiwara.md +7 -13
- package/.opencode/mugiwara-helpers.mjs +24 -0
- package/.opencode/plugins/mugiwara.mjs +28 -8
- package/AGENTS.md +1 -1
- package/GEMINI.md +1 -1
- package/README.md +311 -127
- package/content/agents/brook-healing.md +17 -3
- package/content/agents/chopper-checkpoint.md +17 -3
- package/content/agents/eval-runner.md +17 -2
- package/content/agents/franky-gates.md +19 -5
- package/content/agents/jinbe-security.md +19 -3
- package/content/agents/luffy-orchestrator.md +6 -3
- package/content/agents/memory-keeper.md +15 -0
- package/content/agents/nami-planner.md +21 -6
- package/content/agents/onboarding-guide.md +145 -0
- package/content/agents/resume-coordinator.md +21 -5
- package/content/agents/robin-reviewer.md +18 -3
- package/content/agents/sanji-quality.md +19 -4
- package/content/agents/skeptic-verifier.md +18 -3
- package/content/agents/usopp-brainstorm.md +17 -3
- package/content/agents/zoro-execution.md +18 -3
- package/content/skills/mugiwara-backend/SKILL.md +1 -1
- package/content/skills/mugiwara-brainstorm/SKILL.md +12 -1
- package/content/skills/mugiwara-checkpoint/SKILL.md +2 -2
- package/content/skills/mugiwara-contract-first/SKILL.md +2 -36
- package/content/skills/mugiwara-contract-first/references/process.md +37 -0
- package/content/skills/mugiwara-execution/SKILL.md +51 -34
- package/content/skills/mugiwara-execution/references/dispatch.md +41 -0
- package/content/skills/mugiwara-execution/references/resume-batching.md +32 -0
- package/content/skills/mugiwara-frontend/SKILL.md +1 -1
- package/content/skills/mugiwara-gates/SKILL.md +32 -30
- package/content/skills/mugiwara-healing/SKILL.md +1 -1
- package/content/skills/mugiwara-orchestration/SKILL.md +59 -39
- package/content/skills/mugiwara-orchestration/references/closure.md +34 -0
- package/content/skills/mugiwara-orchestration/references/delegation-pillars.md +40 -0
- package/content/skills/mugiwara-orchestration/references/triage-escalation.md +97 -0
- package/content/skills/mugiwara-planning/SKILL.md +29 -27
- package/content/skills/mugiwara-planning/references/plan-template.md +42 -0
- package/content/skills/mugiwara-pr/SKILL.md +9 -2
- package/content/skills/mugiwara-quality/SKILL.md +17 -6
- package/content/skills/mugiwara-resume/SKILL.md +7 -2
- package/content/skills/mugiwara-review/SKILL.md +20 -1
- package/content/skills/mugiwara-review/references/code-attributes.md +38 -0
- package/content/skills/mugiwara-root-cause/SKILL.md +3 -30
- package/content/skills/mugiwara-root-cause/references/process.md +35 -0
- package/content/skills/mugiwara-security/SKILL.md +17 -32
- package/content/skills/mugiwara-security/references/owasp-top10.md +12 -0
- package/content/skills/mugiwara-security/references/rationalizations.md +8 -0
- package/content/skills/mugiwara-ship/SKILL.md +13 -10
- package/content/skills/mugiwara-testcases/SKILL.md +7 -0
- package/content/skills/mugiwara-workflow/SKILL.md +74 -77
- package/content/skills/mugiwara-workflow/references/workspace-layout.md +50 -0
- package/content/skills/using-mugiwara/SKILL.md +13 -18
- package/dist/mugiwara.js +293 -47
- package/gemini-extension.json +1 -1
- package/hooks/mugiwara-mode-tracker.ts +0 -0
- package/hooks/session-start.ts +1 -1
- package/package.json +11 -4
- package/plugin.json +1 -1
- package/references/multi-actor.md +1 -1
- package/scripts/evidence.sh +28 -6
- package/scripts/gate-selftest.ts +317 -0
- package/scripts/initiative.ts +262 -0
- package/scripts/lane.sh +18 -1
- package/scripts/mission-report.sh +237 -36
- package/scripts/onboard.ts +292 -0
- package/scripts/release-notes.ts +42 -13
- package/scripts/savepoint.sh +151 -60
- package/scripts/validate-content.ts +97 -0
- package/scripts/verify-install.ts +72 -0
- package/src/cli.ts +20 -3
- package/src/installer.ts +71 -8
- package/src/mission.ts +117 -5
- package/src/targets/claude.ts +45 -9
- package/src/targets/generic.ts +1 -1
- package/src/targets/opencode.ts +31 -10
- package/docs/concepts/agents.md +0 -53
- package/docs/concepts/audit-trail.md +0 -65
- package/docs/concepts/comparison.md +0 -58
- package/docs/concepts/config.md +0 -55
- package/docs/concepts/cost.md +0 -45
- package/docs/concepts/execution-model.md +0 -92
- package/docs/concepts/git-strategy.md +0 -62
- package/docs/concepts/lanes.md +0 -82
- package/docs/concepts/modes.md +0 -73
- package/docs/concepts/pr-summary.md +0 -54
- package/docs/concepts/skills.md +0 -55
- package/docs/concepts/workflow.md +0 -89
- package/docs/getting-started.md +0 -158
- package/docs/index.md +0 -56
- package/docs/install/antigravity.md +0 -45
- package/docs/install/claude.md +0 -77
- package/docs/install/cli.md +0 -115
- package/docs/install/codex.md +0 -44
- package/docs/install/copilot.md +0 -45
- package/docs/install/cursor.md +0 -45
- package/docs/install/gemini.md +0 -44
- package/docs/install/index.md +0 -53
- package/docs/install/kimi.md +0 -45
- package/docs/install/opencode.md +0 -143
- package/docs/install/pi.md +0 -46
- package/docs/reference/adoption-guide.md +0 -72
- package/docs/reference/agent-anatomy.md +0 -72
- package/docs/reference/compliance-matrix.md +0 -81
- package/docs/reference/developer-onboarding.md +0 -89
- package/docs/reference/enforcement.md +0 -35
- package/docs/reference/harness-matrix.md +0 -41
- package/docs/reference/skill-anatomy.md +0 -71
- package/docs/troubleshooting.md +0 -91
- package/evals/cases/_no-skill.json +0 -16
- package/evals/cases/adversarial-pressure-fake-pass.json +0 -25
- package/evals/cases/adversarial-pressure-skip-review.json +0 -25
- package/evals/cases/lane-exploratory-vague.json +0 -24
- package/evals/cases/lane-sensitivity-payment.json +0 -24
- package/evals/cases/positive-refactor-existing-tests.json +0 -25
- package/evals/cases/positive-resume-mid-mission.json +0 -24
- package/evals/cases/routing-agent-security.json +0 -25
- package/evals/cases/routing-auth-feature.json +0 -26
- package/evals/cases/routing-backend.json +0 -25
- package/evals/cases/routing-bug-one-file.json +0 -26
- package/evals/cases/routing-claim-audit.json +0 -25
- package/evals/cases/routing-context-budget.json +0 -25
- package/evals/cases/routing-contract-first.json +0 -25
- package/evals/cases/routing-execution.json +0 -25
- package/evals/cases/routing-frontend.json +0 -26
- package/evals/cases/routing-gates.json +0 -25
- package/evals/cases/routing-git.json +0 -25
- package/evals/cases/routing-healing.json +0 -25
- package/evals/cases/routing-lessons.json +0 -25
- package/evals/cases/routing-orchestration.json +0 -25
- package/evals/cases/routing-planning.json +0 -26
- package/evals/cases/routing-pr.json +0 -25
- package/evals/cases/routing-quality.json +0 -25
- package/evals/cases/routing-ship.json +0 -26
- package/evals/cases/routing-sunset.json +0 -25
- package/evals/cases/routing-using-mugiwara.json +0 -25
- package/evals/cases/routing-workflow.json +0 -25
- package/evals/floor.json +0 -6
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@ionivetech/mugiwara)
|
|
5
5
|
[](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
|
|
6
6
|
|
|
7
|
-
**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
**Your agent writes the code. Mugiwara proves it.**
|
|
8
|
+
|
|
9
|
+
A governed engineering crew for your AI agent — evidence at every step, and a
|
|
10
|
+
process that sizes itself to the work. A typo costs nothing. An auth migration
|
|
11
|
+
gets all nine waves. No runtime, no API keys, no servers. Just markdown your
|
|
12
|
+
agent already knows how to read.
|
|
11
13
|
|
|
12
14
|
Works on Claude Code, opencode, Copilot, Gemini, and 8 more platforms.
|
|
13
15
|
|
|
@@ -21,22 +23,63 @@ every agent, every skill, every rule is static markdown.
|
|
|
21
23
|
|
|
22
24
|
→ [Full pitch: why mugiwara vs just asking your agent](docs/concepts/comparison.md)
|
|
23
25
|
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
## See the evidence
|
|
27
|
+
|
|
28
|
+
A closed mission leaves a report you can actually read. This is the exact
|
|
29
|
+
format `scripts/mission-report.sh` produces:
|
|
30
|
+
|
|
31
|
+
# Mission: invitation-accepted-flow . 2026-08-11
|
|
32
|
+
|
|
33
|
+
**Lane** full . **Mode** guided . **Actor** farid . **Branch** feature/MKR-412
|
|
34
|
+
|
|
35
|
+
## What changed
|
|
36
|
+
|
|
37
|
+
11 files, +340 LOC
|
|
38
|
+
Sensitive paths: src/auth/
|
|
39
|
+
|
|
40
|
+
## Waves
|
|
41
|
+
|
|
42
|
+
| Wave | Artifact | Verdict |
|
|
43
|
+
|------|----------|---------|
|
|
44
|
+
| Execute (Wave 3) | `01-execution.md` | PASS |
|
|
45
|
+
| Checkpoint (Wave 4) | `02-audit.md` | PASS |
|
|
46
|
+
| Quality (Wave 5) | `03-quality.md` | PASS |
|
|
47
|
+
| Gates (Wave 6) | `04-gates.md` | PASS |
|
|
48
|
+
| Healing (Wave 8) | `05-healing.md` | PASS |
|
|
49
|
+
| Closure (Wave 9) | `06-closure.md` | GO |
|
|
50
|
+
|
|
51
|
+
## Review & blockers
|
|
52
|
+
|
|
53
|
+
Review + security files: invitation-accepted-flow-review.md, invitation-accepted-flow-security.md
|
|
54
|
+
Findings: 3
|
|
55
|
+
Blocker ledger rows: 1
|
|
56
|
+
|
|
57
|
+
## State
|
|
58
|
+
|
|
59
|
+
| Field | Value |
|
|
60
|
+
|-------|-------|
|
|
61
|
+
| Wave | 9 |
|
|
62
|
+
| Tasks | 6/6 done |
|
|
63
|
+
| Blockers open | 0 |
|
|
64
|
+
| Heal cycles | 1 |
|
|
65
|
+
| Tokens used | 14,200 / 20,000 |
|
|
66
|
+
|
|
67
|
+
## Lanes
|
|
68
|
+
|
|
69
|
+
Work is sized to the diff — a typo gets no pipeline, an auth migration gets
|
|
70
|
+
all nine waves. Mugiwara itself is free; token usage depends on the lane:
|
|
71
|
+
|
|
72
|
+
| Lane | Waves | Typical tokens |
|
|
73
|
+
| ------------------- | :---: | :------------: |
|
|
74
|
+
| Direct (typo) | 0 | ~0 |
|
|
75
|
+
| Lean (small bug) | 2 | ~4k |
|
|
76
|
+
| Standard (feature) | 5–7 | ~10k |
|
|
77
|
+
| Full (architecture) | 9–11 | ~20k |
|
|
78
|
+
|
|
79
|
+
Usage tracked in `.mugiwara/state.json` per mission. Budget warns at 1.5×,
|
|
80
|
+
pauses at 3×.
|
|
81
|
+
|
|
82
|
+
→ [Full cost model](docs/concepts/cost.md)
|
|
40
83
|
|
|
41
84
|
## 30-second try
|
|
42
85
|
|
|
@@ -51,109 +94,256 @@ every agent, every skill, every rule is static markdown.
|
|
|
51
94
|
npx @ionivetech/mugiwara@latest install --target all --yes
|
|
52
95
|
```
|
|
53
96
|
|
|
54
|
-
Then ask something non-trivial
|
|
97
|
+
First run: `/mugiwara onboard` for guided setup. Then ask something non-trivial:
|
|
55
98
|
|
|
56
99
|
```
|
|
57
100
|
> add role-based access control: admin, editor, viewer
|
|
101
|
+
> audit the auth middleware for security gaps
|
|
102
|
+
> review the last PR for breaking changes
|
|
103
|
+
> split this feature across the team: payment gateway, ledger, fraud
|
|
58
104
|
```
|
|
59
105
|
|
|
60
106
|
A Standard lane mission (~10k tokens) produces a branch with test-first
|
|
61
107
|
commits, an audit report, a security review, and a ready PR summary — visible
|
|
62
|
-
at every step in your chat.
|
|
63
|
-
|
|
64
|
-
## How it works
|
|
108
|
+
at every step in your chat.
|
|
65
109
|
|
|
66
110
|
You ask. The crew routes automatically. **No agent names to memorize, no
|
|
67
|
-
pipeline config to write.**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
|
71
|
-
|
|
72
|
-
| `
|
|
73
|
-
| `Brook, fix the failing login test`
|
|
74
|
-
| `Jinbe, audit auth middleware`
|
|
75
|
-
| `/mugiwara
|
|
76
|
-
|
|
77
|
-
- **Full pipeline** when the task is big or direction is unclear
|
|
78
|
-
- **Direct agent** when you know exactly what you need —
|
|
79
|
-
- **Slash commands** when you want to drive
|
|
111
|
+
pipeline config to write.**
|
|
112
|
+
|
|
113
|
+
| You say | What happens |
|
|
114
|
+
| ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
115
|
+
| `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 |
|
|
116
|
+
| `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 |
|
|
117
|
+
| `Brook, fix the failing login test` | Healer reads failure ledger, root-cause fixes, proves fix ≤3 cycles |
|
|
118
|
+
| `Jinbe, audit auth middleware` | STRIDE + OWASP + dependency audit. Read-only — never touches code |
|
|
119
|
+
| `/mugiwara auto` | Switches to full autonomy from the next wave |
|
|
120
|
+
|
|
121
|
+
- **Full pipeline** when the task is big or direction is unclear
|
|
122
|
+
- **Direct agent** when you know exactly what you need — say the name
|
|
123
|
+
- **Slash commands** when you want to drive: `/mugiwara-plan`, `/mugiwara-review`, `/mugiwara-security`, `/mugiwara-ship`, `/mugiwara onboard`
|
|
124
|
+
|
|
125
|
+
→ [Full walkthrough](docs/getting-started.md) · [Full workflow walkthrough](docs/concepts/workflow.md)
|
|
126
|
+
|
|
127
|
+
## What Mugiwara does
|
|
128
|
+
|
|
129
|
+
### All features
|
|
130
|
+
|
|
131
|
+
| Feature | What you get |
|
|
132
|
+
| ------------------------ | -------------------------------------------------------------------------------------- |
|
|
133
|
+
| **Lane sizing** | Work auto-sized from `git diff`. Typo = instant fix. Auth migration = full pipeline. |
|
|
134
|
+
| **Evidence trail** | `.mugiwara/` workspace: plans, audit reports, quality reports, review findings, blocker ledger. |
|
|
135
|
+
| **Self-healing** | Brook reads all failures at once, fixes root causes, re-runs verification. ≤3 cycles. |
|
|
136
|
+
| **Resume from anywhere** | Session lost? Rebuilds from `.mugiwara/state.json`. Continues, never restarts. |
|
|
137
|
+
| **12 platforms** | Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, Pi, Antigravity + CLI. |
|
|
138
|
+
|
|
139
|
+
→ All 19 features, with how-to-use + scenarios: [Every feature](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)
|
|
140
|
+
|
|
141
|
+
## The pipeline
|
|
142
|
+
|
|
143
|
+
```mermaid
|
|
144
|
+
flowchart TB
|
|
145
|
+
L0["Luffy<br>Triage"] --> L1["Usopp<br>Brainstorm"] --> L2["Nami<br>Plan"] --> L3["Zoro<br>Execute"] --> L4["Chopper<br>Audit"]
|
|
146
|
+
L4 --> L5["Sanji<br>Quality"] --> L6["Franky<br>Gates"]
|
|
147
|
+
L6 --> L7R["Robin<br>Review"]
|
|
148
|
+
L6 --> L7J["Jinbe<br>Security"]
|
|
149
|
+
L7R --> L8["Brook<br>Heal"]
|
|
150
|
+
L7J --> L8
|
|
151
|
+
L8 --> L9["Luffy<br>Closure"]
|
|
152
|
+
L8 -. "heal ≤3 cycles" .-> L4
|
|
153
|
+
```
|
|
80
154
|
|
|
81
|
-
[Full
|
|
155
|
+
→ [Full pipeline details](docs/concepts/workflow.md)
|
|
82
156
|
|
|
83
157
|
## The crew
|
|
84
158
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
| Agent
|
|
89
|
-
|
|
90
|
-
| `luffy-orchestrator` | Captain — triage, check-ins, closure
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
| `
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
159
|
+
12 agents (+3 internal). Each has role boundaries — auditors
|
|
160
|
+
and reviewers are read-only. Call them by name or let the pipeline auto-route.
|
|
161
|
+
|
|
162
|
+
| Agent | Role | Permission |
|
|
163
|
+
| -------------------- | --------------------------------------------------------------------------------------- | :-----------: |
|
|
164
|
+
| `luffy-orchestrator` | Captain — triage, check-ins, closure | — |
|
|
165
|
+
| `usopp-brainstorm` | Critical friend — interrogates, researches, recommends | — |
|
|
166
|
+
| `nami-planner` | Planner — interviews, full scan, scaled plans, team initiatives | — |
|
|
167
|
+
| `zoro-execution` | Executor — TDD per task, evidence per commit | — |
|
|
168
|
+
| `chopper-checkpoint` | Auditor — re-runs criteria, failure ledger | **read-only** |
|
|
169
|
+
| `sanji-quality` | Quality — format, lint, test, duplication, complexity, maintainability, code attributes | — |
|
|
170
|
+
| `franky-gates` | Gates — coverage, build, DoD, per-condition sonar gate | — |
|
|
171
|
+
| `robin-reviewer` | Reviewer — breaking-change map, reliability rating, code attribute deep review | **read-only** |
|
|
172
|
+
| `jinbe-security` | Security — STRIDE, OWASP, hotspots, SCA license, secret scan, responsibility | **read-only** |
|
|
173
|
+
| `brook-healing` | Healer — reads ledger, root-cause fixes ≤3 cycles | — |
|
|
174
|
+
| `onboarding-guide` | Onboarding wizard — 10Q guided setup, writes config | — |
|
|
175
|
+
| `resume-coordinator` | Resumer — rebuilds state from `.mugiwara/`, continues never restarts | — |
|
|
176
|
+
|
|
177
|
+
**Internal agents** (dispatch-only):
|
|
178
|
+
|
|
179
|
+
| Agent | Role | Used by |
|
|
180
|
+
| ------------------ | ----------------------------------------------------- | ------------------------------ |
|
|
181
|
+
| `skeptic-verifier` | Adversarial verifier — doubts every claim | Wave 4.5, high-stakes missions |
|
|
182
|
+
| `eval-runner` | Harness tester — task suites, judge rubric | `bun scripts/run-evals.ts` |
|
|
183
|
+
| `memory-keeper` | Lessons ledger — surface at start, capture at closure | Wave 0 (read), Wave 9 (write) |
|
|
109
184
|
|
|
110
185
|
→ [Agent details: summoning, boundaries, parameters](docs/concepts/agents.md)
|
|
111
186
|
|
|
112
|
-
##
|
|
187
|
+
## When not to use Mugiwara
|
|
113
188
|
|
|
114
|
-
|
|
189
|
+
- **Prototyping or spikes** — use Lane 4, or skip mugiwara entirely.
|
|
190
|
+
- **Unattended multi-hour runs** — the crew runs inline so you can interrupt it.
|
|
191
|
+
If you want to walk away, superpowers' subagent-driven-development is built
|
|
192
|
+
for that.
|
|
193
|
+
- **Solo scripts with no review path** — the audit trail has no audience.
|
|
194
|
+
- **Harnesses without agent dispatch** (Gemini, Codex, tier 3) — you get the
|
|
195
|
+
workflow and the trail, not enforced role boundaries.
|
|
115
196
|
|
|
116
|
-
|
|
117
|
-
|------|:-----:|:--------------:|
|
|
118
|
-
| Direct (typo) | 0 | ~0 |
|
|
119
|
-
| Lean (small bug) | 2 | ~4k |
|
|
120
|
-
| Standard (feature) | 5–7 | ~10k |
|
|
121
|
-
| Full (architecture) | 9–11 | ~20k |
|
|
197
|
+
## Configuration
|
|
122
198
|
|
|
123
|
-
|
|
124
|
-
|
|
199
|
+
Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
|
|
200
|
+
|
|
201
|
+
| Key | Default | What |
|
|
202
|
+
| ------------------- | ------------------------------- | ---------------------------------------------- |
|
|
203
|
+
| `mode` | guided | guided / semi / auto |
|
|
204
|
+
| `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
|
|
205
|
+
| `commit` | conventional | conventional / gitmoji / plain |
|
|
206
|
+
| `base` | main | PR target branch |
|
|
207
|
+
| `coverage_new` | 90 | Coverage threshold for new files (%) |
|
|
208
|
+
| `coverage_modified` | 80 | Coverage threshold for modified files (%) |
|
|
209
|
+
| `review_depth` | full | full / standard / quick — Robin's review depth |
|
|
210
|
+
| `quality_depth` | full | full / standard / quick — Sanji's check depth |
|
|
211
|
+
|
|
212
|
+
Set via `/mugiwara onboard` or edit directly. Unknown keys ignored. Project
|
|
213
|
+
config (`.mugiwara/config`) overrides global (`~/.mugiwara/config`).
|
|
214
|
+
|
|
215
|
+
→ [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
|
|
125
216
|
|
|
126
|
-
|
|
217
|
+
## Quick reference
|
|
218
|
+
|
|
219
|
+
| Need | Command / Doc |
|
|
220
|
+
| ----------------------- | ---------------------------------------- |
|
|
221
|
+
| First-time setup | `/mugiwara onboard` |
|
|
222
|
+
| Plan a feature | `/mugiwara-plan` or just describe it |
|
|
223
|
+
| Review a PR diff | `/mugiwara-review` or "review this PR" |
|
|
224
|
+
| Security audit | `/mugiwara-security` or "Jinbe, audit X" |
|
|
225
|
+
| Ship gate check | `/mugiwara-ship` |
|
|
226
|
+
| See initiative progress | `mugiwara initiative status <plan>` |
|
|
227
|
+
| Resume a mission | `/mugiwara resume plan <name>` |
|
|
228
|
+
| Switch mode | `/mugiwara guided\|semi\|auto` |
|
|
229
|
+
| Check gate locally | `bun run gate` |
|
|
230
|
+
| All docs | [docs/](docs/) |
|
|
127
231
|
|
|
128
232
|
## Install
|
|
129
233
|
|
|
130
|
-
<details
|
|
131
|
-
<summary><b>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
234
|
+
<details>
|
|
235
|
+
<summary><b>Claude Code</b></summary>
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Uninstall: `/plugin uninstall mugiwara`
|
|
242
|
+
|
|
243
|
+
</details>
|
|
244
|
+
|
|
245
|
+
<details>
|
|
246
|
+
<summary><b>OpenCode</b></summary>
|
|
247
|
+
|
|
248
|
+
Add to `opencode.json`:
|
|
249
|
+
|
|
250
|
+
```json
|
|
251
|
+
{ "plugin": ["@ionivetech/mugiwara"] }
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Update: `rm -rf ~/.cache/opencode/packages/@ionivetech/mugiwara* && opencode plugin @ionivetech/mugiwara -g` ([details](docs/install/opencode.md#update))
|
|
255
|
+
|
|
256
|
+
Uninstall: remove `"@ionivetech/mugiwara"` from `opencode.json` plugins array
|
|
257
|
+
|
|
258
|
+
</details>
|
|
259
|
+
|
|
260
|
+
<details>
|
|
261
|
+
<summary><b>Gemini CLI</b></summary>
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
gemini extensions install https://github.com/ionivetech/mugiwara
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Uninstall: `gemini extensions uninstall mugiwara`
|
|
144
268
|
|
|
145
269
|
</details>
|
|
146
270
|
|
|
147
271
|
<details>
|
|
148
|
-
<summary><b>
|
|
272
|
+
<summary><b>Codex</b></summary>
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Uninstall: `codex plugin remove mugiwara@mugiwara`
|
|
279
|
+
|
|
280
|
+
</details>
|
|
281
|
+
|
|
282
|
+
<details>
|
|
283
|
+
<summary><b>GitHub Copilot</b></summary>
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
copilot plugin install https://github.com/ionivetech/mugiwara
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Uninstall: `copilot plugin uninstall mugiwara`
|
|
290
|
+
|
|
291
|
+
</details>
|
|
292
|
+
|
|
293
|
+
<details>
|
|
294
|
+
<summary><b>Cursor</b></summary>
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
/add-plugin mugiwara
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Uninstall: `/remove-plugin mugiwara`
|
|
301
|
+
|
|
302
|
+
</details>
|
|
303
|
+
|
|
304
|
+
<details>
|
|
305
|
+
<summary><b>Antigravity</b></summary>
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
agy plugin install https://github.com/ionivetech/mugiwara
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
Uninstall: `agy plugin uninstall mugiwara`
|
|
312
|
+
|
|
313
|
+
</details>
|
|
314
|
+
|
|
315
|
+
<details>
|
|
316
|
+
<summary><b>Kimi</b></summary>
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
/plugins install https://github.com/ionivetech/mugiwara
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Uninstall: `/plugins uninstall mugiwara`
|
|
323
|
+
|
|
324
|
+
</details>
|
|
325
|
+
|
|
326
|
+
<details>
|
|
327
|
+
<summary><b>Pi</b></summary>
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
pi install git:github.com/ionivetech/mugiwara
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Uninstall: `pi uninstall mugiwara`
|
|
334
|
+
|
|
335
|
+
</details>
|
|
336
|
+
|
|
337
|
+
<details>
|
|
338
|
+
<summary><b>Windsurf / Cline / Kilo</b> — CLI install</summary>
|
|
149
339
|
|
|
150
340
|
```bash
|
|
151
341
|
npx @ionivetech/mugiwara@latest install --target <id> --yes
|
|
152
|
-
# or all targets
|
|
153
|
-
npx @ionivetech/mugiwara@latest install --target all --yes
|
|
154
342
|
```
|
|
155
343
|
|
|
156
|
-
|
|
344
|
+
Uninstall: `npx @ionivetech/mugiwara@latest uninstall`
|
|
345
|
+
|
|
346
|
+
Targets: `windsurf`, `cline`, `kilo`, `codex`.
|
|
157
347
|
|
|
158
348
|
</details>
|
|
159
349
|
|
|
@@ -163,69 +353,63 @@ Targets: `windsurf`, `cline`, `kilo`, `codex`. See [install/cli](docs/install/cl
|
|
|
163
353
|
```bash
|
|
164
354
|
npm i -g @ionivetech/mugiwara
|
|
165
355
|
mugiwara install --target all --yes
|
|
166
|
-
mugiwara update --target all --yes
|
|
167
|
-
mugiwara uninstall
|
|
168
356
|
```
|
|
169
357
|
|
|
358
|
+
Uninstall: `mugiwara uninstall`
|
|
359
|
+
|
|
170
360
|
</details>
|
|
171
361
|
|
|
172
|
-
All platforms get the full crew —
|
|
362
|
+
All platforms get the full crew — 12 agents (+3 internal), 26 skills.
|
|
363
|
+
Enforcement depth varies by harness; see the [harness matrix](docs/reference/harness-matrix.md).
|
|
173
364
|
|
|
174
|
-
→ [Per-platform guides
|
|
365
|
+
→ [Per-platform guides](docs/install/index.md)
|
|
175
366
|
|
|
176
367
|
## Update
|
|
177
368
|
|
|
178
369
|
```bash
|
|
179
|
-
#
|
|
180
|
-
|
|
370
|
+
# opencode — clear the pinned cache, then reinstall (npm update alone does NOT work)
|
|
371
|
+
rm -rf ~/.cache/opencode/packages/@ionivetech/mugiwara* && opencode plugin @ionivetech/mugiwara -g
|
|
181
372
|
|
|
182
|
-
#
|
|
373
|
+
# Claude Code — marketplace
|
|
183
374
|
/plugin update mugiwara
|
|
184
375
|
|
|
185
|
-
#
|
|
186
|
-
|
|
376
|
+
# CLI — npm global
|
|
377
|
+
npm i -g @ionivetech/mugiwara@latest
|
|
187
378
|
```
|
|
188
379
|
|
|
189
|
-
|
|
380
|
+
OpenCode pins the resolved version in its own package cache, so `npm update`
|
|
381
|
+
never touches it. Reinstall with the same command for GitHub-based plugins
|
|
382
|
+
(Gemini, Codex, Copilot, Cursor, Kimi, Pi, Antigravity).
|
|
383
|
+
|
|
384
|
+
→ [Per-platform guides](docs/install/index.md)
|
|
190
385
|
|
|
191
386
|
## CLI
|
|
192
387
|
|
|
193
388
|
```bash
|
|
194
|
-
mugiwara install
|
|
195
|
-
|
|
196
|
-
mugiwara update --target <id> --yes
|
|
197
|
-
mugiwara uninstall
|
|
198
|
-
mugiwara list
|
|
199
|
-
mugiwara list --check
|
|
200
|
-
mugiwara reset --keep-logs
|
|
389
|
+
mugiwara install # wizard (interactive)
|
|
390
|
+
mugiwara install --target all --yes # non-interactive
|
|
391
|
+
mugiwara update --target <id> --yes # overwrite to latest
|
|
392
|
+
mugiwara uninstall # remove installed files
|
|
393
|
+
mugiwara list # show installations
|
|
394
|
+
mugiwara list --check # health check
|
|
395
|
+
mugiwara reset --keep-logs # wipe state, keep lessons
|
|
201
396
|
```
|
|
202
397
|
|
|
203
|
-
## Configuration
|
|
204
|
-
|
|
205
|
-
Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
|
|
206
|
-
|
|
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 |
|
|
213
|
-
|
|
214
|
-
→ [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
|
|
215
|
-
|
|
216
398
|
## Docs
|
|
217
399
|
|
|
218
|
-
|
|
400
|
+
**Start here:** [Getting started](docs/getting-started.md) · [What mugiwara replaces](docs/concepts/comparison.md)
|
|
401
|
+
|
|
402
|
+
**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
403
|
|
|
220
|
-
Crew
|
|
404
|
+
**Crew:** [Agents](docs/concepts/agents.md) · [Skills](docs/concepts/skills.md)
|
|
221
405
|
|
|
222
|
-
|
|
406
|
+
**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
407
|
|
|
224
|
-
|
|
408
|
+
**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
409
|
|
|
226
|
-
|
|
410
|
+
**Troubleshooting:** [Common problems](docs/troubleshooting.md)
|
|
227
411
|
|
|
228
|
-
Roadmap
|
|
412
|
+
**Roadmap:** [ROADMAP.md](ROADMAP.md)
|
|
229
413
|
|
|
230
414
|
## License
|
|
231
415
|
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brook-healing
|
|
3
|
-
description: Persona for mugiwara-healing. Root-cause healer: reads
|
|
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
|
|
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
|
|
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
|
|
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
|
|