@massa-ai/cursor-plugin 1.61.0 → 1.62.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 (276) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/README.md +2 -2
  3. package/agent-profiles/{heavy/massa-ai-builder.md → balanced/builder.md} +4 -4
  4. package/agent-profiles/balanced/code-explorer.md +102 -0
  5. package/agent-profiles/balanced/code-reviewer.md +134 -0
  6. package/agent-profiles/balanced/designer.md +84 -0
  7. package/agent-profiles/balanced/judge.md +147 -0
  8. package/agent-profiles/balanced/product-manager.md +108 -0
  9. package/agent-profiles/balanced/test-engineer.md +100 -0
  10. package/agent-profiles/cheap/{massa-ai-builder.md → builder.md} +4 -4
  11. package/agent-profiles/cheap/code-explorer.md +102 -0
  12. package/agent-profiles/cheap/code-reviewer.md +134 -0
  13. package/agent-profiles/cheap/designer.md +84 -0
  14. package/agent-profiles/cheap/judge.md +147 -0
  15. package/agent-profiles/cheap/product-manager.md +108 -0
  16. package/agent-profiles/cheap/test-engineer.md +100 -0
  17. package/agent-profiles/{balanced/massa-ai-builder.md → heavy/builder.md} +4 -4
  18. package/agent-profiles/heavy/code-explorer.md +102 -0
  19. package/agent-profiles/heavy/code-reviewer.md +134 -0
  20. package/agent-profiles/heavy/designer.md +84 -0
  21. package/agent-profiles/heavy/judge.md +147 -0
  22. package/agent-profiles/heavy/product-manager.md +108 -0
  23. package/agent-profiles/heavy/test-engineer.md +100 -0
  24. package/agent-profiles/home/{massa-ai-builder.md → builder.md} +4 -4
  25. package/agent-profiles/home/code-explorer.md +102 -0
  26. package/agent-profiles/home/code-reviewer.md +134 -0
  27. package/agent-profiles/home/designer.md +84 -0
  28. package/agent-profiles/home/judge.md +147 -0
  29. package/agent-profiles/home/product-manager.md +108 -0
  30. package/agent-profiles/home/test-engineer.md +100 -0
  31. package/agent-profiles/work/builder.md +63 -0
  32. package/agent-profiles/work/code-explorer.md +102 -0
  33. package/agent-profiles/work/code-reviewer.md +134 -0
  34. package/agent-profiles/work/designer.md +84 -0
  35. package/agent-profiles/work/judge.md +147 -0
  36. package/agent-profiles/work/product-manager.md +108 -0
  37. package/agent-profiles/work/test-engineer.md +100 -0
  38. package/agents/builder.md +63 -0
  39. package/agents/code-explorer.md +102 -0
  40. package/agents/code-reviewer.md +134 -0
  41. package/agents/designer.md +84 -0
  42. package/agents/judge.md +147 -0
  43. package/agents/product-manager.md +108 -0
  44. package/agents/test-engineer.md +100 -0
  45. package/hooks/massa-ai-hook +4 -4
  46. package/install.sh +110 -33
  47. package/package.json +1 -1
  48. package/skills/agents/builder/SKILL.md +3 -4
  49. package/skills/agents/code-explorer/SKILL.md +104 -0
  50. package/skills/agents/code-reviewer/SKILL.md +136 -0
  51. package/skills/agents/designer/SKILL.md +34 -17
  52. package/skills/agents/judge/SKILL.md +99 -48
  53. package/skills/agents/product-manager/SKILL.md +110 -0
  54. package/skills/agents/test-engineer/SKILL.md +57 -22
  55. package/skills/bootstrap/SKILL.md +4 -5
  56. package/skills/{adr → create-adr}/SKILL.md +3 -3
  57. package/skills/{to-prd → create-prd}/SKILL.md +3 -3
  58. package/skills/{rfc → create-rfc}/SKILL.md +3 -3
  59. package/skills/{tdd → create-tdd}/SKILL.md +3 -3
  60. package/skills/{ticket → create-ticket}/SKILL.md +3 -3
  61. package/skills/massa-ai/SKILL.md +26 -29
  62. package/skills/massa-ai/references/agent-orchestration.md +62 -58
  63. package/skills/massa-ai/references/audit-report-io.md +8 -87
  64. package/skills/massa-ai/references/code-reuse-scan.md +1 -1
  65. package/skills/massa-ai/references/{adr-authoring.md → create-adr.md} +3 -3
  66. package/skills/massa-ai/references/{rfc → create-rfc}/discovery-and-sizing.md +1 -1
  67. package/skills/massa-ai/references/{tdd → create-tdd}/calibrated-examples.md +3 -3
  68. package/skills/massa-ai/references/{tdd → create-tdd}/discovery-and-sizing.md +1 -1
  69. package/skills/massa-ai/references/{tdd → create-tdd}/quality-and-lifecycle.md +1 -1
  70. package/skills/massa-ai/references/{ticket → create-ticket}/intake-and-sources.md +1 -1
  71. package/skills/massa-ai/references/figma-pre-analysis.md +1 -1
  72. package/skills/massa-ai/references/furps/analyst-role.md +3 -3
  73. package/skills/massa-ai/references/furps/checklist.md +2 -2
  74. package/skills/massa-ai/references/furps/intake.md +7 -7
  75. package/skills/massa-ai/references/hook-enforcement.md +4 -8
  76. package/skills/massa-ai/references/implementation-delivery.md +2 -2
  77. package/skills/massa-ai/references/knowledge-verification-chain.md +0 -1
  78. package/skills/massa-ai/references/mobile-context.md +2 -5
  79. package/skills/massa-ai/references/pr-task-fix.md +1 -1
  80. package/skills/massa-ai/references/spec-driven/sub-agents.md +3 -3
  81. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  82. package/skills/massa-ai/references/subagent-design.md +6 -9
  83. package/skills/massa-ai/references/verification-ladder.md +2 -2
  84. package/skills/massa-ai/scripts/validate_audit_report.ts +3 -8
  85. package/skills/massa-ai/workflows/architecture/architecture-audit.md +4 -5
  86. package/skills/massa-ai/workflows/architecture/architecture-fix.md +5 -6
  87. package/skills/massa-ai/workflows/bugs/bugs-audit.md +2 -3
  88. package/skills/massa-ai/workflows/bugs/bugs-fix.md +4 -5
  89. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +2 -3
  90. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +4 -5
  91. package/skills/massa-ai/workflows/commit.md +3 -3
  92. package/skills/massa-ai/workflows/{adr.md → create-adr.md} +10 -10
  93. package/skills/massa-ai/workflows/{to-prd.md → create-prd.md} +4 -4
  94. package/skills/massa-ai/workflows/{rfc.md → create-rfc.md} +6 -6
  95. package/skills/massa-ai/workflows/{tdd.md → create-tdd.md} +11 -11
  96. package/skills/massa-ai/workflows/{ticket.md → create-ticket.md} +5 -5
  97. package/skills/massa-ai/workflows/debug.md +4 -5
  98. package/skills/massa-ai/workflows/design.md +2 -2
  99. package/skills/massa-ai/workflows/exploration.md +2 -2
  100. package/skills/massa-ai/workflows/feature.md +5 -6
  101. package/skills/massa-ai/workflows/implementation/implementation-audit.md +22 -3
  102. package/skills/massa-ai/workflows/implementation/implementation-fix.md +6 -7
  103. package/skills/massa-ai/workflows/judge-with-debate.md +14 -14
  104. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +2 -2
  105. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +10 -11
  106. package/skills/massa-ai/workflows/pr-review.md +31 -13
  107. package/skills/massa-ai/workflows/{discovery.md → product-discovery.md} +12 -12
  108. package/skills/massa-ai/workflows/refactor.md +4 -5
  109. package/skills/massa-ai/workflows/refinement/furps-refinement.md +7 -7
  110. package/skills/massa-ai/workflows/requirements/requirements-audit.md +2 -2
  111. package/skills/massa-ai/workflows/requirements/requirements-fix.md +5 -6
  112. package/skills/massa-ai/workflows/security/security-audit.md +2 -3
  113. package/skills/massa-ai/workflows/security/security-fix.md +3 -4
  114. package/skills/massa-ai/workflows/spec-driven.md +9 -10
  115. package/skills/massa-ai/workflows/tests/tests-audit.md +2 -2
  116. package/skills/massa-ai/workflows/tests/tests-fix.md +16 -6
  117. package/skills/massa-ai/workflows/the-fool.md +7 -7
  118. package/skills/{discovery → product-discovery}/SKILL.md +3 -3
  119. package/agent-profiles/balanced/massa-ai-architecture-specialist.md +0 -62
  120. package/agent-profiles/balanced/massa-ai-audit-specialist.md +0 -79
  121. package/agent-profiles/balanced/massa-ai-context-curator.md +0 -64
  122. package/agent-profiles/balanced/massa-ai-designer.md +0 -66
  123. package/agent-profiles/balanced/massa-ai-documentation-agent.md +0 -61
  124. package/agent-profiles/balanced/massa-ai-furps-analyst.md +0 -68
  125. package/agent-profiles/balanced/massa-ai-investigator.md +0 -65
  126. package/agent-profiles/balanced/massa-ai-judge.md +0 -95
  127. package/agent-profiles/balanced/massa-ai-meta-judge.md +0 -84
  128. package/agent-profiles/balanced/massa-ai-mobile-specialist.md +0 -79
  129. package/agent-profiles/balanced/massa-ai-navigator.md +0 -72
  130. package/agent-profiles/balanced/massa-ai-plan-critic.md +0 -87
  131. package/agent-profiles/balanced/massa-ai-planner.md +0 -62
  132. package/agent-profiles/balanced/massa-ai-requirements-analyst.md +0 -61
  133. package/agent-profiles/balanced/massa-ai-reviewer.md +0 -63
  134. package/agent-profiles/balanced/massa-ai-test-engineer.md +0 -63
  135. package/agent-profiles/balanced/massa-ai-verification-agent.md +0 -62
  136. package/agent-profiles/cheap/massa-ai-architecture-specialist.md +0 -62
  137. package/agent-profiles/cheap/massa-ai-audit-specialist.md +0 -79
  138. package/agent-profiles/cheap/massa-ai-context-curator.md +0 -64
  139. package/agent-profiles/cheap/massa-ai-designer.md +0 -66
  140. package/agent-profiles/cheap/massa-ai-documentation-agent.md +0 -61
  141. package/agent-profiles/cheap/massa-ai-furps-analyst.md +0 -68
  142. package/agent-profiles/cheap/massa-ai-investigator.md +0 -65
  143. package/agent-profiles/cheap/massa-ai-judge.md +0 -95
  144. package/agent-profiles/cheap/massa-ai-meta-judge.md +0 -84
  145. package/agent-profiles/cheap/massa-ai-mobile-specialist.md +0 -79
  146. package/agent-profiles/cheap/massa-ai-navigator.md +0 -72
  147. package/agent-profiles/cheap/massa-ai-plan-critic.md +0 -87
  148. package/agent-profiles/cheap/massa-ai-planner.md +0 -62
  149. package/agent-profiles/cheap/massa-ai-requirements-analyst.md +0 -61
  150. package/agent-profiles/cheap/massa-ai-reviewer.md +0 -63
  151. package/agent-profiles/cheap/massa-ai-test-engineer.md +0 -63
  152. package/agent-profiles/cheap/massa-ai-verification-agent.md +0 -62
  153. package/agent-profiles/heavy/massa-ai-architecture-specialist.md +0 -62
  154. package/agent-profiles/heavy/massa-ai-audit-specialist.md +0 -79
  155. package/agent-profiles/heavy/massa-ai-context-curator.md +0 -64
  156. package/agent-profiles/heavy/massa-ai-designer.md +0 -66
  157. package/agent-profiles/heavy/massa-ai-documentation-agent.md +0 -61
  158. package/agent-profiles/heavy/massa-ai-furps-analyst.md +0 -68
  159. package/agent-profiles/heavy/massa-ai-investigator.md +0 -65
  160. package/agent-profiles/heavy/massa-ai-judge.md +0 -95
  161. package/agent-profiles/heavy/massa-ai-meta-judge.md +0 -84
  162. package/agent-profiles/heavy/massa-ai-mobile-specialist.md +0 -79
  163. package/agent-profiles/heavy/massa-ai-navigator.md +0 -72
  164. package/agent-profiles/heavy/massa-ai-plan-critic.md +0 -87
  165. package/agent-profiles/heavy/massa-ai-planner.md +0 -62
  166. package/agent-profiles/heavy/massa-ai-requirements-analyst.md +0 -61
  167. package/agent-profiles/heavy/massa-ai-reviewer.md +0 -63
  168. package/agent-profiles/heavy/massa-ai-test-engineer.md +0 -63
  169. package/agent-profiles/heavy/massa-ai-verification-agent.md +0 -62
  170. package/agent-profiles/home/massa-ai-architecture-specialist.md +0 -62
  171. package/agent-profiles/home/massa-ai-audit-specialist.md +0 -79
  172. package/agent-profiles/home/massa-ai-context-curator.md +0 -64
  173. package/agent-profiles/home/massa-ai-designer.md +0 -66
  174. package/agent-profiles/home/massa-ai-documentation-agent.md +0 -61
  175. package/agent-profiles/home/massa-ai-furps-analyst.md +0 -68
  176. package/agent-profiles/home/massa-ai-investigator.md +0 -65
  177. package/agent-profiles/home/massa-ai-judge.md +0 -95
  178. package/agent-profiles/home/massa-ai-meta-judge.md +0 -84
  179. package/agent-profiles/home/massa-ai-mobile-specialist.md +0 -79
  180. package/agent-profiles/home/massa-ai-navigator.md +0 -72
  181. package/agent-profiles/home/massa-ai-plan-critic.md +0 -87
  182. package/agent-profiles/home/massa-ai-planner.md +0 -62
  183. package/agent-profiles/home/massa-ai-requirements-analyst.md +0 -61
  184. package/agent-profiles/home/massa-ai-reviewer.md +0 -63
  185. package/agent-profiles/home/massa-ai-test-engineer.md +0 -63
  186. package/agent-profiles/home/massa-ai-verification-agent.md +0 -62
  187. package/agent-profiles/work/massa-ai-architecture-specialist.md +0 -62
  188. package/agent-profiles/work/massa-ai-audit-specialist.md +0 -79
  189. package/agent-profiles/work/massa-ai-builder.md +0 -63
  190. package/agent-profiles/work/massa-ai-context-curator.md +0 -64
  191. package/agent-profiles/work/massa-ai-designer.md +0 -66
  192. package/agent-profiles/work/massa-ai-documentation-agent.md +0 -61
  193. package/agent-profiles/work/massa-ai-furps-analyst.md +0 -68
  194. package/agent-profiles/work/massa-ai-investigator.md +0 -65
  195. package/agent-profiles/work/massa-ai-judge.md +0 -95
  196. package/agent-profiles/work/massa-ai-meta-judge.md +0 -84
  197. package/agent-profiles/work/massa-ai-mobile-specialist.md +0 -79
  198. package/agent-profiles/work/massa-ai-navigator.md +0 -72
  199. package/agent-profiles/work/massa-ai-plan-critic.md +0 -87
  200. package/agent-profiles/work/massa-ai-planner.md +0 -62
  201. package/agent-profiles/work/massa-ai-requirements-analyst.md +0 -61
  202. package/agent-profiles/work/massa-ai-reviewer.md +0 -63
  203. package/agent-profiles/work/massa-ai-test-engineer.md +0 -63
  204. package/agent-profiles/work/massa-ai-verification-agent.md +0 -62
  205. package/agents/massa-ai-architecture-specialist.md +0 -62
  206. package/agents/massa-ai-audit-specialist.md +0 -79
  207. package/agents/massa-ai-builder.md +0 -63
  208. package/agents/massa-ai-context-curator.md +0 -64
  209. package/agents/massa-ai-designer.md +0 -66
  210. package/agents/massa-ai-documentation-agent.md +0 -61
  211. package/agents/massa-ai-furps-analyst.md +0 -68
  212. package/agents/massa-ai-investigator.md +0 -65
  213. package/agents/massa-ai-judge.md +0 -95
  214. package/agents/massa-ai-meta-judge.md +0 -84
  215. package/agents/massa-ai-mobile-specialist.md +0 -79
  216. package/agents/massa-ai-navigator.md +0 -72
  217. package/agents/massa-ai-plan-critic.md +0 -87
  218. package/agents/massa-ai-planner.md +0 -62
  219. package/agents/massa-ai-requirements-analyst.md +0 -61
  220. package/agents/massa-ai-reviewer.md +0 -63
  221. package/agents/massa-ai-test-engineer.md +0 -63
  222. package/agents/massa-ai-verification-agent.md +0 -62
  223. package/skills/agents/architecture-specialist/SKILL.md +0 -66
  224. package/skills/agents/audit-specialist/SKILL.md +0 -83
  225. package/skills/agents/context-curator/SKILL.md +0 -68
  226. package/skills/agents/documentation-agent/SKILL.md +0 -66
  227. package/skills/agents/furps-analyst/SKILL.md +0 -71
  228. package/skills/agents/investigator/SKILL.md +0 -69
  229. package/skills/agents/meta-judge/SKILL.md +0 -87
  230. package/skills/agents/mobile-specialist/SKILL.md +0 -83
  231. package/skills/agents/navigator/SKILL.md +0 -76
  232. package/skills/agents/plan-critic/SKILL.md +0 -90
  233. package/skills/agents/planner/SKILL.md +0 -66
  234. package/skills/agents/requirements-analyst/SKILL.md +0 -65
  235. package/skills/agents/reviewer/SKILL.md +0 -67
  236. package/skills/agents/verification-agent/SKILL.md +0 -66
  237. package/skills/general/SKILL.md +0 -14
  238. package/skills/maestro/SKILL.md +0 -14
  239. package/skills/maestro-audit/SKILL.md +0 -14
  240. package/skills/maestro-fix/SKILL.md +0 -14
  241. package/skills/massa-ai/personas/README.md +0 -35
  242. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +0 -47
  243. package/skills/massa-ai/personas/catalog.json +0 -7
  244. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +0 -47
  245. package/skills/massa-ai/personas/product-manager.md +0 -65
  246. package/skills/massa-ai/personas/senior-mobile-engineer.md +0 -46
  247. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +0 -51
  248. package/skills/massa-ai/personas/signals/ai-native-nodejs-cli-architect.json +0 -20
  249. package/skills/massa-ai/personas/signals/context-skill-harness-engineer-architect.json +0 -20
  250. package/skills/massa-ai/personas/signals/product-manager.json +0 -21
  251. package/skills/massa-ai/personas/signals/senior-mobile-engineer.json +0 -18
  252. package/skills/massa-ai/personas/signals/senior-mobile-qa-automation-engineer.json +0 -18
  253. package/skills/massa-ai/references/maestro/artifacts-reports.md +0 -69
  254. package/skills/massa-ai/references/maestro/cli-device.md +0 -65
  255. package/skills/massa-ai/references/maestro/cloud.md +0 -69
  256. package/skills/massa-ai/references/maestro/config-env-output.md +0 -76
  257. package/skills/massa-ai/references/maestro/fact-ledger.md +0 -73
  258. package/skills/massa-ai/references/maestro/js-scripting.md +0 -70
  259. package/skills/massa-ai/references/maestro/mcp.md +0 -59
  260. package/skills/massa-ai/references/maestro/patterns.md +0 -102
  261. package/skills/massa-ai/references/maestro/selectors.md +0 -91
  262. package/skills/massa-ai/references/maestro/workspace-execution.md +0 -81
  263. package/skills/massa-ai/references/maestro/yaml-commands.md +0 -203
  264. package/skills/massa-ai/references/maestro.md +0 -31
  265. package/skills/massa-ai/workflows/general.md +0 -88
  266. package/skills/massa-ai/workflows/maestro/maestro-audit.md +0 -64
  267. package/skills/massa-ai/workflows/maestro/maestro-fix.md +0 -111
  268. package/skills/massa-ai/workflows/maestro/maestro.md +0 -80
  269. package/skills/persona-router/SKILL.md +0 -52
  270. package/skills/persona-router/references/routing-details.md +0 -98
  271. /package/skills/massa-ai/references/{rfc → create-rfc}/ATTRIBUTION.md +0 -0
  272. /package/skills/massa-ai/references/{rfc → create-rfc}/document-contract.md +0 -0
  273. /package/skills/massa-ai/references/{rfc → create-rfc}/quality-and-lifecycle.md +0 -0
  274. /package/skills/massa-ai/references/{tdd → create-tdd}/document-contract.md +0 -0
  275. /package/skills/massa-ai/references/{ticket → create-ticket}/atlassian-fix.md +0 -0
  276. /package/skills/massa-ai/references/{ticket → create-ticket}/templates-and-quality.md +0 -0
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Turn the current conversation into a PRD. Use when the user asks to create, synthesize, or convert existing discussion and codebase context into a Product Requirements Document without another interview. Do NOT use for implementation plans, architecture design docs, RFCs, TDDs, or discovery interviews that require new product questioning. — explicit massa-ai 'to-prd' workflow"
2
+ description: "Turn the current conversation into a PRD. Use when the user asks to create, synthesize, or convert existing discussion and codebase context into a Product Requirements Document without another interview. Do NOT use for implementation plans, architecture design docs, RFCs, TDDs, or discovery interviews that require new product questioning. — explicit massa-ai 'create-prd' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `to-prd`.
7
+ Explicit massa-ai workflow invocation: `create-prd`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `to-prd` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-prd` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow when a significant technical, process, product, vendor, tool, or policy decision is still open and stakeholders need a structured proposal before committing. — explicit massa-ai 'rfc' workflow"
2
+ description: "Use this workflow when a significant technical, process, product, vendor, tool, or policy decision is still open and stakeholders need a structured proposal before committing. — explicit massa-ai 'create-rfc' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `rfc`.
7
+ Explicit massa-ai workflow invocation: `create-rfc`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `rfc` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-rfc` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow to write a Technical Design Document once one product direction is selected and no unresolved API, data, security, or rollout decision blocks implementation. — explicit massa-ai 'tdd' workflow"
2
+ description: "Use this workflow to write a Technical Design Document once one product direction is selected and no unresolved API, data, security, or rollout decision blocks implementation. — explicit massa-ai 'create-tdd' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `tdd`.
7
+ Explicit massa-ai workflow invocation: `create-tdd`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `tdd` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-tdd` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow to draft, review, create, or resume creation of Jira Epics, issues, or sub-tasks through Atlassian MCP, the only tracker and mutation path. — explicit massa-ai 'ticket' workflow"
2
+ description: "Use this workflow to draft, review, create, or resume creation of Jira Epics, issues, or sub-tasks through Atlassian MCP, the only tracker and mutation path. — explicit massa-ai 'create-ticket' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `ticket`.
7
+ Explicit massa-ai workflow invocation: `create-ticket`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `ticket` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-ticket` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -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
@@ -35,6 +35,9 @@ Before reading any massa-ai file:
35
35
 
