create-merlin-brain 5.0.2 → 5.3.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 (101) hide show
  1. package/README.md +25 -4
  2. package/bin/install.cjs +20 -0
  3. package/dist/server/server.d.ts.map +1 -1
  4. package/dist/server/server.js +75 -0
  5. package/dist/server/server.js.map +1 -1
  6. package/dist/server/tools/context.d.ts.map +1 -1
  7. package/dist/server/tools/context.js +60 -0
  8. package/dist/server/tools/context.js.map +1 -1
  9. package/dist/server/tools/project-picture.d.ts +17 -0
  10. package/dist/server/tools/project-picture.d.ts.map +1 -0
  11. package/dist/server/tools/project-picture.js +204 -0
  12. package/dist/server/tools/project-picture.js.map +1 -0
  13. package/dist/server/tools/types.d.ts +24 -0
  14. package/dist/server/tools/types.d.ts.map +1 -1
  15. package/files/agents/challenger-academic.md +8 -0
  16. package/files/agents/challenger-arbiter.md +8 -0
  17. package/files/agents/challenger-insider.md +8 -0
  18. package/files/agents/code-organization-supervisor.md +8 -0
  19. package/files/agents/codex-planner.md +36 -9
  20. package/files/agents/context-guardian.md +8 -0
  21. package/files/agents/docs-keeper.md +8 -0
  22. package/files/agents/dry-refactor.md +8 -0
  23. package/files/agents/elite-code-refactorer.md +8 -0
  24. package/files/agents/hardening-guard.md +8 -0
  25. package/files/agents/implementation-dev.md +8 -0
  26. package/files/agents/merlin-access-control-reviewer.md +8 -0
  27. package/files/agents/merlin-api-designer.md +8 -0
  28. package/files/agents/merlin-codebase-mapper.md +8 -0
  29. package/files/agents/merlin-debugger.md +8 -0
  30. package/files/agents/merlin-dependency-auditor.md +8 -0
  31. package/files/agents/merlin-edge-case-hunter.md +8 -0
  32. package/files/agents/merlin-executor.md +8 -0
  33. package/files/agents/merlin-frontend.md +8 -0
  34. package/files/agents/merlin-input-validator.md +8 -0
  35. package/files/agents/merlin-integration-checker.md +8 -0
  36. package/files/agents/merlin-migrator.md +8 -0
  37. package/files/agents/merlin-milestone-auditor.md +8 -0
  38. package/files/agents/merlin-party-review.md +8 -0
  39. package/files/agents/merlin-performance.md +8 -0
  40. package/files/agents/merlin-planner.md +9 -1
  41. package/files/agents/merlin-researcher.md +8 -0
  42. package/files/agents/merlin-reviewer.md +8 -0
  43. package/files/agents/merlin-sast-reviewer.md +8 -0
  44. package/files/agents/merlin-secret-scanner.md +8 -0
  45. package/files/agents/merlin-security.md +8 -0
  46. package/files/agents/merlin-verifier.md +8 -0
  47. package/files/agents/merlin-work-verifier.md +8 -0
  48. package/files/agents/merlin.md +8 -0
  49. package/files/agents/ops-railway.md +8 -0
  50. package/files/agents/orchestrator-retrofit.md +8 -0
  51. package/files/agents/product-spec.md +8 -0
  52. package/files/agents/remotion.md +8 -0
  53. package/files/agents/system-architect.md +8 -0
  54. package/files/agents/tests-qa.md +8 -0
  55. package/files/commands/merlin/course-correct.md +8 -0
  56. package/files/commands/merlin/design-audit.md +92 -0
  57. package/files/commands/merlin/health.md +8 -0
  58. package/files/commands/merlin/next.md +8 -0
  59. package/files/commands/merlin/optimize.md +89 -0
  60. package/files/commands/merlin/polish.md +99 -0
  61. package/files/commands/merlin/quick.md +8 -0
  62. package/files/commands/merlin/readiness-gate.md +8 -0
  63. package/files/commands/merlin/redesign.md +108 -0
  64. package/files/loop/README.md +11 -0
  65. package/files/merlin/skills/SKILLS-INDEX.md +16 -1
  66. package/files/merlin/skills/TASK-OPTIMIZER.json +310 -0
  67. package/files/merlin/skills/coding/focus-mode.md +8 -0
  68. package/files/merlin/skills/design/emil-design-eng.md +31 -0
  69. package/files/merlin/skills/design/impeccable.md +36 -0
  70. package/files/merlin/skills/duo/offer.md +20 -7
  71. package/files/merlin/skills/duo/on.md +26 -17
  72. package/files/merlin/skills/duo/status.md +10 -3
  73. package/files/merlin/templates/DEBUG.md +11 -0
  74. package/files/merlin/templates/UAT.md +11 -0
  75. package/files/merlin/templates/phase-prompt.md +11 -0
  76. package/files/merlin/templates/project.md +11 -0
  77. package/files/merlin/templates/requirements.md +11 -0
  78. package/files/merlin/templates/roadmap.md +11 -0
  79. package/files/merlin/templates/state.md +11 -0
  80. package/files/merlin/templates/verification-report.md +11 -0
  81. package/files/merlin/workflows/execute-phase.md +11 -0
  82. package/files/merlin/workflows/plan-phase.md +11 -0
  83. package/files/merlin/workflows/progress.md +11 -0
  84. package/files/merlin/workflows/resume-project.md +11 -0
  85. package/files/merlin/workflows/verify-phase.md +11 -0
  86. package/files/merlin/workflows/verify-work.md +11 -0
  87. package/files/merlin-system-prompt.txt +35 -1
  88. package/files/rules/codex-routing.md +19 -0
  89. package/files/rules/duo-routing.md +109 -10
  90. package/files/rules/merlin-routing.md +40 -0
  91. package/files/scripts/codex-as.sh +5 -2
  92. package/files/scripts/design-intent-detect.sh +8 -0
  93. package/files/scripts/duo-badge.sh +3 -5
  94. package/files/scripts/duo-installed.sh +3 -3
  95. package/files/scripts/duo-mode-read.sh +30 -10
  96. package/files/scripts/duo-mode-write.sh +28 -3
  97. package/files/scripts/duo-pre-route.sh +2 -8
  98. package/files/scripts/install-design-skills.sh +86 -0
  99. package/files/scripts/merlin-codex.sh +9 -4
  100. package/files/scripts/task-optimize.sh +335 -0
  101. package/package.json +1 -1
