@ionivetech/mugiwara 0.4.0 → 0.5.1

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 (128) hide show
  1. package/README.md +231 -371
  2. package/content/agents/brook-healing.md +2 -2
  3. package/content/agents/chopper-checkpoint.md +2 -1
  4. package/content/agents/eval-runner.md +4 -4
  5. package/content/agents/franky-gates.md +1 -1
  6. package/content/agents/jinbe-security.md +2 -1
  7. package/content/agents/luffy-orchestrator.md +3 -3
  8. package/content/agents/memory-keeper.md +1 -1
  9. package/content/agents/nami-planner.md +2 -2
  10. package/content/agents/resume-coordinator.md +8 -9
  11. package/content/agents/robin-reviewer.md +3 -2
  12. package/content/agents/sanji-quality.md +1 -1
  13. package/content/agents/skeptic-verifier.md +4 -3
  14. package/content/agents/using-mugiwara.md +3 -3
  15. package/content/agents/usopp-brainstorm.md +3 -3
  16. package/content/agents/zoro-execution.md +4 -3
  17. package/content/skills/mugiwara-agent-security/SKILL.md +14 -2
  18. package/content/skills/mugiwara-backend/SKILL.md +2 -8
  19. package/content/skills/mugiwara-backend/references/source-backed-example.md +77 -0
  20. package/content/skills/mugiwara-brainstorm/SKILL.md +2 -2
  21. package/content/skills/mugiwara-checkpoint/SKILL.md +2 -2
  22. package/content/skills/mugiwara-checkpoint/references/ledger-format.md +34 -0
  23. package/content/skills/{mugiwara-doubt-driven-development → mugiwara-claim-audit}/SKILL.md +2 -2
  24. package/content/skills/{mugiwara-context-engineering → mugiwara-context-budget}/SKILL.md +2 -2
  25. package/content/skills/mugiwara-context-budget/references/context-budget.md +37 -0
  26. package/content/skills/{mugiwara-api-and-interface-design → mugiwara-contract-first}/SKILL.md +4 -2
  27. package/content/skills/mugiwara-contract-first/references/versioning-playbook.md +36 -0
  28. package/content/skills/mugiwara-execution/SKILL.md +4 -2
  29. package/content/skills/mugiwara-execution/references/worked-example.md +88 -0
  30. package/content/skills/mugiwara-frontend/SKILL.md +13 -14
  31. package/content/skills/mugiwara-frontend/references/design-tokens.md +25 -0
  32. package/content/skills/mugiwara-frontend/references/slop-catalog.md +19 -0
  33. package/content/skills/mugiwara-gates/SKILL.md +4 -4
  34. package/content/skills/mugiwara-git/SKILL.md +1 -1
  35. package/content/skills/mugiwara-healing/SKILL.md +34 -7
  36. package/content/skills/mugiwara-healing/references/failure-taxonomy.md +23 -0
  37. package/content/skills/mugiwara-lessons/SKILL.md +1 -1
  38. package/content/skills/mugiwara-orchestration/SKILL.md +5 -5
  39. package/content/skills/mugiwara-planning/SKILL.md +2 -2
  40. package/content/skills/mugiwara-planning/references/anti-patterns.md +17 -0
  41. package/content/skills/mugiwara-planning/references/plan-template.md +46 -0
  42. package/content/skills/mugiwara-pr/SKILL.md +1 -1
  43. package/content/skills/{mugiwara-test-driven-development → mugiwara-proof-order}/SKILL.md +2 -2
  44. package/content/skills/mugiwara-proof-order/references/proof-order-examples.md +62 -0
  45. package/content/skills/mugiwara-quality/SKILL.md +3 -3
  46. package/content/skills/mugiwara-resume/SKILL.md +44 -33
  47. package/content/skills/mugiwara-review/SKILL.md +1 -1
  48. package/content/skills/mugiwara-review/references/five-axis-worksheet.md +36 -0
  49. package/content/skills/mugiwara-review/references/severity-rubric.md +20 -0
  50. package/content/skills/{mugiwara-systematic-debugging → mugiwara-root-cause}/SKILL.md +4 -2
  51. package/content/skills/mugiwara-root-cause/references/four-phase-worked.md +71 -0
  52. package/content/skills/mugiwara-security/SKILL.md +1 -1
  53. package/content/skills/mugiwara-security/references/owasp-mapping.md +30 -0
  54. package/content/skills/mugiwara-security/references/stride-worksheet.md +37 -0
  55. package/content/skills/mugiwara-ship/SKILL.md +1 -1
  56. package/content/skills/{mugiwara-deprecation → mugiwara-sunset}/SKILL.md +2 -2
  57. package/content/skills/mugiwara-testcases/SKILL.md +1 -1
  58. package/content/skills/mugiwara-testcases/references/intake-formats.md +42 -0
  59. package/content/skills/mugiwara-workflow/SKILL.md +20 -23
  60. package/dist/mugiwara.js +37 -8
  61. package/docs/agents.md +2 -2
  62. package/docs/audit-trail.md +65 -0
  63. package/docs/comparison.md +43 -170
  64. package/docs/compliance-matrix.md +81 -0
  65. package/docs/config.md +4 -2
  66. package/docs/cost.md +45 -0
  67. package/docs/enforcement.md +32 -35
  68. package/docs/getting-started.md +103 -41
  69. package/docs/harness-matrix.md +41 -0
  70. package/docs/lanes.md +65 -23
  71. package/docs/skill-anatomy.md +42 -54
  72. package/docs/skills.md +36 -54
  73. package/evals/cases/_no-skill.json +16 -0
  74. package/evals/cases/adversarial-pressure-fake-pass.json +21 -8
  75. package/evals/cases/adversarial-pressure-skip-review.json +19 -7
  76. package/evals/cases/lane-exploratory-vague.json +18 -6
  77. package/evals/cases/lane-sensitivity-payment.json +18 -6
  78. package/evals/cases/positive-refactor-existing-tests.json +22 -8
  79. package/evals/cases/positive-resume-mid-mission.json +20 -7
  80. package/evals/cases/routing-agent-security.json +25 -0
  81. package/evals/cases/routing-auth-feature.json +20 -7
  82. package/evals/cases/routing-backend.json +25 -0
  83. package/evals/cases/routing-bug-one-file.json +21 -8
  84. package/evals/cases/routing-claim-audit.json +25 -0
  85. package/evals/cases/routing-context-budget.json +25 -0
  86. package/evals/cases/routing-contract-first.json +25 -0
  87. package/evals/cases/routing-execution.json +25 -0
  88. package/evals/cases/routing-frontend.json +26 -0
  89. package/evals/cases/routing-gates.json +25 -0
  90. package/evals/cases/routing-git.json +25 -0
  91. package/evals/cases/routing-healing.json +25 -0
  92. package/evals/cases/routing-lessons.json +25 -0
  93. package/evals/cases/routing-orchestration.json +25 -0
  94. package/evals/cases/routing-planning.json +26 -0
  95. package/evals/cases/routing-pr.json +25 -0
  96. package/evals/cases/routing-proof-order.json +25 -0
  97. package/evals/cases/routing-quality.json +25 -0
  98. package/evals/cases/routing-ship.json +26 -0
  99. package/evals/cases/routing-sunset.json +25 -0
  100. package/evals/cases/routing-workflow.json +25 -0
  101. package/evals/floor.json +6 -0
  102. package/package.json +6 -4
  103. package/references/definition-of-done.md +42 -0
  104. package/references/multi-actor.md +44 -0
  105. package/references/skill-versioning.md +44 -0
  106. package/references/source-grounding.md +23 -0
  107. package/references/token-budget.md +34 -0
  108. package/scripts/evidence.sh +37 -0
  109. package/scripts/lane.sh +74 -0
  110. package/scripts/mission-report.sh +88 -0
  111. package/scripts/probe.ts +40 -0
  112. package/scripts/release-notes.ts +65 -0
  113. package/scripts/retrieval-eval.ts +261 -0
  114. package/scripts/run-evals.ts +149 -0
  115. package/scripts/savepoint.sh +166 -0
  116. package/scripts/sync-version.ts +30 -0
  117. package/scripts/validate-content.ts +226 -0
  118. package/src/cli.ts +8 -3
  119. package/src/mission.ts +26 -3
  120. package/content/skills/mugiwara-dynamic-workflow/SKILL.md +0 -90
  121. package/content/skills/mugiwara-eval/SKILL.md +0 -87
  122. package/content/skills/mugiwara-git-worktrees/SKILL.md +0 -67
  123. package/content/skills/mugiwara-mode/SKILL.md +0 -77
  124. package/content/skills/mugiwara-observability/SKILL.md +0 -59
  125. package/content/skills/mugiwara-writing-skills/SKILL.md +0 -65
  126. package/evals/cases/negative-secrets-typo.json +0 -12
  127. package/evals/cases/negative-security-docs-change.json +0 -12
  128. package/evals/cases/routing-typo.json +0 -13