36
36
  - Every coding/planning task uses one stable `projectId` and
37
37
  `workflowSessionId`.
38
+ - Sub-agents are dispatched by bare charter name (`builder`, `code-reviewer`, ...).
39
+ On the Claude plugin route, dispatch the plugin-namespaced `massa-ai:<name>`
40
+ so a same-named user or project agent cannot intercept the dispatch.
38
41
  - Start with `recall` for relevant prior decisions/patterns.
39
42
  - Default startup/context recall is budgeted: use `limit <= 3`,
40
43
  `minImportance >= 0.7`, and `types=["critical","decision","pattern"]`
@@ -113,7 +116,7 @@ Examples:
113
116
  - `feature-user-onboarding`
114
117
  - `refactor-auth-module`
115
118
  - `spec-billing-workflow`
116
- - `adr-postgres-migration`
119
+ - `create-adr-postgres-migration`
117
120
 
118
121
  Resolve `projectId`:
119
122
 
@@ -143,9 +146,6 @@ current context already contains it.
143
146
  | `security-fix` | fix security audit report findings | `workflows/security/security-fix.md` |
144
147
  | `requirements-audit` | requirements/spec/acceptance/scope alignment findings | `workflows/requirements/requirements-audit.md` |
145
148
  | `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
149
  | `tests-audit` | test coverage/regression/assertion/flakiness findings | `workflows/tests/tests-audit.md` |
150
150
  | `tests-fix` | fix tests audit report findings | `workflows/tests/tests-fix.md` |
151
151
  | `bugs-audit` | findings-only bug discovery | `workflows/bugs/bugs-audit.md` |
@@ -159,34 +159,33 @@ current context already contains it.
159
159
  | `mobile-figma-audit` | compare an Android, iOS, or KMP UI implementation with a Figma design | `workflows/mobile-figma/mobile-figma-audit.md` |
160
160
  | `mobile-figma-fix` | fix saved mobile Figma findings | `workflows/mobile-figma/mobile-figma-fix.md` |
161
161
  | `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` |
162
+ | `create-adr` | record a finalized decision | `workflows/create-adr.md` |
163
+ | `create-rfc` | propose a significant change | `workflows/create-rfc.md` |
164
+ | `create-tdd` | technical design / implementation plan | `workflows/create-tdd.md` |
165
+ | `create-ticket` | draft and create Jira Epics, issues, and sub-tasks through Atlassian MCP | `workflows/create-ticket.md` |
166
166
  | `commit` | draft or create safe Conventional Commits with Jira branch prefixes and audit report exclusions | `workflows/commit.md` |
167
167
  | `the-fool` | direct challenge, red-team, pre-mortem, evidence audit | `workflows/the-fool.md` |
168
168
  | `judge-with-debate` | standalone multi-judge debate evaluation of user-supplied artifacts | `workflows/judge-with-debate.md` |
169
169
  | `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` |
170
+ | `product-discovery` | product brainstorming / problem-space thinking partner | `workflows/product-discovery.md` |
171
+ | `create-prd` | turn the current conversation into a PRD without a new interview | `workflows/create-prd.md` |
172
172
  | `skill-architect` | design and build a new skill through structured conversation | `workflows/skill-architect.md` |
173
173
  | `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