@@ -16,6 +16,14 @@ hooks:
16
16
  hooks:
17
17
  - type: command
18
18
  command: "bash ~/.claude/hooks/check-file-size.sh"
19
+ provenance:
20
+ upstream: bmad-code-org/BMAD-METHOD
21
+ upstream_path: "pattern: <critical_actions> XML block"
22
+ upstream_commit: 285bad4
23
+ license: MIT
24
+ license_verification: pending
25
+ adapted: "2026-03-14"
26
+ changes: added <critical_actions> hard-constraint block
19
27
  ---
20
28
 
21
29
  You are an elite Code Organization and DRY Supervisor with deep expertise in software architecture, clean code principles, and maintainable project structures.
@@ -16,6 +16,14 @@ hooks:
16
16
  hooks:
17
17
  - type: command
18
18
  command: "bash ~/.claude/hooks/check-file-size.sh"
19
+ provenance:
20
+ upstream: bmad-code-org/BMAD-METHOD
21
+ upstream_path: "pattern: <critical_actions> XML block"
22
+ upstream_commit: 285bad4
23
+ license: MIT
24
+ license_verification: pending
25
+ adapted: "2026-03-14"
26
+ changes: added <critical_actions> hard-constraint block
19
27
  ---
20
28
 
21
29
  <agent_memory>
@@ -10,6 +10,14 @@ isolation: worktree
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 80
12
12
  memory: project
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  You are the Hardening Guard.
@@ -16,6 +16,14 @@ hooks:
16
16
  hooks:
17
17
  - type: command
18
18
  command: "bash ~/.claude/hooks/check-file-size.sh"
19
+ provenance:
20
+ upstream: bmad-code-org/BMAD-METHOD
21
+ upstream_path: "pattern: <critical_actions> XML block"
22
+ upstream_commit: 285bad4
23
+ license: MIT
24
+ license_verification: pending
25
+ adapted: "2026-03-14"
26
+ changes: added <critical_actions> hard-constraint block
19
27
  ---
20
28
 
21
29
  You are the primary implementation developer working with a strong product minded vibe coder.
@@ -10,6 +10,14 @@ effort: high
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 80
12
12
  memory: user
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  <role>
@@ -9,6 +9,14 @@ effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 80
11
11
  memory: user
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -8,6 +8,14 @@ model: sonnet
8
8
  effort: high
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 150
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -9,6 +9,14 @@ effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 150
11
11
  memory: project
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -10,6 +10,14 @@ effort: medium
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 60
12
12
  memory: user
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  <role>
@@ -10,6 +10,14 @@ effort: high
10
10
  background: true
