@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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -7
- package/.codex-plugin/plugin.json +2 -7
- package/.cursor-plugin/plugin.json +2 -7
- package/.kimi-plugin/plugin.json +2 -7
- package/.opencode/mugiwara-helpers.mjs +2 -2
- package/.opencode/plugins/mugiwara.mjs +3 -18
- package/AGENTS.md +5 -4
- package/GEMINI.md +3 -3
- package/README.md +203 -331
- package/content/agents/brook-healing.md +8 -4
- package/content/agents/chopper-checkpoint.md +7 -3
- package/content/agents/eval-runner.md +4 -4
- package/content/agents/franky-gates.md +4 -4
- package/content/agents/jinbe-security.md +6 -7
- package/content/agents/luffy-orchestrator.md +11 -13
- package/content/agents/memory-keeper.md +4 -4
- package/content/agents/nami-planner.md +4 -4
- package/content/agents/resume-coordinator.md +7 -7
- package/content/agents/robin-reviewer.md +7 -3
- package/content/agents/sanji-quality.md +2 -2
- package/content/agents/skeptic-verifier.md +2 -2
- package/content/agents/usopp-brainstorm.md +3 -3
- package/content/agents/zoro-execution.md +6 -6
- package/content/skills/mugiwara-backend/SKILL.md +54 -43
- package/content/skills/mugiwara-backend/references/database.md +61 -0
- package/content/skills/mugiwara-brainstorm/SKILL.md +1 -1
- package/content/skills/mugiwara-checkpoint/SKILL.md +23 -11
- package/content/skills/mugiwara-checkpoint/references/ledger-format.md +1 -1
- package/content/skills/mugiwara-contract-first/SKILL.md +46 -1
- package/content/skills/mugiwara-execution/SKILL.md +37 -37
- package/content/skills/mugiwara-execution/references/dispatch.md +1 -1
- package/content/skills/mugiwara-execution/references/execution-phase-flows.md +18 -0
- package/content/skills/mugiwara-execution/references/resume-batching.md +2 -2
- package/content/skills/mugiwara-frontend/SKILL.md +44 -43
- package/content/skills/mugiwara-frontend/references/checklist.md +14 -0
- package/content/skills/mugiwara-gates/SKILL.md +23 -14
- package/content/skills/mugiwara-healing/SKILL.md +26 -25
- package/content/skills/mugiwara-lessons/SKILL.md +2 -2
- package/content/skills/mugiwara-orchestration/SKILL.md +11 -11
- package/content/skills/mugiwara-orchestration/references/check-ins.md +2 -2
- package/content/skills/mugiwara-orchestration/references/closure.md +17 -12
- package/content/skills/mugiwara-orchestration/references/control-commands.md +14 -0
- package/content/skills/mugiwara-orchestration/references/triage-escalation.md +11 -1
- package/content/skills/mugiwara-planning/SKILL.md +26 -29
- package/content/skills/mugiwara-planning/references/large-campaign-subplan.md +41 -0
- package/content/skills/mugiwara-planning/references/plan-template.md +24 -2
- package/content/skills/mugiwara-quality/SKILL.md +21 -12
- package/content/skills/mugiwara-resume/SKILL.md +8 -3
- package/content/skills/mugiwara-review/SKILL.md +19 -13
- package/content/skills/mugiwara-security/SKILL.md +47 -36
- package/content/skills/mugiwara-ship/SKILL.md +1 -1
- package/content/skills/mugiwara-ship/references/cleanup.md +17 -16
- package/content/skills/mugiwara-workflow/SKILL.md +11 -17
- package/content/skills/mugiwara-workflow/references/adaptive-budget-governor.md +5 -0
- package/content/skills/mugiwara-workflow/references/benchmark-governor.md +53 -0
- package/content/skills/mugiwara-workflow/references/cognitive-output-governor.md +5 -0
- package/content/skills/mugiwara-workflow/references/large-campaign-subplan.md +29 -0
- package/content/skills/mugiwara-workflow/references/scope-code-governor.md +14 -0
- package/content/skills/mugiwara-workflow/references/stop-slop-governor.md +14 -0
- package/content/skills/mugiwara-workflow/references/workspace-layout.md +42 -38
- package/dist/mugiwara.js +1642 -528
- package/gemini-extension.json +1 -1
- package/hooks/auto-savepoint.js +18 -10
- package/hooks/auto-savepoint.ts +23 -23
- package/hooks/engagement-marker.js +1 -1
- package/hooks/engagement-marker.ts +1 -1
- package/hooks/pipeline-guard.js +17 -13
- package/hooks/pipeline-guard.ts +24 -20
- package/hooks/session-start.js +13 -10
- package/hooks/session-start.ts +24 -19
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/references/complexity.md +27 -4
- package/references/definition-of-done.md +1 -1
- package/references/multi-actor.md +20 -2
- package/references/posture-routing.md +31 -0
- package/references/prose-style.md +54 -0
- package/scripts/benchmark-governor.ts +516 -0
- package/scripts/benchmark-thresholds.json +47 -0
- package/scripts/check-doc-links.ts +46 -0
- package/scripts/conformance.ts +6 -16
- package/scripts/coverage-gate.ts +20 -6
- package/scripts/gate-selftest.ts +138 -7
- package/scripts/lane.sh +54 -8
- package/scripts/lib/lane-base.sh +4 -4
- package/scripts/lib/patterns.sh +5 -0
- package/scripts/policy-force.ts +22 -0
- package/scripts/retrieval-eval.ts +10 -4
- package/scripts/savepoint.sh +155 -58
- package/scripts/validate-content.ts +43 -11
- package/scripts/verify-install.ts +9 -7
- package/src/adaptive-budget.ts +178 -0
- package/src/args.ts +4 -3
- package/src/budget.ts +47 -0
- package/src/check-artifacts.ts +45 -0
- package/src/cli.ts +257 -108
- package/src/cognition.ts +234 -0
- package/src/config.ts +107 -0
- package/src/context.ts +72 -0
- package/src/continue.ts +29 -10
- package/src/cost.ts +186 -0
- package/src/evidence.ts +160 -0
- package/src/installer.ts +25 -34
- package/src/integrity.ts +158 -0
- package/src/investigation.ts +72 -0
- package/src/mission.ts +341 -94
- package/src/policy.ts +156 -0
- package/src/posture.ts +86 -0
- package/src/provenance.ts +116 -0
- package/src/reporting.ts +225 -0
- package/src/rollback.ts +95 -0
- package/src/routing.ts +69 -0
- package/src/run.ts +2 -2
- package/src/scope.ts +321 -0
- package/src/sign.ts +235 -0
- package/src/slop.ts +306 -0
- package/src/targets/claude.ts +2 -2
- package/src/work.ts +273 -0
- package/.opencode/commands/mugiwara-execute.md +0 -13
- package/.opencode/commands/mugiwara-heal.md +0 -13
- package/.opencode/commands/mugiwara-onboard.md +0 -14
- package/.opencode/commands/mugiwara-plan.md +0 -17
- package/.opencode/commands/mugiwara-ship.md +0 -13
- package/.opencode/commands/using-mugiwara.md +0 -20
- package/content/skills/mugiwara-agent-security/SKILL.md +0 -58
- package/content/skills/mugiwara-agent-security/references/checklist.md +0 -20
- package/content/skills/mugiwara-context-budget/SKILL.md +0 -66
- package/content/skills/mugiwara-context-budget/references/context-budget.md +0 -37
- package/content/skills/mugiwara-pr/SKILL.md +0 -69
- package/content/skills/mugiwara-pr/references/verdict-format.md +0 -31
- package/content/skills/mugiwara-sunset/SKILL.md +0 -82
- package/content/skills/using-mugiwara/SKILL.md +0 -51
- package/references/token-budget.md +0 -56
- package/scripts/evidence.sh +0 -81
- package/scripts/initiative.ts +0 -296
- package/scripts/mission-report.sh +0 -293
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|
package/.kimi-plugin/plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mugiwara",
|
|
3
|
-
"version": "0.
|
|
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=
|
|
98
|
-
'coverage_modified=
|
|
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)
|
|
5
|
-
//
|
|
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
|
-
|
|
13
|
-
`
|
|
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
|
-
|
|
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/ —
|
|
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
|
|
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 `
|
|
9
|
-
|
|
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`.
|