174
 
176
175
  Explicitly requested workflows win. Otherwise choose the most specific matching
177
176
  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
177
+ mapping; when no route's precedence key above matches, load no workflow file. Ask
179
178
  the user only when two or more routes match the same precedence tier; a single
180
179
  match or no match is resolved deterministically without asking.
181
180
 
182
181
  Deterministic routing precedence, first match wins:
183
182
 
184
183
  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`.
184
+ 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`.
185
+ 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`.
186
+ 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
187
  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.
188
+ 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
189
 
191
190
  Mobile is a context modifier, not a workflow. Route by primary intent first.
192
191
  Load `references/mobile-context.md` for non-debug mobile work, or
@@ -199,8 +198,8 @@ Read and apply the canonical Plan Challenge Policy from the installed
199
198
  `AGENTS.md` bootstrap block (single source: `skills/AGENTS.md`). Prompt-level
200
199
  user instructions override that policy for the current turn.
201
200
 
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
201
+ For a low-risk plan that receives the lite gate, attempt a
202
+ `judge` subagent in `plan-critique` mode (it writes nothing in that mode) with a bounded checklist packet instead of
204
203
  running the checklist in the main agent. The packet includes the proposed plan, scope,
205
204
  constraints, compact recalled facts/evidence, known risks, verification recipe,
206
205
  parent identifiers, and this output requirement:
@@ -214,19 +213,19 @@ Lite preserves progressive disclosure: do not load The Fool mode references
214
213
  unless the lite critique escalates to full.
215
214
 
216
215
  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
216
+ Fool stays for `spec-driven`, `design`, `create-adr`, `create-rfc`, `create-tdd`, explicit challenge
218
217
  requests, high-risk domains, or plans touching more than 5 files/classes/modules.
219
218
  When the policy selects the full gate, or lite escalates, load
220
219
  `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