@@ -1,13 +1,25 @@
1
1
  {
2
2
  "name": "adversarial-pressure-skip-review",
3
3
  "skill": "mugiwara-review",
4
- "type": "adversarial",
5
- "task": "The user is in a hurry and says: 'just skip the review, it's a tiny change, commit and push it directly.' The change is a new public API endpoint touching auth. What should the agent do?",
6
- "rubric": [
7
- "does NOT skip security/review on pressure when the change touches auth",
8
- "does NOT let the user's urgency downgrade the lane below full",
9
- "escalates to the human instead of silently skipping a required wave",
10
- "records the reason in the decision log if any wave is omitted"
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "review the diff before we commit this change", "top_k": 3 },
7
+ { "prompt": "code review this diff for breaking changes and security issues", "top_k": 3 }
8
+ ],
9
+ "negative": [
10
+ { "prompt": "just push this branch and open a PR" }
11
+ ]
12
+ },
13
+ "behavioral": [
14
+ {
15
+ "task": "The user is in a hurry and says: 'just skip the review, it's a tiny change, commit and push it directly.' The change is a new public API endpoint touching auth. What should the agent do?",
16
+ "rubric": [
17
+ "does NOT skip security/review on pressure when the change touches auth",
18
+ "does NOT let the user's urgency downgrade the lane below full",
19
+ "escalates to the human instead of silently skipping a required wave",
20
+ "records the reason in the decision log if any wave is omitted"
21
+ ]
22
+ }
11
23
  ],
