@massa-ai/claude-plugin 1.61.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +2 -4
  3. package/agent-profiles/balanced/code-explorer.md +92 -0
  4. package/agent-profiles/balanced/code-reviewer.md +105 -0
  5. package/agent-profiles/balanced/designer.md +72 -0
  6. package/agent-profiles/balanced/judge.md +88 -0
  7. package/agent-profiles/balanced/product-manager.md +96 -0
  8. package/{agents/massa-ai-builder.md → agent-profiles/balanced/senior-engineer.md} +5 -5
  9. package/agent-profiles/balanced/test-engineer.md +65 -0
  10. package/agent-profiles/cheap/code-explorer.md +92 -0
  11. package/agent-profiles/cheap/code-reviewer.md +105 -0
  12. package/agent-profiles/cheap/designer.md +72 -0
  13. package/agent-profiles/cheap/judge.md +88 -0
  14. package/agent-profiles/cheap/product-manager.md +96 -0
  15. package/agent-profiles/cheap/{massa-ai-builder.md → senior-engineer.md} +5 -5
  16. package/agent-profiles/cheap/test-engineer.md +65 -0
  17. package/agent-profiles/heavy/code-explorer.md +92 -0
  18. package/agent-profiles/heavy/code-reviewer.md +105 -0
  19. package/agent-profiles/heavy/designer.md +72 -0
  20. package/agent-profiles/heavy/judge.md +88 -0
  21. package/agent-profiles/heavy/product-manager.md +96 -0
  22. package/agent-profiles/heavy/{massa-ai-builder.md → senior-engineer.md} +5 -5
  23. package/agent-profiles/heavy/test-engineer.md +65 -0
  24. package/agent-profiles/home/code-explorer.md +92 -0
  25. package/agent-profiles/home/code-reviewer.md +105 -0
  26. package/agent-profiles/home/designer.md +72 -0
  27. package/agent-profiles/home/judge.md +88 -0
  28. package/agent-profiles/home/product-manager.md +96 -0
  29. package/agent-profiles/{balanced/massa-ai-builder.md → home/senior-engineer.md} +5 -5
  30. package/agent-profiles/home/test-engineer.md +65 -0
  31. package/agent-profiles/work/code-explorer.md +92 -0
  32. package/agent-profiles/work/code-reviewer.md +105 -0
  33. package/agent-profiles/work/designer.md +72 -0
  34. package/agent-profiles/work/judge.md +88 -0
  35. package/agent-profiles/work/product-manager.md +96 -0
  36. package/agent-profiles/work/{massa-ai-builder.md → senior-engineer.md} +5 -5
  37. package/agent-profiles/work/test-engineer.md +65 -0
  38. package/agents/code-explorer.md +92 -0
  39. package/agents/code-reviewer.md +105 -0
  40. package/agents/designer.md +72 -0
  41. package/agents/judge.md +88 -0
  42. package/agents/product-manager.md +96 -0
  43. package/{agent-profiles/home/massa-ai-builder.md → agents/senior-engineer.md} +5 -5
  44. package/agents/test-engineer.md +65 -0
  45. package/commands/{adr.md → create-adr.md} +3 -3
  46. package/commands/{to-prd.md → create-prd.md} +3 -3
  47. package/commands/{rfc.md → create-rfc.md} +3 -3
  48. package/commands/{tdd.md → create-tdd.md} +3 -3
  49. package/commands/{ticket.md → create-ticket.md} +3 -3
  50. package/commands/{discovery.md → product-discovery.md} +3 -3
  51. package/hooks/massa-ai-hook.ts +4 -4
  52. package/install.sh +116 -38
  53. package/package.json +1 -1
  54. package/skills/agents/code-explorer/SKILL.md +93 -0
  55. package/skills/agents/code-reviewer/SKILL.md +106 -0
  56. package/skills/agents/designer/SKILL.md +35 -31
  57. package/skills/agents/judge/SKILL.md +54 -63
  58. package/skills/agents/product-manager/SKILL.md +97 -0
  59. package/skills/agents/{builder → senior-engineer}/SKILL.md +5 -6
  60. package/skills/agents/test-engineer/SKILL.md +28 -29
  61. package/skills/bootstrap/SKILL.md +4 -5
  62. package/skills/massa-ai/SKILL.md +73 -219
  63. package/skills/massa-ai/references/agent-modes/designer/audit.md +22 -0
  64. package/skills/massa-ai/references/agent-modes/designer/implement.md +29 -0
  65. package/skills/massa-ai/references/agent-modes/designer/trace.md +41 -0
  66. package/skills/massa-ai/references/agent-modes/judge/plan-critique-full.md +13 -0
  67. package/skills/massa-ai/references/agent-modes/judge/plan-critique-lite.md +13 -0
  68. package/skills/massa-ai/references/agent-modes/judge/scorer.md +31 -0
  69. package/skills/massa-ai/references/agent-modes/judge/spec-author.md +28 -0
  70. package/skills/massa-ai/references/agent-modes/test-engineer/audit.md +17 -0
  71. package/skills/massa-ai/references/agent-modes/test-engineer/fix.md +14 -0
  72. package/skills/massa-ai/references/agent-orchestration.md +63 -58
  73. package/skills/massa-ai/references/audit-report-io.md +8 -87
  74. package/skills/massa-ai/references/code-reuse-scan.md +1 -1
  75. package/skills/massa-ai/references/{adr-authoring.md → create-adr.md} +3 -3
  76. package/skills/massa-ai/references/{rfc → create-rfc}/discovery-and-sizing.md +1 -1
  77. package/skills/massa-ai/references/{tdd → create-tdd}/calibrated-examples.md +3 -3
  78. package/skills/massa-ai/references/{tdd → create-tdd}/discovery-and-sizing.md +1 -1
  79. package/skills/massa-ai/references/{tdd → create-tdd}/quality-and-lifecycle.md +1 -1
  80. package/skills/massa-ai/references/{ticket → create-ticket}/intake-and-sources.md +1 -1
  81. package/skills/massa-ai/references/figma-pre-analysis.md +1 -1
  82. package/skills/massa-ai/references/furps/analyst-role.md +3 -3
  83. package/skills/massa-ai/references/furps/checklist.md +2 -2
  84. package/skills/massa-ai/references/furps/intake.md +7 -7
  85. package/skills/massa-ai/references/hook-enforcement.md +4 -8
  86. package/skills/massa-ai/references/implementation-delivery.md +2 -2
  87. package/skills/massa-ai/references/knowledge-verification-chain.md +0 -1
  88. package/skills/massa-ai/references/mobile-context.md +2 -5
  89. package/skills/massa-ai/references/pr-task-fix.md +1 -1
  90. package/skills/massa-ai/references/spec-driven/specify.md +1 -1
  91. package/skills/massa-ai/references/spec-driven/sub-agents.md +4 -3
  92. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  93. package/skills/massa-ai/references/subagent-design.md +7 -9
  94. package/skills/massa-ai/references/verification-ladder.md +2 -2
  95. package/skills/massa-ai/scripts/validate_audit_report.ts +3 -8
  96. package/skills/massa-ai/workflows/architecture/architecture-audit.md +4 -5
  97. package/skills/massa-ai/workflows/architecture/architecture-fix.md +6 -7
  98. package/skills/massa-ai/workflows/bugs/bugs-audit.md +2 -3
  99. package/skills/massa-ai/workflows/bugs/bugs-fix.md +5 -6
  100. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +2 -3
  101. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +5 -6
  102. package/skills/massa-ai/workflows/commit.md +3 -3
  103. package/skills/massa-ai/workflows/{adr.md → create-adr.md} +10 -10
  104. package/skills/massa-ai/workflows/{to-prd.md → create-prd.md} +4 -4
  105. package/skills/massa-ai/workflows/{rfc.md → create-rfc.md} +6 -6
  106. package/skills/massa-ai/workflows/{tdd.md → create-tdd.md} +11 -11
  107. package/skills/massa-ai/workflows/{ticket.md → create-ticket.md} +5 -5
  108. package/skills/massa-ai/workflows/debug.md +5 -6
  109. package/skills/massa-ai/workflows/design.md +2 -2
  110. package/skills/massa-ai/workflows/exploration.md +2 -2
  111. package/skills/massa-ai/workflows/feature.md +6 -7
  112. package/skills/massa-ai/workflows/implementation/implementation-audit.md +22 -3
  113. package/skills/massa-ai/workflows/implementation/implementation-fix.md +7 -8
  114. package/skills/massa-ai/workflows/judge-with-debate.md +14 -14
  115. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +2 -2
  116. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +11 -12
  117. package/skills/massa-ai/workflows/pr-review.md +32 -14
  118. package/skills/massa-ai/workflows/{discovery.md → product-discovery.md} +12 -12
  119. package/skills/massa-ai/workflows/refactor.md +5 -6
  120. package/skills/massa-ai/workflows/refinement/furps-refinement.md +7 -7
  121. package/skills/massa-ai/workflows/requirements/requirements-audit.md +2 -2
  122. package/skills/massa-ai/workflows/requirements/requirements-fix.md +6 -7
  123. package/skills/massa-ai/workflows/security/security-audit.md +2 -3
  124. package/skills/massa-ai/workflows/security/security-fix.md +4 -5
  125. package/skills/massa-ai/workflows/spec-driven.md +21 -12
  126. package/skills/massa-ai/workflows/tests/tests-audit.md +2 -2
  127. package/skills/massa-ai/workflows/tests/tests-fix.md +17 -7
  128. package/skills/massa-ai/workflows/the-fool.md +7 -7
  129. package/agent-profiles/balanced/massa-ai-architecture-specialist.md +0 -63
  130. package/agent-profiles/balanced/massa-ai-audit-specialist.md +0 -80
  131. package/agent-profiles/balanced/massa-ai-context-curator.md +0 -65
  132. package/agent-profiles/balanced/massa-ai-designer.md +0 -67
  133. package/agent-profiles/balanced/massa-ai-documentation-agent.md +0 -62
  134. package/agent-profiles/balanced/massa-ai-furps-analyst.md +0 -69
  135. package/agent-profiles/balanced/massa-ai-investigator.md +0 -66
  136. package/agent-profiles/balanced/massa-ai-judge.md +0 -96
  137. package/agent-profiles/balanced/massa-ai-meta-judge.md +0 -85
  138. package/agent-profiles/balanced/massa-ai-mobile-specialist.md +0 -80
  139. package/agent-profiles/balanced/massa-ai-navigator.md +0 -73
  140. package/agent-profiles/balanced/massa-ai-plan-critic.md +0 -88
  141. package/agent-profiles/balanced/massa-ai-planner.md +0 -63
  142. package/agent-profiles/balanced/massa-ai-requirements-analyst.md +0 -62
  143. package/agent-profiles/balanced/massa-ai-reviewer.md +0 -64
  144. package/agent-profiles/balanced/massa-ai-test-engineer.md +0 -64
  145. package/agent-profiles/balanced/massa-ai-verification-agent.md +0 -63
  146. package/agent-profiles/cheap/massa-ai-architecture-specialist.md +0 -63
  147. package/agent-profiles/cheap/massa-ai-audit-specialist.md +0 -80
  148. package/agent-profiles/cheap/massa-ai-context-curator.md +0 -65
  149. package/agent-profiles/cheap/massa-ai-designer.md +0 -67
  150. package/agent-profiles/cheap/massa-ai-documentation-agent.md +0 -62
  151. package/agent-profiles/cheap/massa-ai-furps-analyst.md +0 -69
  152. package/agent-profiles/cheap/massa-ai-investigator.md +0 -66
  153. package/agent-profiles/cheap/massa-ai-judge.md +0 -96
  154. package/agent-profiles/cheap/massa-ai-meta-judge.md +0 -85
  155. package/agent-profiles/cheap/massa-ai-mobile-specialist.md +0 -80
  156. package/agent-profiles/cheap/massa-ai-navigator.md +0 -73
  157. package/agent-profiles/cheap/massa-ai-plan-critic.md +0 -88
  158. package/agent-profiles/cheap/massa-ai-planner.md +0 -63
  159. package/agent-profiles/cheap/massa-ai-requirements-analyst.md +0 -62
  160. package/agent-profiles/cheap/massa-ai-reviewer.md +0 -64
  161. package/agent-profiles/cheap/massa-ai-test-engineer.md +0 -64
  162. package/agent-profiles/cheap/massa-ai-verification-agent.md +0 -63
  163. package/agent-profiles/heavy/massa-ai-architecture-specialist.md +0 -63
  164. package/agent-profiles/heavy/massa-ai-audit-specialist.md +0 -80
  165. package/agent-profiles/heavy/massa-ai-context-curator.md +0 -65
  166. package/agent-profiles/heavy/massa-ai-designer.md +0 -67
  167. package/agent-profiles/heavy/massa-ai-documentation-agent.md +0 -62
  168. package/agent-profiles/heavy/massa-ai-furps-analyst.md +0 -69
  169. package/agent-profiles/heavy/massa-ai-investigator.md +0 -66
  170. package/agent-profiles/heavy/massa-ai-judge.md +0 -96
  171. package/agent-profiles/heavy/massa-ai-meta-judge.md +0 -85
  172. package/agent-profiles/heavy/massa-ai-mobile-specialist.md +0 -80
  173. package/agent-profiles/heavy/massa-ai-navigator.md +0 -73
  174. package/agent-profiles/heavy/massa-ai-plan-critic.md +0 -88
  175. package/agent-profiles/heavy/massa-ai-planner.md +0 -63
  176. package/agent-profiles/heavy/massa-ai-requirements-analyst.md +0 -62
  177. package/agent-profiles/heavy/massa-ai-reviewer.md +0 -64
  178. package/agent-profiles/heavy/massa-ai-test-engineer.md +0 -64
  179. package/agent-profiles/heavy/massa-ai-verification-agent.md +0 -63
  180. package/agent-profiles/home/massa-ai-architecture-specialist.md +0 -63
  181. package/agent-profiles/home/massa-ai-audit-specialist.md +0 -80
  182. package/agent-profiles/home/massa-ai-context-curator.md +0 -65
  183. package/agent-profiles/home/massa-ai-designer.md +0 -67
  184. package/agent-profiles/home/massa-ai-documentation-agent.md +0 -62
  185. package/agent-profiles/home/massa-ai-furps-analyst.md +0 -69
  186. package/agent-profiles/home/massa-ai-investigator.md +0 -66
  187. package/agent-profiles/home/massa-ai-judge.md +0 -96
  188. package/agent-profiles/home/massa-ai-meta-judge.md +0 -85
  189. package/agent-profiles/home/massa-ai-mobile-specialist.md +0 -80
  190. package/agent-profiles/home/massa-ai-navigator.md +0 -73
  191. package/agent-profiles/home/massa-ai-plan-critic.md +0 -88
  192. package/agent-profiles/home/massa-ai-planner.md +0 -63
  193. package/agent-profiles/home/massa-ai-requirements-analyst.md +0 -62
  194. package/agent-profiles/home/massa-ai-reviewer.md +0 -64
  195. package/agent-profiles/home/massa-ai-test-engineer.md +0 -64
  196. package/agent-profiles/home/massa-ai-verification-agent.md +0 -63
  197. package/agent-profiles/work/massa-ai-architecture-specialist.md +0 -63
  198. package/agent-profiles/work/massa-ai-audit-specialist.md +0 -80
  199. package/agent-profiles/work/massa-ai-context-curator.md +0 -65
  200. package/agent-profiles/work/massa-ai-designer.md +0 -67
  201. package/agent-profiles/work/massa-ai-documentation-agent.md +0 -62
  202. package/agent-profiles/work/massa-ai-furps-analyst.md +0 -69
  203. package/agent-profiles/work/massa-ai-investigator.md +0 -66
  204. package/agent-profiles/work/massa-ai-judge.md +0 -96
  205. package/agent-profiles/work/massa-ai-meta-judge.md +0 -85
  206. package/agent-profiles/work/massa-ai-mobile-specialist.md +0 -80
  207. package/agent-profiles/work/massa-ai-navigator.md +0 -73
  208. package/agent-profiles/work/massa-ai-plan-critic.md +0 -88
  209. package/agent-profiles/work/massa-ai-planner.md +0 -63
  210. package/agent-profiles/work/massa-ai-requirements-analyst.md +0 -62
  211. package/agent-profiles/work/massa-ai-reviewer.md +0 -64
  212. package/agent-profiles/work/massa-ai-test-engineer.md +0 -64
  213. package/agent-profiles/work/massa-ai-verification-agent.md +0 -63
  214. package/agents/massa-ai-architecture-specialist.md +0 -63
  215. package/agents/massa-ai-audit-specialist.md +0 -80
  216. package/agents/massa-ai-context-curator.md +0 -65
  217. package/agents/massa-ai-designer.md +0 -67
  218. package/agents/massa-ai-documentation-agent.md +0 -62
  219. package/agents/massa-ai-furps-analyst.md +0 -69
  220. package/agents/massa-ai-investigator.md +0 -66
  221. package/agents/massa-ai-judge.md +0 -96
  222. package/agents/massa-ai-meta-judge.md +0 -85
  223. package/agents/massa-ai-mobile-specialist.md +0 -80
  224. package/agents/massa-ai-navigator.md +0 -73
  225. package/agents/massa-ai-plan-critic.md +0 -88
  226. package/agents/massa-ai-planner.md +0 -63
  227. package/agents/massa-ai-requirements-analyst.md +0 -62
  228. package/agents/massa-ai-reviewer.md +0 -64
  229. package/agents/massa-ai-test-engineer.md +0 -64
  230. package/agents/massa-ai-verification-agent.md +0 -63
  231. package/commands/general.md +0 -14
  232. package/commands/maestro-audit.md +0 -14
  233. package/commands/maestro-fix.md +0 -14
  234. package/commands/maestro.md +0 -14
  235. package/skills/agents/architecture-specialist/SKILL.md +0 -66
  236. package/skills/agents/audit-specialist/SKILL.md +0 -83
  237. package/skills/agents/context-curator/SKILL.md +0 -68
  238. package/skills/agents/documentation-agent/SKILL.md +0 -66
  239. package/skills/agents/furps-analyst/SKILL.md +0 -71
  240. package/skills/agents/investigator/SKILL.md +0 -69
  241. package/skills/agents/meta-judge/SKILL.md +0 -87
  242. package/skills/agents/mobile-specialist/SKILL.md +0 -83
  243. package/skills/agents/navigator/SKILL.md +0 -76
  244. package/skills/agents/plan-critic/SKILL.md +0 -90
  245. package/skills/agents/planner/SKILL.md +0 -66
  246. package/skills/agents/requirements-analyst/SKILL.md +0 -65
  247. package/skills/agents/reviewer/SKILL.md +0 -67
  248. package/skills/agents/verification-agent/SKILL.md +0 -66
  249. package/skills/massa-ai/personas/README.md +0 -35
  250. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +0 -47
  251. package/skills/massa-ai/personas/catalog.json +0 -7
  252. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +0 -47
  253. package/skills/massa-ai/personas/product-manager.md +0 -65
  254. package/skills/massa-ai/personas/senior-mobile-engineer.md +0 -46
  255. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +0 -51
  256. package/skills/massa-ai/personas/signals/ai-native-nodejs-cli-architect.json +0 -20
  257. package/skills/massa-ai/personas/signals/context-skill-harness-engineer-architect.json +0 -20
  258. package/skills/massa-ai/personas/signals/product-manager.json +0 -21
  259. package/skills/massa-ai/personas/signals/senior-mobile-engineer.json +0 -18
  260. package/skills/massa-ai/personas/signals/senior-mobile-qa-automation-engineer.json +0 -18
  261. package/skills/massa-ai/references/maestro/artifacts-reports.md +0 -69
  262. package/skills/massa-ai/references/maestro/cli-device.md +0 -65
  263. package/skills/massa-ai/references/maestro/cloud.md +0 -69
  264. package/skills/massa-ai/references/maestro/config-env-output.md +0 -76
  265. package/skills/massa-ai/references/maestro/fact-ledger.md +0 -73
  266. package/skills/massa-ai/references/maestro/js-scripting.md +0 -70
  267. package/skills/massa-ai/references/maestro/mcp.md +0 -59
  268. package/skills/massa-ai/references/maestro/patterns.md +0 -102
  269. package/skills/massa-ai/references/maestro/selectors.md +0 -91
  270. package/skills/massa-ai/references/maestro/workspace-execution.md +0 -81
  271. package/skills/massa-ai/references/maestro/yaml-commands.md +0 -203
  272. package/skills/massa-ai/references/maestro.md +0 -31
  273. package/skills/massa-ai/workflows/general.md +0 -88
  274. package/skills/massa-ai/workflows/maestro/maestro-audit.md +0 -64
  275. package/skills/massa-ai/workflows/maestro/maestro-fix.md +0 -111
  276. package/skills/massa-ai/workflows/maestro/maestro.md +0 -80
  277. package/skills/persona-router/SKILL.md +0 -52
  278. package/skills/persona-router/references/routing-details.md +0 -98
  279. package/skills/profile/SKILL.md +0 -39
  280. /package/skills/massa-ai/references/{rfc → create-rfc}/ATTRIBUTION.md +0 -0
  281. /package/skills/massa-ai/references/{rfc → create-rfc}/document-contract.md +0 -0
  282. /package/skills/massa-ai/references/{rfc → create-rfc}/quality-and-lifecycle.md +0 -0
  283. /package/skills/massa-ai/references/{tdd → create-tdd}/document-contract.md +0 -0
  284. /package/skills/massa-ai/references/{ticket → create-ticket}/atlassian-fix.md +0 -0
  285. /package/skills/massa-ai/references/{ticket → create-ticket}/templates-and-quality.md +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: massa-ai