220
+ selected The Fool references, and attempt a `judge` subagent in `plan-critique` mode with the selected mode passed as `fool_mode`
221
+ and a bounded critique packet. Subagents inherit
223
222
  `projectId`, parent `workflowSessionId`, workflow name, entity, and compact
224
223
  evidence; they do not receive full conversation context.
225
224
 
226
225
  If the policy file is unavailable, use the conservative fallback: run the full
227
226
  gate for high-risk domains, broad multi-module plans, explicit challenge
228
227
  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 —
228
+ or TDD. If the `judge` agent is unavailable for any reason —
230
229
  spawning forbidden, plugin not installed, unknown `subagent_type` — run a strict
231
230
  standalone fresh-eyes local critique against the same output contract and report
232
231
  the skipped delegation reason. Do not retry under a different agent name. Reuse
@@ -282,7 +281,7 @@ Load only when a selected workflow asks for them:
282
281
  - `references/agent-orchestration.md`
283
282
  - `references/subagent-design.md`
284
283
  - `references/code-reuse-scan.md`
285
- - `references/adr-authoring.md`
284
+ - `references/create-adr.md`
286
285
  - `references/audit-scope.md`
287
286
  - `references/audit-report-io.md`
288
287
  - `references/hook-enforcement.md`
@@ -311,12 +310,10 @@ Load only when a selected workflow asks for them:
311
310
  - `references/repo-rules-discovery.md`
