@ionivetech/mugiwara 0.6.6 → 0.8.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 (138) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -7
  3. package/.codex-plugin/plugin.json +2 -7
  4. package/.cursor-plugin/plugin.json +2 -7
  5. package/.kimi-plugin/plugin.json +2 -7
  6. package/.opencode/mugiwara-helpers.mjs +2 -2
  7. package/.opencode/plugins/mugiwara.mjs +3 -18
  8. package/AGENTS.md +5 -4
  9. package/GEMINI.md +3 -3
  10. package/README.md +203 -331
  11. package/content/agents/brook-healing.md +8 -4
  12. package/content/agents/chopper-checkpoint.md +7 -3
  13. package/content/agents/eval-runner.md +4 -4
  14. package/content/agents/franky-gates.md +4 -4
  15. package/content/agents/jinbe-security.md +6 -7
  16. package/content/agents/luffy-orchestrator.md +11 -13
  17. package/content/agents/memory-keeper.md +4 -4
  18. package/content/agents/nami-planner.md +4 -4
  19. package/content/agents/resume-coordinator.md +7 -7
  20. package/content/agents/robin-reviewer.md +7 -3
  21. package/content/agents/sanji-quality.md +2 -2
  22. package/content/agents/skeptic-verifier.md +2 -2
  23. package/content/agents/usopp-brainstorm.md +3 -3
  24. package/content/agents/zoro-execution.md +6 -6
  25. package/content/skills/mugiwara-backend/SKILL.md +54 -43
  26. package/content/skills/mugiwara-backend/references/database.md +61 -0
  27. package/content/skills/mugiwara-brainstorm/SKILL.md +1 -1
  28. package/content/skills/mugiwara-checkpoint/SKILL.md +23 -11
  29. package/content/skills/mugiwara-checkpoint/references/ledger-format.md +1 -1
  30. package/content/skills/mugiwara-contract-first/SKILL.md +46 -1
  31. package/content/skills/mugiwara-execution/SKILL.md +37 -37
  32. package/content/skills/mugiwara-execution/references/dispatch.md +1 -1
  33. package/content/skills/mugiwara-execution/references/execution-phase-flows.md +18 -0
  34. package/content/skills/mugiwara-execution/references/resume-batching.md +2 -2
  35. package/content/skills/mugiwara-frontend/SKILL.md +44 -43
  36. package/content/skills/mugiwara-frontend/references/checklist.md +14 -0
  37. package/content/skills/mugiwara-gates/SKILL.md +23 -14
  38. package/content/skills/mugiwara-healing/SKILL.md +26 -25
  39. package/content/skills/mugiwara-lessons/SKILL.md +2 -2
  40. package/content/skills/mugiwara-orchestration/SKILL.md +11 -11
  41. package/content/skills/mugiwara-orchestration/references/check-ins.md +2 -2
  42. package/content/skills/mugiwara-orchestration/references/closure.md +17 -12
  43. package/content/skills/mugiwara-orchestration/references/control-commands.md +14 -0
  44. package/content/skills/mugiwara-orchestration/references/triage-escalation.md +11 -1
  45. package/content/skills/mugiwara-planning/SKILL.md +26 -29
  46. package/content/skills/mugiwara-planning/references/large-campaign-subplan.md +41 -0
  47. package/content/skills/mugiwara-planning/references/plan-template.md +24 -2
  48. package/content/skills/mugiwara-quality/SKILL.md +21 -12
  49. package/content/skills/mugiwara-resume/SKILL.md +8 -3
  50. package/content/skills/mugiwara-review/SKILL.md +19 -13
  51. package/content/skills/mugiwara-security/SKILL.md +47 -36
  52. package/content/skills/mugiwara-ship/SKILL.md +1 -1
  53. package/content/skills/mugiwara-ship/references/cleanup.md +17 -16
  54. package/content/skills/mugiwara-workflow/SKILL.md +11 -17
  55. package/content/skills/mugiwara-workflow/references/adaptive-budget-governor.md +5 -0
  56. package/content/skills/mugiwara-workflow/references/benchmark-governor.md +53 -0
  57. package/content/skills/mugiwara-workflow/references/cognitive-output-governor.md +5 -0
  58. package/content/skills/mugiwara-workflow/references/large-campaign-subplan.md +29 -0
  59. package/content/skills/mugiwara-workflow/references/scope-code-governor.md +14 -0
  60. package/content/skills/mugiwara-workflow/references/stop-slop-governor.md +14 -0
  61. package/content/skills/mugiwara-workflow/references/workspace-layout.md +42 -38
  62. package/dist/mugiwara.js +1642 -528
  63. package/gemini-extension.json +1 -1
  64. package/hooks/auto-savepoint.js +18 -10
  65. package/hooks/auto-savepoint.ts +23 -23
  66. package/hooks/engagement-marker.js +1 -1
  67. package/hooks/engagement-marker.ts +1 -1
  68. package/hooks/pipeline-guard.js +17 -13
  69. package/hooks/pipeline-guard.ts +24 -20
  70. package/hooks/session-start.js +13 -10
  71. package/hooks/session-start.ts +24 -19
  72. package/package.json +2 -2
  73. package/plugin.json +1 -1
  74. package/references/complexity.md +27 -4
  75. package/references/definition-of-done.md +1 -1
  76. package/references/multi-actor.md +20 -2
  77. package/references/posture-routing.md +31 -0
  78. package/references/prose-style.md +54 -0
  79. package/scripts/benchmark-governor.ts +516 -0
  80. package/scripts/benchmark-thresholds.json +47 -0
  81. package/scripts/check-doc-links.ts +46 -0
  82. package/scripts/conformance.ts +6 -16
  83. package/scripts/coverage-gate.ts +20 -6
  84. package/scripts/gate-selftest.ts +138 -7
  85. package/scripts/lane.sh +54 -8
  86. package/scripts/lib/lane-base.sh +4 -4
  87. package/scripts/lib/patterns.sh +5 -0
  88. package/scripts/policy-force.ts +22 -0
  89. package/scripts/retrieval-eval.ts +10 -4
  90. package/scripts/savepoint.sh +155 -58
  91. package/scripts/validate-content.ts +43 -11
  92. package/scripts/verify-install.ts +9 -7
  93. package/src/adaptive-budget.ts +178 -0
  94. package/src/args.ts +4 -3
  95. package/src/budget.ts +47 -0
  96. package/src/check-artifacts.ts +45 -0
  97. package/src/cli.ts +257 -108
  98. package/src/cognition.ts +234 -0
  99. package/src/config.ts +107 -0
  100. package/src/context.ts +72 -0
  101. package/src/continue.ts +29 -10
  102. package/src/cost.ts +186 -0
  103. package/src/evidence.ts +160 -0
  104. package/src/installer.ts +25 -34
  105. package/src/integrity.ts +158 -0
  106. package/src/investigation.ts +72 -0
  107. package/src/mission.ts +341 -94
  108. package/src/policy.ts +156 -0
  109. package/src/posture.ts +86 -0
  110. package/src/provenance.ts +116 -0
  111. package/src/reporting.ts +225 -0
  112. package/src/rollback.ts +95 -0
  113. package/src/routing.ts +69 -0
  114. package/src/run.ts +2 -2
  115. package/src/scope.ts +321 -0
  116. package/src/sign.ts +235 -0
  117. package/src/slop.ts +306 -0
  118. package/src/targets/claude.ts +2 -2
  119. package/src/work.ts +273 -0
  120. package/.opencode/commands/mugiwara-execute.md +0 -13
  121. package/.opencode/commands/mugiwara-heal.md +0 -13
  122. package/.opencode/commands/mugiwara-onboard.md +0 -14
  123. package/.opencode/commands/mugiwara-plan.md +0 -17
  124. package/.opencode/commands/mugiwara-ship.md +0 -13
  125. package/.opencode/commands/using-mugiwara.md +0 -20
  126. package/content/skills/mugiwara-agent-security/SKILL.md +0 -58
  127. package/content/skills/mugiwara-agent-security/references/checklist.md +0 -20
  128. package/content/skills/mugiwara-context-budget/SKILL.md +0 -66
  129. package/content/skills/mugiwara-context-budget/references/context-budget.md +0 -37
  130. package/content/skills/mugiwara-pr/SKILL.md +0 -69
  131. package/content/skills/mugiwara-pr/references/verdict-format.md +0 -31
  132. package/content/skills/mugiwara-sunset/SKILL.md +0 -82
  133. package/content/skills/using-mugiwara/SKILL.md +0 -51
  134. package/references/token-budget.md +0 -56
  135. package/scripts/evidence.sh +0 -81
  136. package/scripts/initiative.ts +0 -296
  137. package/scripts/mission-report.sh +0 -293
  138. package/src/onboard.ts +0 -207