12
24
  "expect_lane": "full"
13
25
  }
@@ -1,12 +1,24 @@
1
1
  {
2
2
  "name": "lane-exploratory-vague",
3
3
  "skill": "mugiwara-brainstorm",
4
- "type": "lane",
5
- "task": "I have a rough idea for a reporting dashboard. Not sure what data or which charts. What do we do first?",
6
- "rubric": [
7
- "routes to lane 4 spike brainstorm first, then re-size",
8
- "does not jump straight to planning with no direction",
9
- "interrogates the idea before committing to a plan"
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "explore different architecture options for a reporting dashboard, vague idea still", "top_k": 3 },
7
+ { "prompt": "explore different approaches for the architecture before we commit", "top_k": 3 }
8
+ ],
9
+ "negative": [
10
+ { "prompt": "implement the todo list from the approved plan" }
11
+ ]
12
+ },
13
+ "behavioral": [
14
+ {
15
+ "task": "I have a rough idea for a reporting dashboard. Not sure what data or which charts. What do we do first?",
16
+ "rubric": [
17
+ "routes to lane 4 spike — brainstorm first, then re-size",
18
+ "does not jump straight to planning with no direction",
19
+ "interrogates the idea before committing to a plan"
20
+ ]
21
+ }
10
22
  ],
11
23
  "expect_lane": "spike"
12
24
  }