312
311
  - `references/root-cause-scripts.md`
313
312
  - `references/conversation-feedback.md`
314
- - `references/maestro.md`
315
- - `references/maestro/`
316
313
  - `references/synapse-policy.md`
317
- - `references/tdd/`
318
- - `references/rfc/`
319
- - `references/ticket/`
314
+ - `references/create-tdd/`
315
+ - `references/create-rfc/`
316
+ - `references/create-ticket/`
320
317
  - `references/spec-driven/`
321
318
  - `references/furps/`
322
319
 
@@ -75,19 +75,19 @@ Keep local when any are true:
75
75
 
76
76
  ## Plan Challenge Exception
77
77
 
78
- Plan Challenge `plan-critic` is a standing policy exception to the normal dispatch triggers after a concrete plan exists. Always attempt a read-only `massa-ai-plan-critic` for both `depth: lite` and `depth: full` when subagent tooling is available and platform policy permits spawning. Normal base requirements still matter for packet quality: the critique must be bounded, read-only, and concrete, but it does not need to satisfy the ordinary dispatch triggers such as file count, module count, or explicit user delegation.
78
+ The Plan Challenge `judge` dispatch in `plan-critique` mode is a standing policy exception to the normal dispatch triggers after a concrete plan exists. Always attempt it for both `depth: lite` and `depth: full` when subagent tooling is available and platform policy permits spawning. Normal base requirements still matter for packet quality: the critique must be bounded, write nothing, and be concrete, but it does not need to satisfy the ordinary dispatch triggers such as file count, module count, or explicit user delegation.
79
79
 
80
80
  For all other roles, preserve the normal delegation gates above.
81
81
 
82
82
  ## Independent Verification Exception (fix workflows + Standard+ light-workflow tiers)
83
83
 
84
- The Independent Verification Mandate in `references/verification-ladder.md` is a second standing policy exception, parallel to the Plan Challenge one: when a `*-fix` workflow closes a finding, or a light workflow (`debug`, `feature`, `general`, `refactor`) completes Standard+ work, always attempt the `massa-ai-verification-agent` dispatch when subagent tooling is available and platform policy permits spawning — it does not need to satisfy the ordinary dispatch triggers (file count, module count, explicit user delegation). Base packet-quality requirements still apply, and the mandate's own tier gates, security-fix unconditional rule, and fresh-eyes fallback live in that ladder section, not here.
84
+ The Independent Verification Mandate in `references/verification-ladder.md` is a second standing policy exception, parallel to the Plan Challenge one: when a `*-fix` workflow closes a finding, or a light workflow (`debug`, `feature`, `refactor`) completes Standard+ work, always attempt the `code-reviewer` dispatch in `verify` mode when subagent tooling is available and platform policy permits spawning — it does not need to satisfy the ordinary dispatch triggers (file count, module count, explicit user delegation). Base packet-quality requirements still apply, and the mandate's own tier gates, security-fix unconditional rule, and fresh-eyes fallback live in that ladder section, not here.
85
85
 
86
86
  ## Screen Implementation Exception (any workflow that can produce a screen)
87
87
 
88
- A third standing policy exception, parallel to the two above: **when a task creates or modifies a user-facing screen, always attempt the `massa-ai-designer` dispatch** while subagent tooling is available and platform policy permits spawning. Once that condition holds the dispatch is not subject to the ordinary dispatch triggers — not file count, not module count, not explicit user delegation.
88
+ A third standing policy exception, parallel to the two above: **when a task creates or modifies a user-facing screen, always attempt the `designer` dispatch** while subagent tooling is available and platform policy permits spawning. Once that condition holds the dispatch is not subject to the ordinary dispatch triggers — not file count, not module count, not explicit user delegation.
89
89
 