@@ -5,13 +5,13 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "The Straw Hat crew for AI agents",
8
- "version": "0.6.6"
8
+ "version": "0.8.0"
9
9
  },
10
10
  "plugins": [
11
11
  {
12
12
  "name": "mugiwara",
13
13
  "description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, healing.",
14
- "version": "0.6.6",
14
+ "version": "0.8.0",
15
15
  "source": "./"
16
16
  }
17
17
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mugiwara",
3
3
  "displayName": "Mugiwara",
4
- "version": "0.6.6",
4
+ "version": "0.8.0",
5
5
  "description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, healing.",
6
6
  "author": {
7
7
  "name": "ionivetech"
@@ -33,12 +33,10 @@
33
33
  "memory-keeper"
34
34
  ],
35
35
  "skills": [
36
- "mugiwara-agent-security",
37
36
  "mugiwara-backend",
38
37
  "mugiwara-brainstorm",
39
38
  "mugiwara-checkpoint",
40
39
  "mugiwara-claim-audit",
41
- "mugiwara-context-budget",
42
40
  "mugiwara-contract-first",
43
41
  "mugiwara-execution",
44
42
  "mugiwara-frontend",
@@ -48,17 +46,14 @@
48
46
  "mugiwara-lessons",
49
47
  "mugiwara-orchestration",
50
48
  "mugiwara-planning",
51
- "mugiwara-pr",
52
49
  "mugiwara-quality",
53
50
  "mugiwara-resume",
54
51
  "mugiwara-review",
55
52
  "mugiwara-root-cause",
56
53
  "mugiwara-security",
57
54
  "mugiwara-ship",
58
- "mugiwara-sunset",
59
55
  "mugiwara-testcases",
60
- "mugiwara-workflow",
61
- "using-mugiwara"
56
+ "mugiwara-workflow"
62
57
  ]
63
58
  }
