@ionivetech/mugiwara 0.2.0 → 0.4.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 (99) hide show
  1. package/.opencode/commands/mugiwara-execute.md +11 -0
  2. package/.opencode/commands/mugiwara-heal.md +11 -0
  3. package/.opencode/commands/mugiwara-mode.md +6 -0
  4. package/.opencode/commands/mugiwara-plan.md +15 -0
  5. package/.opencode/commands/mugiwara-review.md +11 -0
  6. package/.opencode/commands/mugiwara-security.md +11 -0
  7. package/.opencode/commands/mugiwara-ship.md +11 -0
  8. package/.opencode/commands/mugiwara.md +11 -0
  9. package/.opencode/plugins/mugiwara.mjs +126 -7
  10. package/README.md +338 -355
  11. package/content/agents/brook-healing.md +2 -2
  12. package/content/agents/luffy-orchestrator.md +3 -2
  13. package/content/agents/robin-reviewer.md +1 -1
  14. package/content/agents/skeptic-verifier.md +1 -1
  15. package/content/agents/using-mugiwara.md +5 -1
  16. package/content/agents/usopp-brainstorm.md +1 -1
  17. package/content/agents/zoro-execution.md +1 -1
  18. package/content/skills/mugiwara-agent-security/SKILL.md +5 -0
  19. package/content/skills/mugiwara-api-and-interface-design/SKILL.md +92 -0
  20. package/content/skills/mugiwara-backend/SKILL.md +5 -0
  21. package/content/skills/mugiwara-brainstorm/SKILL.md +5 -0
  22. package/content/skills/mugiwara-checkpoint/SKILL.md +5 -0
  23. package/content/skills/mugiwara-context-engineering/SKILL.md +64 -0
  24. package/content/skills/mugiwara-deprecation/SKILL.md +5 -0
  25. package/content/skills/mugiwara-doubt-driven-development/SKILL.md +70 -0
  26. package/content/skills/mugiwara-dynamic-workflow/SKILL.md +5 -0
  27. package/content/skills/mugiwara-eval/SKILL.md +5 -0
  28. package/content/skills/mugiwara-execution/SKILL.md +9 -0
  29. package/content/skills/mugiwara-frontend/SKILL.md +61 -59
  30. package/content/skills/mugiwara-frontend/references/checklist.md +37 -0
  31. package/content/skills/mugiwara-gates/SKILL.md +9 -0
  32. package/content/skills/mugiwara-git/SKILL.md +5 -0
  33. package/content/skills/mugiwara-git-worktrees/SKILL.md +67 -0
  34. package/content/skills/mugiwara-healing/SKILL.md +17 -0
  35. package/content/skills/mugiwara-lessons/SKILL.md +5 -0
  36. package/content/skills/mugiwara-mode/SKILL.md +18 -4
  37. package/content/skills/mugiwara-observability/SKILL.md +5 -0
  38. package/content/skills/mugiwara-orchestration/SKILL.md +32 -1
  39. package/content/skills/mugiwara-planning/SKILL.md +25 -26
  40. package/content/skills/mugiwara-pr/SKILL.md +22 -6
  41. package/content/skills/mugiwara-quality/SKILL.md +15 -0
  42. package/content/skills/mugiwara-resume/SKILL.md +5 -0
  43. package/content/skills/mugiwara-review/SKILL.md +5 -0
  44. package/content/skills/mugiwara-security/SKILL.md +51 -14
  45. package/content/skills/mugiwara-ship/SKILL.md +29 -1
  46. package/content/skills/mugiwara-systematic-debugging/SKILL.md +82 -0
  47. package/content/skills/mugiwara-test-driven-development/SKILL.md +89 -0
  48. package/content/skills/mugiwara-testcases/SKILL.md +5 -0
  49. package/content/skills/mugiwara-workflow/SKILL.md +14 -3
  50. package/content/skills/mugiwara-writing-skills/SKILL.md +65 -0
  51. package/dist/mugiwara.js +175 -51
  52. package/docs/adoption-guide.md +3 -3
  53. package/docs/agents.md +2 -2
  54. package/docs/claude-setup.md +9 -4
  55. package/docs/codex-setup.md +3 -1
  56. package/docs/comparison.md +166 -44
  57. package/docs/config.md +53 -0
  58. package/docs/copilot-setup.md +3 -1
  59. package/docs/cursor-setup.md +3 -1
  60. package/docs/developer-onboarding.md +17 -13
  61. package/docs/enforcement.md +38 -0
  62. package/docs/execution-model.md +33 -0
  63. package/docs/gemini-setup.md +4 -1
  64. package/docs/getting-started.md +16 -4
  65. package/docs/index.md +14 -3
  66. package/docs/lanes.md +40 -0
  67. package/docs/modes.md +22 -12
  68. package/docs/opencode-setup.md +9 -2
  69. package/docs/pr-summary.md +54 -0
  70. package/docs/skill-anatomy.md +16 -6
  71. package/docs/skills.md +17 -5
  72. package/docs/troubleshooting.md +91 -0
  73. package/docs/windsurf-setup.md +3 -1
  74. package/docs/workflow.md +15 -6
  75. package/evals/cases/adversarial-pressure-fake-pass.json +12 -0
  76. package/evals/cases/adversarial-pressure-skip-review.json +13 -0
  77. package/evals/cases/lane-exploratory-vague.json +12 -0
  78. package/evals/cases/lane-sensitivity-payment.json +12 -0
  79. package/evals/cases/negative-secrets-typo.json +12 -0
  80. package/evals/cases/negative-security-docs-change.json +12 -0
  81. package/evals/cases/positive-refactor-existing-tests.json +11 -0
  82. package/evals/cases/positive-resume-mid-mission.json +11 -0
  83. package/evals/cases/routing-auth-feature.json +13 -0
  84. package/evals/cases/routing-bug-one-file.json +13 -0
  85. package/evals/cases/routing-typo.json +13 -0
  86. package/hooks/hooks.json +15 -0
  87. package/hooks/session-start.ts +8 -0
  88. package/package.json +3 -1
  89. package/src/args.ts +2 -1
  90. package/src/cli.ts +16 -20
  91. package/src/installer.ts +31 -3
  92. package/src/mission.ts +25 -0
  93. package/src/targets/claude.ts +22 -1
  94. package/src/targets/codex.ts +1 -1
  95. package/src/targets/copilot.ts +4 -0
  96. package/src/targets/gemini.ts +1 -1
  97. package/src/targets/generic.ts +33 -1
  98. package/src/targets/kilo.ts +1 -0
  99. package/src/targets/opencode.ts +4 -0