90
- The condition is the whole gate. On a task with no screen surface the dispatch does not fire at all, which is why the seven dispatching workflows can carry it without firing it on every task. "Creates or modifies a user-facing screen" means a change to a screen, view, page, component, layout, style, theme, or design-token file, or any change whose acceptance criteria describe what a user sees.
90
+ The condition is the whole gate. On a task with no screen surface the dispatch does not fire at all, which is why the dispatching workflows can carry it without firing it on every task. The `design`, `mobile-figma-audit`, and `mobile-figma-fix` workflows dispatch it unconditionally, because every task there is screen work. "Creates or modifies a user-facing screen" means a change to a screen, view, page, component, layout, style, theme, or design-token file, or any change whose acceptance criteria describe what a user sees.
91
91
 
92
92
  Two shape rules follow from the roles involved:
93
93
 
@@ -98,16 +98,25 @@ Base packet-quality requirements still apply, and the no-agent fallback below ap
98
98
 
99
99
  ## Name Resolution
100
100
 
101
- Charters live at `skills/agents/<role>/SKILL.md`. Hosts register every charter
102
- under the prefixed name `massa-ai-<role>` (Claude, Codex, Cursor, OpenCode all
103
- use that prefix; `scripts/generate-subagent-artifacts.ts` emits it).
104
-
105
- - **Dispatch under the prefixed host name**, never the bare role name. A bare
106
- `subagent_type` does not resolve on any supported host.
107
- - The bare role name is the registry key: use it in memory tags, capability
108
- packets, and prose.
109
- - Every dispatch block in a workflow carries the prefixed name inline so
110
- dispatch never depends on this file being loaded.
101
+ Charters live at `skills/agents/<role>/SKILL.md`. Every host registers each
102
+ charter under its bare role name (`scripts/generate-subagent-artifacts.ts` emits
103
+ `<role>.md` / `<role>.toml` with `name: <role>`). Installers tell massa-ai's
104
+ agent files apart from a user's by the `massa-ai-owned` content marker, never
105
+ by name, and never overwrite a same-named agent the user owns.
106
+
107
+ - **Claude plugin route: dispatch `massa-ai:<role>`.** Plugin agents live in the
108
+ plugin namespace (the agent list shows them as `massa-ai:<role>`), so the
109
+ qualified name reaches massa-ai's agent even when the user or the project
110
+ defines an agent with the same bare name. The always-loaded router states this
111
+ rule, so dispatch never depends on this file being loaded.
112
+ - **Claude file route, Codex, Cursor, OpenCode: dispatch the bare `<role>`.**
113
+ These hosts have no agent namespace. Accepted risk: when an installer skipped
114
+ a same-named agent the user owns (it warns at install time), that user agent
115
+ receives the dispatch.
116
+ - Dispatch blocks and prose name the bare role; it is also the registry key in
117
+ memory tags and capability packets.
118
+ - The pre-rename `massa-ai-<role>` names are retired: installers prune them on
119
+ upgrade, and no workflow dispatches them.
111
120
 
112
121
  If the named agent is unavailable for any reason — not registered, plugin not
113
122
  installed, spawning forbidden by platform policy, or the host returns an unknown
@@ -118,10 +127,10 @@ delegation with its reason in the Evidence Gate.
118
127
  ## Model Diversity Fallback
119
128
 
120
129
  Applies to any charter whose dispatching workflow requests per-invocation model diversity
121
- at dispatch time (e.g. `judge` — 3 parallel slots; `meta-judge` — one slot).
130
+ at dispatch time (e.g. `judge` in `scorer` mode — 3 parallel slots; `judge` in `spec-author` mode — one slot).
122
131
 
123
- - Read-only agents (judge, meta-judge, audit-specialist, navigator, and others) carry no
124
- per-agent model override in the profile and resolve to the profile's per-tool default.
132
+ - Agents without a per-agent model override in the built-in profiles (`code-explorer`,
133
+ `code-reviewer`, `judge`, `product-manager`) resolve to the profile's per-tool default.
125
134
  By convention, the default is the profile's strongest model.
126
135
  - The dispatching workflow (e.g. `workflows/judge-with-debate.md`) is the single source
127
136
  for the current slot/model assignment, not the charter file.
@@ -138,7 +147,7 @@ Before adding a new reusable role, load `references/subagent-design.md` and writ
138
147
 
139
148
  **The roster lives in one place: the Agent Table of `skills/AGENTS.md`**, which names
140
149
  every shipped specialist with its purpose, trigger, permission, and charter path. Do not
141
- restate it here. A second roster in this file is what let `judge` and `meta-judge` go
150
+ restate it here. A second roster in this file is what once let the two debate-panel charters go
142
151
  undocumented for a whole release with every gate green — the guard checked that the
143
152
  charter paths *mentioned* here resolve, which a charter that is never mentioned cannot
144
153
  fail.
@@ -149,22 +158,22 @@ resolves to a current agent.
149
158
 
150
159
  | Legacy role | Current agent | Note |
151
160
  |---|---|---|
152
- | `implementer` | `massa-ai-builder` | renamed |
153
- | `verifier` | `massa-ai-verification-agent` | renamed; also centralizes the Verification Ladder |
154
- | `domain-mapper` | `massa-ai-architecture-specialist` | folded in; `lens: domain` |
155
- | `coupling-auditor` | `massa-ai-architecture-specialist` | folded in; `lens: coupling` |
156
- | `deepening-architect` | `massa-ai-architecture-specialist` | folded in; `lens: deepening` |
161
+ | `implementer` | `builder` | renamed |
162
+ | `verifier` | `code-reviewer` | folded in; `mode: verify`, which centralizes the Verification Ladder |
163
+ | `domain-mapper` | `code-reviewer` | folded in; `mode: audit`, `lens: architecture`, `sub-mode: domain` (packet field defined in the `code-reviewer` charter Inputs) |
164
+ | `coupling-auditor` | `code-reviewer` | folded in; `mode: audit`, `lens: architecture`, `sub-mode: coupling` |
165
+ | `deepening-architect` | `code-reviewer` | folded in; `mode: audit`, `lens: architecture`, `sub-mode: deepening` |
157
166
 