64
59
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mugiwara",
3
- "version": "0.6.6",
3
+ "version": "0.8.0",
4
4
  "description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, healing.",
5
5
  "author": {
6
6
  "name": "ionivetech"
@@ -17,12 +17,10 @@
17
17
  "skills": "./content/skills/",
18
18
  "metadata": {
19
19
  "skills": [
20
- "mugiwara-agent-security",
21
20
  "mugiwara-backend",
22
21
  "mugiwara-brainstorm",
23
22
  "mugiwara-checkpoint",
24
23
  "mugiwara-claim-audit",
25
- "mugiwara-context-budget",
26
24
  "mugiwara-contract-first",
27
25
  "mugiwara-execution",
28
26
  "mugiwara-frontend",
@@ -32,17 +30,14 @@
32
30
  "mugiwara-lessons",
33
31
  "mugiwara-orchestration",
34
32
  "mugiwara-planning",
35
- "mugiwara-pr",
36
33
  "mugiwara-quality",
37
34
  "mugiwara-resume",
38
35
  "mugiwara-review",
39
36
  "mugiwara-root-cause",
40
37
  "mugiwara-security",
41
38
  "mugiwara-ship",
42
- "mugiwara-sunset",
43
39
  "mugiwara-testcases",
44
- "mugiwara-workflow",
45
- "using-mugiwara"
40
+ "mugiwara-workflow"
46
41
  ],
47
42
  "agents": [
48
43
  "brook-healing",
@@ -2,7 +2,7 @@
2
2
  "name": "mugiwara",
3
3
  "displayName": "Mugiwara",
4
4
  "description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, healing.",
5
- "version": "0.6.6",
5
+ "version": "0.8.0",
6
6
  "author": {
7
7
  "name": "ionivetech"
8
8
  },
@@ -18,12 +18,10 @@
18
18
  "skills": "./content/skills/",
19
19
  "metadata": {
20
20
  "skills": [
21
- "mugiwara-agent-security",
22
21
  "mugiwara-backend",
23
22
  "mugiwara-brainstorm",
24
23
  "mugiwara-checkpoint",
25
24
  "mugiwara-claim-audit",
26
- "mugiwara-context-budget",
27
25
  "mugiwara-contract-first",
28
26
  "mugiwara-execution",
29
27
  "mugiwara-frontend",
@@ -33,17 +31,14 @@
33
31
  "mugiwara-lessons",
34
32
  "mugiwara-orchestration",
35
33
  "mugiwara-planning",
36
- "mugiwara-pr",
37
34
  "mugiwara-quality",
38
35
  "mugiwara-resume",
39
36
  "mugiwara-review",
40
37
  "mugiwara-root-cause",
41
38
  "mugiwara-security",
42
39
  "mugiwara-ship",
43
- "mugiwara-sunset",
44
40
  "mugiwara-testcases",
45
- "mugiwara-workflow",
46
- "using-mugiwara"
41
+ "mugiwara-workflow"
47
42
  ],
48
43
  "agents": [
49
44
  "brook-healing",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mugiwara",
3
- "version": "0.6.6",
3
+ "version": "0.8.0",
4
4
  "description": "The Straw Hat crew of AI agents and skills: brainstorm, plan, execute, checkpoint, quality, gates, review, security, healing.",
5
5
  "author": {
6
6
  "name": "ionivetech"
@@ -17,12 +17,10 @@
17
17
  "skills": "./content/skills/",
18
18
  "metadata": {
19
19
  "skills": [
20
- "mugiwara-agent-security",
21
20
  "mugiwara-backend",
22
21
  "mugiwara-brainstorm",
23
22
  "mugiwara-checkpoint",
24
23
  "mugiwara-claim-audit",
25
- "mugiwara-context-budget",
26
24
  "mugiwara-contract-first",
27
25
  "mugiwara-execution",
28
26
  "mugiwara-frontend",
@@ -32,17 +30,14 @@
32
30
  "mugiwara-lessons",
33
31
  "mugiwara-orchestration",
34
32
  "mugiwara-planning",
35
- "mugiwara-pr",
36
33
  "mugiwara-quality",
37
34
  "mugiwara-resume",
38
35
  "mugiwara-review",
39
36
  "mugiwara-root-cause",
40
37
  "mugiwara-security",
41
38
  "mugiwara-ship",
42
- "mugiwara-sunset",
43
39
  "mugiwara-testcases",
44
- "mugiwara-workflow",
45
- "using-mugiwara"
40
+ "mugiwara-workflow"
46
41
  ],
47
42
  "agents": [
48
43
  "brook-healing",
@@ -94,8 +94,8 @@ export const DEFAULT_CONFIG_LINES = [
94
94
  'branch=feature/{type}-{issue}-{slug}',
95
95
  'commit=conventional',
96
96
  'auto_commit=on',
97
- 'coverage_new=90',
98
- 'coverage_modified=80',
97
+ 'coverage_new=85',
98
+ 'coverage_modified=90',
99
99
  'review_depth=full',
100
100
  'quality_depth=full',
101
101
  'delegate_threshold=60',
@@ -1,8 +1,9 @@
1
1
  // mugiwara — OpenCode plugin.
2
2
  //
3
3
  // Registers skills/agents via config hook (superpowers pattern: one plugin,
4
- // zero file-copy), announces the crew at session start, and handles runtime
5
- // mode switching. Helpers live in mugiwara-helpers.mjs this module has a
4
+ // zero file-copy) and handles runtime mode switching. Deliberately silent at
5
+ // session start: mugiwara activates only when its skills/agents are used.
6
+ // Helpers live in mugiwara-helpers.mjs — this module has a
6
7
  // single export because OpenCode's legacy loader calls every exported function
7
8
  // as a plugin (same constraint ponytail documents).
8
9
  //
@@ -65,9 +66,6 @@ function readBannerColors() {
65
66
  }
66
67
  }
67
68
 
68
- const ANNOUNCE =
69
- "Mugiwara crew available. The workflow auto-activates for non-trivial requests — no need to call `/using-mugiwara` at session start (it is an optional router). Run the crew pipeline inline in the main conversation: embody ONE crew role at a time using its skill, wait for its report, then move to the next. Never Task-dispatch a crew member — the crew runs in the main thread; subagents only for [PARALLEL] task batches, concurrent review/security, and independent re-run checks. Progress shows as checkpoint reports at wave/stage boundaries, pausing on failure or risk. Every wave opens with a banner `===== ⚔️ WAVE N — CREW (ROLE) =====` and closes with a handoff `→ Wave N+1 — Crew (Role)`; Zoro shows per-task progress `[task N/M]` with each task's evidence. Switch mode with `/mugiwara` (guided|semi|auto). See skills/mugiwara-workflow.";
70
-
71
69
  function parseFrontmatter(text) {
72
70
  const m = text.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);
73
71
  if (!m) throw new Error('Missing frontmatter fence (---)');
@@ -172,17 +170,4 @@ export default async () => ({
172
170
  }
173
171
  }
174
172
  },
175
-
176
- 'experimental.chat.system.transform': async (_input, output) => {
177
- if (!output?.system || !Array.isArray(output.system)) return;
178
- if (!output.system.some((s) => s.includes('Mugiwara crew available'))) {
179
- if (output.system.length > 0) {
180
- output.system[output.system.length - 1] += '\n\n' + ANNOUNCE;
181
- } else {
182
- output.system.push(ANNOUNCE);
183
- }
184
- }
185
- const active = `Active mode: ${readMode()} (guided|semi|auto; flip applies next wave).`;
186
- if (!output.system.some((s) => s.includes('Active mode:'))) output.system.push(active);
187
- },
188
173
  });
package/AGENTS.md CHANGED
@@ -9,8 +9,9 @@ exceptions. Comments in source code should be English. This conversation is the
9
9
  only place Indonesian is acceptable.
10
10
 
11
11
  **`.mugiwara/` artifacts are English too.** Every file the crew writes —
12
- `plans/`, `logs/`, `results/`, `reports/`, `spec/`, `state/`, `continue/`,
13
- `issues/`, `review/` is written in English, one language only. A mission
12
+ Every `.mugiwara/missions/<mission>/` artifact `plan.md`, `flows/*`,
13
+ `report.md`, `spec.md`, `decisions.md`, `blockers.md`, `review.md`,
14
+ state and continue JSON — is written in English, one language only. A mission
14
15
  artifact in any other language is a defect, not a style choice. The audit
15
16
  trail is read by the whole team and by future sessions; it must not depend on
16
17
  the author's conversational language.
@@ -184,7 +185,7 @@ mention every agent file. Enforced by `--check-docs`.
184
185
 
185
186
  ## Skill count
186
187
 
187
- 26 is the ceiling. A new skill replaces an old one — never add to grow.
188
+ 21 is the ceiling. A new skill replaces an old one — never add to grow.
188
189
 
189
190
  ## Commit style
190
191
 
@@ -193,7 +194,7 @@ Conventional Commits: `feat:`, `fix:`, `refactor:`, `docs:`, `chore:`.
193
194
  ## Directory map
194
195
 
195
196
  ```
196
- content/skills/ — 26 skill dirs, each with SKILL.md + optional references/
197
+ content/skills/ — 21 skill dirs, each with SKILL.md + optional references/
197
198
  content/agents/ — 14 agent .md files (11 user-facing + 3 internal)
198
199
  references/ — shared reference files (definition-of-done, source-grounding, etc.)
199
200
  docs/ — user-facing documentation
package/GEMINI.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Mugiwara
2
2
 
3
3
  The Straw Hat crew of AI agents and skills. 11 specialist agents — Luffy
4
- orchestrates, Nami plans, Zoro executes, Chopper audits, Brook heals — plus 26
4
+ orchestrates, Nami plans, Zoro executes, Chopper audits, Brook heals — plus 21
5
5
  skills covering brainstorming, planning, execution, checkpointing, quality,
6
6
  gates, review, security, and self-healing.
7
7
 
8
- Start any non-trivial mission by loading the `using-mugiwara` skill (or ask "how do I
9
- use mugiwara?") — it routes you to the right crew member. See
8
+ Start any non-trivial mission by loading the `mugiwara-orchestration` skill
9
+ it is the gatekeeper: classify, route, check-in, close. See
10
10
  `content/skills/mugiwara-workflow/SKILL.md` for the full pipeline.
11
11
 
12
12
  For development standards when working on mugiwara itself, see `AGENTS.md`.