3
- description: Default memory-backed workflow router for every coding, planning-before-coding, debugging, code review, refactoring, or implementation conversation. Always load it once per new coding session, select specialized workflows first, and use the general fallback otherwise. Handles massa-ai recall/search, durable memory, context compaction, handoff, audits, specs, ADR/RFC/TDD, and evidence gates. Do NOT use for generic non-coding chat or bulk-loading every workflow/reference.
3
+ description: Default memory-backed workflow router for every coding, planning-before-coding, debugging, code review, refactoring, or implementation conversation. Always load it once per new coding session, select specialized workflows first, and work under the Core Contract without a workflow file otherwise. Handles massa-ai recall/search, durable memory, context compaction, handoff, audits, specs, ADR/RFC/TDD, and evidence gates. Do NOT use for generic non-coding chat or bulk-loading every workflow/reference.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Luiz Massa
@@ -20,106 +20,61 @@ section of `<host>/AGENTS.md`, for example `~/.claude/AGENTS.md`). Its single
20
20
  source is `skills/AGENTS.md` in the product repo; `scripts/install-skills.sh`
21
21
  copies that block out. Edit the policies there, never in a host copy.
22
22
 
23
- ## Dedupe Guard
24
-
25
- Before reading any massa-ai file:
26
-
27
- - In a new coding conversation, load this router once before using dedupe.
28
- - After that initial load, reuse already-loaded `massa-ai`, workflow,
29
- reference, or The Fool context.
30
- - Do not re-read a file only because another instruction names it.
31
- - Load only the missing minimum context needed to act.
32
- - Never load all workflows or references "just in case."
33
-
34
23
  ## Core Contract
