@ionivetech/mugiwara 0.1.2 → 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.
- package/.opencode/plugins/mugiwara.mjs +102 -0
- package/README.md +209 -230
- package/content/agents/brook-healing.md +8 -2
- package/content/agents/chopper-checkpoint.md +9 -4
- package/content/agents/eval-runner.md +5 -1
- package/content/agents/franky-gates.md +9 -4
- package/content/agents/jinbe-security.md +5 -1
- package/content/agents/luffy-orchestrator.md +14 -8
- package/content/agents/memory-keeper.md +4 -0
- package/content/agents/nami-planner.md +12 -5
- package/content/agents/resume-coordinator.md +5 -1
- package/content/agents/robin-reviewer.md +5 -1
- package/content/agents/sanji-quality.md +7 -3
- package/content/agents/skeptic-verifier.md +5 -1
- package/content/agents/using-mugiwara.md +11 -7
- package/content/agents/usopp-brainstorm.md +9 -3
- package/content/agents/zoro-execution.md +16 -11
- package/content/skills/mugiwara-backend/SKILL.md +12 -0
- package/content/skills/mugiwara-brainstorm/SKILL.md +28 -1
- package/content/skills/mugiwara-checkpoint/SKILL.md +8 -6
- package/content/skills/mugiwara-deprecation/SKILL.md +77 -0
- package/content/skills/mugiwara-dynamic-workflow/SKILL.md +3 -3
- package/content/skills/mugiwara-execution/SKILL.md +32 -15
- package/content/skills/mugiwara-gates/SKILL.md +4 -0
- package/content/skills/mugiwara-git/SKILL.md +10 -0
- package/content/skills/mugiwara-healing/SKILL.md +9 -3
- package/content/skills/mugiwara-mode/SKILL.md +63 -0
- package/content/skills/mugiwara-orchestration/SKILL.md +26 -8
- package/content/skills/mugiwara-planning/SKILL.md +50 -25
- package/content/skills/mugiwara-pr/SKILL.md +51 -0
- package/content/skills/mugiwara-quality/SKILL.md +19 -2
- package/content/skills/mugiwara-resume/SKILL.md +6 -4
- package/content/skills/mugiwara-testcases/SKILL.md +52 -0
- package/content/skills/mugiwara-workflow/SKILL.md +36 -13
- package/dist/mugiwara.js +9 -20
- package/docs/adoption-guide.md +72 -0
- package/docs/agent-anatomy.md +72 -0
- package/docs/agents.md +51 -0
- package/docs/claude-setup.md +38 -0
- package/docs/codex-setup.md +24 -0
- package/docs/comparison.md +63 -0
- package/docs/copilot-setup.md +27 -0
- package/docs/cursor-setup.md +23 -0
- package/docs/developer-onboarding.md +85 -0
- package/docs/execution-model.md +59 -0
- package/docs/gemini-setup.md +24 -0
- package/docs/getting-started.md +84 -0
- package/docs/git-strategy.md +62 -0
- package/docs/index.md +45 -0
- package/docs/modes.md +64 -0
- package/docs/opencode-setup.md +47 -0
- package/docs/rule-based-setup.md +31 -0
- package/docs/skill-anatomy.md +73 -0
- package/docs/skills.md +61 -0
- package/docs/windsurf-setup.md +16 -0
- package/docs/workflow.md +80 -0
- package/package.json +21 -3
- package/src/args.ts +1 -1
- package/src/cli.ts +5 -15
- package/src/installer.ts +4 -6
- package/src/manifest.ts +0 -1
package/README.md
CHANGED
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@ionivetech/mugiwara)
|
|
4
4
|
[](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
|
|
5
|
-
[](https://www.npmjs.com/package/@ionivetech/mugiwara)
|
|
6
|
-
[](https://github.com/ionivetech/mugiwara/actions)
|
|
7
|
-
[](https://github.com/ionivetech/mugiwara)
|
|
8
|
-
[](https://bun.sh)
|
|
9
|
-
[](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,
|
|
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.
|
|
36
|
-
|
|
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,
|
|
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 —
|
|
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,
|
|
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
|
|
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 |
|
|
@@ -79,12 +79,12 @@ subagent machinery and may call the crew's shared skills.
|
|
|
79
79
|
| `mugiwara-resume` | Session resume: rebuild state from `.mugiwara/` after compaction/loss; never restart |
|
|
80
80
|
| `mugiwara-lessons` | Cross-mission memory: actionable lessons ledger, read at triage, written at closure |
|
|
81
81
|
|
|
82
|
-
###
|
|
82
|
+
### Every capability, always
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
Every install ships the full crew — all 25 skills and 15 agents, including
|
|
85
|
+
the anti-slop `mugiwara-frontend`, `mugiwara-backend`, and `mugiwara-agent-security`
|
|
86
|
+
skills. No project-type selection: you get every capability, and the harness
|
|
87
|
+
routes each task to the right skill.
|
|
88
88
|
|
|
89
89
|
## How it works
|
|
90
90
|
|
|
@@ -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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
-
|
|
170
|
-
|
|
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:
|
|
171
224
|
|
|
172
|
-
|
|
225
|
+
**Claude Code** (fully supported — agents + skills + SessionStart hook)
|
|
173
226
|
|
|
174
227
|
```bash
|
|
175
|
-
|
|
176
|
-
|
|
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
|
+
```
|
|
177
257
|
|
|
178
|
-
|
|
179
|
-
# non-interactive: global Claude Code install, general type, no prompts
|
|
180
|
-
npx @ionivetech/mugiwara@latest --global --target claude --type general --yes
|
|
258
|
+
**Cursor**
|
|
181
259
|
|
|
182
|
-
|
|
183
|
-
|
|
260
|
+
```
|
|
261
|
+
/add-plugin mugiwara
|
|
184
262
|
```
|
|
185
263
|
|
|
186
|
-
|
|
264
|
+
**Gemini CLI**
|
|
187
265
|
|
|
188
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
|
|
288
|
+
|
|
289
|
+
Requires **Node.js >= 20.11**. Bun is optional — only needed to build from
|
|
290
|
+
source.
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
# npx — run without installing
|
|
294
|
+
npx @ionivetech/mugiwara@latest
|
|
295
|
+
|
|
296
|
+
# non-interactive: global Claude Code install, no prompts
|
|
297
|
+
npx @ionivetech/mugiwara@latest --global --target claude --yes
|
|
298
|
+
|
|
299
|
+
# non-interactive: project install for opencode + GitHub Copilot
|
|
300
|
+
npx @ionivetech/mugiwara@latest --project ./my-app --target opencode,copilot --yes
|
|
301
|
+
|
|
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
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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 —
|
|
222
|
-
via 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
|
|
|
@@ -232,9 +339,9 @@ installable set.
|
|
|
232
339
|
## Quickstart
|
|
233
340
|
|
|
234
341
|
```console
|
|
235
|
-
$ npx @ionivetech/mugiwara@latest --global --target claude --
|
|
342
|
+
$ npx @ionivetech/mugiwara@latest --global --target claude --yes
|
|
236
343
|
mugiwara — installing crew for: claude
|
|
237
|
-
✓ claude 15 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
|
|
|
@@ -273,26 +380,25 @@ and review Brook's rollback note if a fix is risky.
|
|
|
273
380
|
| `--global` | Install user-wide (writes to your home directory) |
|
|
274
381
|
| `--project <dir>` | Install into a project directory (default: current directory) |
|
|
275
382
|
| `--target <ids\|all>` | Comma-separated target IDs, or `all`. Valid: `claude, opencode, copilot, gemini, codex, windsurf, cline, kilo, antigravity` |
|
|
276
|
-
| `--
|
|
277
|
-
| `--yes`, `-y` | Non-interactive. Requires `--global` or `--project`, `--target`, and `--type` |
|
|
383
|
+
| `--yes`, `-y` | Non-interactive. Requires `--global` or `--project`, and `--target` |
|
|
278
384
|
| `--force` | Overwrite files that differ (conflicting files are backed up first) |
|
|
279
385
|
| `--dry-run` | Print the actions without writing anything |
|
|
280
386
|
|
|
281
387
|
```bash
|
|
282
|
-
# non-interactive install requires
|
|
283
|
-
npx @ionivetech/mugiwara@latest --project ./app --target claude --
|
|
388
|
+
# non-interactive install requires scope + target, or it errors out
|
|
389
|
+
npx @ionivetech/mugiwara@latest --project ./app --target claude --yes
|
|
284
390
|
|
|
285
391
|
# preview what an install would write, without touching the disk
|
|
286
|
-
npx @ionivetech/mugiwara@latest --global --target all --
|
|
392
|
+
npx @ionivetech/mugiwara@latest --global --target all --yes --dry-run
|
|
287
393
|
|
|
288
394
|
# global installs skip targets that only support project scope (with a note)
|
|
289
|
-
npx @ionivetech/mugiwara@latest --global --target all --
|
|
395
|
+
npx @ionivetech/mugiwara@latest --global --target all --yes
|
|
290
396
|
```
|
|
291
397
|
|
|
292
398
|
### Install manifest
|
|
293
399
|
|
|
294
400
|
Every install writes `.mugiwara/manifest.json` (in the project dir, or `~` for
|
|
295
|
-
global). The manifest records the version, scope,
|
|
401
|
+
global). The manifest records the version, scope, targets, and the exact
|
|
296
402
|
list of written files — which is what `update` and `uninstall` use to operate
|
|
297
403
|
safely.
|
|
298
404
|
|
|
@@ -320,169 +426,42 @@ For rule-based targets, skills land as `mugiwara-*.md` and agents as
|
|
|
320
426
|
create it if it doesn't exist and otherwise tell you the line to add, so your
|
|
321
427
|
tool points at the crew.
|
|
322
428
|
|
|
323
|
-
##
|
|
324
|
-
|
|
325
|
-
Mugiwara also ships as a **Claude Code plugin** with a marketplace — the
|
|
326
|
-
primary target. The plugin bundles the 15 agents + 21 skills as copies at the
|
|
327
|
-
repo root (`agents/`, `skills/`) plus a `SessionStart` hook that announces the
|
|
328
|
-
crew. Regenerate the copies from `content/` with `.claude-plugin/sync.sh`.
|
|
329
|
-
|
|
330
|
-
```bash
|
|
331
|
-
# Claude Code (fully supported)
|
|
332
|
-
/plugin marketplace add ionivetech/mugiwara
|
|
333
|
-
/plugin install mugiwara
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
GitHub Copilot CLI can read the same `.claude-plugin/` marketplace and consume
|
|
337
|
-
the skills as native Copilot skills:
|
|
338
|
-
|
|
339
|
-
```bash
|
|
340
|
-
# GitHub Copilot CLI (skills + marketplace readable)
|
|
341
|
-
copilot plugin marketplace add ionivetech/mugiwara
|
|
342
|
-
copilot plugin install mugiwara
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
> **Copilot caveat.** The agents are **Claude-native `.md` files** — they will
|
|
346
|
-
> not auto-discover in Copilot and may need `.agent.md` conversion to work as
|
|
347
|
-
> Copilot plugin agents. Skills install and function; agents are best consumed
|
|
348
|
-
> through the regular CLI install path (which writes Copilot-native
|
|
349
|
-
> `.instructions.md` skills and `.md` agents).
|
|
350
|
-
|
|
351
|
-
## FAQ / troubleshooting
|
|
352
|
-
|
|
353
|
-
**Why is the content so short?** The skills are dense instructions, not prose.
|
|
354
|
-
Each agent/skill file is one flat-frontmatter markdown doc, body ≤120 lines —
|
|
355
|
-
short enough for your AI tool to read fully and act on. Density beats verbosity:
|
|
356
|
-
the harness doesn't ship essays, it ships protocols.
|
|
357
|
-
|
|
358
|
-
**Do I need Bun?** No. The runtime is plain Node.js >= 20.11 — the built
|
|
359
|
-
artifact (`dist/mugiwara.js`) runs on Node. Bun is only for building from
|
|
360
|
-
source and running tests.
|
|
361
|
-
|
|
362
|
-
**How is Mugiwara different from a framework like CrewAI?** CrewAI is a
|
|
363
|
-
runtime you program against. Mugiwara is content-only: markdown skills and
|
|
364
|
-
agents your existing AI tool loads natively and executes with its own subagent
|
|
365
|
-
machinery. There is no runtime, no SDK, nothing to host.
|
|
366
|
-
|
|
367
|
-
**Does it work on Windows?** Yes — PowerShell one-liner
|
|
368
|
-
(`irm ...install.ps1 | iex`), and the CLI itself runs anywhere Node >= 20.11
|
|
369
|
-
does.
|
|
370
|
-
|
|
371
|
-
**How do I uninstall?** `mugiwara uninstall` removes exactly what the install
|
|
372
|
-
manifest recorded — nothing more, nothing less. For a plugin install, remove it
|
|
373
|
-
from the plugin marketplace/manager instead.
|
|
429
|
+
## Plugin manifests
|
|
374
430
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
all install methods above already point at the scoped name.
|
|
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:
|
|
378
433
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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 |
|
|
383
443
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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).
|
|
387
448
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
- **Node.js >= 20.11** — the built artifact runs on plain Node
|
|
394
|
-
|
|
395
|
-
```bash
|
|
396
|
-
bun install # install dev dependencies
|
|
397
|
-
bun run build # bundle src/cli.ts → dist/mugiwara.js (Bun, ESM, node target)
|
|
398
|
-
bun run test # vitest suites
|
|
399
|
-
bun run typecheck # tsc --noEmit
|
|
400
|
-
bun run validate # bun scripts/validate-content.ts — content schema lint
|
|
401
|
-
node dist/mugiwara.js --version # smoke-test the built CLI
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
`bun run build` runs automatically on `npm pack` / `npm publish` (via
|
|
405
|
-
`prepack`).
|
|
406
|
-
|
|
407
|
-
### Project layout
|
|
408
|
-
|
|
409
|
-
```
|
|
410
|
-
mugiwara/
|
|
411
|
-
├── src/ # TypeScript: CLI, installer, target adapters
|
|
412
|
-
│ └── targets/ # one adapter per AI agent (claude, opencode, gemini, ...)
|
|
413
|
-
├── test/ # vitest suites
|
|
414
|
-
├── content/ # single source of truth for the crew
|
|
415
|
-
│ ├── skills/ # 21 skills (one dir per skill, SKILL.md inside)
|
|
416
|
-
│ └── agents/ # 15 agents (<name>.md)
|
|
417
|
-
├── scripts/ # install.sh, install.ps1, validate-content.ts
|
|
418
|
-
├── hooks/ # Claude Code SessionStart hook (hooks.json + session-start.ts)
|
|
419
|
-
├── .claude-plugin/ # Claude plugin + marketplace metadata; sync.sh copies
|
|
420
|
-
├── agents/ # plugin copies of content/agents/ (generated by sync.sh)
|
|
421
|
-
├── skills/ # plugin copies of content/skills/ (generated by sync.sh)
|
|
422
|
-
├── dist/ # bundled CLI output (generated, gitignored)
|
|
423
|
-
├── docs/ # specs, plans, research
|
|
424
|
-
└── package.json
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
### Adding a skill
|
|
428
|
-
|
|
429
|
-
1. Create `content/skills/<name>/SKILL.md` — flat frontmatter (`name`,
|
|
430
|
-
`description`), body ≤ 120 lines.
|
|
431
|
-
2. Reference it from at least one agent's `skills` field in
|
|
432
|
-
`content/agents/*.md`.
|
|
433
|
-
3. Run `bun run validate` to confirm it passes the schema.
|
|
434
|
-
4. Re-sync the plugin copies with `.claude-plugin/sync.sh`.
|
|
435
|
-
|
|
436
|
-
### Adding an agent
|
|
437
|
-
|
|
438
|
-
1. Create `content/agents/<name>.md` with a `skills` field listing the skills
|
|
439
|
-
it calls.
|
|
440
|
-
2. Run `bun run validate`.
|
|
441
|
-
3. Re-sync with `.claude-plugin/sync.sh`.
|
|
442
|
-
|
|
443
|
-
## Content schema
|
|
444
|
-
|
|
445
|
-
Every skill and agent is a single markdown file with **flat frontmatter** — no
|
|
446
|
-
nested fields:
|
|
447
|
-
|
|
448
|
-
```yaml
|
|
449
|
-
---
|
|
450
|
-
name: mugiwara-example
|
|
451
|
-
description: Use when <trigger condition> — <what it does, how it behaves>.
|
|
452
|
-
---
|
|
453
|
-
|
|
454
|
-
<body>
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
| Rule | Detail |
|
|
458
|
-
|------|--------|
|
|
459
|
-
| Naming | `name` must equal the directory (skills) or file (agents) name |
|
|
460
|
-
| Description | `description` 20–500 characters for skills, ≥20 for agents |
|
|
461
|
-
| Trigger phrasing | Descriptions start with "Use when …" (skills) or "Dispatch when …" (agents) so your AI tool auto-selects the right one |
|
|
462
|
-
| Skill body | ≤ 120 lines |
|
|
463
|
-
| Agent `skills` | Every agent must list the skills it calls, comma-separated; each must exist |
|
|
464
|
-
| References | Every skill except `mugiwara-workflow` must be referenced by at least one agent |
|
|
465
|
-
| Uniqueness | No duplicate `name` across skills and agents |
|
|
466
|
-
|
|
467
|
-
Run `bun run validate` before opening a PR — it checks all of this and exits
|
|
468
|
-
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).
|
|
469
454
|
|
|
470
455
|
## Contributing
|
|
471
456
|
|
|
472
|
-
Open an issue or pull request on GitHub.
|
|
473
|
-
follow the [content schema](#content-schema) and run `bun run validate` before
|
|
474
|
-
opening the PR.
|
|
457
|
+
Open an issue or pull request on GitHub.
|
|
475
458
|
|
|
476
459
|
## Resources
|
|
477
460
|
|
|
461
|
+
- Docs: [docs/index.md](docs/index.md) — adoption guide, per-harness installs, crew & skill references
|
|
478
462
|
- GitHub: <https://github.com/ionivetech/mugiwara>
|
|
479
463
|
- npm: <https://www.npmjs.com/package/@ionivetech/mugiwara>
|
|
480
|
-
- Star history: <https://star-history.com/#ionivetech/mugiwara>
|
|
481
464
|
|
|
482
465
|
## License
|
|
483
466
|
|
|
484
467
|
MIT. Copyright (c) 2026 ionive. See [LICENSE](LICENSE).
|
|
485
|
-
|
|
486
|
-
---
|
|
487
|
-
|
|
488
|
-
[](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
|
|