11
11
  permissionMode: bypassPermissions
12
12
  maxTurns: 80
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: edge-case methodology (v6.0.4+)"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: port of BMAD edge-case methodology
13
21
  ---
14
22
 
15
23
  <role>
@@ -9,6 +9,14 @@ effort: medium
9
9
  isolation: worktree
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 200
12
+ provenance:
13
+ upstream: gsd-build/get-shit-done
14
+ upstream_path: agents/executor.md
15
+ upstream_commit: 9045c81
16
+ license: MIT
17
+ license_verification: confirmed
18
+ adapted: "2026-03-14"
19
+ changes: GSD fresh-context-per-plan execution model
12
20
  ---
13
21
 
14
22
  <role>
@@ -15,6 +15,14 @@ hooks:
15
15
  hooks:
16
16
  - type: command
17
17
  command: "bash ~/.claude/hooks/check-file-size.sh"
18
+ provenance:
19
+ upstream: bmad-code-org/BMAD-METHOD
20
+ upstream_path: "pattern: <critical_actions> XML block"
21
+ upstream_commit: 285bad4
22
+ license: MIT
23
+ license_verification: pending
24
+ adapted: "2026-03-14"
25
+ changes: added <critical_actions> hard-constraint block
18
26
  ---
19
27
 
20
28
  <role>
@@ -10,6 +10,14 @@ effort: medium
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 60
12
12
  memory: user
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  <role>
@@ -8,6 +8,14 @@ model: sonnet
8
8
  effort: low
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 80
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -9,6 +9,14 @@ effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 100
11
11
  memory: project
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -8,6 +8,14 @@ model: opus
8
8
  effort: low
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 50
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -10,6 +10,14 @@ effort: high
10
10
  background: true
11
11
  permissionMode: bypassPermissions
12
12
  maxTurns: 60
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: Party Mode multi-perspective review"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: port of BMAD Party Mode
13
21
  ---
14
22
 
15
23
  <role>
@@ -9,6 +9,14 @@ effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 80
11
11
  memory: user
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -4,11 +4,19 @@ description: Creates executable phase plans (PLAN.md files) with discovery, depe
4
4
  tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, WebFetch, mcp__context7__*, mcp__merlin__merlin_get_context, mcp__merlin__merlin_search, mcp__merlin__merlin_find_files
5
5
  color: blue
6
6
  version: "1.0.0"
7
- disallowedTools: [Edit, Write, NotebookEdit, Bash]
7
+ disallowedTools: [Edit, NotebookEdit]
8
8
  model: opus
9
9
  effort: high
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 100
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -8,6 +8,14 @@ model: opus
8
8
  effort: high
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 100
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -11,6 +11,14 @@ background: true
11
11
  permissionMode: bypassPermissions
12
12
  maxTurns: 50
13
13
  memory: project
14
+ provenance:
15
+ upstream: bmad-code-org/BMAD-METHOD
16
+ upstream_path: "pattern: adversarial code reviewer"
17
+ upstream_commit: 285bad4
18
+ license: MIT
19
+ license_verification: pending
20
+ adapted: "2026-03-14"
21
+ changes: adapted adversarial reviewer framing + critical_actions
14
22
  ---
15
23
 
16
24
  <role>
@@ -11,6 +11,14 @@ isolation: worktree
11
11
  permissionMode: bypassPermissions
12
12
  maxTurns: 80
13
13
  memory: user
14
+ provenance:
15
+ upstream: bmad-code-org/BMAD-METHOD
16
+ upstream_path: "pattern: <critical_actions> XML block"
17
+ upstream_commit: 285bad4
18
+ license: MIT
19
+ license_verification: pending
20
+ adapted: "2026-03-14"
21
+ changes: added <critical_actions> hard-constraint block
14
22
  ---
15
23
 
16
24
  <role>
@@ -11,6 +11,14 @@ isolation: worktree
11
11
  permissionMode: bypassPermissions
12
12
  maxTurns: 60
13
13
  memory: user
14
+ provenance:
15
+ upstream: bmad-code-org/BMAD-METHOD
16
+ upstream_path: "pattern: <critical_actions> XML block"
17
+ upstream_commit: 285bad4
18
+ license: MIT
19
+ license_verification: pending
20
+ adapted: "2026-03-14"
21
+ changes: added <critical_actions> hard-constraint block
14
22
  ---