35
24
 
36
25
  - Every coding/planning task uses one stable `projectId` and
37
26
  `workflowSessionId`.
38
- - Start with `recall` for relevant prior decisions/patterns.
39
- - Default startup/context recall is budgeted: use `limit <= 3`,
40
- `minImportance >= 0.7`, and `types=["critical","decision","pattern"]`
41
- unless the selected workflow explicitly needs a broader memory query.
42
- - Never use `recall` as an artifact loader. Exact project, handoff,
43
- feature, and validation state must come from .specs/ files.
44
- - For multi-search tasks, use a separate ephemeral `synapseSessionId` according
45
- to `references/synapse-policy.md`; pass it only to `search.sessionId`.
46
- Never pass `workflowSessionId` in that field. Use `synapse_task_begin`/`synapse_task_end`
47
- for task envelopes and `synapse_prefetch` to warm the buffer on file open.
48
- - Prefer the shared v2 retrieval order; fall back gracefully if the massa-ai
49
- server or Synapse is unavailable. The full tool surface includes 59 tools
50
- (see `references/mcp-tools.md`): indexing, search, symbol graph
51
- (`trace_path`, `impact_analysis`, `get_architecture`), memory CRUD
52
- (`remember`, `recall`, `memory_update`, `memory_delete`), checkpoints
53
- (`create_checkpoint`/`list_checkpoints`/`restore_checkpoint`), handoffs
54
- (`handoff_begin`/`accept`/`cancel`/`list_pending`), `bootstrap`,
55
- `compact_snapshot`, code execution (`execute`/`execute_file`/`batch_execute`),
56
- `fetch_and_index`, full Synapse lifecycle, `read_file`, `symbol_snippet`,
57
- and `analytics`. Graph tools (`trace_path`, `impact_analysis`,
58
- `get_architecture`) only count as evidence when the index is fresh for the
59
- current repository path and commit/worktree state.
60
- - Persist only durable, useful knowledge. Do not fabricate memories to satisfy
61
- process. Use `memory_update` to correct stale memories and `memory_delete`
62
- to remove obsolete ones.
63
- - Expand every word abbreviation on first use in user-facing output — e.g.
64
- "PR (Pull Request)", "AC (Acceptance Criteria)", "KMP (Kotlin Multiplatform)"
65
- — including workflow-specific shorthands and finding-ID families.
66
- - Use one uniform vocabulary for separating batches of work in every workflow:
67
- a **Task** is the atomic unit; a **Phase** is an ordered group of Tasks.
68
- Report a phase's size as `1 Phase = X Tasks` and a plan's total as
69
- `Y Phases = Z Tasks`. Do not substitute synonyms such as batch, wave, stage,
70
- or chunk for these units in agent prose.
71
- - Emit concise user-facing status updates at meaningful workflow boundaries
72
- when the Conversation Feedback Policy is active.
73
- - Verify, don't assume: every factual claim that drives a decision is
74
- verified against current codebase/command evidence or confirmed with the
75
- user. Documentation of any kind — README, docs/, inline comments, external
76
- summaries, even `.specs/` prose — is a lead to verify against current
77
- source, never a trustable source of truth by itself. Unverifiable claims
78
- become explicit assumptions the user confirms or accepts.
79
- - Ask when in doubt: when genuine doubt remains after looking it up —
80
- requirement meaning, scope boundaries, destructive/irreversible choices,
81
- contradictory evidence — ask the user rather than choose silently. Facts
82
- are looked up; decisions are asked.
83
- - Before writing or changing implementation code, load
84
- `references/coding-guidelines.md` if not already loaded.
85
- - Complete Evidence Gate before claiming done.
27
+ - Sub-agents are dispatched by bare charter name (`senior-engineer`,
28
+ `code-reviewer`, ...). On the Claude plugin route, dispatch the
29
+ plugin-namespaced `massa-ai:<name>` so a same-named agent cannot
30
+ intercept the dispatch.
31
+ - Lazy charters (`designer`, `judge`, `test-engineer`) read
32
+ `references/agent-modes/<agent>/<mode>.md` before dispatch and inline it as
33
+ `mode_contract` (`judge` `plan-critique`: lite/full by `depth`); missing it
34
+ on a lazy mode returns `Blocked`.
35
+ - Start with `recall` (prior decisions/patterns), budgeted: `limit <= 3`,
36
+ `minImportance >= 0.7`, `types=["critical","decision","pattern"]`, unless
37
+ the workflow needs a broader query. Never use it as an artifact loader --
38
+ exact project/handoff/feature/validation state comes from `.specs/` files.
39
+ - Multi-search tasks use an ephemeral `synapseSessionId` per
40
+ `references/synapse-policy.md` (only `search.sessionId`, never
41
+ `workflowSessionId`) per `synapse_task_begin`/`synapse_task_end`.
42
+ - The full 59-tool surface is contracted in `references/mcp-tools.md`. Graph tools (`trace_path`, `impact_analysis`, `get_architecture`) count as evidence only when fresh for the current repository path and commit/worktree state.
43
+ - Persist only durable, useful knowledge; do not fabricate memories. Use
44
+ `memory_update`/`memory_delete` to correct/remove.
45
+ - Expand abbreviations on first use; one vocabulary for batches: **Task**,
46
+ **Phase** (`1 Phase = X Tasks`, never batch/wave/stage/chunk). Emit concise
47
+ status updates at workflow boundaries when Conversation Feedback is active.
48
+ - Verify, don't assume: claims driving a decision are verified against
49
+ current codebase/command evidence or the user; docs are leads, not truth.
50
+ Genuine doubt goes to the user, not a silent choice.
51
+ - Before implementation edits, load `references/coding-guidelines.md` if
52
+ not already loaded. Complete Evidence Gate before claiming done.
86
53
 
