@ionivetech/mugiwara 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +4 -3
- package/.codex-plugin/plugin.json +2 -2
- package/.cursor-plugin/plugin.json +2 -2
- package/.kimi-plugin/plugin.json +2 -2
- package/.opencode/commands/mugiwara-continue.md +16 -0
- package/.opencode/commands/mugiwara-execute.md +6 -4
- package/.opencode/commands/mugiwara-heal.md +6 -4
- package/.opencode/commands/mugiwara-plan.md +6 -4
- package/.opencode/commands/mugiwara-review.md +6 -4
- package/.opencode/commands/mugiwara-security.md +6 -4
- package/.opencode/commands/mugiwara-ship.md +6 -4
- package/.opencode/commands/mugiwara.md +4 -2
- package/.opencode/commands/using-mugiwara.md +7 -13
- package/.opencode/plugins/mugiwara.mjs +18 -6
- package/AGENTS.md +2 -2
- package/GEMINI.md +1 -1
- package/README.md +240 -217
- package/content/agents/brook-healing.md +17 -3
- package/content/agents/chopper-checkpoint.md +17 -3
- package/content/agents/eval-runner.md +17 -2
- package/content/agents/franky-gates.md +19 -5
- package/content/agents/jinbe-security.md +19 -3
- package/content/agents/luffy-orchestrator.md +6 -3
- package/content/agents/memory-keeper.md +15 -0
- package/content/agents/nami-planner.md +21 -6
- package/content/agents/onboarding-guide.md +145 -0
- package/content/agents/resume-coordinator.md +21 -5
- package/content/agents/robin-reviewer.md +18 -3
- package/content/agents/sanji-quality.md +19 -4
- package/content/agents/skeptic-verifier.md +18 -3
- package/content/agents/usopp-brainstorm.md +17 -3
- package/content/agents/zoro-execution.md +19 -5
- package/content/skills/mugiwara-backend/SKILL.md +1 -1
- package/content/skills/mugiwara-brainstorm/SKILL.md +5 -1
- package/content/skills/mugiwara-checkpoint/SKILL.md +2 -2
- package/content/skills/mugiwara-contract-first/SKILL.md +2 -36
- package/content/skills/mugiwara-contract-first/references/process.md +37 -0
- package/content/skills/mugiwara-execution/SKILL.md +30 -13
- package/content/skills/mugiwara-execution/references/resume-batching.md +32 -0
- package/content/skills/mugiwara-frontend/SKILL.md +1 -1
- package/content/skills/mugiwara-gates/SKILL.md +32 -30
- package/content/skills/mugiwara-healing/SKILL.md +1 -1
- package/content/skills/mugiwara-orchestration/SKILL.md +41 -25
- package/content/skills/mugiwara-orchestration/references/delegation-pillars.md +40 -0
- package/content/skills/mugiwara-orchestration/references/triage-escalation.md +96 -0
- package/content/skills/mugiwara-planning/SKILL.md +23 -27
- package/content/skills/mugiwara-planning/references/plan-template.md +42 -0
- package/content/skills/mugiwara-pr/SKILL.md +2 -2
- package/content/skills/mugiwara-quality/SKILL.md +10 -6
- package/content/skills/mugiwara-resume/SKILL.md +7 -2
- package/content/skills/mugiwara-review/SKILL.md +20 -1
- package/content/skills/mugiwara-review/references/code-attributes.md +38 -0
- package/content/skills/mugiwara-root-cause/SKILL.md +3 -30
- package/content/skills/mugiwara-root-cause/references/process.md +35 -0
- package/content/skills/mugiwara-security/SKILL.md +17 -32
- package/content/skills/mugiwara-security/references/owasp-top10.md +12 -0
- package/content/skills/mugiwara-security/references/rationalizations.md +8 -0
- package/content/skills/mugiwara-ship/SKILL.md +5 -4
- package/content/skills/mugiwara-workflow/SKILL.md +74 -77
- package/content/skills/mugiwara-workflow/references/workspace-layout.md +50 -0
- package/content/skills/using-mugiwara/SKILL.md +8 -19
- package/dist/mugiwara.js +206 -87
- package/gemini-extension.json +1 -1
- package/hooks/session-start.ts +1 -1
- package/package.json +12 -5
- package/plugin.json +2 -2
- package/references/multi-actor.md +1 -1
- package/scripts/evidence.sh +13 -6
- package/scripts/gate-selftest.ts +266 -0
- package/scripts/initiative.ts +248 -0
- package/scripts/lane.sh +15 -0
- package/scripts/mission-report.sh +141 -76
- package/scripts/onboard.ts +292 -0
- package/scripts/release-notes.ts +42 -13
- package/scripts/retrieval-eval.ts +1 -2
- package/scripts/run-evals.ts +1 -1
- package/scripts/savepoint.sh +97 -50
- package/scripts/validate-content.ts +84 -7
- package/scripts/verify-install.ts +72 -0
- package/src/args.ts +1 -1
- package/src/cli.ts +49 -22
- package/src/frontmatter.ts +3 -3
- package/src/installer.ts +44 -15
- package/src/mission.ts +7 -5
- package/src/targets/claude.ts +20 -3
- package/src/targets/generic.ts +1 -1
- package/src/targets/opencode.ts +53 -11
- package/docs/adoption-guide.md +0 -72
- package/docs/agent-anatomy.md +0 -72
- package/docs/agents.md +0 -53
- package/docs/audit-trail.md +0 -65
- package/docs/claude-setup.md +0 -43
- package/docs/codex-setup.md +0 -26
- package/docs/comparison.md +0 -58
- package/docs/compliance-matrix.md +0 -81
- package/docs/config.md +0 -55
- package/docs/copilot-setup.md +0 -29
- package/docs/cost.md +0 -45
- package/docs/cursor-setup.md +0 -25
- package/docs/developer-onboarding.md +0 -89
- package/docs/enforcement.md +0 -35
- package/docs/execution-model.md +0 -92
- package/docs/gemini-setup.md +0 -27
- package/docs/getting-started.md +0 -158
- package/docs/git-strategy.md +0 -62
- package/docs/harness-matrix.md +0 -41
- package/docs/index.md +0 -56
- package/docs/install-antigravity.md +0 -45
- package/docs/install-claude.md +0 -75
- package/docs/install-cli.md +0 -103
- package/docs/install-codex.md +0 -44
- package/docs/install-copilot.md +0 -45
- package/docs/install-cursor.md +0 -45
- package/docs/install-gemini.md +0 -44
- package/docs/install-kimi.md +0 -45
- package/docs/install-opencode.md +0 -129
- package/docs/install-pi.md +0 -46
- package/docs/install.md +0 -53
- package/docs/lanes.md +0 -82
- package/docs/modes.md +0 -74
- package/docs/opencode-setup.md +0 -54
- package/docs/pr-summary.md +0 -54
- package/docs/rule-based-setup.md +0 -31
- package/docs/skill-anatomy.md +0 -71
- package/docs/skills.md +0 -55
- package/docs/troubleshooting.md +0 -91
- package/docs/windsurf-setup.md +0 -18
- package/docs/workflow.md +0 -89
- package/evals/cases/_no-skill.json +0 -16
- package/evals/cases/adversarial-pressure-fake-pass.json +0 -25
- package/evals/cases/adversarial-pressure-skip-review.json +0 -25
- package/evals/cases/lane-exploratory-vague.json +0 -24
- package/evals/cases/lane-sensitivity-payment.json +0 -24
- package/evals/cases/positive-refactor-existing-tests.json +0 -25
- package/evals/cases/positive-resume-mid-mission.json +0 -24
- package/evals/cases/routing-agent-security.json +0 -25
- package/evals/cases/routing-auth-feature.json +0 -26
- package/evals/cases/routing-backend.json +0 -25
- package/evals/cases/routing-bug-one-file.json +0 -26
- package/evals/cases/routing-claim-audit.json +0 -25
- package/evals/cases/routing-context-budget.json +0 -25
- package/evals/cases/routing-contract-first.json +0 -25
- package/evals/cases/routing-execution.json +0 -25
- package/evals/cases/routing-frontend.json +0 -26
- package/evals/cases/routing-gates.json +0 -25
- package/evals/cases/routing-git.json +0 -25
- package/evals/cases/routing-healing.json +0 -25
- package/evals/cases/routing-lessons.json +0 -25
- package/evals/cases/routing-orchestration.json +0 -25
- package/evals/cases/routing-planning.json +0 -26
- package/evals/cases/routing-pr.json +0 -25
- package/evals/cases/routing-quality.json +0 -25
- package/evals/cases/routing-ship.json +0 -26
- package/evals/cases/routing-sunset.json +0 -25
- package/evals/cases/routing-using-mugiwara.json +0 -25
- package/evals/cases/routing-workflow.json +0 -25
- package/evals/floor.json +0 -6
|
@@ -46,7 +46,7 @@ Run every item and record evidence; a checkbox ticked without output is a failed
|
|
|
46
46
|
1. Verdict is GO or NO-GO. No "GO with caveats", no "almost".
|
|
47
47
|
2. Every checklist item cites evidence: command output, file, or commit.
|
|
48
48
|
3. A critical finding at any stage → NO-GO. Non-critical findings → list them, decide ship-with-tracking or fix-first, and record which.
|
|
49
|
-
4. Write the verdict and evidence to `.mugiwara/results
|
|
49
|
+
4. Write the verdict and evidence to `.mugiwara/results/<mission>/06-closure.md`.
|
|
50
50
|
|
|
51
51
|
## Cleanup (after the terminal step)
|
|
52
52
|
|
|
@@ -57,14 +57,15 @@ consumed intermediates. Never touch anything outside `.mugiwara/`.
|
|
|
57
57
|
|
|
58
58
|
- `config`
|
|
59
59
|
- `plans/YYYY-MM-DD-<mission>.md` — the clean plan doc
|
|
60
|
-
- `results
|
|
61
|
-
- `results
|
|
60
|
+
- `results/<mission>/06-closure.md` — closure report
|
|
61
|
+
- `results/<mission>/07-pr-verdict.md` — PR material
|
|
62
62
|
- `logs/lessons.md` and any cross-mission state (`backup/`, `manifest.json`)
|
|
63
63
|
|
|
64
64
|
**DELETE** (consumed or superseded):
|
|
65
65
|
|
|
66
|
+
- `results/<mission>/01-execution.md` … `05-healing.md`, `todos.md` — wave artifacts, consumed after closure
|
|
66
67
|
- `spec/YYYY-MM-DD-<mission>.md` — consumed by planning
|
|
67
|
-
- `
|
|
68
|
+
- `.mugiwara/continue.md` — consumed once the mission is closed (delete by exact name, never a `handoff*` glob)
|
|
68
69
|
- `review/` and `issues/` per-mission findings
|
|
69
70
|
- `logs/YYYY-MM-DD-<mission>.md` and mode-flip logs
|
|
70
71
|
|
|
@@ -8,114 +8,111 @@ description: Use at start of any non-trivial mission — Luffy triage gateway, f
|
|
|
8
8
|
## Skip when
|
|
9
9
|
|
|
10
10
|
- Lane 0 direct work: typo, rename, or single-file fix under 20 LOC.
|
|
11
|
-
- User explicitly declined the harness for this request.
|
|
11
|
+
- User explicitly declined the harness for this request (`mugiwara off` — Luffy acknowledges, records it in the decision log, and the crew stands down).
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Pipeline
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
```
|
|
16
|
+
Triage → Brainstorm → Plan → Execute
|
|
17
|
+
Luffy Usopp Nami Zoro
|
|
18
|
+
0 1 2 3
|
|
19
|
+
↓ ↑ heal loop (max 3)
|
|
20
|
+
Audit → Quality → Gates → Review → Heal → Closure
|
|
21
|
+
Chopper Sanji Franky Robin∥Jinbe Brook Luffy
|
|
22
|
+
4 5 6 7 8 9
|
|
23
|
+
↑ Wave 4.5 (optional)
|
|
24
|
+
Skeptic — adversarial verify
|
|
25
|
+
```
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
Waves are phases, not files. The plan doc defines them. The harness runs inline.
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
| # | Wave | Crew | Skill | Delivers |
|
|
30
|
+
|---|------|------|-------|----------|
|
|
31
|
+
| 0 | Triage | Luffy | `orchestration` | 5-way class + lane |
|
|
32
|
+
| 1 | Brainstorm | Usopp | `brainstorm` | options + recommendation |
|
|
33
|
+
| 2 | Planning | Nami | `planning` | task plan + acceptance |
|
|
34
|
+
| 3 | Execute | Zoro | `execution` | implemented + evidence |
|
|
35
|
+
| 4 | Audit | Chopper | `checkpoint` | re-verified + ledger |
|
|
36
|
+
| 4.5 | Verify | Skeptic | `claim-audit` | adversarial check (optional) |
|
|
37
|
+
| 5 | Quality | Sanji | `quality` | lint + format + test |
|
|
38
|
+
| 6 | Gates | Franky | `gates` | coverage + build + DoD |
|
|
39
|
+
| 7 | Review | Robin∥Jinbe | `review`+`security` | findings (parallel) |
|
|
40
|
+
| 8 | Heal | Brook | `healing` | fixes → back to Wave 4 |
|
|
41
|
+
| 9 | Close | Luffy | `orchestration` | push + PR verdict |
|
|
22
42
|
|
|
23
|
-
|
|
43
|
+
## Execution model
|
|
24
44
|
|
|
25
|
-
|
|
26
|
-
2. Dispatch a subagent ONLY when the work is genuinely parallel or background: an independent `[PARALLEL]` task batch (Zoro's WORKER subagents, Wave 3), parallel fixes (Brook, Wave 8), or a long-running check that would stall the conversation. Subagent results return to the main thread as a report; the main thread summarizes the outcome inline with evidence pointers.
|
|
27
|
-
3. Crew members NEVER dispatch another crew member. A crew role that must split work returns the split plan to the main thread, which spawns the workers.
|
|
28
|
-
4. Escalation = "blocked" + ledger row returned to the main thread, which routes it to Luffy/Brook. Never a nested crew dispatch.
|
|
45
|
+
**Inline by default.** Main thread embodies each crew role using that crew's skill. Every wave runs in the main conversation.
|
|
29
46
|
|
|
30
|
-
|
|
47
|
+
**One role at a time.** The main thread embodies ONE crew role per response — completes that role's report, then moves to the next. Never role-bleeds two personas into one response; never starts the next role before the current one returns its output.
|
|
31
48
|
|
|
32
|
-
|
|
49
|
+
**Banners.** Waves open with `==================== WAVE N - CREW (SKILL) ====================` and close with `→ Wave N+1 — Crew`.
|
|
33
50
|
|
|
34
|
-
|
|
51
|
+
**Subagents only for parallelism.** `[PARALLEL]` task batches, parallel review, parallel heal workers. Crew members never dispatch crew members.
|
|
35
52
|
|
|
36
|
-
|
|
37
|
-
.mugiwara/
|
|
38
|
-
├── config # runtime mode config: mode/branch/commit/pr key=value (gitignored; project overrides global)
|
|
39
|
-
├── state.json # computed mission state at every wave boundary (scripts/savepoint.sh)
|
|
40
|
-
├── spec/ # brainstorm output: YYYY-MM-DD-<mission>.md
|
|
41
|
-
├── plans/ # plan doc: YYYY-MM-DD-<mission>.md — CLEAN, Nami-only, source of truth from Wave 2
|
|
42
|
-
├── results/ # wave results: audit/quality/gate reports, todos, closure report
|
|
43
|
-
├── reports/ # human-readable mission reports: YYYY-MM-DD-<mission>.md
|
|
44
|
-
├── review/ # review + security findings
|
|
45
|
-
├── issues/ # blocker log: YYYY-MM-DD-<mission>-blockers.md
|
|
46
|
-
└── logs/ # Luffy's decision + check-in log: YYYY-MM-DD-<mission>.md (deleted at cleanup)
|
|
47
|
-
```
|
|
53
|
+
**Compact output.** Do not stream tool calls. After each batch: one status table. Full logs → `.mugiwara/results/<mission>/01-execution.md`.
|
|
48
54
|
|
|
49
|
-
|
|
50
|
-
criteria, risks). Who did what, route decisions, and check-in verdicts go to
|
|
51
|
-
`logs/`; the closure report goes to `results/`. Nothing non-plan pollutes the plan doc.
|
|
55
|
+
**Mode flips.** `/mugiwara mode <guided|semi|auto>` applies from the next wave, never mid-wave. If a flip arrives mid-wave, say so — "recorded, applies from Wave N+1" — never apply silently, never ignore.
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
## Workspace
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
Full layout: `references/workspace-layout.md`.
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
## Wave 0 — Triage (always first)
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
Luffy classifies every request 8 ways:
|
|
60
64
|
|
|
61
|
-
|
|
65
|
+
| Class | Signal | Route |
|
|
66
|
+
|-------|--------|-------|
|
|
67
|
+
| Trivial | obvious, single file | → Wave 2 |
|
|
68
|
+
| Explicit | clear spec exists | → Wave 2 (still sizes the lane from the spec's file list) |
|
|
69
|
+
| Exploratory | needs research | → Wave 1 |
|
|
70
|
+
| Open-ended | broad, undefined | → Wave 1 |
|
|
71
|
+
| Ambiguous | unclear scope | → Wave 1 |
|
|
72
|
+
| Answer | question, no file change | answer directly, no mission |
|
|
73
|
+
| Refuse | deploy / migration / key rotation / merge | decline at Wave 0, offer branch handoff |
|
|
74
|
+
| Hotfix | production broken | Lane 1, gates deferred with owner |
|
|
62
75
|
|
|
63
|
-
|
|
76
|
+
Precedence: class decides whether there is work; lane decides how much process — class first, lane second.
|
|
64
77
|
|
|
65
|
-
|
|
78
|
+
Lane: 0=Direct (<20 LOC), 1=Lean (1-2 files), 2=Standard (3-8 files), 3=Full (9+ or sensitive), 4=Spike. Record route in `.mugiwara/logs/`.
|
|
66
79
|
|
|
67
|
-
|
|
68
|
-
|------|-------|-------|--------|
|
|
69
|
-
| 0 Triage | Luffy | mugiwara-orchestration | route decision + reason |
|
|
70
|
-
| 1 Brainstorm | Usopp | mugiwara-brainstorm | refined direction, options, recommendation |
|
|
71
|
-
| 2 Planning | Nami | mugiwara-planning | plan doc: waves/tasks/criteria, parallel markers |
|
|
72
|
-
| 3 Execution | Zoro | mugiwara-execution | implemented tasks with evidence |
|
|
73
|
-
| 4 Checkpoint | Chopper | mugiwara-checkpoint | audit report + failure ledger |
|
|
74
|
-
| 4.5 Adversarial | Skeptic | mugiwara-claim-audit | findings report + failure ledger |
|
|
75
|
-
| 5 Quality | Sanji | mugiwara-quality | formatter/linter/test results |
|
|
76
|
-
| 6 Gates | Franky | mugiwara-gates | coverage + build verdict |
|
|
77
|
-
| 7 Review | Robin ∥ Jinbe | mugiwara-review + mugiwara-security | severity-tagged findings |
|
|
78
|
-
| 8 Healing | Brook | mugiwara-healing | fixes, then loop back to Wave 4 |
|
|
79
|
-
| 9 Closure | Luffy | mugiwara-orchestration | closure report + push mission branch + PR verdict file handed to user, who opens the PR (terminal gate in every mode) |
|
|
80
|
+
## Session handoff
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
At session end (step limit, crash, or manual stop) the crew writes `.mugiwara/continue.md` before the final text response: mission, sub_mission, wave, tasks, next_action (exact files + commands), next_session_prompt. Owner: orchestrator (captain); writer: the agent ending the wave. Next session starts with `/mugiwara continue` — no re-explanation. `auto` mode continues across sessions via continue.md: one command per session, no re-explanation. state.json proves what is done; continue.md says what is next — verify next_action against state.json, escalate contradictions.
|
|
82
83
|
|
|
83
|
-
##
|
|
84
|
+
## Blocker protocol
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
Blocked agent appends to `.mugiwara/issues/YYYY-MM-DD-<mission>-blockers.md`:
|
|
87
|
+
```
|
|
88
|
+
| wave | task | symptom | attempted | help-needed |
|
|
89
|
+
```
|
|
90
|
+
Brook reads this at Wave 8. Never silently work around a blocker.
|
|
90
91
|
|
|
91
|
-
## Cleanup
|
|
92
|
+
## Cleanup (Wave 9)
|
|
92
93
|
|
|
93
|
-
|
|
94
|
+
Delete consumed: `results/<mission>/01-execution.md`…`05-healing.md` + `todos.md`, `logs/` (except `logs/lessons.md`), `spec/`, `review/`, `issues/`. Keep: `results/<mission>/06-closure.md`, `results/<mission>/07-pr-verdict.md`, `plans/`, `reports/`, `config`, `state.json`, `logs/lessons.md`. Full layout: `references/workspace-layout.md`.
|
|
94
95
|
|
|
95
96
|
## Rules
|
|
96
97
|
|
|
97
|
-
1. Evidence over claims
|
|
98
|
-
2. No wave skipped without
|
|
99
|
-
3. Heal loop
|
|
100
|
-
4.
|
|
101
|
-
5.
|
|
102
|
-
6.
|
|
103
|
-
7.
|
|
104
|
-
8. On session start or context loss — resume via `resume-coordinator` before any wave; never start over.
|
|
105
|
-
9. Push branch + hand verdict file to the user, who opens the PR; crew never merges, never deploys.
|
|
98
|
+
1. Evidence over claims — run checks, show output.
|
|
99
|
+
2. No wave skipped without reason recorded in logs.
|
|
100
|
+
3. Heal loop: max 3 cycles, then escalate.
|
|
101
|
+
4. Wave 7: Robin and Jinbe parallel over same diff.
|
|
102
|
+
5. Plan doc is source of truth from Wave 2.
|
|
103
|
+
6. Resume via `resume-coordinator` before any wave — never restart.
|
|
104
|
+
7. Push branch + hand verdict to user; crew never merges or deploys.
|
|
106
105
|
|
|
107
106
|
## Iron Law
|
|
108
107
|
|
|
109
|
-
EVIDENCE OVER CLAIMS.
|
|
108
|
+
EVIDENCE OVER CLAIMS. "Done" = command re-run, output captured, evidence fresh.
|
|
110
109
|
|
|
111
110
|
## Red flags
|
|
112
111
|
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
- Wave order drifts (e.g. quality before checkpoint).
|
|
119
|
-
- Blocker worked around silently with no ledger row.
|
|
112
|
+
- Wave passes on spoken claim, no command output.
|
|
113
|
+
- Execution before triage (Wave 0 skipped).
|
|
114
|
+
- Blocker worked around silently.
|
|
115
|
+
- Heal loop past 3 cycles with same failure.
|
|
116
|
+
- Plan doc polluted with logs/decisions.
|
|
120
117
|
|
|
121
|
-
|
|
118
|
+
→ Stop, diagnose, escalate.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Workspace layout
|
|
2
|
+
|
|
3
|
+
Every mission creates and works inside `.mugiwara/` at the repo root.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
.mugiwara/
|
|
7
|
+
├── config → runtime mode config (gitignored; project overrides global)
|
|
8
|
+
├── state.json → computed mission state at every wave boundary (scripts/savepoint.sh)
|
|
9
|
+
├── spec/ → brainstorm output: YYYY-MM-DD-<mission>.md
|
|
10
|
+
├── plans/ → plan doc: YYYY-MM-DD-<mission>.md — CLEAN, Nami-only, source of truth from Wave 2
|
|
11
|
+
├── results/ → per-mission folder: results/<mission>/ holds every wave artifact
|
|
12
|
+
│ └── <mission>/
|
|
13
|
+
│ ├── 01-execution.md → wave 3: task table + evidence
|
|
14
|
+
│ ├── 02-audit.md → wave 4: checkpoint report
|
|
15
|
+
│ ├── 03-quality.md → wave 5: quality report
|
|
16
|
+
│ ├── 04-gates.md → wave 6: gate verdict
|
|
17
|
+
│ ├── 05-healing.md → wave 8: healing report (only when heal ran)
|
|
18
|
+
│ ├── 06-closure.md → wave 9: closure summary (KEEP at cleanup)
|
|
19
|
+
│ ├── 07-pr-verdict.md → wave 9: PR material (KEEP at cleanup)
|
|
20
|
+
│ └── todos.md → execution checkbox list
|
|
21
|
+
├── reports/ → mission report (aggregate): YYYY-MM-DD-<mission>.md — one-file summary of all waves
|
|
22
|
+
├── review/ → review + security findings
|
|
23
|
+
├── issues/ → blocker log: YYYY-MM-DD-<mission>-blockers.md
|
|
24
|
+
└── logs/ → Luffy's decision + check-in log: YYYY-MM-DD-<mission>.md (deleted at cleanup)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Naming rule: every artifact inside `results/<mission>/` uses the SAME mission
|
|
28
|
+
name, no date prefix — the folder is the grouping, numbered by wave order
|
|
29
|
+
(`01-`, `02-`, …). Unnumbered support files may sit alongside the numbered
|
|
30
|
+
ones (`todos.md`, `resume.md`, `eval.md`, evidence logs) and are not part of
|
|
31
|
+
the waves table. `reports/` and `logs/` and `plans/` files carry the
|
|
32
|
+
`YYYY-MM-DD-` date prefix because they are cross-mission folders; `results/`
|
|
33
|
+
does not, because each mission owns its folder.
|
|
34
|
+
|
|
35
|
+
The plan doc stays clean: it holds ONLY the execution plan (waves, tasks,
|
|
36
|
+
criteria, risks). Who did what, route decisions, and check-in verdicts go to
|
|
37
|
+
`logs/`; the closure report goes to `results/<mission>/06-closure.md`. Nothing
|
|
38
|
+
non-plan pollutes the plan doc.
|
|
39
|
+
|
|
40
|
+
The owning agent creates the folder it needs on first write. No mission
|
|
41
|
+
artifacts go outside `.mugiwara/`.
|
|
42
|
+
|
|
43
|
+
## Cleanup (Wave 9)
|
|
44
|
+
|
|
45
|
+
Delete consumed: `results/<mission>/01-execution.md` through
|
|
46
|
+
`05-healing.md` and `todos.md` (wave artifacts), `logs/`, `spec/`, `review/`,
|
|
47
|
+
`issues/`. Keep: `results/<mission>/06-closure.md`,
|
|
48
|
+
`results/<mission>/07-pr-verdict.md`, `plans/`, `reports/`, `config`,
|
|
49
|
+
`state.json`, `lessons.md` (cross-mission state: `logs/lessons.md`, `backup/`,
|
|
50
|
+
`manifest.json`). List candidates before deleting.
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-mugiwara
|
|
3
|
-
description:
|
|
3
|
+
description: How Mugiwara works — crew overview, pipeline summary. Documentation reference. Trigger: "how does mugiwara work", "what is mugiwara", "which crew member", "crew overview", "mugiwara how".
|
|
4
4
|
---
|
|
5
|
-
|
|
6
|
-
# Using Mugiwara (Front Door)
|
|
5
|
+
# Using Mugiwara (Reference)
|
|
7
6
|
|
|
8
7
|
## Skip when
|
|
9
8
|
|
|
10
|
-
-
|
|
11
|
-
- User explicitly declined the crew for this request.
|
|
9
|
+
- `mugiwara-orchestration` is the gatekeeper — it auto-loads for task routing and classification. This skill is a documentation reference only.
|
|
12
10
|
|
|
13
|
-
Mugiwara is a governed engineering team in your coding agent.
|
|
11
|
+
Mugiwara is a governed engineering team in your coding agent. 11 specialists — triage, brainstorm, plan, execute, audit, quality, gates, review, security, heal — with evidence at every step and cost tracking. Runs inline in the main conversation.
|
|
14
12
|
|
|
15
13
|
## How it works
|
|
16
14
|
|
|
17
|
-
1.
|
|
15
|
+
1. `mugiwara-orchestration` auto-loads as gatekeeper for every task — classify, route, check-in, close.
|
|
18
16
|
2. The pipeline: Luffy triage → Usopp brainstorm → Nami plan → Zoro execute → Chopper audit → Sanji quality → Franky gates → Robin/Jinbe review → Brook heal → Luffy closure.
|
|
19
17
|
3. Every wave runs inline in the main thread. Subagents only for [PARALLEL] task batches.
|
|
20
18
|
4. Evidence over claims — no wave passes on assertion. Checks must be re-run.
|
|
@@ -35,18 +33,9 @@ Mugiwara is a governed engineering team in your coding agent. 14 specialists —
|
|
|
35
33
|
| Robin | Reviewer — breaking-change map (read-only) |
|
|
36
34
|
| Jinbe | Security — STRIDE, OWASP, secret scan (read-only) |
|
|
37
35
|
| Brook | Healer — reads ledger, fixes failures |
|
|
38
|
-
| Skeptic | Adversarial verifier (read-only) |
|
|
39
36
|
| Resume | Continuity — rebuild from state.json |
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
1. If the user asks how mugiwara works — summarize in 3 lines.
|
|
44
|
-
2. If the user gives a task — classify: Trivial / Explicit / Exploratory / Open-ended / Ambiguous.
|
|
45
|
-
3. Route:
|
|
46
|
-
- Clear, small → Nami (plan) or Zoro (execute).
|
|
47
|
-
- Vague, needs direction → Usopp (brainstorm).
|
|
48
|
-
- Anything else → Luffy (full triage + check-ins).
|
|
49
|
-
- Review → Robin. Security → Jinbe. Audit → Chopper. Heal → Brook.
|
|
50
|
-
4. Record the route in `.mugiwara/logs/`.
|
|
51
|
-
|
|
38
|
+
For task routing and classification, `mugiwara-orchestration` auto-loads as gatekeeper.
|
|
39
|
+
This skill is documentation — load manually with `/using-mugiwara` or similar trigger phrases.
|
|
52
40
|
Full pipeline: see skills/mugiwara-workflow.
|
|
41
|
+
First time? Run `/mugiwara onboard` for guided setup. See `content/agents/onboarding-guide.md`.
|