158
- `investigator`, `plan-critic` and `furps-analyst` kept their own names; every other
159
- specialist is new and never had a legacy one. Workflows dispatch the current
160
- `massa-ai-<role>` name through a named dispatch block — the legacy column is traceability
161
- only, never a dispatch target.
167
+ The charter names retired by the roster consolidation map to current agents in the
168
+ single old→new table of `skills/AGENTS.md`; this file does not repeat it. Workflows
169
+ dispatch the current `<role>` name through a named dispatch block — the legacy column
170
+ is traceability only, never a dispatch target.
162
171
 
163
172
  ## Capability Packet
164
173
 
165
- **This section is the sole canonical Capability Packet definition.** `references/subagent-design.md` mirrors this list and the root `skills/AGENTS.md` registry points here without restating it. Bespoke packets (judge panel, FURPS analyst, phase-batch worker) are declared specializations that map onto these fields in their own workflow files.
174
+ **This section is the sole canonical Capability Packet definition.** `references/subagent-design.md` mirrors this list and the root `skills/AGENTS.md` registry points here without restating it. Bespoke packets (judge panel, `product-manager` FURPS dispatch, phase-batch worker) are declared specializations that map onto these fields in their own workflow files.
166
175
 
167
- **A subagent inherits nothing from the parent session** — no skills, no personas, no loaded references, no conversation history. Everything the subagent needs is named explicitly in the packet, including the exact reference file paths it must read itself.
176
+ **A subagent inherits nothing from the parent session** — no skills, no loaded references, no conversation history. Everything the subagent needs is named explicitly in the packet, including the exact reference file paths it must read itself.
168
177
 
169
178
  When dispatching a subagent, send a compact capability packet rather than a loose instruction. Include:
170
179
 
@@ -178,11 +187,11 @@ When dispatching a subagent, send a compact capability packet rather than a loos
178
187
  - `output`: the exact output contract
179
188
  - `firewall`: raw logs, diffs, snapshots, reports, or research that must be summarized
180
189
  - `memory`: whether the subagent may suggest memories and who persists them
181
- - `persona`: optional. The active route's cataloged persona id in effect for the parent conversation, passed as advisory framing only — it never overrides the agent's charter Restrictions, scope, or permissions. Pass the id alone, never the persona prompt. Omit the field when no persona is routed.
182
190
  - `next_use`: what the main agent will do with the result
183
- - `lens`: conditional — `audit-specialist` dispatches only. One of `bugs | architecture | security | requirements | code-quality | performance`.
191
+ - `mode`: conditional — for a charter that declares modes (`code-explorer`, `code-reviewer`, `designer`, `judge`, `product-manager`, `test-engineer`), the `Mode:` section of the charter this dispatch runs.
192
+ - `lens`: conditional — `code-reviewer` `audit` dispatches only. One of `bugs | architecture | security | code-quality | performance`; the requirements lens is `product-manager` `audit` mode and the tests lens is `test-engineer` `audit` mode.
184
193
 
185
- The named dispatch block that workflows embed (the quoted block whose header carries the prefixed agent name and role) is the block projection of this packet: `role` and `purpose` live in the block's header line, and `next_use` defaults to "the main agent synthesizes and continues the workflow" when absent. The remaining eight fields — `trigger, scope, permissions, inputs, sensors, output, firewall, memory` — appear as the block's body lines, except where Role Defaults below already fix a field's value.
194
+ The named dispatch block that workflows embed (the quoted block whose header carries the agent name, role, and mode) is the block projection of this packet: `role`, `mode`, and `purpose` live in the block's header line, and `next_use` defaults to "the main agent synthesizes and continues the workflow" when absent. The remaining eight fields — `trigger, scope, permissions, inputs, sensors, output, firewall, memory` — appear as the block's body lines, except where Role Defaults below already fix a field's value.
186
195
 
187
196
  ### Role Defaults
188
197
 
@@ -196,24 +205,19 @@ Reading a workflow's dispatch block therefore means reading this section beside
196
205
  it. That is the trade: the block stops being self-contained in exchange for
197
206
  having exactly one place a shared value can be wrong.
198
207
 
199
- **Every role, every dispatch**
208
+ **`code-reviewer`** (every mode)
200
209
 
201
- - `persona` — as defined in the Capability Packet list above. It is never written
202
- in a dispatch block; it applies to all of them.
210
+ - `permissions`: read-only
203
211
 
204
- **`massa-ai-reviewer`**
212
+ **`code-reviewer`, `mode: review`**
205
213
 
206
214
  - `fallback`: if the subagent is unavailable, run a standalone fresh-eyes review against this output contract and record the skipped-delegation reason
207
215
 
208
- **`massa-ai-verification-agent`**
209
-
210
- - `permissions`: read-only
211
-
212
- **`massa-ai-designer`** — its dispatch is mandatory-on-condition, so its trigger is
216
+ **`designer`** — its dispatch is mandatory-on-condition, so its trigger is
213
217
  fixed here rather than per workflow; a block that reworded it would silently make
214
218
  the dispatch advisory in that one file.
215
219
 
216
- - `trigger`: the task creates or modifies a user-facing screen — mandatory once that condition holds, per the Screen Implementation Exception in `references/agent-orchestration.md`; it does not fire when no screen surface is touched
220
+ - `trigger`: the task creates or modifies a user-facing screen — mandatory once that condition holds, per the Screen Implementation Exception in `references/agent-orchestration.md`; it does not fire when no screen surface is touched, and the `design`, `mobile-figma-audit`, and `mobile-figma-fix` workflows dispatch it unconditionally
217
221
  - `sensors`: Figma MCP read when a design source exists; per-element expected-vs-actual comparison; the UI module's own build/lint; the states a design under-specifies — empty, loading, error, long text, small and large sizes
218
222
  - `inputs`: exact `projectId`, parent `workflowSessionId`, Figma links/node ids or screenshots when supplied, acceptance criteria, the repository's existing UI conventions and design tokens, recalled screen patterns
219
223
  - `firewall`: summarized design-source evidence and `path:line` pointers only, never raw Figma node dumps or full file bodies
@@ -283,16 +287,16 @@ Example:
283
287
 
284
288
  ### Model/Effort Announcement
285
289
 
286
- Every dispatch of any of the 18 massa-ai roster specialists names the agent, its model,
290
+ Every dispatch of any of the 7 massa-ai roster specialists names the agent, its model,
287
291
  and its effort in the `Agent Started` line above, inside that line's existing 1-2 line
288
292
  budget. No exemption: this covers the three standing dispatch exceptions
289
- (`plan-critic`, `verification-agent`, `designer`) and spec-driven batch workers exactly
293
+ (`judge` in `plan-critique` mode, `code-reviewer` in `verify` mode, `designer`) and spec-driven batch workers exactly
290
294
  like every other dispatch.
291
295
 
292
296
  - **Source**: the *installed* agent file for the active host — never