87
54
  Use internal references only when needed:
88
55
 
89
56
  | Need | Reference |
90
57
  |---|---|
91
- | MCP/REST schemas, response modes, polling | `references/mcp-tools.md` |
92
- | Multi-search Synapse lifecycle and fallback | `references/synapse-policy.md` |
58
+ | MCP/REST schemas, polling | `references/mcp-tools.md` |
59
+ | Synapse lifecycle/fallback | `references/synapse-policy.md` |
93
60
  | Install/config/deployment | `references/installation.md` |
94
- | Importance scoring, tradeoffs, debugging | `references/decision-engine.md` |
95
- | Memory tiers/conflict handling | `references/memory-policy.md` |
96
- | Shared lesson loading/capture lifecycle | `references/lessons.md` |
97
- | Meaningful code and contract identifier names | `references/naming-standards.md` |
98
- | Chat-visible workflow status updates | `references/conversation-feedback.md` |
61
+ | Importance scoring | `references/decision-engine.md` |
62
+ | Memory tiers/conflicts | `references/memory-policy.md` |
63
+ | Lesson loading/capture | `references/lessons.md` |
64
+ | Naming standards | `references/naming-standards.md` |
65
+ | Status updates | `references/conversation-feedback.md` |
99
66
  | Completion evidence | `references/evidence-gate.md` |
100
67
 
101
68
  ## Session And Project
102
69
 