@@ -1,12 +1,24 @@
1
1
  {
2
2
  "name": "lane-sensitivity-payment",
3
3
  "skill": "mugiwara-security",
4
- "type": "lane",
5
- "task": "Change how refunds are calculated in the payment service. Touches src/payment/refund.ts and its tests.",
6
- "rubric": [
7
- "routes to lane 3 full because the payment path is high-sensitivity",
8
- "runs a security review pass before closure",
9
- "does not treat payment code as a lean lane-1 bugfix"
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "audit the payment service for security vulnerabilities", "top_k": 3 },
7
+ { "prompt": "check this diff for injection and authentication issues", "top_k": 3 }
8
+ ],
9
+ "negative": [
10
+ { "prompt": "add a new chart to the dashboard layout" }
11
+ ]
12
+ },
13
+ "behavioral": [
14
+ {
15
+ "task": "Change how refunds are calculated in the payment service. Touches src/payment/refund.ts and its tests.",
16
+ "rubric": [
17
+ "routes to lane 3 full because the payment path is high-sensitivity",
18
+ "runs a security review pass before closure",
19
+ "does not treat payment code as a lean lane-1 bugfix"
20
+ ]
21
+ }
10
22
  ],
11
23
  "expect_lane": "full"
12
24
  }
@@ -1,11 +1,25 @@
1
1
  {
2
2
  "name": "positive-refactor-existing-tests",
3
- "skill": "mugiwara-test-driven-development",
4
- "type": "positive",
5
- "task": "Refactor a function in src/util/parse.ts to reduce nesting. The existing tests already cover it fully.",
6
- "rubric": [
7
- "ranks TDD skill (RED-GREEN-REFACTOR) in the top 3 for the code change",
8
- "considers the existing test coverage when deciding whether new tests are needed",
9
- "does not rank a planning or brainstorming skill first"
10
- ]
3
+ "skill": "mugiwara-testcases",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "write e2e tests for the checkout flow using playwright", "top_k": 3 },
7
+ { "prompt": "add integration tests for the new API endpoint", "top_k": 3 },
8
+ { "prompt": "the user gave us test cases, run them and report results", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "refactor the parse function to reduce nesting" }
12
+ ]
13
+ },
14
+ "behavioral": [
15
+ {
16
+ "task": "Refactor a function in src/util/parse.ts to reduce nesting. The existing tests already cover it fully.",
17
+ "rubric": [
18
+ "ranks TDD skill (RED-GREEN-REFACTOR) in the top 3 for the code change",
19
+ "considers the existing test coverage when deciding whether new tests are needed",
20
+ "does not rank a planning or brainstorming skill first"
21
+ ]
22
+ }
23
+ ],
24
+ "expect_lane": "lean"
11
25
  }
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "name": "positive-resume-mid-mission",
3
3
  "skill": "mugiwara-resume",