15
23
 
16
24
  <role>
@@ -10,6 +10,14 @@ effort: high
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 80
12
12
  memory: user
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  <role>
@@ -9,6 +9,14 @@ model: sonnet
9
9
  effort: low
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 100
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  <role>
@@ -8,6 +8,14 @@ model: sonnet
8
8
  effort: low
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 50
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -7,6 +7,14 @@ version: "1.0.0"
7
7
  effort: high
8
8
  permissionMode: bypassPermissions
9
9
  maxTurns: 50
10
+ provenance:
11
+ upstream: bmad-code-org/BMAD-METHOD
12
+ upstream_path: "pattern: <critical_actions> XML block"
13
+ upstream_commit: 285bad4
14
+ license: MIT
15
+ license_verification: pending
16
+ adapted: "2026-03-14"
17
+ changes: added <critical_actions> hard-constraint block
10
18
  ---
11
19
 
12
20
  # 🔮 Merlin — Autonomous Development Orchestrator
@@ -9,6 +9,14 @@ effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 80
11
11
  memory: project
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  You are the ops and infrastructure guide focusing on Railway and Google Cloud for a small, fast moving team.
@@ -8,6 +8,14 @@ tools: Read, Write, Edit, Bash, Grep, Glob
8
8
  effort: high
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 80
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  You are the retrofit orchestrator for existing projects that were already built, usually through vibe coding.
@@ -9,6 +9,14 @@ tools: Read, Grep, Glob, WebSearch
9
9
  effort: high
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 30
12
+ provenance:
13
+ upstream: bmad-code-org/BMAD-METHOD
14
+ upstream_path: "pattern: <critical_actions> XML block"
15
+ upstream_commit: 285bad4
16
+ license: MIT
17
+ license_verification: pending
18
+ adapted: "2026-03-14"
19
+ changes: added <critical_actions> hard-constraint block
12
20
  ---
13
21
 
14
22
  You are a product specifier for a very strong product thinker and vibe coder.
@@ -8,6 +8,14 @@ version: "1.0.0"
8
8
  effort: medium
9
9
  permissionMode: bypassPermissions
10
10
  maxTurns: 100
11
+ provenance:
12
+ upstream: bmad-code-org/BMAD-METHOD
13
+ upstream_path: "pattern: <critical_actions> XML block"
14
+ upstream_commit: 285bad4
15
+ license: MIT
16
+ license_verification: pending
17
+ adapted: "2026-03-14"
18
+ changes: added <critical_actions> hard-constraint block
11
19
  ---
12
20
 
13
21
  <role>
@@ -10,6 +10,14 @@ effort: high
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 50
12
12
  memory: user
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  You are a system architect for a vibe coder who tends to create many microservices.
@@ -10,6 +10,14 @@ background: true
10
10
  permissionMode: bypassPermissions
11
11
  maxTurns: 100
12
12
  memory: project
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: <critical_actions> XML block"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: added <critical_actions> hard-constraint block
13
21
  ---
14
22
 
15
23
  You are a tests and QA designer for a busy founder and vibe coder.
@@ -13,6 +13,14 @@ allowed-tools:
13
13
  - mcp__merlin__merlin_get_context
14
14
  - mcp__merlin__merlin_get_project_status
15
15
  - mcp__merlin__merlin_search
16
+ provenance:
17
+ upstream: bmad-code-org/BMAD-METHOD
18
+ upstream_path: "pattern: BMAD course-correct command"
19
+ upstream_commit: 285bad4
20
+ license: MIT
21
+ license_verification: pending
22
+ adapted: "2026-03-14"
23
+ changes: BMAD-inspired command pattern
16
24
  ---
17
25
 