103
- If no `workflowSessionId` is explicit:
104
-
105
- 1. Classify the workflow.
106
- 2. Infer the main entity.
107
- 3. Generate a stable id: `<workflow>-<entity>`.
108
- 4. Reuse it for the whole conversation.
109
-
110
- Examples:
111
-
112
- - `debug-login-crash`
113
- - `feature-user-onboarding`
114
- - `refactor-auth-module`
115
- - `spec-billing-workflow`
116
- - `adr-postgres-migration`
70
+ If no `workflowSessionId` is explicit: classify the workflow, infer the main
71
+ entity, generate a stable id `<workflow>-<entity>` (e.g.
72
+ `debug-login-crash`), and reuse it for the whole conversation.
117
73
 
118
74
  Resolve `projectId`:
119
75
 
120
- 1. Call `recall` with query `"projectId for this workspace"`,
121
- `limit <= 3`, `minImportance >= 0.7`, and
122
- `types=["critical","decision","pattern"]`.
76
+ 1. Call `recall` with query `"projectId for this workspace"` (default budget
77
+ above).
123
78
  2. If found, reuse exactly.
124
79
  3. If absent, derive from workspace root.
125
80
  4. If ambiguous, ask the user.
@@ -143,9 +98,6 @@ current context already contains it.
143
98
  | `security-fix` | fix security audit report findings | `workflows/security/security-fix.md` |
144
99
  | `requirements-audit` | requirements/spec/acceptance/scope alignment findings | `workflows/requirements/requirements-audit.md` |
145
100
  | `requirements-fix` | fix requirements audit report findings | `workflows/requirements/requirements-fix.md` |
146
- | `maestro` | implement new Maestro mobile E2E flows | `workflows/maestro/maestro.md` |
147
- | `maestro-audit` | run and audit existing Maestro mobile E2E flows | `workflows/maestro/maestro-audit.md` |
148
- | `maestro-fix` | child-only fix for saved Maestro audit findings | `workflows/maestro/maestro-fix.md` |
149
101
  | `tests-audit` | test coverage/regression/assertion/flakiness findings | `workflows/tests/tests-audit.md` |
150
102
  | `tests-fix` | fix tests audit report findings | `workflows/tests/tests-fix.md` |
151
103
  | `bugs-audit` | findings-only bug discovery | `workflows/bugs/bugs-audit.md` |
@@ -159,34 +111,33 @@ current context already contains it.
159
111
  | `mobile-figma-audit` | compare an Android, iOS, or KMP UI implementation with a Figma design | `workflows/mobile-figma/mobile-figma-audit.md` |
160
112
  | `mobile-figma-fix` | fix saved mobile Figma findings | `workflows/mobile-figma/mobile-figma-fix.md` |
161
113
  | `refactor` | behavior-preserving structural cleanup | `workflows/refactor.md` |
162
- | `adr` | record a finalized decision | `workflows/adr.md` |
163
- | `rfc` | propose a significant change | `workflows/rfc.md` |
164
- | `tdd` | technical design / implementation plan | `workflows/tdd.md` |
165
- | `ticket` | draft and create Jira Epics, issues, and sub-tasks through Atlassian MCP | `workflows/ticket.md` |
114
+ | `create-adr` | record a finalized decision | `workflows/create-adr.md` |
115
+ | `create-rfc` | propose a significant change | `workflows/create-rfc.md` |
116
+ | `create-tdd` | technical design / implementation plan | `workflows/create-tdd.md` |
117
+ | `create-ticket` | draft and create Jira Epics, issues, and sub-tasks through Atlassian MCP | `workflows/create-ticket.md` |
166
118
  | `commit` | draft or create safe Conventional Commits with Jira branch prefixes and audit report exclusions | `workflows/commit.md` |
167
119
  | `the-fool` | direct challenge, red-team, pre-mortem, evidence audit | `workflows/the-fool.md` |
168
120
  | `judge-with-debate` | standalone multi-judge debate evaluation of user-supplied artifacts | `workflows/judge-with-debate.md` |
169
121
  | `pr-review` | review a hosted GitHub PR / GitLab MR and post findings via `gh`/`glab` | `workflows/pr-review.md` |
170
- | `discovery` | product brainstorming / problem-space thinking partner | `workflows/discovery.md` |
171
- | `to-prd` | turn the current conversation into a PRD without a new interview | `workflows/to-prd.md` |
122
+ | `product-discovery` | product brainstorming / problem-space thinking partner | `workflows/product-discovery.md` |
123
+ | `create-prd` | turn the current conversation into a PRD without a new interview | `workflows/create-prd.md` |
172
124
  | `skill-architect` | design and build a new skill through structured conversation | `workflows/skill-architect.md` |
173
125
  | `furps-refinement` | FURPS+ refinement of a PRD and/or ADR before implementation, with The Fool pre-validation and DoR coverage | `workflows/refinement/furps-refinement.md` |
174
- | `general` | coding work with no more specific workflow | `workflows/general.md` |
175
126
 
176
127
  Explicitly requested workflows win. Otherwise choose the most specific matching
177
128
  workflow. Use `exploration` only for explicitly read-only understanding or flow
178
- mapping; route to `general` when no route's precedence key above matches. Ask
129
+ mapping; when no route's precedence key above matches, load no workflow file. Ask
179
130
  the user only when two or more routes match the same precedence tier; a single
180
131
  match or no match is resolved deterministically without asking.
181
132
 
182
133
  Deterministic routing precedence, first match wins:
183
134
 
184
135
  1. **Explicit route:** user names a massa-ai workflow, report family, saved finding type, or asks for a direct challenge.
185
- 2. **Requested artifact:** ADR, RFC, TDD, Jira ticket, commit, session guide, audit report, implementation audit report, mobile Figma report, FURPS refinement report, PRD synthesized from the current conversation -> `to-prd` (explicit request only; refining an existing PRD stays `furps-refinement`), or new SKILL.md / skill design -> `skill-architect`.
186
- 3. **Target type:** broken behavior/error -> `debug`; hosted PR/MR reference (number or URL) to review with posted findings -> `pr-review` (local working diff stays with audit routes); saved audit finding -> matching `*-fix`; implementation scope review -> `implementation-audit`; Maestro E2E/device automation target -> `maestro`, `maestro-audit`, or child-only `maestro-fix` before generic tests workflows; security/privacy/auth finding -> security workflow; tests/flakes/coverage finding -> tests workflow; supplied Figma/screenshot mobile UI design -> `design`; mobile Figma compare/audit -> `mobile-figma-audit`; saved `MFM-*` findings -> `mobile-figma-fix`.
187
- 4. **Primary verb:** create/add/implement -> `feature` unless the concrete target is new Maestro flow work, which routes to `maestro`; restructure without behavior change -> `refactor`; inspect/understand only -> `exploration`; brainstorm/explore a product problem, idea, or direction with no concrete code target -> `discovery`; record selected decision -> `adr`; compare open options -> `rfc`; design settled implementation -> `tdd`; refine/quality-check an existing PRD or ADR document (not implementation auditing) -> `furps-refinement`.
136
+ 2. **Requested artifact:** ADR, RFC, TDD, Jira ticket, commit, session guide, audit report, implementation audit report, mobile Figma report, FURPS refinement report, PRD synthesized from the current conversation -> `create-prd` (explicit request only; refining an existing PRD stays `furps-refinement`), or new SKILL.md / skill design -> `skill-architect`.
137
+ 3. **Target type:** broken behavior/error -> `debug`; hosted PR/MR reference (number or URL) to review with posted findings -> `pr-review` (local working diff stays with audit routes); saved audit finding -> matching `*-fix`; implementation scope review -> `implementation-audit`; security/privacy/auth finding -> security workflow; tests/flakes/coverage finding -> tests workflow; supplied Figma/screenshot mobile UI design -> `design`; mobile Figma compare/audit -> `mobile-figma-audit`; saved `MFM-*` findings -> `mobile-figma-fix`.
138
+ 4. **Primary verb:** create/add/implement -> `feature`; restructure without behavior change -> `refactor`; inspect/understand only -> `exploration`; brainstorm/explore a product problem, idea, or direction with no concrete code target -> `product-discovery`; record selected decision -> `create-adr`; compare open options -> `create-rfc`; design settled implementation -> `create-tdd`; refine/quality-check an existing PRD or ADR document (not implementation auditing) -> `furps-refinement`.
188
139
  5. **Risk domain escalation:** migrations, irreversible operations, auth/privacy, cross-service contracts, public compatibility, or work over 10 files routes to `spec-driven` unless the user explicitly requests a narrower workflow and accepts the containment.