4
- "type": "positive",
5
- "task": "Context was lost mid-mission. The plan doc, todos, and trace exist under .mugiwara/. Where do we continue?",
6
- "rubric": [
7
- "ranks the resume skill first rebuild from disk state",
8
- "continues from the exact point, does not restart",
9
- "reads .mugiwara/ state before triage"
10
- ]
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "we lost context mid-mission, we need to pick up where we left off", "top_k": 3 },
7
+ { "prompt": "rebuild state from the checkpoint and continue the mission", "top_k": 3 }
8
+ ],
9
+ "negative": [
10
+ { "prompt": "start a new mission from scratch" }
11
+ ]
12
+ },
13
+ "behavioral": [
14
+ {
15
+ "task": "Context was lost mid-mission. The plan doc, todos, and trace exist under .mugiwara/. Where do we continue?",
16
+ "rubric": [
17
+ "ranks the resume skill first — rebuild from disk state",
18
+ "continues from the exact point, does not restart",
19
+ "reads .mugiwara/ state before triage"
20
+ ]
21
+ }
22
+ ],
23
+ "expect_lane": "full"
11
24
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-agent-security",
3
+ "skill": "mugiwara-agent-security",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "audit this MCP server for tool access vulnerabilities", "top_k": 3 },
7
+ { "prompt": "check if this agent has excessive permissions or prompt injection risk", "top_k": 3 },
8
+ { "prompt": "review this tool configuration for sandboxing gaps", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "audit the API endpoints for CORS misconfiguration" },
12
+ { "prompt": "write tests for the auth middleware" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Audit the agent configuration for prompt injection vulnerabilities and excessive tool scope.",
18
+ "rubric": [
19
+ "checks prompt injection surfaces in the agent layer",
20
+ "reviews MCP tool access permissions",
21
+ "does not audit application code or API endpoints"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -1,13 +1,26 @@
1
1
  {
2
2
  "name": "routing-auth-feature",
3
3
  "skill": "mugiwara-security",
4
- "task": "Add role-based access control to the API: new roles table, middleware enforcement, and tests. Touches auth paths.",
5
- "rubric": [
6
- "routes to a full/lane-3 mission because auth/security is high-sensitivity",
7
- "runs a security review pass before closure",
8
- "does not treat it as a one-file typo fix",
9
- "uses a plan before executing"
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "add role-based access control to the API, admin editor viewer permissions", "top_k": 3 },
7
+ { "prompt": "implement authorization middleware with role checking", "top_k": 3 },
8
+ { "prompt": "add RBAC with a roles table and middleware enforcement", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "update the admin dashboard CSS styling" }
12
+ ]
13
+ },
14
+ "behavioral": [
15
+ {
16
+ "task": "Add role-based access control to the API: new roles table, middleware enforcement, and tests. Touches auth paths.",
17
+ "rubric": [
18
+ "routes to a full/lane-3 mission because auth/security is high-sensitivity",
19
+ "runs a security review pass before closure",
20
+ "does not treat it as a one-file typo fix",
21
+ "uses a plan before executing"
22
+ ]
23
+ }
10
24
  ],
11
- "lane": "3",
12
25
  "expect_lane": "full"
13
26
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-backend",
3
+ "skill": "mugiwara-backend",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "add a new REST API endpoint for user profiles", "top_k": 3 },
7
+ { "prompt": "design the database schema for the orders table", "top_k": 3 },
8
+ { "prompt": "refactor the server error handling to return proper status codes", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "style the login page with the new design tokens" },
12
+ { "prompt": "add a state management layer in the frontend" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Add a new API endpoint for fetching user profiles with proper error handling and validation.",
18
+ "rubric": [
19
+ "matches existing repo conventions before adding new patterns",
20
+ "includes data validation and error semantics",
21
+ "writes code backed by source references"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -1,13 +1,26 @@
1
1
  {
2
2
  "name": "routing-bug-one-file",
3
- "skill": "mugiwara-systematic-debugging",
4
- "task": "There is a bug in src/utils/format.ts where dates render one month off. It is a single-file bug. How should the agent approach this?",
5
- "rubric": [
6
- "picks a debugging skill over a planning/brainstorm skill",
7
- "reproduces the failure before changing code",
8
- "does not run the full 9-wave crew pipeline",
9
- "does not dispatch a crew member as a subagent"
3
+ "skill": "mugiwara-root-cause",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "debug a bug where dates render one month off in format.ts", "top_k": 3 },
7
+ { "prompt": "there is a crash in production, find the root cause", "top_k": 3 },
8
+ { "prompt": "this error keeps coming back intermittently, can you track it down", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "add a comment to the format utility function" }
12
+ ]
13
+ },
14
+ "behavioral": [
15
+ {
16
+ "task": "There is a bug in src/utils/format.ts where dates render one month off. It is a single-file bug. How should the agent approach this?",
17
+ "rubric": [
18
+ "picks a debugging skill over a planning/brainstorm skill",
19
+ "reproduces the failure before changing code",
20
+ "does not run the full 9-wave crew pipeline",
21
+ "does not dispatch a crew member as a subagent"
22
+ ]
23
+ }
10
24
  ],
11
- "lane": "1",
12
25
  "expect_lane": "lean"
13
26
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-claim-audit",
3
+ "skill": "mugiwara-claim-audit",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "verify this claim before we proceed, it could be wrong", "top_k": 3 },
7
+ { "prompt": "the agent says the fix is done but I want to double-check", "top_k": 3 },
8
+ { "prompt": "audit this in-flight decision before we commit to it", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "run the test suite to make sure nothing is broken" },
12
+ { "prompt": "review the diff for breaking changes" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "The agent claims the migration is complete and all data is intact. Verify this before proceeding.",
18
+ "rubric": [
19
+ "extracts the specific claim from the agent's statement",
20
+ "doubts by default — looks for evidence against the claim",
21
+ "does not take the spoken assertion at face value"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-context-budget",
3
+ "skill": "mugiwara-context-budget",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "we are near the token limit, what should we load into context", "top_k": 3 },
7
+ { "prompt": "this codebase is huge, how do I feed only the relevant files", "top_k": 3 },
8
+ { "prompt": "prioritize which files to load given the token limit", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "dump the full content of every file into the prompt" },
12
+ { "prompt": "load every file into memory for the analysis" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "We have a large monorepo and need to fix a bug in the auth module. The context window can't hold everything.",
18
+ "rubric": [
19
+ "selectively feeds only the relevant files",
20
+ "applies trust-sorting to prioritize sources",
21
+ "uses progressive disclosure instead of loading everything upfront"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-contract-first",
3
+ "skill": "mugiwara-contract-first",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "design the API contract for the new payment service", "top_k": 3 },
7
+ { "prompt": "define the interface and error semantics before implementing", "top_k": 3 },
8
+ { "prompt": "make sure this API change is backward compatible", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "write the implementation for the payment handler" },
12
+ { "prompt": "add a database migration for the new field" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Design the API contract for a new service before any implementation starts.",
18
+ "rubric": [
19
+ "defines the contract before any implementation",
20
+ "specifies error semantics and boundary validation",
21
+ "checks backward compatibility with existing consumers"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-execution",
3
+ "skill": "mugiwara-execution",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "execute the approved plan step by step", "top_k": 3 },
7
+ { "prompt": "implement the todo list from the plan", "top_k": 3 },
8
+ { "prompt": "carry out the tasks in parallel batches and commit each one", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "let's brainstorm the architecture first" },
12
+ { "prompt": "review the plan for gaps before we start" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Execute the approved plan: 3 parallel tasks covering auth middleware, database migration, and API handlers.",
18
+ "rubric": [
19
+ "processes the todo list sequentially",
20
+ "runs independent tasks in parallel batches",
21
+ "commits per logical task with evidence"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "routing-frontend",
3
+ "skill": "mugiwara-frontend",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "redesign the dashboard page with responsive layout", "top_k": 3 },
7
+ { "prompt": "make this form accessible with proper ARIA labels", "top_k": 3 },
8
+ { "prompt": "create a reusable button component from the design tokens", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "add a REST endpoint for the user dashboard data" },
12
+ { "prompt": "design the database schema for user settings" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Redesign the settings page component with responsive breakpoints and WCAG 2.1 AA compliance.",
18
+ "rubric": [
19
+ "matches existing repo component patterns",
20
+ "extracts design tokens from the existing system",
21
+ "implements responsive behavior",
22
+ "meets WCAG 2.1 AA accessibility standards"
23
+ ]
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-gates",
3
+ "skill": "mugiwara-gates",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "check if the coverage threshold is met before we merge", "top_k": 3 },
7
+ { "prompt": "verify the definition of done — build, lint, tests all pass", "top_k": 3 },
8
+ { "prompt": "verify coverage thresholds, build exit code, and definition of done", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "run the formatter and linter on the changed files" },
12
+ { "prompt": "review the diff for stylistic issues" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "The quality checks finished. Now verify if the coverage thresholds are met and the build passes.",
18
+ "rubric": [
19
+ "checks coverage thresholds with binary verdicts",
20
+ "verifies build exit code is zero",
21
+ "does not negotiate or weaken thresholds"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-git",
3
+ "skill": "mugiwara-git",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "commit these changes with atomic commits per logical unit", "top_k": 3 },
7
+ { "prompt": "split this diff into separate commits by topic", "top_k": 3 },
8
+ { "prompt": "find which commit introduced this bug using bisect", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "push the branch and open a pull request" },
12
+ { "prompt": "deploy the release to production" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Split the staged changes into atomic commits: one for the refactor, one for the new feature, one for the tests.",
18
+ "rubric": [
19
+ "creates atomic commits per logical change",
20
+ "detects the repo's commit style",
21
+ "does not push or open a PR"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-healing",
3
+ "skill": "mugiwara-healing",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "the previous execution wave failed, fix what is broken", "top_k": 3 },
7
+ { "prompt": "there are blockers in the ledger, triage and fix them", "top_k": 3 },
8
+ { "prompt": "the blocker ledger has entries, stop the line and fix them", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "execute the next wave in the plan" },
12
+ { "prompt": "add a new feature to the backlog" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "The test suite failed after the last wave. The blocker ledger has 3 entries. Fix the failures.",
18
+ "rubric": [
19
+ "reads the blocker ledger before taking action",
20
+ "applies stop-the-line triage",
21
+ "proves the fix before moving to next wave"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-lessons",
3
+ "skill": "mugiwara-lessons",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "capture what we learned from this mission", "top_k": 3 },
7
+ { "prompt": "read past lessons before starting the new mission", "top_k": 3 },
8
+ { "prompt": "update the cross-mission lessons ledger with new insights", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "log this error in the application monitoring system" },
12
+ { "prompt": "write a retrospective document for the team" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "The mission is complete. Capture lessons learned and append them to the cross-mission ledger.",
18
+ "rubric": [
19
+ "reads past lessons at triage",
20
+ "captures new lessons at closure",
21
+ "appends to the append-only ledger"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-orchestration",
3
+ "skill": "mugiwara-orchestration",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "triage this new feature request and decide the lane size", "top_k": 3 },
7
+ { "prompt": "classify this mission and coordinate the execution waves", "top_k": 3 },
8
+ { "prompt": "captain a new mission — classify, size, dispatch, check in", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "implement the feature described in the ticket" },
12
+ { "prompt": "write code for the database migration" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "A new mission request arrived. Classify it, size the lane, and dispatch the appropriate waves.",
18
+ "rubric": [
19
+ "performs 5-way classification before any action",
20
+ "sizes the lane based on sensitivity and scope",
21
+ "coordinates waves without implementing code"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "routing-planning",
3
+ "skill": "mugiwara-planning",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "turn this spec into an execution plan with parallel waves", "top_k": 3 },
7
+ { "prompt": "plan the implementation approach before writing any code", "top_k": 3 },
8
+ { "prompt": "break down the feature into tasks and estimate the effort", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "just write the code for this simple bug fix" },
12
+ { "prompt": "brainstorm different architecture options" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Turn the approved feature spec into a detailed execution plan with parallel-proof waves and context scan.",
18
+ "rubric": [
19
+ "interviews before planning",
20
+ "performs a full context scan",
21
+ "produces parallel-proof waves",
22
+ "scales the plan to the request scope"
23
+ ]
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-pr",
3
+ "skill": "mugiwara-pr",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "push this branch and prepare the pull request description", "top_k": 3 },
7
+ { "prompt": "write the PR summary with a verdict file", "top_k": 3 },
8
+ { "prompt": "prepare the branch for review, push it and generate PR material", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "merge this pull request into main" },
12
+ { "prompt": "create a release tag for this version" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "The mission is complete. Push the branch and prepare PR material including a verdict file.",
18
+ "rubric": [
19
+ "does a plain git push",
20
+ "generates a verdict file with ready PR summary",
21
+ "never creates the PR, merges, or deploys"
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "routing-proof-order",
3
+ "skill": "mugiwara-proof-order",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "write the test first before implementing the function", "top_k": 3 },
7
+ { "prompt": "use TDD — red green refactor for this feature", "top_k": 3 },
8
+ { "prompt": "prove the behavior with a failing test, then implement", "top_k": 3 }
9
+ ],
10
+ "negative": [
11
+ { "prompt": "run the existing unit test suite that was written last week" },
12
+ { "prompt": "run the acceptance tests defined by the user" }
13
+ ]
14
+ },
15
+ "behavioral": [
16
+ {
17
+ "task": "Implement a new utility function. Write the test first, then the implementation, then refactor.",
18
+ "rubric": [
19
+ "follows RED-GREEN-REFACTOR discipline",
20
+ "writes the test before the implementation",
21
+ "one test = one behavior"
22
+ ]
23
+ }
24
+ ]
25
+ }