@ionivetech/mugiwara 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/plugins/mugiwara.mjs +102 -0
- package/README.md +196 -216
- 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/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 +19 -2
package/docs/workflow.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# The Wave Pipeline
|
|
2
|
+
|
|
3
|
+
A mission runs as ten waves (plus one optional adversarial pass). Each wave is
|
|
4
|
+
owned by one crew member and runs **inline** in the main conversation.
|
|
5
|
+
|
|
6
|
+
| Wave | Owner | Skill | Output |
|
|
7
|
+
|------|-------|-------|--------|
|
|
8
|
+
| 0 Triage | Luffy | `mugiwara-orchestration` | 5-way route decision + reason |
|
|
9
|
+
| 1 Brainstorm | Usopp | `mugiwara-brainstorm` | refined direction, options, recommendation |
|
|
10
|
+
| 2 Planning | Nami | `mugiwara-planning` | plan doc: waves, tasks, acceptance criteria |
|
|
11
|
+
| 3 Execution | Zoro | `mugiwara-execution` | implemented tasks with evidence |
|
|
12
|
+
| 4 Checkpoint | Chopper | `mugiwara-checkpoint` | audit report + failure ledger |
|
|
13
|
+
| 4.5 Adversarial | Skeptic | `mugiwara-dynamic-workflow` | findings report (optional) |
|
|
14
|
+
| 5 Quality | Sanji | `mugiwara-quality` | formatter/linter/test results |
|
|
15
|
+
| 6 Gates | Franky | `mugiwara-gates` | coverage + build verdict |
|
|
16
|
+
| 7 Review | Robin ∥ Jinbe | `mugiwara-review` + `mugiwara-security` | severity-tagged findings |
|
|
17
|
+
| 8 Healing | Brook | `mugiwara-healing` | fixes; loops back to Wave 4, max 3 cycles |
|
|
18
|
+
| 9 Closure | Luffy | `mugiwara-orchestration` | closure report + push + PR verdict handed to you |
|
|
19
|
+
|
|
20
|
+
## Wave 0 — Triage
|
|
21
|
+
|
|
22
|
+
Every mission starts at the Luffy gateway, which classifies the request 5 ways:
|
|
23
|
+
|
|
24
|
+
| Class | Signal | Route |
|
|
25
|
+
|-------|--------|-------|
|
|
26
|
+
| Trivial | one obvious small change, no ambiguity | Wave 2 directly |
|
|
27
|
+
| Explicit | clear requirements, written spec exists | Wave 2 directly |
|
|
28
|
+
| Exploratory | needs direction, options, research | Wave 1 first |
|
|
29
|
+
| Open-ended | broad goal, undefined scope | Wave 1 first |
|
|
30
|
+
| Ambiguous | requirements, APIs, scope unclear | Wave 1 first |
|
|
31
|
+
|
|
32
|
+
The decision + reason is logged in `.mugiwara/logs/`. Risk (money/security/
|
|
33
|
+
data/public API) always triggers the full pipeline.
|
|
34
|
+
|
|
35
|
+
## Wave 4 — Checkpoint (Chopper)
|
|
36
|
+
|
|
37
|
+
The verify-everything gate. After execution, Chopper re-runs every acceptance
|
|
38
|
+
criterion — but efficiently:
|
|
39
|
+
|
|
40
|
+
- **Deduped**: each unique check command runs once per wave, scoped to the
|
|
41
|
+
files this wave changed. No running `npm test` once per task.
|
|
42
|
+
- **Scoped by diff**: `git diff --name-only <wave-base>..HEAD` decides what
|
|
43
|
+
actually needs re-verification.
|
|
44
|
+
- **Commit hygiene**: one `git log --stat` pass, not per-commit.
|
|
45
|
+
- Failures land in the blocker ledger `.mugiwara/issues/` with honest
|
|
46
|
+
code-vs-env classification.
|
|
47
|
+
|
|
48
|
+
## Wave 7 — Review
|
|
49
|
+
|
|
50
|
+
Robin (doubt-driven review) and Jinbe (security) run in parallel. Robin maps
|
|
51
|
+
breaking changes to callers before reading the diff; Jinbe runs STRIDE + OWASP.
|
|
52
|
+
Findings are severity-tagged with path:line.
|
|
53
|
+
|
|
54
|
+
## Wave 8 — Healing
|
|
55
|
+
|
|
56
|
+
Brook reads the blocker ledger and fixes root causes, proving each fix by
|
|
57
|
+
re-running the failed check. The loop returns to Wave 4 — max 3 cycles, then
|
|
58
|
+
escalation to you.
|
|
59
|
+
|
|
60
|
+
## Wave 9 — Closure
|
|
61
|
+
|
|
62
|
+
Luffy runs the ship gate, writes the closure report, deletes superseded
|
|
63
|
+
intermediate files, then the terminal step in every mode: **save-point commit →
|
|
64
|
+
push the mission branch → write the PR verdict file → hand branch + verdict to
|
|
65
|
+
you**, who opens the PR. The crew never creates a PR, merges, or deploys.
|
|
66
|
+
|
|
67
|
+
## The two rules that hold it together
|
|
68
|
+
|
|
69
|
+
1. **Evidence over claims.** No wave passes on assertion — the owning agent
|
|
70
|
+
runs the checks and shows output. "Subagents lie. No evidence = not
|
|
71
|
+
complete."
|
|
72
|
+
2. **The plan is the source of truth.** From Wave 2 on, the plan doc in
|
|
73
|
+
`.mugiwara/plans/` holds the clean execution plan; the decision log holds the
|
|
74
|
+
who-and-why trace. No wave is skipped without the reason recorded.
|
|
75
|
+
|
|
76
|
+
## Blocker protocol
|
|
77
|
+
|
|
78
|
+
Any agent that hits a blocker appends a row
|
|
79
|
+
(`wave | task | symptom | attempted | help-needed`) to the ledger and escalates.
|
|
80
|
+
Never a silent workaround. Brook heals what the ledger lists.
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionivetech/mugiwara",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, self-healing. Installs into Claude Code, opencode, Copilot, Gemini, Codex, Windsurf, Cline, Kilo, Antigravity.",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, self-healing. Installs into Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, pi, Windsurf, Cline, Kilo, Antigravity.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"main": "./.opencode/plugins/mugiwara.mjs",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./.opencode/plugins/mugiwara.mjs",
|
|
10
|
+
"./plugin": "./.opencode/plugins/mugiwara.mjs",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
7
13
|
"bin": {
|
|
8
14
|
"mugiwara": "dist/mugiwara.js"
|
|
9
15
|
},
|
|
@@ -11,11 +17,18 @@
|
|
|
11
17
|
"dist",
|
|
12
18
|
"src",
|
|
13
19
|
"content",
|
|
20
|
+
"docs",
|
|
21
|
+
".opencode",
|
|
14
22
|
"scripts/install.sh",
|
|
15
23
|
"scripts/install.ps1",
|
|
16
24
|
"README.md",
|
|
17
25
|
"LICENSE"
|
|
18
26
|
],
|
|
27
|
+
"pi": {
|
|
28
|
+
"skills": [
|
|
29
|
+
"./content/skills"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
19
32
|
"engines": {
|
|
20
33
|
"node": ">=20.11"
|
|
21
34
|
},
|
|
@@ -35,9 +48,13 @@
|
|
|
35
48
|
"skills",
|
|
36
49
|
"claude-code",
|
|
37
50
|
"opencode",
|
|
51
|
+
"opencode-plugin",
|
|
38
52
|
"copilot",
|
|
39
53
|
"gemini",
|
|
40
54
|
"codex",
|
|
55
|
+
"cursor",
|
|
56
|
+
"kimi",
|
|
57
|
+
"pi",
|
|
41
58
|
"windsurf",
|
|
42
59
|
"cline",
|
|
43
60
|
"multi-agent",
|