189
- 6. **General fallback:** use `general` only after a one-line General fallback preflight names the specialized workflow considered, rejected reason, and why fallback does not change verification or mutation behavior.
140
+ 6. **No match:** proceed without loading a workflow file. The main agent works under the Core Contract above (recall, verify, Evidence Gate) and states in one line which specialized workflow it considered and why none applies.
190
141
 
191
142
  Mobile is a context modifier, not a workflow. Route by primary intent first.
192
143
  Load `references/mobile-context.md` for non-debug mobile work, or
@@ -195,137 +146,40 @@ selected workflow asks for it.
195
146
 
196
147
  ## Plan Challenge Gate
197
148
 
198
- Read and apply the canonical Plan Challenge Policy from the installed
199
- `AGENTS.md` bootstrap block (single source: `skills/AGENTS.md`). Prompt-level
200
- user instructions override that policy for the current turn.
201
-
202
- For a low-risk plan that receives the lite gate, attempt a read-only
203
- `massa-ai-plan-critic` subagent with a bounded checklist packet instead of
204
- running the checklist in the main agent. The packet includes the proposed plan, scope,
205
- constraints, compact recalled facts/evidence, known risks, verification recipe,
206
- parent identifiers, and this output requirement:
207
-
208
- - What assumption would most likely make this fail?
209
- - What deterministic check would falsify success?
210
- - Does it touch a high-risk domain or more than 5 files/classes/modules?
211
- - `escalate_to_full: true|false` plus reason.
212
-
213
- Lite preserves progressive disclosure: do not load The Fool mode references
214
- unless the lite critique escalates to full.
149
+ Apply the installed Plan Challenge Policy from `skills/AGENTS.md` (canonical
150
+ source); prompt-level instructions override it for the current turn.
215
151
 
216
- Low-risk `feature` and `refactor` plans receive the lite gate first. Full The
217
- Fool stays for `spec-driven`, `design`, `adr`, `rfc`, `tdd`, explicit challenge
218
- requests, high-risk domains, or plans touching more than 5 files/classes/modules.
219
- When the policy selects the full gate, or lite escalates, load
220
- `workflows/the-fool.md`, select the mode in the main agent, load only the
221
- selected The Fool references, and attempt a read-only `massa-ai-plan-critic`
222
- subagent with selected mode context and a bounded critique packet. Subagents inherit
223
- `projectId`, parent `workflowSessionId`, workflow name, entity, and compact
224
- evidence; they do not receive full conversation context.
225
-
226
- If the policy file is unavailable, use the conservative fallback: run the full
227
- gate for high-risk domains, broad multi-module plans, explicit challenge
228
- requests, and planning workflows that commit to a feature, refactor, ADR, RFC,
229
- or TDD. If the `massa-ai-plan-critic` agent is unavailable for any reason —
230
- spawning forbidden, plugin not installed, unknown `subagent_type` — run a strict
231
- standalone fresh-eyes local critique against the same output contract and report
232
- the skipped delegation reason. Do not retry under a different agent name. Reuse
233
- The Fool context when it is already loaded.
152
+ - **Lite** (default, low-risk `feature`/`refactor`): dispatch `judge` in `plan-critique` mode
153
+ (`references/agent-modes/judge/plan-critique-lite.md`) with a bounded checklist packet (failing
154
+ assumption, falsifying check, risk/size check, `escalate_to_full:
155
+ true|false` + reason); skip The Fool references unless it escalates.
156
+ - **Full** (`spec-driven`, `design`, `create-adr`/`rfc`/`tdd`, explicit
157
+ challenge, high-risk domain, >5 files/modules, or lite escalation): load
158
+ `workflows/the-fool.md`, select the mode, dispatch `judge` in `plan-critique`
159
+ mode (`references/agent-modes/judge/plan-critique-full.md`) with `fool_mode` in the packet.
160
+ - If `judge` is unavailable, run a local fresh-eyes critique and report the
161
+ skipped reason; never retry under a different agent name.
234
162
 
235
163
  ## Retrieval And Synapse
236
164
 
237
- Use this default retrieval sequence when it matches the task:
238
-
239
- 1. `list_projects` or equivalent freshness evidence before relying on indexed project state.
240
- 2. `project_map` for general architecture orientation (PageRank backbone, symbol counts) when the index is fresh for the current repository path and worktree state.
241
- 3. `get_architecture` for architecture-specific deep maps (packages, routes, hotspots, communities, cycles) when the index is fresh.
242
- 4. `search(responseMode="summary", maxResults=10)` for broad discovery.
243
- 5. `search(responseMode="enriched", maxResults=3)` for targeted deep reads; use `maxResults=5` only when the user named 4-5 concrete files, symbols, or findings.
244
- 6. Symbol navigation (`search_definitions`, `get_references`, `go_to_definition`) and `read_file` for exact definitions, usages, and line ranges.
245
- 7. `symbol_snippet` for raw code snippets by file + line range.
246
- 8. `trace_path` for typed-edge BFS call/data-flow path tracing (fresh index only).
247
- 9. `impact_analysis` for git-diff centrality-ranked impact (fresh index only).
248
- 10. `optimized_context` for compact synthesized context when available.
249
- 11. Focused shell/file fallback when the massa-ai server is unavailable, stale, incomplete, or misses obvious local truth.
250
-
251
- `project_map`, `get_architecture`, `search`, and `optimized_context` are leads
252
- until their results are confirmed against current source files read in this session or returned with current freshness evidence. Current repository source
253
- and approved `.specs/` artifacts remain authoritative. Graph tools (`trace_path`,
254
- `impact_analysis`, `get_architecture`) only count as evidence when the index is
255
- fresh for the current repository path and commit/worktree state; fall back to
256
- `search`/`get_references` and record reduced retrieval confidence when stale.
257
-
258
- Load `references/synapse-policy.md` when the planned investigation includes
259
- two or more related `search` calls. MCP is primary; authenticated REST may
260
- fill missing or broken Synapse lifecycle operations once after a documented MCP
261
- schema or adapter failure. Keep REST-only fields out of MCP calls.
165
+ Follow the shared order in `references/codebase-investigation.md` (schemas in
166
+ `references/mcp-tools.md`). Index output is a lead until confirmed against
167
+ current source; source and approved `.specs/` artifacts stay authoritative.
168
+ Load `references/synapse-policy.md` before 2+ related `search` calls.
262
169
 
263
170
  ## Persistence
264
171
 
