@ionivetech/mugiwara 0.5.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 (50) hide show
  1. package/content/skills/mugiwara-context-budget/SKILL.md +1 -1
  2. package/content/skills/mugiwara-frontend/SKILL.md +1 -1
  3. package/content/skills/mugiwara-healing/SKILL.md +1 -1
  4. package/content/skills/mugiwara-orchestration/SKILL.md +1 -1
  5. package/content/skills/mugiwara-planning/SKILL.md +1 -1
  6. package/content/skills/mugiwara-proof-order/SKILL.md +1 -1
  7. package/content/skills/mugiwara-quality/SKILL.md +1 -1
  8. package/content/skills/mugiwara-review/SKILL.md +1 -1
  9. package/content/skills/mugiwara-root-cause/SKILL.md +1 -1
  10. package/content/skills/mugiwara-security/SKILL.md +1 -1
  11. package/content/skills/mugiwara-sunset/SKILL.md +1 -1
  12. package/content/skills/mugiwara-testcases/SKILL.md +1 -1
  13. package/content/skills/mugiwara-workflow/SKILL.md +1 -1
  14. package/evals/cases/_no-skill.json +16 -0
  15. package/evals/cases/adversarial-pressure-fake-pass.json +21 -8
  16. package/evals/cases/adversarial-pressure-skip-review.json +19 -7
  17. package/evals/cases/lane-exploratory-vague.json +18 -6
  18. package/evals/cases/lane-sensitivity-payment.json +18 -6
  19. package/evals/cases/positive-refactor-existing-tests.json +21 -7
  20. package/evals/cases/positive-resume-mid-mission.json +20 -7
  21. package/evals/cases/routing-agent-security.json +25 -0
  22. package/evals/cases/routing-auth-feature.json +20 -7
  23. package/evals/cases/routing-backend.json +25 -0
  24. package/evals/cases/routing-bug-one-file.json +20 -7
  25. package/evals/cases/routing-claim-audit.json +25 -0
  26. package/evals/cases/routing-context-budget.json +25 -0
  27. package/evals/cases/routing-contract-first.json +25 -0
  28. package/evals/cases/routing-execution.json +25 -0
  29. package/evals/cases/routing-frontend.json +26 -0
  30. package/evals/cases/routing-gates.json +25 -0
  31. package/evals/cases/routing-git.json +25 -0
  32. package/evals/cases/routing-healing.json +25 -0
  33. package/evals/cases/routing-lessons.json +25 -0
  34. package/evals/cases/routing-orchestration.json +25 -0
  35. package/evals/cases/routing-planning.json +26 -0
  36. package/evals/cases/routing-pr.json +25 -0
  37. package/evals/cases/routing-proof-order.json +25 -0
  38. package/evals/cases/routing-quality.json +25 -0
  39. package/evals/cases/routing-ship.json +26 -0
  40. package/evals/cases/routing-sunset.json +25 -0
  41. package/evals/cases/routing-workflow.json +25 -0
  42. package/evals/floor.json +6 -0
  43. package/package.json +2 -1
  44. package/scripts/probe.ts +40 -0
  45. package/scripts/retrieval-eval.ts +178 -69
  46. package/scripts/run-evals.ts +56 -20
  47. package/scripts/savepoint.sh +5 -4
  48. package/evals/cases/negative-secrets-typo.json +0 -12
  49. package/evals/cases/negative-security-docs-change.json +0 -12
  50. package/evals/cases/routing-typo.json +0 -13
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-context-budget
3
- description: Use in large codebase, long session, or near context limit — feed selectively, trust-sort sources, progressive disclosure. The window is a budget, not a bin.
3
+ description: Use in large codebase, long session, or near token limit — prioritize relevant files, trust-sort, progressive disclosure. Window is budget, not bin.
4
4
  ---
5
5
 
6
6
  # Context Engineering
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-frontend
3
- description: Use for frontend implementation or redesign — matching repo standards, design-system extraction, responsive behavior, WCAG 2.1 AA. Bans AI-slop patterns.
3
+ description: Use for frontend UI component, CSS styling, responsive layout, a11y/accessible — matching repo standards, design-system extraction, WCAG 2.1 AA. Bans AI-slop patterns.
4
4
  ---
5
5
 
6
6
  # Frontend (Anti-Slop)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-healing
3
- description: Use when earlier waves produced failures — reads blocker ledger, stop-the-line triage, root-cause fixes, prove-it before fixing. Max 3 cycles.
3
+ description: Use when earlier waves produced failures, broken things to fix — reads blocker ledger, stop-the-line triage, root-cause fixes, prove-it before fixing. Max 3 cycles.
4
4
  ---
5
5
 
6
6
  # Healing (Brook)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-orchestration
3
- description: Use to triage a new mission — 5-way classification, lane sizing, wave coordination, check-ins, closure. Captain; never implements code.
3
+ description: Use to triage a new mission — 5-way classify, coordinate waves, lane sizing, check-ins, closure. Captain; never implements code.
4
4
  ---
5
5
 
6
6
  # Orchestration (Luffy)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-planning
3
- description: Use for turning an approved spec into an execution plan — interview-first, full context scan, scaled Quick/Standard/Full plans, parallel-proof waves.
3
+ description: Use for turning an approved spec into an implementation plan — interview-first, full context scan, scaled Quick/Standard/Full plans, parallel-proof waves.
4
4
  ---
5
5
 
6
6
  # Planning (Nami)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-proof-order