package/README.md CHANGED
@@ -3,104 +3,203 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@ionivetech%2fmugiwara)](https://www.npmjs.com/package/@ionivetech/mugiwara)
4
4
  [![License: MIT](https://img.shields.io/github/license/ionivetech/mugiwara)](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
5
5
 
6
- The Straw Hat crew of AI agents and skills.
7
-
8
- Zero runtime: pure markdown your existing AI agent runs with its own subagent
9
- machinery — no daemons, no plugins to keep updated, nothing to host.
10
-
11
- ## Why Mugiwara
12
-
13
- - 🧭 **A named crew.** Ten specialist agents Luffy orchestrates, Nami plans,
14
- Zoro executes, Chopper audits, Brook heals each with a narrow job.
15
- - 📦 **No runtime.** Ships markdown only: native skills and agents for
16
- Claude Code, opencode, Copilot, Gemini CLI, Codex, Cursor, Kimi, pi,
17
- Windsurf, Cline, Kilo Code, and Antigravity.
18
- - 🔁 **Wave pipeline.** brainstorm → plan → execute → audit → quality → gates
19
- review → security → heal → closure. Failure loops back through healing
20
- (max 3 cycles), never ships broken.
21
- - 🛡 **Evidence over claims.** No wave passes on assertion the owning agent
22
- shows output. No evidence, not complete.
23
- - ⚡ **One-command install.** `npx`, `npm -g`, curl, or PowerShell — interactive
24
- wizard or fully scriptable with flags.
25
- - 🧪 **Everything validated.** Coverage gates, build gates, OWASP security
26
- review, doubt-driven diff review, Definition of Done.
27
-
28
- ### The crew — 15 agents
29
-
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.
33
-
34
- | Agent | Crew member | Role |
35
- |-------|-------------|------|
36
- | `using-mugiwara` | Front Door | Start here: routes any request to the right crew member — no agent names to remember |
37
- | `luffy-orchestrator` | Luffy | Main gateway: 5-way triage, background check-ins, work splitting, decision log, closure |
38
- | `usopp-brainstorm` | Usopp | Critical brainstorming friend: facts over hype, options + trade-offs, no over-engineering |
39
- | `nami-planner` | Nami | Interview-first planner: full-context scan, wave structure, anti-patterns, parallel-safe plans |
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) |
42
- | `sanji-quality` | Sanji | Discover the stack, then format/lint/test; integration tests only with consent |
43
- | `franky-gates` | Franky | Binary gates: coverage ≥90/80, build exit 0, Definition of Done |
44
- | `robin-reviewer` | Robin | Doubt-driven diff review: breaking-change first, five-axis, severity-tagged findings |
45
- | `jinbe-security` | Jinbe | Security review: OWASP, secrets, injection, auth, dependencies, untrusted-data doctrine |
46
- | `brook-healing` | Brook | Reads the blocker ledger, Stop-the-Line root-cause fixes, ≤3 heal cycles |
47
- | `skeptic-verifier` | Skeptic | Adversarial verification: doubt every output/plan/verdict, find what's wrong, do NOT validate |
48
- | `eval-runner` | Eval Runner | Test engineer for the harness itself: task suites, judge-agent rubric comparison, fix the skill not the eval |
49
- | `resume-coordinator` | Resume Coordinator | Rebuild the picture from `.mugiwara/` state after context loss; continue, never restart |
50
- | `memory-keeper` | Memory Keeper | Institutional memory: surface past lessons at mission start, capture new ones at closure |
51
-
52
- ### The techniques — 25 skills
53
-
54
- | Skill | Purpose |
55
- |-------|---------|
56
- | `mugiwara-workflow` | The harness entry point: inline execution model, gateway triage, wave pipeline, workspace layout, blocker protocol, cleanup |
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 |
59
- | `mugiwara-brainstorm` | Usopp's critical sparring: interrogate, research facts, cut over-engineering, recommend |
60
- | `mugiwara-planning` | Interview-first, full-context scan, wave plans with parallel/sequential markers + anti-patterns |
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 |
66
- | `mugiwara-review` | Doubt-driven review: breaking-change analysis, five-axis, severity-tagged findings |
67
- | `mugiwara-security` | OWASP-driven security review, untrusted-data doctrine, severity by exploitability × impact |
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 |
70
- | `mugiwara-frontend` | Anti-slop frontend: audit-first redesigns, design-system extraction, slop list |
71
- | `mugiwara-git` | Atomic commits, save-points, multi-commit splitting, bisect/blame debugging |
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
- | `mugiwara-dynamic-workflow` | Runtime workflow patterns: fan-out-and-synthesize, tournament, loop-until-done, classify-and-act, adversarial verification |
75
- | `mugiwara-agent-security` | Secure the agent layer: prompt injection, memory poisoning, excessive agency, secret handling, sandboxing |
76
- | `mugiwara-backend` | Backend/server code: repo standards first, API design, data integrity, error handling, correctness, performance, server-side security |
77
- | `mugiwara-eval` | Test the harness itself: task suites, judge-agent rubric comparison, pass/fail per case |
78
- | `mugiwara-observability` | Trace the crew: structured logs, OTel-compatible spans, session correlation, end-of-mission summary |
79
- | `mugiwara-resume` | Session resume: rebuild state from `.mugiwara/` after compaction/loss; never restart |
80
- | `mugiwara-lessons` | Cross-mission memory: actionable lessons ledger, read at triage, written at closure |
81
-
82
- ### Every capability, always
83
-
84
- Every install ships the full crewall 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
-
89
- ## How it works
90
-
91
- Every mission starts with `using-mugiwara` — the easy-to-remember front door
92
- that routes you to the right crew member (no agent names to memorize). It
93
- feeds the **Luffy gateway**, which classifies the request (trivial / explicit /
94
- exploratory / open-ended / ambiguous) and routes it: exploratory ideas go to
95
- Usopp's brainstorm, clear work goes straight to Nami's planning. You can also
96
- summon any crew member directly. From there the mission runs as a **wave
97
- pipeline** owned by one crew member per wave, executed inline in your main
98
- conversation.
6
+ **The Straw Hat crew of AI agents and skills.** A complete software
7
+ development workflow for your coding agent — triage, planning, execution,
8
+ verification, review, and shipping with the discipline of a senior
9
+ engineering team.
10
+
11
+ Mugiwara is pure markdown. No daemons, no servers, no plugin to babysit. Your
12
+ existing coding agent reads the skills and runs them itself. It works across
13
+ 12 coding agents Claude Code, opencode, Gemini CLI, Codex, Cursor, Copilot,
14
+ Kimi, pi, Windsurf, Cline, Kilo Code, and Antigravity and installs into
15
+ 70+ more as plain skills.
16
+
17
+ ```
18
+ TRIAGE PLAN BUILD VERIFY REVIEW SHIP
19
+ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
20
+ │ Luffy │ ──▶ │ Nami │ ──▶ │ Zoro │ ──▶ │ Chopper ──▶ Robin + │ ──▶ │ push + │
21
+ 5-way │ │ waves + │ │ TDD per │ │ Sanji + │ │ Jinbe │ │ ready PR
22
+ triage │ │ tasks │ │ task │ │ Franky │ │ review+ │ │ summary │
23
+ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
24
+ exploratory Usopp brainstorms fail → Brook heals ↺ Wave 4
25
+ ```
26
+
27
+ ## Why mugiwara
28
+
29
+ - **It just starts.** Give a non-trivial request — "add dark mode to the
30
+ settings page" and the crew runs the pipeline in your main conversation,
31
+ with a compact checkpoint report at every stage. Nothing hides behind a
32
+ subagent click; you can interrupt any time.
33
+ - **The work is sized before it runs.** A one-file typo runs zero waves. An
34
+ architecture change runs all nine. Luffy routes each mission to a lane, so a
35
+ tiny fix never pays the price of a big feature — and a sensitive change never
36
+ sneaks through the lean path.
37
+ - **Evidence over claims.** No wave passes on a spoken "it works." The owning
38
+ agent runs the checks and shows output. Every skill also knows when it does
39
+ *not* apply and says so, out loud.
40
+ - **It remembers.** Mission state lives in `.mugiwara/` plans, results, a
41
+ failure ledger, and a lessons file. Lose context mid-mission and the crew
42
+ rebuilds from disk instead of restarting.
43
+ - **You stay in control.** The crew pushes the branch and hands you a
44
+ ready-to-paste PR summary. It never creates a PR, merges, or deploys on its
45
+ own. Three autonomy levels guided, semi, auto decide how much it does
46
+ without asking.
47
+
48
+ ## Quick start
49
+
50
+ Install into your harness in one command, then just ask:
51
+
52
+ ```bash
53
+ # Claude Code
54
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
55
+
56
+ # opencode
57
+ { "plugin": ["@ionivetech/mugiwara"] } # add to opencode.json
58
+
59
+ # or via CLI for any target
60
+ npx @ionivetech/mugiwara@latest --project ./my-app --target all --yes
61
+ ```
62
+
63
+ ```text
64
+ > add dark mode to the settings page
65
+ ```
66
+
67
+ The crew announces itself at session start and routes the request. See
68
+ [docs/getting-started.md](docs/getting-started.md) for the full walkthrough.
69
+
70
+ ---
71
+
72
+ ## The crew 15 agents
73
+
74
+ Each agent is a focused specialist. The main thread embodies each role inline
75
+ using its skill; you can also summon any member directly by name. "Dispatch"
76
+ means *route the mission to this role* crew members never dispatch each other.
77
+
78
+ | Agent | Crew member | Role | Summon for |
79
+ |-------|-------------|------|------------|
80
+ | `using-mugiwara` | Front Door | Router classifies and routes, never implements | any new mission |
81
+ | `luffy-orchestrator` | Luffy | Captain — 5-way triage, lane sizing, check-ins, closure | mission start, escalations |
82
+ | `usopp-brainstorm` | Usopp | Critical friend — interrogates ideas, researches, no rubber-stamps | vague ideas, direction, options |
83
+ | `nami-planner` | Nami | Planner — interview-first, full-context scan, scaled plans | turning an idea into a plan |
84
+ | `zoro-execution` | Zoro | Executortodo list first, inline tasks, parallel worker batches, evidence per task | executing an approved plan |
85
+ | `chopper-checkpoint` | Chopper | Auditor — re-verifies every acceptance criterion, writes the failure ledger, never fixes | auditing a wave's results |
86
+ | `sanji-quality` | Sanji | Quality — discovers real tooling, format / lint / test | after checkpoint passes |
87
+ | `franky-gates` | Franky | Gates — coverage, build, Definition of Done, binary verdicts | after quality checks |
88
+ | `robin-reviewer` | Robin | Reviewer — doubt-driven diff review, breaking-change map first | after gates pass |
89
+ | `jinbe-security` | Jinbe | Security — STRIDE, OWASP, secrets, injection, auth, dependencies | security audit of a diff |
90
+ | `brook-healing` | Brook | Healer — reads the ledger, root-cause fixes, proves each fix, ≤3 cycles | any wave produced failures |
91
+ | `skeptic-verifier` | Skeptic | Adversarial verifier doubts every output, never validates | high-stakes verdicts, plans, reviews |
92
+ | `eval-runner` | Eval Runner | Harness tester task suites, rubric comparison, pass/fail | verifying mugiwara itself works |
93
+ | `resume-coordinator` | Resume Coordinator | Resumer rebuilds from `.mugiwara/`, continues never restarts | context loss, new session mid-mission |
94
+ | `memory-keeper` | Memory Keeper | Institutional memory surfaces past lessons, captures new ones | mission start + closure |
95
+
96
+ Say a name and the role embodies itself:
97
+
98
+ ```
99
+ > Chopper, audit the last wave against the plan
100
+ > Nami, plan this out
101
+ ```
102
+
103
+ Luffy still records the route and its reason, and direct calls do not skip
104
+ check-ins. See [docs/agents.md](docs/agents.md).
105
+
106
+ ---
107
+
108
+ ## The techniques — 32 skills
109
+
110
+ Skills are the actual product: portable markdown playbooks that tell the agent
111
+ *how* to do each phase well. Agents are the personas; skills are the
112
+ knowledge. Every skill declares **when to use it** and **when to skip it**.
113
+
114
+ ### The pipeline
115
+
116
+ | Skill | Used when |
117
+ |-------|-----------|
118
+ | `mugiwara-workflow` | starting any non-trivial mission — the harness entry point |
119
+ | `mugiwara-orchestration` | triaging a new mission, coordinating waves, closing out |
120
+ | `mugiwara-brainstorm` | exploring a vague idea or architecture choice before planning |
121
+ | `mugiwara-planning` | turning an approved idea or spec into an execution plan |
122
+ | `mugiwara-execution` | executing an approved wave-structured plan |
123
+ | `mugiwara-checkpoint` | auditing a wave's results against the plan, criterion by criterion |
124
+ | `mugiwara-healing` | earlier waves produced failures — test, gate, review, or security findings |
125
+ | `mugiwara-resume` | a mission was interrupted, context lost, or a new session starts mid-mission |
126
+ | `mugiwara-mode` | reading or changing the autonomy level (guided / semi / auto) |
127
+
128
+ ### Engineering practice
129
+
130
+ | Skill | Used when |
131
+ |-------|-----------|
132
+ | `mugiwara-test-driven-development` | writing code during execution — RED-GREEN-REFACTOR |
133
+ | `mugiwara-testcases` | a mission declares user-provided test cases or acceptance criteria |
134
+ | `mugiwara-systematic-debugging` | a bug, crash, or unexplained regression needs root-cause discipline |
135
+ | `mugiwara-api-and-interface-design` | designing or reviewing an API, interface, or inter-service contract |
136
+ | `mugiwara-doubt-driven-development` | an in-flight decision is cheap to verify now but costly to reverse later |
137
+ | `mugiwara-context-engineering` | working in a large codebase, long session, or near the context limit |
138
+ | `mugiwara-git` | committing, splitting commits, or debugging via git history |
139
+ | `mugiwara-git-worktrees` | running parallel branches without polluting the working tree |
140
+ | `mugiwara-deprecation` | retiring code or steering users onto a replacement |
141
+ | `mugiwara-frontend` | any frontend implementation or redesign — anti-slop, WCAG 2.1 AA |
142
+ | `mugiwara-backend` | implementing or reviewing backend/server code |
143
+ | `mugiwara-agent-security` | reviewing the agent layer itself — injection, poisoning, excessive agency |
144
+
145
+ ### Verification & review
146
+
147
+ | Skill | Used when |
148
+ |-------|-----------|
149
+ | `mugiwara-quality` | running format / lint / test after checkpoint passes |
150
+ | `mugiwara-gates` | enforcing coverage, build, and Definition of Done |
151
+ | `mugiwara-review` | reviewing the diff adversarially after gates pass |
152
+ | `mugiwara-security` | running the security audit of a diff or system |
153
+ | `mugiwara-ship` | running the pre-launch gate before anything reaches users |
154
+
155
+ ### Team & meta
156
+
157
+ | Skill | Used when |
158
+ |-------|-----------|
159
+ | `mugiwara-pr` | pushing the branch and preparing the PR material at closure |
160
+ | `mugiwara-lessons` | reading/writing the cross-mission lessons ledger |
161
+ | `mugiwara-observability` | tracing how the crew ran a mission |
162
+ | `mugiwara-dynamic-workflow` | a mission has many subtasks, needs comparison, or risks agent bias |
163
+ | `mugiwara-eval` | verifying a mugiwara skill or agent actually works |
164
+ | `mugiwara-writing-skills` | authoring or revising a mugiwara skill |
165
+
166
+ Every install ships the full set — no project-type selection. The harness
167
+ routes each task to the right skill, and a skill with nothing to do says so and
168
+ steps aside. See [docs/skills.md](docs/skills.md) for the anatomy and
169
+ [docs/skill-anatomy.md](docs/skill-anatomy.md) for the format spec.
170
+
171
+ ---
172
+
173
+ ## How mugiwara works
174
+
175
+ ### Auto-activation
176
+
177
+ At session start the crew is announced. Give a non-trivial request and the
178
+ pipeline runs by itself — no command to remember. `/using-mugiwara` remains an
179
+ optional router if you want to hand-route a mission.
180
+
181
+ ### Sizing: the lanes
182
+
183
+ At Wave 0, Luffy sizes the request and picks a lane. The lane decides how many
184
+ waves run:
185
+
186
+ | Lane | Picks when | Waves |
187
+ |------|-----------|-------|
188
+ | **0 · Direct** | typo, rename, one file under 20 lines | none |
189
+ | **1 · Lean** | bug in 1-2 files, under 50 lines | execute → quality |
190
+ | **2 · Standard** | feature, 3-8 files | plan → execute → checkpoint → review |
191
+ | **3 · Full** | architecture, migration, auth/payment, API | all 9 waves |
192
+ | **4 · Spike** | exploratory, needs direction | brainstorm → re-triage |
193
+
194
+ The lane escalates when the work outgrows the estimate (the diff balloons, a
195
+ sensitive path appears, failures repeat) — but never shrinks on its own.
196
+ Under-process costs more than over-process.
197
+
198
+ ### The wave pipeline
99
199
 
100
200
  ```mermaid
101
201
  flowchart TD
102
- U[User request] --> FD[using-mugiwara]
103
- FD --> G{Luffy triage}
202
+ U[User request] --> G{Luffy triage}
104
203
  G -- exploratory --> B[Usopp brainstorm]
105
204
  G -- clear work --> N[Nami plan]
106
205
  B --> N
@@ -112,355 +211,239 @@ flowchart TD
112
211
  RJ -- pass --> LC[Luffy closure]
113
212
  RJ -- fail --> BH[Brook heal]
114
213
  BH --> CP
115
- LC --> CL[cleanup]
214
+ LC --> CL[push + ready PR summary]
116
215
  ```
117
216
 
118
- The same pipeline as a portable table (renders anywhere markdown does):
119
-
120
217
  | Wave | Owner | Skill | Output |
121
218
  |------|-------|-------|--------|
122
- | 0 Triage | Luffy | `mugiwara-orchestration` | 5-way route decision + reason |
219
+ | 0 Triage | Luffy | `mugiwara-orchestration` | route + lane + reason |
123
220
  | 1 Brainstorm | Usopp | `mugiwara-brainstorm` | refined direction, options, recommendation |
124
- | 2 Planning | Nami | `mugiwara-planning` | plan doc: waves, tasks, acceptance criteria |
221
+ | 2 Planning | Nami | `mugiwara-planning` | plan doc: waves, tasks, dependency edges, acceptance |
125
222
  | 3 Execution | Zoro | `mugiwara-execution` | implemented tasks with evidence |
126
223
  | 4 Checkpoint | Chopper | `mugiwara-checkpoint` | audit report + failure ledger |
127
- | 5 Quality | Sanji | `mugiwara-quality` | formatter/linter/test results |
224
+ | 5 Quality | Sanji | `mugiwara-quality` | formatter / linter / test results |
128
225
  | 6 Gates | Franky | `mugiwara-gates` | coverage + build verdict |
129
- | 7 Review | Robin ∥ Jinbe | `mugiwara-review` + `mugiwara-security` | severity-tagged findings (parallel) |
130
- | 8 Healing | Brook | `mugiwara-healing` | fixes; loops back to Wave 4, max 3 cycles |
131
- | 9 Closure | Luffy | `mugiwara-orchestration` | push + ready PR, verdict comment + check-run via `mugiwara-pr`, closure report in `.mugiwara/results/` + cleanup |
226
+ | 7 Review | Robin ∥ Jinbe | `mugiwara-review` + `mugiwara-security` | severity-tagged findings |
227
+ | 8 Healing | Brook | `mugiwara-healing` | fixes; loops to Wave 4, max 3 cycles |
228
+ | 9 Closure | Luffy | `mugiwara-orchestration` | summary + push + ready PR summary |
229
+
230
+ **You see progress, not a firehose.** Each wave opens with a banner
231
+ (`## Wave N — <crew> (<skill>)`), closes with a compact checkpoint report (what
232
+ ran / result / evidence pointer), and pauses when something fails or gets
233
+ risky. Subagents appear only where they genuinely help: parallel task batches
234
+ and independent re-verification.
132
235
 
133
- ### Modes
236
+ ### What a mission looks like
134
237
 
135
- The crew runs at one of three autonomy levels, set in `.mugiwara/config`
136
- (project, overrides global `~/.mugiwara/config`):
238
+ Small and specific:
137
239
 
138
240
  ```
139
- mode=guided
140
- branch=feature/{type}-{issue}-{slug}
141
- commit=conventional
241
+ > fix the date formatting bug in src/utils/format.ts
142
242
  ```
143
243
 
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.
244
+ Luffy routes it to **Lane 1** and the crew runs two waves Zoro reproduces and
245
+ fixes, then Sanji formats and tests — all visible as checkpoint reports. No
246
+ nine-wave ceremony for a one-file bug.
167
247
 
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.
248
+ Big and sensitive:
171
249
 
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`).
250
+ ```
251
+ > add role-based access control to the API
252
+ ```
175
253
 
176
- Two rules hold the pipeline together:
254
+ That touches auth, so Luffy routes it to **Lane 3**. Nami plans the migration
255
+ waves, Zoro executes test-first, Chopper re-verifies every criterion, Sanji and
256
+ Franky gate it, Robin and Jinbe review, Brook heals anything that fails, and
257
+ Luffy closes with a ready PR summary. Every wave reports inline.
177
258
 
178
- - **Evidence over claims.** No wave passes on assertion the owning agent runs
179
- the checks and shows output. A wave that cannot produce evidence is a failed
180
- wave. ("Subagents lie. No evidence = not complete.")
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.
259
+ That is the point of mugiwara: **the process scales to the work, and you can
260
+ see all of it.**
182
261
 
183
- ### The `.mugiwara/` workspace
262
+ ### The workspace
184
263
 
185
264
  Every mission works inside `.mugiwara/` at the repo root:
186
265
 
187
266
  ```
188
267
  .mugiwara/
189
- ├── config # runtime mode config: mode/branch/commit/pr key=value (gitignored; project overrides global)
190
- ├── spec/ # brainstorm output: YYYY-MM-DD-<mission>.md
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
268
+ ├── config # mode + writing standards (gitignored)
269
+ ├── spec/ # brainstorm output
270
+ ├── plans/ # plan docs — clean, Nami-only, source of truth from Wave 2
271
+ ├── results/ # wave results: audits, test output, gate verdicts
193
272
  ├── review/ # review + security findings
194
- ├── issues/ # blocker + failure ledger: YYYY-MM-DD-<mission>-blockers.md
195
- └── logs/ # Luffy's decision + check-in log per mission (deleted at cleanup)
273
+ ├── issues/ # blocker + failure ledger
274
+ ├── refs/ # full skill/agent bodies for glob-loading harnesses
275
+ └── logs/ # decision + check-in log per mission (deleted at cleanup)
196
276
  ```
197
277
 
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.
278
+ Two rules hold it together:
205
279
 
206
- **Blocker protocol:** any crew member that hits a blocker appends a row
207
- (`wave | task | symptom | attempted | help-needed`) to
208
- `.mugiwara/issues/YYYY-MM-DD-<mission>-blockers.md` and escalates never a silent
209
- workaround. Brook reads the ledger in Wave 8 and heals what it lists.
280
+ 1. **Evidence over claims.** No wave passes on assertion the owning agent
281
+ runs the checks and shows output.
282
+ 2. **The plan is the source of truth.** From Wave 2 on, the plan doc holds the
283
+ clean execution plan; the decision log holds the who-and-why trace. A
284
+ skipped wave is recorded, never silent.
210
285
 
211
- **Cleanup:** at closure, Luffy deletes the superseded intermediate markdown
212
- files (consumed results, review, issues, and per-mission decision logs). The
213
- plan doc and the closure report stay.
286
+ ### Manual stages
214
287
 
215
- The owning agent creates the folder it needs on first write. Mission artifacts
216
- never land outside `.mugiwara/`.
217
-
218
- ## Install
288
+ Prefer to drive the stages yourself? Every stage has a slash command that loads
289
+ the skill, runs the role inline, and bridges state from `.mugiwara/`:
219
290
 
220
- ### Via your AI agent
291
+ | Command | Runs | Reads state from |
292
+ |---------|------|------------------|
293
+ | `/mugiwara-plan` | Nami | `.mugiwara/spec/` |
294
+ | `/mugiwara-execute` | Zoro | `.mugiwara/plans/` |
295
+ | `/mugiwara-review` | Robin | `.mugiwara/results/` + diff |
296
+ | `/mugiwara-security` | Jinbe | `.mugiwara/results/` + diff |
297
+ | `/mugiwara-heal` | Brook | `.mugiwara/issues/` |
298
+ | `/mugiwara-ship` | Luffy | plan + results |
221
299
 
222
- Install the crew straight from your agent's own plugin system — no CLI needed.
223
- Pick your harness:
300
+ Jump in at any stage plan today, execute tomorrow.
224
301
 
225
- **Claude Code** (fully supported — agents + skills + SessionStart hook)
302
+ ---
226
303
 
227
- ```bash
228
- /plugin marketplace add ionivetech/mugiwara
229
- /plugin install mugiwara
230
- ```
304
+ ## Modes & autonomy
231
305
 
232
- **GitHub Copilot CLI** (same marketplace)
306
+ Three autonomy levels, set in `.mugiwara/config`:
233
307
 
234
- ```bash
235
- copilot plugin marketplace add ionivetech/mugiwara
236
- copilot plugin install mugiwara
237
- ```
308
+ | Level | Plan GO | Branch/commit | Ambiguities | Check-ins |
309
+ |-------|---------|---------------|-------------|-----------|
310
+ | **guided** | ask the user | ask the user | ask the user | ask the user |
311
+ | **semi** | present plan for user GO | auto | self-answer + log | log, no pause |
312
+ | **auto** | gated auto-GO | auto | self-answer + log | log, no pause |
238
313
 
239
- **opencode** (native skills + agents via the opencode plugin)
314
+ - **guided** the default. You approve the plan, decide branch and commits,
315
+ answer ambiguities, and open the PR yourself.
316
+ - **semi** — the crew self-manages branch, commits, and ambiguities (logging
317
+ each decision), but the plan still needs your explicit GO.
318
+ - **auto** — hands-off, with one safety line: the plan proceeds only with zero
319
+ blocking ambiguities AND zero high-risk tasks (deploy / migration / DB /
320
+ public API / state-mutating).
240
321
 
241
- ```json
242
- { "plugin": ["@ionivetech/mugiwara"] }
243
- ```
322
+ Two invariants hold in every mode:
244
323
 
245
- Or from the git repo directly:
324
+ - **Consent.** State-mutating tests against shared state (real DB writes,
325
+ network, browsers) always require your explicit consent. Provably isolated
326
+ mutation is auto-safe.
327
+ - **Terminal.** Every mode ends at push + ready PR summary + verdict file. The
328
+ crew never creates a PR, merges, deploys, or auto-reacts to review comments.
246
329
 
247
- ```json
248
- { "plugin": ["mugiwara@git+https://github.com/ionivetech/mugiwara.git"] }
249
- ```
330
+ Flip mid-mission with `mugiwara mode <guided|semi|auto>`. The PR description is
331
+ prepared for you — see [docs/pr-summary.md](docs/pr-summary.md).
250
332
 
251
- **Codex**
333
+ ---
252
334
 
253
- ```bash
254
- codex plugin marketplace add ionivetech/mugiwara
255
- codex plugin add mugiwara@mugiwara
256
- ```
335
+ ## Configuration
257
336
 
258
- **Cursor**
337
+ `.mugiwara/config` (project) overrides `~/.mugiwara/config` (global). Plain
338
+ `key=value` lines, `#` comments allowed.
259
339
 
260
- ```
261
- /add-plugin mugiwara
262
- ```
263
-
264
- **Gemini CLI**
265
-
266
- ```bash
267
- gemini extensions install https://github.com/ionivetech/mugiwara
268
- ```
340
+ | Key | Values | Default | Meaning |
341
+ |-----|--------|---------|---------|
342
+ | `mode` | guided / semi / auto | guided | How much the crew does without asking |
343
+ | `branch` | pattern | `feature/{type}-{issue}-{slug}` | Branch naming |
344
+ | `commit` | conventional / gitmoji / plain | conventional | Commit message style |
345
+ | `base` | branch name | `main` | The PR target in the prepared summary |
269
346
 
270
- **Kimi Code**
347
+ Commit styles: `conventional` (`feat: ...`, `fix(scope): ...`), `gitmoji`
348
+ (`✨ feat: ...`), or `plain` (`Fix export csv encoding`). See
349
+ [docs/config.md](docs/config.md).
271
350
 
272
- ```
273
- /plugins install https://github.com/ionivetech/mugiwara
274
- ```
351
+ ---
275
352
 
276
- **pi**
353
+ ## Install
277
354
 
278
- ```bash
279
- pi install git:github.com/ionivetech/mugiwara
280
- ```
355
+ ### Via your coding agent
281
356
 
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.
357
+ | Harness | Install |
358
+ |---------|---------|
359
+ | Claude Code | `/plugin marketplace add ionivetech/mugiwara` then `/plugin install mugiwara` |
360
+ | opencode | add `{ "plugin": ["@ionivetech/mugiwara"] }` to `opencode.json` |
361
+ | GitHub Copilot | `copilot plugin marketplace add ionivetech/mugiwara` then `copilot plugin install mugiwara` |
362
+ | Gemini CLI | `gemini extensions install https://github.com/ionivetech/mugiwara` |
363
+ | Codex | `codex plugin marketplace add ionivetech/mugiwara` then `codex plugin add mugiwara@mugiwara` |
364
+ | Cursor | `/add-plugin mugiwara` |
365
+ | Kimi Code | `/plugins install https://github.com/ionivetech/mugiwara` |
366
+ | pi | `pi install git:github.com/ionivetech/mugiwara` |
286
367
 
287
- ### Via script / CLI
368
+ ### Via the CLI
288
369
 
289
- Requires **Node.js >= 20.11**. Bun is optional — only needed to build from
290
- source.
370
+ Requires **Node.js >= 20.11**.
291
371
 
292
372
  ```bash
293
- # npx — run without installing
373
+ # run without installing (wizard)
294
374
  npx @ionivetech/mugiwara@latest
295
375
 
296
- # non-interactive: global Claude Code install, no prompts
376
+ # non-interactive: global Claude Code install
297
377
  npx @ionivetech/mugiwara@latest --global --target claude --yes
298
378
 
299
- # non-interactive: project install for opencode + GitHub Copilot
379
+ # project install for several harnesses
300
380
  npx @ionivetech/mugiwara@latest --project ./my-app --target opencode,copilot --yes
301
381
 
302
- # npm — global install, run `mugiwara` anywhere
382
+ # global install, run `mugiwara` anywhere
303
383
  npm install -g @ionivetech/mugiwara
304
384
  ```
305
385
 
306
386
  ```bash
307
- # curl — macOS / Linux one-liner
387
+ # macOS / Linux one-liner
308
388
  curl -fsSL https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.sh | bash
309
- ```
310
389
 
311
- ```powershell
312
- # PowerShell — Windows one-liner
390
+ # Windows
313
391
  irm https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.ps1 | iex
314
392
  ```
315
393
 
316
- The `install.sh` / `install.ps1` scripts check your Node version, then run the
317
- same CLI (`npx -y @ionivetech/mugiwara@latest`), forwarding any flags you pass.
394
+ ### Skills only, any agent
318
395
 
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):
396
+ All 32 skills ship in the standard [agentskills.io](https://agentskills.io)
397
+ layout, so you can install just the skills into 70+ agents via
398
+ [skills.sh](https://skills.sh):
323
399
 
324
400
  ```bash
325
401
  npx skills add ionivetech/mugiwara
326
402
  ```
327
403
 
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.
331
-
332
- ### Requirements
333
-
334
- | Dependency | Required for | Version |
335
- |------------|--------------|---------|
336
- | Node.js | running the CLI and the built artifact | >= 20.11 |
337
- | Bun | building from source, running tests | optional |
404
+ Update`mugiwara update` or re-run your harness's install command. Uninstall
405
+ `mugiwara uninstall` removes exactly what the manifest recorded.
338
406
 
339
- ## Quickstart
407
+ ---
340
408
 
341
- ```console
342
- $ npx @ionivetech/mugiwara@latest --global --target claude --yes
343
- mugiwara — installing crew for: claude
344
- ✓ claude 15 agents, 25 skills → ~/.claude/skills + ~/.claude/agents
345
- ✓ manifest wrote ~/.mugiwara/manifest.json
346
- ✓ done 24 files written
347
-
348
- $ # now just ask your Claude Code session
349
- > add dark mode to the settings page
350
-
351
- Wave 0 Luffy triage → route: plan (requirements mostly clear)
352
- Wave 2 Nami plan → .mugiwara/plans/2026-08-10-dark-mode.md (3 waves)
353
- Wave 3 Zoro execute→ 3 tasks, evidence shown per task
354
- Wave 4 Chopper audit → FAIL: toggle does not persist (ledger written)
355
- Wave 8 Brook heal → fixed persistence + tests, looped back → PASS
356
- Wave 9 Luffy closure→ report appended to plan, intermediate files cleaned
357
- ```
358
-
359
- You never drive the sequence — you answer Nami's clarifying questions up front
360
- and review Brook's rollback note if a fix is risky.
361
-
362
- ## Commands and flags
363
-
364
- ### Commands
409
+ ## CLI reference
365
410
 
366
411
  | Command | Effect |
367
412
  |---------|--------|
368
413
  | `mugiwara install` | Install the crew (default; wizard when flags are missing) |
369
- | `mugiwara update` | Replace installed files, backing up differences to `.mugiwara/backup/<timestamp>/` first (project root, or `~` for global) |
414
+ | `mugiwara update` | Replace installed files, backing up differences first |
370
415
  | `mugiwara uninstall` | Remove exactly what the install manifest recorded |
371
416
  | `mugiwara list` | Show installations (project + global manifests) |
372
- | `mugiwara skills` | List the installable skills (agentskills.io) + skills.sh install command |
373
- | `mugiwara --help` | Print usage and flags |
374
- | `mugiwara --version` | Print the package version |
375
-
376
- ### Flags
417
+ | `mugiwara reset` | Wipe mission state (`--keep-logs` preserves the lessons ledger) |
418
+ | `mugiwara --help` / `--version` | Help / version |
377
419
 
378
420
  | Flag | Meaning |
379
421
  |------|---------|
380
- | `--global` | Install user-wide (writes to your home directory) |
381
- | `--project <dir>` | Install into a project directory (default: current directory) |
382
- | `--target <ids\|all>` | Comma-separated target IDs, or `all`. Valid: `claude, opencode, copilot, gemini, codex, windsurf, cline, kilo, antigravity` |
383
- | `--yes`, `-y` | Non-interactive. Requires `--global` or `--project`, and `--target` |
384
- | `--force` | Overwrite files that differ (conflicting files are backed up first) |
385
- | `--dry-run` | Print the actions without writing anything |
422
+ | `--global` | Install user-wide |
423
+ | `--project <dir>` | Install into a project directory |
424
+ | `--target <ids\|all>` | Comma-separated target IDs, or `all` |
425
+ | `--yes`, `-y` | Non-interactive |
426
+ | `--force` | Overwrite differing files (with backup) |
427
+ | `--dry-run` | Print actions without writing |
428
+ | `--keep-logs` | With `reset`: keep `.mugiwara/logs` (lessons ledger) |
386
429
 
387
- ```bash
388
- # non-interactive install requires scope + target, or it errors out
389
- npx @ionivetech/mugiwara@latest --project ./app --target claude --yes
430
+ Every install writes `.mugiwara/manifest.json` recording the version, scope,
431
+ targets, and exact written files which is what `update` and `uninstall` use
432
+ to operate safely.
390
433
 
391
- # preview what an install would write, without touching the disk
392
- npx @ionivetech/mugiwara@latest --global --target all --yes --dry-run
434
+ ---
393
435
 
394
- # global installs skip targets that only support project scope (with a note)
395
- npx @ionivetech/mugiwara@latest --global --target all --yes
396
- ```
436
+ ## Comparing
437
+
438
+ Mugiwara is a skills pack with a named crew and a gated pipeline. For an honest
439
+ side-by-side against superpowers, agent-skills, frameworks, and mega-prompts —
440
+ including a measured benchmark — see [docs/comparison.md](docs/comparison.md).
441
+
442
+ ## Docs & roadmap
397
443
 
398
- ### Install manifest
399
-
400
- Every install writes `.mugiwara/manifest.json` (in the project dir, or `~` for
401
- global). The manifest records the version, scope, targets, and the exact
402
- list of written files — which is what `update` and `uninstall` use to operate
403
- safely.
404
-
405
- ## Targets
406
-
407
- All nine supported targets. **Native** targets get first-class skills and
408
- agents; the rest get markdown rule files the tool picks up from a conventions
409
- directory. Targets marked *project only* are skipped (with a note) when you
410
- install with `--global`.
411
-
412
- | Target | Scope | Installs as |
413
- |--------|-------|-------------|
414
- | Claude Code | global + project | Native skills (`SKILL.md`) + agents in `.claude/skills` / `.claude/agents` (`~/.claude` globally) |
415
- | opencode | global + project | Native skills + agents in `.opencode/skills` / `.opencode/agents` (`~/.config/opencode` globally) |
416
- | GitHub Copilot | global + project | Skills as `.instructions.md` files + agents in `instructions/` / `agents/` (`.github` project, `~/.copilot` global) |
417
- | Gemini CLI | project only | Markdown rules in `.gemini/mugiwara/` + `GEMINI.md` pointer |
418
- | Codex | project only | Markdown rules in `.codex/mugiwara/` + `AGENTS.md` pointer |
419
- | Windsurf | project only | Rules files in `.devin/rules` |
420
- | Cline | project only | Rules files in `.clinerules` |
421
- | Kilo Code | project only | Rules files in `.kilo/rules` + `kilo.jsonc` pointer |
422
- | Antigravity | project only | Rules files in `.agents/rules` |
423
-
424
- For rule-based targets, skills land as `mugiwara-*.md` and agents as
425
- `agent-<name>.md`. Targets with a bootstrap file (`Gemini`, `Codex`, `Kilo`)
426
- create it if it doesn't exist and otherwise tell you the line to add, so your
427
- tool points at the crew.
428
-
429
- ## Plugin manifests
430
-
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:
433
-
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 |
443
-
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).
448
-
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).
454
-
455
- ## Contributing
456
-
457
- Open an issue or pull request on GitHub.
458
-
459
- ## Resources
460
-
461
- - Docs: [docs/index.md](docs/index.md) — adoption guide, per-harness installs, crew & skill references
462
- - GitHub: <https://github.com/ionivetech/mugiwara>
463
- - npm: <https://www.npmjs.com/package/@ionivetech/mugiwara>
444
+ - [Docs index](docs/index.md) — adoption guide, installs, crew & skill references
445
+ - [Troubleshooting](docs/troubleshooting.md) — common problems and fixes
446
+ - [Roadmap](ROADMAP.md) what is planned next
464
447
 
465
448
  ## License
466
449