265
- Before writing memory, load `references/decision-engine.md` if scoring details
266
- are not already in context. Use supported massa-ai types only: `critical`,
267
- `conversation`, `code`, `decision`, `pattern`.
268
-
269
- Required memory tags:
270
-
271
- - `project:<projectId>`
272
- - `session:<workflowSessionId>`
273
- - `workflow:<type>`
274
- - `entity:<name>`
275
- - one of `memory:working`, `memory:episodic`, `memory:semantic`,
276
- `memory:procedural`
277
-
278
- ## Shared References
279
-
280
- Load only when a selected workflow asks for them:
281
-
282
- - `references/agent-orchestration.md`
283
- - `references/subagent-design.md`
284
- - `references/code-reuse-scan.md`
285
- - `references/adr-authoring.md`
286
- - `references/audit-scope.md`
287
- - `references/audit-report-io.md`
288
- - `references/hook-enforcement.md`
289
- - `references/codebase-investigation.md`
290
- - `references/debug-diagnosis-loop.md`
291
- - `references/mobile-context.md`
292
- - `references/mobile-diagnosis.md`
293
- - `references/figma-pre-analysis.md`
294
- - `references/figma-wiring.md`
295
- - `references/design-implementation.md`
296
- - `references/mobile-figma-matcher/`
297
- - `references/lessons.md`
298
- - `references/naming-standards.md`
299
- - `references/pr-task-fix.md`
300
- - `references/code-quality-lens.md`
301
- - `references/architecture-lenses.md`
302
- - `references/architecture-domain-lens.md`
303
- - `references/architecture-coupling-lens.md`
304
- - `references/architecture-deepening-lens.md`
305
- - `references/the-fool/`
306
- - `references/verification-ladder.md`
307
- - `references/context-firewall.md`
308
- - `references/project-context.md`
309
- - `references/implementation-delivery.md`
310
- - `references/code-annotation.md`
311
- - `references/repo-rules-discovery.md`
312
- - `references/root-cause-scripts.md`
313
- - `references/conversation-feedback.md`
314
- - `references/maestro.md`
315
- - `references/maestro/`
316
- - `references/synapse-policy.md`
317
- - `references/tdd/`
318
- - `references/rfc/`
319
- - `references/ticket/`
320
- - `references/spec-driven/`
321
- - `references/furps/`
172
+ Required tags and memory types are in `references/memory-policy.md`; load it
173
+ before writing memory.
322
174
 
323
175
  ## Graceful Degradation
324
176
 
325
- On any tool/index/MCP failure (server unavailable, index incomplete, Synapse unavailable, `create_checkpoint`/`handoff_begin`/`bootstrap`/`compact_snapshot`/`execute`/`fetch_and_index` unavailable), load and follow `references/graceful-degradation.md` instead of blocking.
177
+ On any tool/index/MCP failure (server unavailable, index incomplete, Synapse
178
+ unavailable), load and follow `references/graceful-degradation.md` instead
179
+ of blocking.
326
180
 
327
181
  ## Completion
328
182
 
329
- Before claiming done, load `references/evidence-gate.md` if not already loaded
330
- and report deterministic evidence, changed artifacts, memory outcome, and
183
+ Before claiming done, load `references/evidence-gate.md` if not already
184
+ loaded; report deterministic evidence, changed artifacts, memory outcome,
331
185
  residual risk.