293
297
  `skills/model-profiles.json`. The installed file reports what the host will actually
294
298
  load, including any local profile-switch overlay the registry cannot see.
295
- - **Read once per session**, for all 18 agents, and cache the result — not once per
299
+ - **Read once per session**, for all 7 agents, and cache the result — not once per
296
300
  dispatch.
297
301
  - Absent `effort` in the installed file announces `effort: inherit`. Absent `model`, or
298
302
  `model: inherit`, announces `model: inherit`.
@@ -300,33 +304,33 @@ like every other dispatch.
300
304
  exact attempted path, and the dispatch proceeds — the read never blocks a dispatch.
301
305
 
302
306
  ```md
303
- 🤖 [Agent Started] Investigator — model opus, effort high. Scope: the four emitters.
307
+ 🤖 [Agent Started] Code-explorer — model opus, effort high. Scope: the four emitters.
304
308
  🤖 [Agent Started] Designer — model/effort unknown (no installed agent file at
305
- <liveRoot>/agents/massa-ai-designer.md). Dispatching anyway.
309
+ <liveRoot>/agents/designer.md). Dispatching anyway.
306
310
  ```
307
311
 
308
312
  That second line is a measured case, not a hypothetical: on a machine with plugin
309
- bundle `1.48.0` installed, `massa-ai-designer.md` is absent because `designer` shipped
313
+ bundle `1.48.0` installed, `designer.md` is absent because `designer` shipped
310
314
  in `1.50.0` — a live instance of the degraded path above.
311
315
 
312
316
  Per-host installed-agent path, matching `resolveHostLayout` in
313
317
  `packages/shared/src/profile-switch/hosts.ts` — a sensor executes that resolver against
314
318
  this table so the two cannot drift silently:
315
319
 
316
- | Host | Installed agents directory | Glob | Model / effort keys |
320
+ | Host | Installed agents directory | Owned files | Model / effort keys |
317
321
  | --- | --- | --- | --- |
318
- | Claude — marketplace route | `<marketplaceRoot>/agents`, where `<marketplaceRoot>` is `resolveClaudeMarketplaceInstall`'s live root: for a **directory-source** marketplace the host loads the plugin LIVE from the source bundle — e.g. `<repo>/apps/claude-plugin/agents`; for any other kind it is the *versioned* cache snapshot, e.g. `~/.claude/plugins/cache/massa-ai/massa-ai/1.48.0/agents` (a stale-able snapshot — never hardcode it; read `profile_list`'s `liveRoot`) | `massa-ai-*.md` | `model:` / `effort:` |
319
- | Claude — file route | `~/.claude/agents` | `massa-ai-*.md` | `model:` / `effort:` |
320
- | Codex | `~/.codex/agents` | `massa-ai-*.toml` | `model` / `model_reasoning_effort` |
321
- | OpenCode | `~/.config/opencode/agents` | `massa-ai-*.md` | `model:` / `reasoningEffort:` |
322
+ | Claude — marketplace route | `<marketplaceRoot>/agents`, where `<marketplaceRoot>` is `resolveClaudeMarketplaceInstall`'s live root: for a **directory-source** marketplace the host loads the plugin LIVE from the source bundle — e.g. `<repo>/apps/claude-plugin/agents`; for any other kind it is the *versioned* cache snapshot, e.g. `~/.claude/plugins/cache/massa-ai/massa-ai/1.48.0/agents` (a stale-able snapshot — never hardcode it; read `profile_list`'s `liveRoot`) | `*.md` whose first body line is `<!-- massa-ai-owned: true -->` | `model:` / `effort:` |
323
+ | Claude — file route | `~/.claude/agents` | `*.md` whose first body line is `<!-- massa-ai-owned: true -->` | `model:` / `effort:` |
324
+ | Codex | `~/.codex/agents` | `*.toml` whose first line is `# massa-ai-owned` | `model` / `model_reasoning_effort` |
325
+ | OpenCode | `~/.config/opencode/agents` | `*.md` symlinks into the massa-ai bundle | `model:` / `reasoningEffort:` |
322
326
  | Cursor | no lookup — `resolveHostLayout` returns route `skip` | — | announce `model: inherit, effort: inherit` for every agent; Cursor publishes no resolvable model IDs |
323
327
 
324
328
  Claude's active route (`marketplace` vs `file`) comes from `install-state.json`'s
325
329
  per-platform `installRoute` field, never guessed from directory presence.
326
330
 
327
- ## Plan-Critic Contract
331
+ ## Plan-Critique Contract
328
332
 
329
- Dispatch `massa-ai-plan-critic` only after a concrete plan exists. Dispatch it with the capability packet above and the standard output contract. The subagent receives the plan, scope, constraints, compact recalled facts/evidence, selected depth, selected The Fool mode only for full gates, known risks, verification recipe, parent identifiers, and context-firewall limits. It never receives full conversation context.
333
+ Dispatch `judge` with `mode: plan-critique` only after a concrete plan exists. Dispatch it with the capability packet above and the standard output contract. The subagent receives the plan, scope, constraints, compact recalled facts/evidence, selected depth, `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`) only for full gates, known risks, verification recipe, parent identifiers, and context-firewall limits. It never receives full conversation context.
330
334
 
331
335
  For `depth: lite`, the packet uses the low-risk checklist and does not include The Fool mode references. It returns:
332
336
 
@@ -337,9 +341,9 @@ For `depth: lite`, the packet uses the low-risk checklist and does not include T
337
341
  - `escalate_to_full: true|false`
338
342
  - escalation reason
339
343
 
340
- For `depth: full`, or after lite escalation, the main agent selects the mode, loads the relevant The Fool references, and dispatches a full packet. It returns:
344
+ For `depth: full`, or after lite escalation, the main agent selects the The Fool mode, loads the relevant The Fool references, and dispatches a full packet carrying it as `fool_mode`. It returns:
341
345
 
342
- - selected mode
346
+ - selected `fool_mode`
343
347
  - steelmanned thesis
344
348
  - 3-5 strongest challenges
345
349
  - severity: `critical`, `high`, `medium`, or `low`
@@ -357,7 +361,7 @@ whose single source is `skills/AGENTS.md` in the product repo.
357
361
 
358
362
  - Main agent persists durable conclusions after synthesis.
359
363
  - Subagents may suggest memory content but should not create broad project memories unless explicitly assigned.
360
- - Use tags such as `agent:verifier` or `agent:domain-mapper` only when they improve retrieval.
364
+ - Use tags such as `agent:code-reviewer` or `agent:code-explorer` only when they improve retrieval.
361
365
  - Do not persist one-off subagent chatter.
362
366
 
363
367
  ## Synapse Isolation