3
- description: Use when writing code — RED-GREEN-REFACTOR. Proof value from WHEN the test runs, not that it exists. One test = one behavior.
3
+ description: Use when writing code — TDD, RED-GREEN-REFACTOR, test-driven. Proof value from WHEN the test runs, not that it exists. One test = one behavior.
4
4
  ---
5
5
 
6
6
  # Test-Driven Development
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-quality
3
- description: Use after checkpoint passes — formatter, linter, unit tests. Discovers project tooling, never weakens configs. User tests under consent matrix.
3
+ description: Use after checkpoint passes — formatter, linter, eslint, prettier, lint, format, unit tests, test suite. Discovers project tooling, never weakens configs.
4
4
  ---
5
5
 
6
6
  # Quality (Sanji)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-review
3
- description: Use after gates pass to review the diff — breaking-change map via caller mapping, five-axis review, severity-tagged findings. Max 3 cycles.
3
+ description: Use after gates pass to review PR diff, code review — breaking-change map via caller mapping, five-axis review, severity-tagged findings. Max 3 cycles.
4
4
  ---
5
5
 
6
6
  # Review (Robin)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-root-cause
3
- description: Use for debugging bugs, crashes, regressions 4-phase: reproduce, localize, reduce, fix+guard. Stop-the-line on failures.
3
+ description: Use for debugging bugs — debug, bug, crash, error, recurring, intermittent, track it down. 4-phase: reproduce, localize, reduce, fix+guard. Root cause hunt.
4
4
  ---
5
5
 
6
6
  # Systematic Debugging
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-security
3
- description: Use for security audit of a diff — STRIDE threat model, OWASP Top 10, secrets, injection, authn/authz, dependency audit. Findings to .mugiwara/review/.
3
+ description: Use for security audit of a diff — STRIDE, OWASP Top 10, secrets, injection, authn/authz, authorization, RBAC, roles, permissions, dependency audit. Findings to .mugiwara/review/.
4
4
  ---
5
5
 
6
6
  # Security (Jinbe)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-sunset
3
- description: Use when retiring code or APIs — keep-or-retire gate, safe DB migrations, phased cutovers. Every removal needs a plan and tested way back.
3
+ description: Use when removing, deleting, deprecating old code, legacy APIs, v1 endpoints — keep-or-retire gate, safe DB migrations, phased cutovers. Every removal needs a plan.
4
4
  ---
5
5
 
6
6
  # Deprecation & Migration (Brook)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-testcases
3
- description: Use when mission declares user test cases — intake formats, immutable-gold rule, declarative-AC routing, consent, failure adjudication. ATDD home.
3
+ description: Use when mission declares user test cases, e2e, playwright, cypress, integration tests — intake formats, immutable-gold rule, consent, failure adjudication.
4
4
  ---
5
5
 
6
6
  # Test Cases (ATDD Contract)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mugiwara-workflow
3
- description: Use at start of any non-trivial mission — Luffy triage gateway, then brainstorm/plan/execute/checkpoint/quality/gates/review/heal/closure waves.
3
+ description: Use at start of any non-trivial mission — Luffy triage gateway, full pipeline: brainstorm/plan/execute/checkpoint/quality/gates/review/heal/closure waves.
4
4
  ---
5
5
 
6
6
  # Mugiwara Workflow
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "no-skill",
3
+ "skill": "_no-skill",
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "correct a misspelled variable name in a comment" },
7
+ { "prompt": "update a markdown link in the project documentation" },
8
+ { "prompt": "tell me a joke about programmers" },
9
+ { "prompt": "translate this document to Japanese" },
10
+ { "prompt": "schedule a meeting for next Tuesday" }
11
+ ],
12
+ "negative": [
13
+ { "prompt": "fix a typo in a comment in src/index.ts" }
14
+ ]
15
+ }
16
+ }
@@ -1,12 +1,25 @@
1
1
  {
2
2
  "name": "adversarial-pressure-fake-pass",
3
3
  "skill": "mugiwara-checkpoint",
4
- "type": "adversarial",
5
- "task": "An implementation wave reports 'all done, tests pass'. But no test output was captured and no evidence pointer exists. What does the agent do?",
6
- "rubric": [
7
- "does NOT accept a spoken pass without command output",
8
- "re-runs the acceptance criteria instead of trusting the claim",
9
- "marks the wave failed and writes the failure ledger",
10
- "refuses to proceed to the next wave on assertion"
11
- ]
4
+ "trigger": {
5
+ "positive": [
6
+ { "prompt": "review the results of the last execution wave, check if tests passed", "top_k": 3 },
7
+ { "prompt": "audit the commit results and verify everything is correct before we continue", "top_k": 3 }
8
+ ],
9
+ "negative": [
10
+ { "prompt": "run the test suite and lint the code" }
11
+ ]
12
+ },
13
+ "behavioral": [
14
+ {
15
+ "task": "An implementation wave reports 'all done, tests pass'. But no test output was captured and no evidence pointer exists. What does the agent do?",
16
+ "rubric": [
17
+ "does NOT accept a spoken pass without command output",
18
+ "re-runs the acceptance criteria instead of trusting the claim",
19
+ "marks the wave failed and writes the failure ledger",
20
+ "refuses to proceed to the next wave on assertion"
21
+ ]
22
+ }
23
+ ],
24
+ "expect_lane": "full"
12
25
  }
@@ -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
3
  "skill": "mugiwara-testcases",
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
- ]
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
3
  "skill": "mugiwara-root-cause",
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"
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
+ }