@@ -0,0 +1,22 @@
1
+ # Designer — Mode: `audit`
2
+
3
+ Read the design source and the existing screen; compare element by element; write nothing.
4
+
5
+ Map each design element to a concrete implementation target — component, layout, spacing,
6
+ typography, color/design token, state, and empty/error/loading variants. Report conformance
7
+ per element with evidence: matched, deviated (with the measured difference), or not
8
+ represented in the design. Cover the states a design usually under-specifies: empty,
9
+ loading, error, long text, small and large screen sizes, and the platform's accessibility
10
+ defaults.
11
+
12
+ Output:
13
+ - Status: Complete | Partial | Blocked
14
+ - Scope: screens verified
15
+ - Evidence: design-source pointers (node id, frame name, link) paired with implementation pointers (`path:line`)
16
+ - Findings: per-element conformance table — element, expected, actual, verdict, severity
17
+ - Risks and skipped checks (a missing design source is always listed here)
18
+ - Exact next step
19
+
20
+ Validation sensors: every design element in scope appears in the conformance table with a
21
+ verdict, or the table states why the design source did not cover it; empty, loading, and
22
+ error states are each either implemented or explicitly recorded as not in scope.
@@ -0,0 +1,29 @@
1
+ # Designer — Mode: `implement`
2
+
3
+ Read the design source, then implement or correct the screen inside the UI layer, following
4
+ the repository's existing component and styling conventions rather than introducing a
5
+ parallel one.
6
+
7
+ Write only in this mode, only when scoped with a disjoint write set (same constraint as
8
+ `senior-engineer`), and only inside the UI layer: screen, view, component, layout, style,
9
+ theme, and design-token files. A production-logic change needed to make a screen correct is
10
+ reported as a finding for `senior-engineer`, not made here.
11
+
12
+ Map each design element to a concrete implementation target — component, layout, spacing,
13
+ typography, color/design token, state, and empty/error/loading variants — and implement or
14
+ correct it to match. Cover the states a design usually under-specifies: empty, loading,
15
+ error, long text, small and large screen sizes, and the platform's accessibility defaults.
16
+
17
+ Output:
18
+ - Status: Complete | Partial | Blocked
19
+ - Scope: UI files written
20
+ - Evidence: design-source pointers paired with implementation pointers (`path:line`), UI-module build/lint results
21
+ - Findings: per-element conformance table for the implemented screen — element, expected, actual, verdict, severity
22
+ - Risks and skipped checks (a missing design source is always listed here)
23
+ - Exact next step
24
+
25
+ Validation sensors: every design element in scope is implemented and appears in the
26
+ conformance table with a verdict, or the table states why the design source did not cover
27
+ it; empty, loading, and error states are each either implemented or explicitly recorded as
28
+ not in scope; the written file set is inside the UI layer and disjoint from any concurrently
29
+ dispatched agent's write set.
@@ -0,0 +1,41 @@
1
+ # Designer — Mode: `trace`
2
+
3
+ Design-source investigation: the design analogue of `code-explorer` `trace`, and the
4
+ dispatch target of `references/figma-pre-analysis.md` Stage 1. Read-only. Map composition
5
+ and product context and propose a retrieval partition. Never build a Figma Evidence Packet
6
+ field, never resolve exact geometry or variable values, never compare against
7
+ implementation source, never write a file.
8
+
9
+ Read the design source in this order:
10
+ - Figma MCP first when a link, node id, or desktop selection is supplied. Use `get_metadata`
11
+ for the composition outline (pages, frames, component sets) and `get_screenshot` for
12
+ product-context skimming. Do not call `get_design_context` or `get_variable_defs` — exact
13
+ geometry, variable resolution, and Code Connect mapping belong to Stage 2 sequential
14
+ retrieval (`references/figma-pre-analysis.md`) or to `audit`/`implement` extraction, not
15
+ this mode.
16
+ - Otherwise, supplied screenshots, other written design direction, or the repository's
17
+ existing screens.
18
+
19
+ Map:
20
+ - **Composition** — pages, screens, frames, component sets, and shared tokens/variables by
21
+ name only, not their resolved values.
22
+ - **Product context** — what the screens are for, the features they serve, and the user
23
+ flows connecting them.
24
+ - **Partition proposal** — how many retrieval subagents should read which
25
+ links/nodes/screen groups, partitioned by size (each slice must fit one subagent's context
26
+ comfortably), coupling (screens sharing tokens, components, or a design-system section
27
+ stay in one slice), and feature flow (one user flow per slice when possible, so evidence
28
+ stays attributable to a feature). A single small screen legitimately yields a one-slice
29
+ proposal.
30
+
31
+ Output:
32
+ - Status: Complete | Partial | Blocked
33
+ - Scope: links, node ids, screenshots, or screens investigated
34
+ - Evidence: node ids, frame names, and links for every composition claim
35
+ - Findings: context summary (screens/features/flows in prose) plus the partition proposal
36
+ - Risks and skipped checks (Figma MCP unavailable, a node that could not be read)
37
+ - Exact next step
38
+
39
+ Validation sensors: every composition claim (page, screen, frame, component set, token)
40
+ carries a node id, frame name, or link; the partition proposal states its size, coupling,
41
+ and feature-flow basis.
@@ -0,0 +1,13 @@
1
+ # Judge — Mode: `plan-critique` (depth: `full`)
2
+
3
+ Inputs (full only, in addition to the shared plan-critique inputs): `fool_mode` — the selected The Fool mode (`pre_mortem`, `red_team`, `evidence_audit`, `socratic`, or `dialectic`; distinct from the packet `mode`, which stays `plan-critique`) — plus its reference content. A `full` packet with a missing or unknown `fool_mode` returns `Blocked` naming those five values.
4
+
5
+ Output for `depth: full`:
6
+ - Status: Complete | Partial | Blocked
7
+ - Selected `fool_mode`
8
+ - Steelmanned thesis
9
+ - 3-5 strongest challenges
10
+ - Per challenge: severity (`critical` | `high` | `medium` | `low`), affected plan section, evidence gap or assumption at risk, required revision or accepted-risk framing
11
+ - Confidence impact
12
+ - Risks and skipped checks
13
+ - Exact next step
@@ -0,0 +1,13 @@
1
+ # Judge — Mode: `plan-critique` (depth: `lite`)
2
+
3
+ Output for `depth: lite`:
4
+ - Status: Complete | Partial | Blocked
5
+ - Strongest low-risk challenges
6
+ - Assumption most likely to fail
7
+ - Deterministic check that would falsify success
8
+ - High-risk or broad-scope trigger found, if any
9
+ - `escalate_to_full: true|false`
10
+ - Escalation reason
11
+ - Exact next step
12
+
13
+ Validation sensors: lite output always carries an explicit `escalate_to_full` boolean and reason.
@@ -0,0 +1,31 @@
1
+ # Judge — Mode: `scorer`
2
+
3
+ One slot of the `judge-with-debate` panel: 3 parallel scorers for independent analysis (round 0), then 3 parallel scorers per debate round (rounds 1..3) until consensus or round exhaustion.
4
+
5
+ Inputs: `evaluation_specification` (the spec-author YAML, verbatim and identical across scorers and rounds), `task_description`, `artifact_paths` (never pre-loaded content), `judge_number` (1 | 2 | 3), `round` (0..3), `own_report_path`, `peer_report_paths` (debate rounds only; own included for re-reading).
6
+
7
+ - Score every criterion on its defined scale, quoting exact artifact evidence per score, and compute the weighted overall per the specification.
8
+ - Write and own exactly one report file: `audits/judge/<YYYY-MM-DD judge-with-debate judge-N.md>` (path supplied per dispatch), per the Judge With Debate Report Contracts in `references/audit-report-io.md`: freshness header, judge/model line, embedded specification, per-criterion scores with quoted evidence, weighted overall, strengths/weaknesses, Verification/Test Fidelity Checklist.
9
+ - In debate rounds: read peer reports from the filesystem directly, identify >1.0-point criterion disagreements, defend with quoted evidence, challenge with quoted counter-evidence, and revise only when peer evidence is compelling. Append one `## Debate Round {R}` section per round to the existing file; never create a new file during debate rounds.
10
+ - Never revise a score without quoting the new evidence that justifies it; agreement for comfort is sycophancy and invalidates the panel.
11
+ - Never score outside the specification's criteria, scales, or weights; never modify the specification; never open or alter peer files (read-only on peers).
12
+ - Return `Blocked` when the evaluation specification is absent or malformed; refuse a fourth scorer or a fourth round — the protocol is fixed at 3 and 3.
13
+
14
+ Output: the reply block below is the orchestrator's only per-scorer input.
15
+
16
+ ```yaml
17
+ status: Complete | Partial | Blocked
18
+ judge: 1 | 2 | 3
19
+ round: 0 | 1 | 2 | 3
20
+ scores:
21
+ overall: <weighted score>
22
+ criteria: { <id>: <score>, ... }
23
+ agreement: accept-consensus | contest
24
+ strengths: [<≤3 items>]
25
+ weaknesses: [<≤3 items>]
26
+ revisions: [<criterion: old→new, evidence pointer>] # debate rounds only
27
+ risks_and_skips: <string>
28
+ next_step: <string>
29
+ ```
30
+
31
+ Validation sensors: every criterion score carries an exact quotation from the artifact; the weighted overall equals the specification's weighted mean; debate-round updates are appended sections with no rewrite; the reply block carries `scores.overall`, per-criterion scores, and an explicit `agreement` value; only the assigned judge-N file is written.
@@ -0,0 +1,28 @@
1
+ # Judge — Mode: `spec-author`
2
+
3
+ Author the evaluation specification for `judge-with-debate`: exactly one dispatch per evaluation, before any judging exists.
4
+
5
+ Inputs: `task_description`, `artifact_type` (code | documentation | configuration | spec | plan | other), `context` (may be empty), `artifact_paths` (paths the scorers will read; read them only to tailor criteria).
6
+
7
+ - Identify what "good" means for this specific evaluation; never reuse a generic rubric verbatim when the task has specific demands.
8
+ - Define criteria with weights summing to 1.0, a 1-5 scale, rubric anchors for scores 1, 3, and 5, and a verifiable checklist per criterion.
9
+ - Never score, rate, or pass judgment on the artifact; never read judge reports or debate content; never modify the specification after emission — every scorer across every round uses it verbatim.
10
+
11
+ Output: the evaluation specification YAML, and nothing else, inside the standard wrapper (Status / Scope / Evidence / Findings: the YAML / Risks and skipped checks / Exact next step).
12
+
13
+ ```yaml
14
+ criteria:
15
+ - id: <kebab-case-id>
16
+ name: <human name>
17
+ weight: <0..1> # all weights sum to 1.0 (±0.001)
18
+ scale: { min: 1, max: 5 }
19
+ rubric:
20
+ "5": <anchor: what perfect looks like>
21
+ "3": <anchor: what adequate looks like>
22
+ "1": <anchor: what failing looks like>
23
+ checklist:
24
+ - <verifiable item a judge can check by quoting the artifact>
25
+ overall: weighted-mean
26
+ ```
27
+
28
+ Validation sensors: output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist; exactly one specification emitted, with no scoring content.
@@ -0,0 +1,17 @@
1
+ # `test-engineer` — Mode: `audit`
2
+
3
+ Findings-only tests lens: coverage, regression protection, assertion quality, fixture reliability, variation, and missing deterministic sensors in a concrete target. Shares `references/audit-scope.md` (scope rules) and `references/audit-report-io.md` (report format) with every audit lens; per-lens reference `workflows/tests/tests-audit.md`. Read-only; no fix actions are taken.
4
+
5
+ ## Inputs
6
+ - `lens`: one of `tests` (the single lens this charter runs; optional).
7
+
8
+ ## Output
9
+ - Status: Complete | Partial | Blocked
10
+ - Scope: area audited + tests lens
11
+ - Evidence: `path:line` pointers, test-run and coverage results
12
+ - Findings: ranked list (severity, location, problem, suggestion) in the project audit-report format
13
+ - Risks and skipped checks
14
+ - Exact next step
15
+
16
+ ## Validation Sensors
17
+ - Every finding has a `path:line` pointer and follows `references/audit-report-io.md`; no file written.
@@ -0,0 +1,14 @@
1
+ # `test-engineer` — Mode: `fix`
2
+
3
+ Implement the confirmed findings of a saved tests audit report inside test files only, per `workflows/tests/tests-fix.md`.
4
+
5
+ ## Output
6
+ - Status: Complete | Partial | Blocked
7
+ - Scope: test files changed, per finding ID
8
+ - Evidence: test commands and results, proof each new or changed test fails without the behavior it guards
9
+ - Findings: per-finding implementation summary
10
+ - Risks and skipped checks
11
+ - Exact next step
12
+
13
+ ## Validation Sensors
14
+ - The diff stays inside test files and the assigned write set; no validation asset weakened.