18
26
  <objective>
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: merlin:design-audit
3
+ description: Run a design audit on a file or folder using impeccable + emil-design-eng skills with the code-review agent
4
+ argument-hint: "[path] - optional file/folder to audit (defaults to current diff)"
5
+ allowed-tools:
6
+ - Read
7
+ - Glob
8
+ - Grep
9
+ - Bash
10
+ - mcp__merlin__merlin_get_context
11
+ - mcp__merlin__merlin_route
12
+ ---
13
+
14
+ <objective>
15
+ Comprehensive design audit using impeccable + emil-design-eng skills. Reviews typography, color, spacing, motion, interaction, accessibility, UX writing, and animation craft across a file or folder.
16
+
17
+ Uses `code-review` agent with both priority design skills loaded to produce a structured CODE_REVIEW.md-style report.
18
+ </objective>
19
+
20
+ <context>
21
+ Target: $ARGUMENTS (file/folder path, or current diff if empty)
22
+ </context>
23
+
24
+ <process>
25
+
26
+ ## Step 1: Ensure Skills Installed
27
+
28
+ ```bash
29
+ bash ~/.claude/scripts/install-design-skills.sh
30
+ ```
31
+
32
+ If this fails, warn user but continue.
33
+
34
+ ## Step 2: Detect Task Intent
35
+
36
+ ```bash
37
+ bash ~/.claude/scripts/task-optimize.sh --task "audit design"
38
+ ```
39
+
40
+ Store result. If score < 25, warn user: "Design audit scored low on intent detection — proceeding anyway."
41
+
42
+ ## Step 3: Read Priority Skills
43
+
44
+ ```bash
45
+ Read: ~/.claude/skills/impeccable/SKILL.md
46
+ Read: ~/.claude/skills/emil-design-eng/SKILL.md
47
+ ```
48
+
49
+ Store both skill bodies.
50
+
51
+ ## Step 4: Determine Target
52
+
53
+ If $ARGUMENTS is provided:
54
+ - If it's a file path: read it with Read tool
55
+ - If it's a folder path: use Glob to find relevant files (*.jsx, *.tsx, *.css, *.scss)
56
+
57
+ If $ARGUMENTS is empty:
58
+ - Use `git diff HEAD` to get the current working tree changes
59
+ - Show user: "Auditing current diff (run with a path to audit specific file/folder)"
60
+
61
+ ## Step 5: Route to code-review
62
+
63
+ Call `merlin_route` with:
64
+ - Agent: `code-review`
65
+ - Task: "Design audit: review the following code for design quality across 7 domains + animation craft"
66
+ - Context: prepend both skill bodies
67
+ - Include audit checklist:
68
+ - **Typography:** scales, families, weights, line-height consistency, readability
69
+ - **Color:** OKLCH or semantic naming, accessibility (contrast, colorblind), dark-mode support
70
+ - **Spacing:** grid consistency, proportions, breathing room, visual hierarchy
71
+ - **Motion:** easing functions, timing, transitions, prefers-reduced-motion
72
+ - **Interaction:** states (hover, focus, active, disabled), feedback, patterns
73
+ - **Responsive:** breakpoints, fluid scaling, container queries, mobile-first
74
+ - **UX writing:** copy clarity, tone, error messages, labels
75
+ - **Animation craft:** gestures, micro-interactions, performance (60fps), GPU compositing
76
+
77
+ ## Step 6: Present Result
78
+
79
+ After agent completes, present the CODE_REVIEW.md output with a summary of findings.
80
+
81
+ </process>
82
+
83
+ <error_handling>
84
+
85
+ | Condition | Action |
86
+ |-----------|--------|
87
+ | Skills missing | Attempt install, continue with warning |
88
+ | No path provided | Audit current git diff |
89
+ | Path invalid | Error and exit |
90
+ | code-review unavailable | Fall back to using merlin-reviewer directly |
91
+
92
+ </error_handling>
@@ -9,6 +9,14 @@ allowed-tools:
9
9
  - Grep
10
10
  - Write
11
11
  - AskUserQuestion
12
+ provenance:
13
+ upstream: gsd-build/get-shit-done
14
+ upstream_path: commands/gsd/health.md
15
+ upstream_commit: 9045c81
16
+ license: MIT
17
+ license_verification: confirmed
18
+ adapted: "2026-03-14"
19
+ changes: adapted from GSD command pattern
12
20
  ---
13
21
 
14
22
  <objective>
@@ -10,6 +10,14 @@ allowed-tools:
10
10
  - mcp__merlin__merlin_get_context
11
11
  - mcp__merlin__merlin_get_next_task
12
12
  - mcp__merlin__merlin_ensure_tasks
13
+ provenance:
14
+ upstream: bmad-code-org/BMAD-METHOD
15
+ upstream_path: "pattern: BMAD /next command"
16
+ upstream_commit: 285bad4
17
+ license: MIT
18
+ license_verification: pending
19
+ adapted: "2026-03-14"
20
+ changes: BMAD-inspired command pattern
13
21
  ---
14
22
 
15
23
  <objective>