@massa-ai/cursor-plugin 1.60.1 → 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 (277) 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 -5
  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 -18
  52. package/skills/agents/judge/SKILL.md +101 -51
  53. package/skills/agents/product-manager/SKILL.md +110 -0
  54. package/skills/agents/test-engineer/SKILL.md +57 -23
  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 +69 -66
  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 +5 -5
  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/synapse-policy.md +2 -2
  84. package/skills/massa-ai/references/verification-ladder.md +2 -2
  85. package/skills/massa-ai/scripts/validate_audit_report.ts +3 -8
  86. package/skills/massa-ai/workflows/architecture/architecture-audit.md +4 -5
  87. package/skills/massa-ai/workflows/architecture/architecture-fix.md +5 -6
  88. package/skills/massa-ai/workflows/bugs/bugs-audit.md +2 -3
  89. package/skills/massa-ai/workflows/bugs/bugs-fix.md +4 -5
  90. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +2 -3
  91. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +4 -5
  92. package/skills/massa-ai/workflows/commit.md +3 -3
  93. package/skills/massa-ai/workflows/{adr.md → create-adr.md} +10 -10
  94. package/skills/massa-ai/workflows/{to-prd.md → create-prd.md} +4 -4
  95. package/skills/massa-ai/workflows/{rfc.md → create-rfc.md} +6 -6
  96. package/skills/massa-ai/workflows/{tdd.md → create-tdd.md} +11 -11
  97. package/skills/massa-ai/workflows/{ticket.md → create-ticket.md} +5 -5
  98. package/skills/massa-ai/workflows/debug.md +4 -5
  99. package/skills/massa-ai/workflows/design.md +2 -2
  100. package/skills/massa-ai/workflows/exploration.md +2 -2
  101. package/skills/massa-ai/workflows/feature.md +5 -6
  102. package/skills/massa-ai/workflows/implementation/implementation-audit.md +22 -3
  103. package/skills/massa-ai/workflows/implementation/implementation-fix.md +6 -7
  104. package/skills/massa-ai/workflows/judge-with-debate.md +14 -14
  105. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +2 -2
  106. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +10 -11
  107. package/skills/massa-ai/workflows/pr-review.md +31 -13
  108. package/skills/massa-ai/workflows/{discovery.md → product-discovery.md} +12 -12
  109. package/skills/massa-ai/workflows/refactor.md +4 -5
  110. package/skills/massa-ai/workflows/refinement/furps-refinement.md +7 -7
  111. package/skills/massa-ai/workflows/requirements/requirements-audit.md +2 -2
  112. package/skills/massa-ai/workflows/requirements/requirements-fix.md +5 -6
  113. package/skills/massa-ai/workflows/security/security-audit.md +2 -3
  114. package/skills/massa-ai/workflows/security/security-fix.md +3 -4
  115. package/skills/massa-ai/workflows/spec-driven.md +9 -10
  116. package/skills/massa-ai/workflows/tests/tests-audit.md +2 -2
  117. package/skills/massa-ai/workflows/tests/tests-fix.md +16 -6
  118. package/skills/massa-ai/workflows/the-fool.md +7 -7
  119. package/skills/{discovery → product-discovery}/SKILL.md +3 -3
  120. package/agent-profiles/balanced/massa-ai-architecture-specialist.md +0 -62
  121. package/agent-profiles/balanced/massa-ai-audit-specialist.md +0 -79
  122. package/agent-profiles/balanced/massa-ai-context-curator.md +0 -64
  123. package/agent-profiles/balanced/massa-ai-designer.md +0 -66
  124. package/agent-profiles/balanced/massa-ai-documentation-agent.md +0 -61
  125. package/agent-profiles/balanced/massa-ai-furps-analyst.md +0 -68
  126. package/agent-profiles/balanced/massa-ai-investigator.md +0 -65
  127. package/agent-profiles/balanced/massa-ai-judge.md +0 -95
  128. package/agent-profiles/balanced/massa-ai-meta-judge.md +0 -83
  129. package/agent-profiles/balanced/massa-ai-mobile-specialist.md +0 -79
  130. package/agent-profiles/balanced/massa-ai-navigator.md +0 -72
  131. package/agent-profiles/balanced/massa-ai-plan-critic.md +0 -87
  132. package/agent-profiles/balanced/massa-ai-planner.md +0 -62
  133. package/agent-profiles/balanced/massa-ai-requirements-analyst.md +0 -61
  134. package/agent-profiles/balanced/massa-ai-reviewer.md +0 -63
  135. package/agent-profiles/balanced/massa-ai-test-engineer.md +0 -63
  136. package/agent-profiles/balanced/massa-ai-verification-agent.md +0 -62
  137. package/agent-profiles/cheap/massa-ai-architecture-specialist.md +0 -62
  138. package/agent-profiles/cheap/massa-ai-audit-specialist.md +0 -79
  139. package/agent-profiles/cheap/massa-ai-context-curator.md +0 -64
  140. package/agent-profiles/cheap/massa-ai-designer.md +0 -66
  141. package/agent-profiles/cheap/massa-ai-documentation-agent.md +0 -61
  142. package/agent-profiles/cheap/massa-ai-furps-analyst.md +0 -68
  143. package/agent-profiles/cheap/massa-ai-investigator.md +0 -65
  144. package/agent-profiles/cheap/massa-ai-judge.md +0 -95
  145. package/agent-profiles/cheap/massa-ai-meta-judge.md +0 -83
  146. package/agent-profiles/cheap/massa-ai-mobile-specialist.md +0 -79
  147. package/agent-profiles/cheap/massa-ai-navigator.md +0 -72
  148. package/agent-profiles/cheap/massa-ai-plan-critic.md +0 -87
  149. package/agent-profiles/cheap/massa-ai-planner.md +0 -62
  150. package/agent-profiles/cheap/massa-ai-requirements-analyst.md +0 -61
  151. package/agent-profiles/cheap/massa-ai-reviewer.md +0 -63
  152. package/agent-profiles/cheap/massa-ai-test-engineer.md +0 -63
  153. package/agent-profiles/cheap/massa-ai-verification-agent.md +0 -62
  154. package/agent-profiles/heavy/massa-ai-architecture-specialist.md +0 -62
  155. package/agent-profiles/heavy/massa-ai-audit-specialist.md +0 -79
  156. package/agent-profiles/heavy/massa-ai-context-curator.md +0 -64
  157. package/agent-profiles/heavy/massa-ai-designer.md +0 -66
  158. package/agent-profiles/heavy/massa-ai-documentation-agent.md +0 -61
  159. package/agent-profiles/heavy/massa-ai-furps-analyst.md +0 -68
  160. package/agent-profiles/heavy/massa-ai-investigator.md +0 -65
  161. package/agent-profiles/heavy/massa-ai-judge.md +0 -95
  162. package/agent-profiles/heavy/massa-ai-meta-judge.md +0 -83
  163. package/agent-profiles/heavy/massa-ai-mobile-specialist.md +0 -79
  164. package/agent-profiles/heavy/massa-ai-navigator.md +0 -72
  165. package/agent-profiles/heavy/massa-ai-plan-critic.md +0 -87
  166. package/agent-profiles/heavy/massa-ai-planner.md +0 -62
  167. package/agent-profiles/heavy/massa-ai-requirements-analyst.md +0 -61
  168. package/agent-profiles/heavy/massa-ai-reviewer.md +0 -63
  169. package/agent-profiles/heavy/massa-ai-test-engineer.md +0 -63
  170. package/agent-profiles/heavy/massa-ai-verification-agent.md +0 -62
  171. package/agent-profiles/home/massa-ai-architecture-specialist.md +0 -62
  172. package/agent-profiles/home/massa-ai-audit-specialist.md +0 -79
  173. package/agent-profiles/home/massa-ai-context-curator.md +0 -64
  174. package/agent-profiles/home/massa-ai-designer.md +0 -66
  175. package/agent-profiles/home/massa-ai-documentation-agent.md +0 -61
  176. package/agent-profiles/home/massa-ai-furps-analyst.md +0 -68
  177. package/agent-profiles/home/massa-ai-investigator.md +0 -65
  178. package/agent-profiles/home/massa-ai-judge.md +0 -95
  179. package/agent-profiles/home/massa-ai-meta-judge.md +0 -83
  180. package/agent-profiles/home/massa-ai-mobile-specialist.md +0 -79
  181. package/agent-profiles/home/massa-ai-navigator.md +0 -72
  182. package/agent-profiles/home/massa-ai-plan-critic.md +0 -87
  183. package/agent-profiles/home/massa-ai-planner.md +0 -62
  184. package/agent-profiles/home/massa-ai-requirements-analyst.md +0 -61
  185. package/agent-profiles/home/massa-ai-reviewer.md +0 -63
  186. package/agent-profiles/home/massa-ai-test-engineer.md +0 -63
  187. package/agent-profiles/home/massa-ai-verification-agent.md +0 -62
  188. package/agent-profiles/work/massa-ai-architecture-specialist.md +0 -62
  189. package/agent-profiles/work/massa-ai-audit-specialist.md +0 -79
  190. package/agent-profiles/work/massa-ai-builder.md +0 -63
  191. package/agent-profiles/work/massa-ai-context-curator.md +0 -64
  192. package/agent-profiles/work/massa-ai-designer.md +0 -66
  193. package/agent-profiles/work/massa-ai-documentation-agent.md +0 -61
  194. package/agent-profiles/work/massa-ai-furps-analyst.md +0 -68
  195. package/agent-profiles/work/massa-ai-investigator.md +0 -65
  196. package/agent-profiles/work/massa-ai-judge.md +0 -95
  197. package/agent-profiles/work/massa-ai-meta-judge.md +0 -83
  198. package/agent-profiles/work/massa-ai-mobile-specialist.md +0 -79
  199. package/agent-profiles/work/massa-ai-navigator.md +0 -72
  200. package/agent-profiles/work/massa-ai-plan-critic.md +0 -87
  201. package/agent-profiles/work/massa-ai-planner.md +0 -62
  202. package/agent-profiles/work/massa-ai-requirements-analyst.md +0 -61
  203. package/agent-profiles/work/massa-ai-reviewer.md +0 -63
  204. package/agent-profiles/work/massa-ai-test-engineer.md +0 -63
  205. package/agent-profiles/work/massa-ai-verification-agent.md +0 -62
  206. package/agents/massa-ai-architecture-specialist.md +0 -62
  207. package/agents/massa-ai-audit-specialist.md +0 -79
  208. package/agents/massa-ai-builder.md +0 -63
  209. package/agents/massa-ai-context-curator.md +0 -64
  210. package/agents/massa-ai-designer.md +0 -66
  211. package/agents/massa-ai-documentation-agent.md +0 -61
  212. package/agents/massa-ai-furps-analyst.md +0 -68
  213. package/agents/massa-ai-investigator.md +0 -65
  214. package/agents/massa-ai-judge.md +0 -95
  215. package/agents/massa-ai-meta-judge.md +0 -83
  216. package/agents/massa-ai-mobile-specialist.md +0 -79
  217. package/agents/massa-ai-navigator.md +0 -72
  218. package/agents/massa-ai-plan-critic.md +0 -87
  219. package/agents/massa-ai-planner.md +0 -62
  220. package/agents/massa-ai-requirements-analyst.md +0 -61
  221. package/agents/massa-ai-reviewer.md +0 -63
  222. package/agents/massa-ai-test-engineer.md +0 -63
  223. package/agents/massa-ai-verification-agent.md +0 -62
  224. package/skills/agents/architecture-specialist/SKILL.md +0 -67
  225. package/skills/agents/audit-specialist/SKILL.md +0 -84
  226. package/skills/agents/context-curator/SKILL.md +0 -69
  227. package/skills/agents/documentation-agent/SKILL.md +0 -67
  228. package/skills/agents/furps-analyst/SKILL.md +0 -72
  229. package/skills/agents/investigator/SKILL.md +0 -70
  230. package/skills/agents/meta-judge/SKILL.md +0 -87
  231. package/skills/agents/mobile-specialist/SKILL.md +0 -84
  232. package/skills/agents/navigator/SKILL.md +0 -77
  233. package/skills/agents/plan-critic/SKILL.md +0 -91
  234. package/skills/agents/planner/SKILL.md +0 -67
  235. package/skills/agents/requirements-analyst/SKILL.md +0 -66
  236. package/skills/agents/reviewer/SKILL.md +0 -68
  237. package/skills/agents/verification-agent/SKILL.md +0 -67
  238. package/skills/general/SKILL.md +0 -14
  239. package/skills/maestro/SKILL.md +0 -14
  240. package/skills/maestro-audit/SKILL.md +0 -14
  241. package/skills/maestro-fix/SKILL.md +0 -14
  242. package/skills/massa-ai/personas/README.md +0 -35
  243. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +0 -47
  244. package/skills/massa-ai/personas/catalog.json +0 -7
  245. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +0 -47
  246. package/skills/massa-ai/personas/product-manager.md +0 -65
  247. package/skills/massa-ai/personas/senior-mobile-engineer.md +0 -46
  248. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +0 -51
  249. package/skills/massa-ai/personas/signals/ai-native-nodejs-cli-architect.json +0 -20
  250. package/skills/massa-ai/personas/signals/context-skill-harness-engineer-architect.json +0 -20
  251. package/skills/massa-ai/personas/signals/product-manager.json +0 -21
  252. package/skills/massa-ai/personas/signals/senior-mobile-engineer.json +0 -18
  253. package/skills/massa-ai/personas/signals/senior-mobile-qa-automation-engineer.json +0 -18
  254. package/skills/massa-ai/references/maestro/artifacts-reports.md +0 -69
  255. package/skills/massa-ai/references/maestro/cli-device.md +0 -65
  256. package/skills/massa-ai/references/maestro/cloud.md +0 -69
  257. package/skills/massa-ai/references/maestro/config-env-output.md +0 -76
  258. package/skills/massa-ai/references/maestro/fact-ledger.md +0 -73
  259. package/skills/massa-ai/references/maestro/js-scripting.md +0 -70
  260. package/skills/massa-ai/references/maestro/mcp.md +0 -59
  261. package/skills/massa-ai/references/maestro/patterns.md +0 -102
  262. package/skills/massa-ai/references/maestro/selectors.md +0 -91
  263. package/skills/massa-ai/references/maestro/workspace-execution.md +0 -81
  264. package/skills/massa-ai/references/maestro/yaml-commands.md +0 -203
  265. package/skills/massa-ai/references/maestro.md +0 -31
  266. package/skills/massa-ai/workflows/general.md +0 -88
  267. package/skills/massa-ai/workflows/maestro/maestro-audit.md +0 -64
  268. package/skills/massa-ai/workflows/maestro/maestro-fix.md +0 -111
  269. package/skills/massa-ai/workflows/maestro/maestro.md +0 -80
  270. package/skills/persona-router/SKILL.md +0 -52
  271. package/skills/persona-router/references/routing-details.md +0 -98
  272. /package/skills/massa-ai/references/{rfc → create-rfc}/ATTRIBUTION.md +0 -0
  273. /package/skills/massa-ai/references/{rfc → create-rfc}/document-contract.md +0 -0
  274. /package/skills/massa-ai/references/{rfc → create-rfc}/quality-and-lifecycle.md +0 -0
  275. /package/skills/massa-ai/references/{tdd → create-tdd}/document-contract.md +0 -0
  276. /package/skills/massa-ai/references/{ticket → create-ticket}/atlassian-fix.md +0 -0
  277. /package/skills/massa-ai/references/{ticket → create-ticket}/templates-and-quality.md +0 -0
@@ -68,7 +68,7 @@ Not for findings-only security review — route to `workflows/security/security-
68
68
  - Do not weaken existing security assertions to make tests pass.
69
69
  10. Use agent orchestration only when it improves signal — except the verifier dispatch below, which is unconditional for every SEC finding closed `fixed`, carved out under `references/agent-orchestration.md`'s Independent Verification Exception as the security-fix unconditional case (other fix families use the tier-gated one). Dispatch per `references/agent-orchestration.md`:
70
70
 
71
- > **Dispatch: `massa-ai-builder`** (role: `builder`) — charter `skills/agents/builder/SKILL.md`
71
+ > **Dispatch: `builder`** (role: `builder`) — charter `skills/agents/builder/SKILL.md`
72
72
  > - trigger: large/high-risk finding, disjoint implementation slice, or explicit subagent request
73
73
  > - scope: one isolated security finding with a disjoint write set
74
74
  > - permissions: write (disjoint write set)
@@ -78,17 +78,16 @@ Not for findings-only security review — route to `workflows/security/security-
78
78
  > - firewall: raw diffs/logs summarized
79
79
  > - memory: suggest-only; main agent persists reusable security patterns
80
80
 
81
- > **Dispatch: `massa-ai-reviewer`** (role: `reviewer`) — charter `skills/agents/reviewer/SKILL.md`
81
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `review`) — charter `skills/agents/code-reviewer/SKILL.md`
82
82
  > - trigger: implementation complete, before the verification gate — never optional
83
83
  > - scope: the fix's diff surface and its task/AC context
84
- > - permissions: read-only
85
84
  > - inputs: diff, acceptance context, recalled code-quality conventions
86
85
  > - sensors: bugs, regressions, missing edge cases, smells introduced by the diff
87
86
  > - output: ranked findings, blocking vs advisory; blocking findings become fix items before verification runs
88
87
  > - firewall: summarized findings only, never raw diff dumps
89
88
  > - memory: suggest-only; main agent persists
90
89
 
91
- > **Dispatch: `massa-ai-verification-agent`** (role: `verification-agent`) — charter `skills/agents/verification-agent/SKILL.md`
90
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `verify`) — charter `skills/agents/code-reviewer/SKILL.md`
92
91
  > - trigger: every SEC finding closed `fixed` — never optional, at every tier (verification-ladder Independent Verification Mandate, security-fix exception)
93
92
  > - scope: the fixed SEC finding's guard, exploit path, negative test, and report claim closure
94
93
  > - inputs: the SEC finding, the applied guard, the verification suggestion, the exploit path, and validation assets
@@ -8,7 +8,7 @@ metadata:
8
8
 
9
9
  ### Spec-Driven
10
10
 
11
- Use for explicit spec-driven requests and broad, ambiguous, migration-heavy, cross-boundary, public-contract, or long-running delivery that needs requirements-through-verification control. Ordinary localized fixes and clear small features stay in `debug`, `feature`, `refactor`, or `general` unless the user explicitly requests this workflow.
11
+ Use for explicit spec-driven requests and broad, ambiguous, migration-heavy, cross-boundary, public-contract, or long-running delivery that needs requirements-through-verification control. Ordinary localized fixes and clear small features stay in `debug`, `feature`, or `refactor` unless the user explicitly requests this workflow.
12
12
 
13
13
  Load `references/project-context.md` (intake sweep) before the first substantive read.
14
14
 
@@ -36,7 +36,7 @@ Holds for every task, even if reference files are not opened:
36
36
  1. Tests derive from the spec's acceptance criteria and assert spec-defined outcomes — they never mirror the implementation.
37
37
  2. The gate must pass (tests pass) before a task is done — the test runner decides, not self-assessment.
38
38
  3. One atomic commit per task. Never batch tasks; never weaken, skip, or delete tests to make them pass.
39
- 4. After the last task, a fresh verification-agent always runs automatically (author ≠ verifier) — spec-anchored outcome check plus discrimination sensor. Never optional, never prompted.
39
+ 4. After the last task, a fresh `code-reviewer` verifier (`verify` mode) always runs automatically (author ≠ verifier) — spec-anchored outcome check plus discrimination sensor. Never optional, never prompted.
40
40
  5. **Blast radius (approval ≠ remote authority):** Approving Execute for this feature authorizes local implementation and local commits, and covers one delivery through PR creation — branch push and `gh pr create` — under one explicit go-ahead given at Execute start. Force-push, deploy, production database changes, merges, and any other remote/externally-visible/destructive operation always require a separate explicit go-ahead, even after that authorization.
41
41
 
42
42
  ## Auto-Sizing
@@ -114,26 +114,25 @@ Quick artifacts live under `.specs/quick/NNN-slug/` with a `TASK.md` (one-line i
114
114
  - Use per-task commits when the environment and user permissions allow commits; otherwise record the skipped reason.
115
115
  - Keep validation assets protected.
116
116
  - Update logical feature artifacts in `.specs/features/<slug>/` and `.specs/project/STATE.md` after meaningful progress.
117
- - Finish Execute by running `references/spec-driven/validate.md`. Dispatch `verification-agent` (author ≠ verifier) per `references/agent-orchestration.md`; the verification-agent always runs automatically and writes `.specs/features/<slug>/validation.md`. Without subagents, run the standalone fresh-eyes fallback in `validate.md`.
117
+ - Finish Execute by running `references/spec-driven/validate.md`. Dispatch `code-reviewer` in `verify` mode (author ≠ verifier) per `references/agent-orchestration.md`; the `code-reviewer` verifier always runs automatically and writes `.specs/features/<slug>/validation.md`. Without subagents, run the standalone fresh-eyes fallback in `validate.md`.
118
118
 
119
- **Screen work — before writing or judging any user-facing screen:** when this task creates or modifies a screen, the `massa-ai-designer` dispatch below is mandatory rather than discretionary, carved out of ordinary delegation gating by the Screen Implementation Exception in `references/agent-orchestration.md`. It does not fire when the task touches no screen surface.
119
+ **Screen work — before writing or judging any user-facing screen:** when this task creates or modifies a screen, the `designer` dispatch below is mandatory rather than discretionary, carved out of ordinary delegation gating by the Screen Implementation Exception in `references/agent-orchestration.md`. It does not fire when the task touches no screen surface.
120
120
 
121
- > **Dispatch: `massa-ai-designer`** (role: `designer`) — charter `skills/agents/designer/SKILL.md`
121
+ > **Dispatch: `designer`** (role: `designer`, mode: `implement`) — charter `skills/agents/designer/SKILL.md`
122
122
  > - scope: the screens, views, components, layouts, styles, and design tokens in this task's UI surface — never the whole repository
123
123
  > - permissions: write, scoped to UI-layer files only with a disjoint write set
124
124
  > - output: per-element conformance table (element, expected, actual, verdict, severity) plus the UI files written; a missing or unreachable design source is listed as a skipped sensor, never a silent pass
125
125
 
126
- > **Dispatch: `massa-ai-reviewer`** (role: `reviewer`) — charter `skills/agents/reviewer/SKILL.md`
126
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `review`) — charter `skills/agents/code-reviewer/SKILL.md`
127
127
  > - trigger: implementation complete, before the verification gate — never optional
128
128
  > - scope: the task's diff surface and its task/AC context
129
- > - permissions: read-only
130
129
  > - inputs: diff, acceptance context, recalled code-quality conventions
131
130
  > - sensors: bugs, regressions, missing edge cases, smells introduced by the diff
132
131
  > - output: ranked findings, blocking vs advisory; blocking findings become fix items before verification runs
133
132
  > - firewall: summarized findings only, never raw diff dumps
134
133
  > - memory: suggest-only; main agent persists
135
134
 
136
- > **Dispatch: `massa-ai-verification-agent`** (role: `verification-agent`) — charter `skills/agents/verification-agent/SKILL.md`
135
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `verify`) — charter `skills/agents/code-reviewer/SKILL.md`
137
136
  > - trigger: spec-driven Execute final gate; author ≠ verifier independence required
138
137
  > - scope: the feature's git diff surface, test files, and spec ACs
139
138
  > - inputs: `spec.md` (ACs = source of truth), `references/spec-driven/validate.md` as operating checklist, commit range, test files in scope
@@ -142,7 +141,7 @@ Quick artifacts live under `.specs/quick/NNN-slug/` with a `TASK.md` (one-line i
142
141
  > - firewall: raw diffs/logs/test output summarized; mutations run in scratch state only
143
142
  > - memory: suggest-only; main agent persists validation outcomes
144
143
 
145
- - The verification-agent re-derives coverage independently using evidence-or-zero and does not inherit the author's mental model.
144
+ - The `code-reviewer` verifier re-derives coverage independently using evidence-or-zero and does not inherit the author's mental model.
146
145
  - The fix → re-verify loop is bounded by the Bounded Fix→Re-verify Loop rule in `references/verification-ladder.md` (cap reached → `Blocked`).
147
146
  - Distill lesson signals through `references/lessons.md` when validation produces grounded reusable failures.
148
147
  7. Before the delivery chain's Propose stage (PR creation), write and commit `.specs/project/STATE.md`, `.specs/HANDOFF.md`, and `.specs/project/FEATURES.json` on the branch — not merely "after meaningful progress" during Execute, but committed before `gh pr create`. **Deterministic backing (run it, do not eyeball it):** `bun skills/massa-ai/scripts/check_specs_delivered.ts <feature> [--root .]` — a non-zero exit blocks Propose (see `references/implementation-delivery.md` stage 3.5 and GATE-02). If no code-execution tool is available, run the same checks by reading the artifact (graceful degradation preserved). Record decisions, blockers, handoff, and completion evidence per `references/spec-driven/memory.md`'s write triggers.
@@ -169,7 +168,7 @@ Quick artifacts live under `.specs/quick/NNN-slug/` with a `TASK.md` (one-line i
169
168
  - Requirement cannot close: keep Specify open and ask the user, or record an explicit accepted assumption before execution.
170
169
  - Design or Tasks was skipped incorrectly: stop, create the missing artifact, and resume from the updated contract.
171
170
  - Validation command unavailable: record the missing command/tool in `validation.md` and mark `Blocked`.
172
- - Discrimination sensor cannot be made safely reversible: mark `Blocked` unless the verification-agent can prove equivalent discrimination with an existing deterministic mutation fixture.
171
+ - Discrimination sensor cannot be made safely reversible: mark `Blocked` unless the `code-reviewer` verifier can prove equivalent discrimination with an existing deterministic mutation fixture.
173
172
  - Validation conflict: stop for user resolution when a validation asset conflicts with an approved specification.
174
173
  - Fix loop reaches the `references/verification-ladder.md` cap: stop with `Blocked`, preserve evidence, and ask for direction.
175
174
 
@@ -41,9 +41,9 @@ Five gates, five distinct error classes. A green gate elsewhere never substitute
41
41
  - Apply the Memory Freshness Gate from `references/audit-scope.md`; recalled exceptions are leads, not proof.
42
42
  4. Establish the investigation scope: select the scope type and build the shared scope packet per `references/audit-scope.md`, which owns the supported scope types, the ask-when-vague rule, and the packet fields. Carry the packet into the report.
43
43
  5. Resolve the selected branch's mechanics (modified files, commit range, codebase area, explicit-files/branch/symbol/feature/whole-repo, or implementation parent scope) per `references/audit-scope.md` (Lens Audit Scope Resolution Procedure, Tests row of Per-Lens Scope Deltas).
44
- 6. Investigation pass. Dispatch `audit-specialist` per `references/agent-orchestration.md` when the scope justifies an isolated read-only subagent:
44
+ 6. Investigation pass. Dispatch `test-engineer` (`audit` mode) per `references/agent-orchestration.md` when the scope justifies an isolated read-only subagent:
45
45
 
46
- > **Dispatch: `massa-ai-audit-specialist`** (role: `audit-specialist`) — charter `skills/agents/audit-specialist/SKILL.md`
46
+ > **Dispatch: `test-engineer`** (role: `test-engineer`, mode: `audit`) — charter `skills/agents/test-engineer/SKILL.md`
47
47
  > - trigger: large scope, explicit parallel/subagent request, PR subagent invocation, or independent verification of high-impact finding
48
48
  > - scope: the tests audit target — test files, fixtures, harnesses, coverage
49
49
  > - permissions: read-only
@@ -68,17 +68,16 @@ Not for findings-only test coverage, assertion quality, fixture health, flakines
68
68
  - Do not delete coverage, snapshots, fixtures, or benchmarks unless the audit report explicitly calls them obsolete and behavior remains protected elsewhere.
69
69
  - Prefer production-code changes only when required to expose a deterministic seam or fix a real bug found while writing the audited test.
70
70
 
71
- > **Dispatch: `massa-ai-reviewer`** (role: `reviewer`) — charter `skills/agents/reviewer/SKILL.md`
71
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `review`) — charter `skills/agents/code-reviewer/SKILL.md`
72
72
  > - trigger: implementation complete, before the verification gate — never optional
73
73
  > - scope: the fix's diff surface and its task/AC context
74
- > - permissions: read-only
75
74
  > - inputs: diff, acceptance context, recalled code-quality conventions
76
75
  > - sensors: bugs, regressions, missing edge cases, smells introduced by the diff
77
76
  > - output: ranked findings, blocking vs advisory; blocking findings become fix items before verification runs
78
77
  > - firewall: summarized findings only, never raw diff dumps
79
78
  > - memory: suggest-only; main agent persists
80
79
 
81
- > **Dispatch: `massa-ai-verification-agent`** (role: `verification-agent`) — charter `skills/agents/verification-agent/SKILL.md`
80
+ > **Dispatch: `code-reviewer`** (role: `code-reviewer`, mode: `verify`) — charter `skills/agents/code-reviewer/SKILL.md`
82
81
  > - trigger: mandatory per the verification-ladder's Independent Verification Mandate for any TST finding closed at Standard+/Spec-driven size or high/critical severity; at Quick size the subagent hop is skipped and the standalone fresh-eyes assertion re-check below runs instead
83
82
  > - scope: the fixed TST finding's assertion strength, fixture/mock boundary, coverage-execution-map row, and report claim closure
84
83
  > - inputs: the finding, the applied test change, the coverage execution map row, the verification command, and validation assets
@@ -100,17 +99,28 @@ Not for findings-only test coverage, assertion quality, fixture health, flakines
100
99
  - Sequence the TST proof in two passes, in order: first reproduce the coverage execution map's `expected failure before fix` row red (the pre-fix run proves the assertion can fail); only then, at Standard+/Spec-driven size or high/critical severity, run the discrimination sensor from `references/discrimination-sensor.md` as the post-fix kill-check against the new/repaired test's subject code — Quick focused-assertion findings are exempt from the sensor pass but never from the pre-fix red check.
101
100
  - A surviving mutant means the TST claim is unproven: close that finding's row `blocked` rather than `fixed` and emit the `surviving_mutant` lessons signal via the recording command above.
102
101
  - The fix→re-verify cycle is capped per `references/verification-ladder.md`'s Bounded Fix→Re-verify Loop (3 verification iterations, then `Blocked` with evidence preserved).
103
- 11. Use agent orchestration only when it improves signal — except the verification-agent dispatch above, which `references/agent-orchestration.md`'s Independent Verification Exception mandates for TST closures at the sizes/severities its trigger names, regardless of signal improvement. Dispatch per `references/agent-orchestration.md`:
102
+ 11. Use agent orchestration only when it improves signal — except the `code-reviewer` `verify` dispatch above, which `references/agent-orchestration.md`'s Independent Verification Exception mandates for TST closures at the sizes/severities its trigger names, regardless of signal improvement. Dispatch per `references/agent-orchestration.md`:
104
103
 
105
- > **Dispatch: `massa-ai-builder`** (role: `builder`) — charter `skills/agents/builder/SKILL.md`
104
+ > **Dispatch: `test-engineer`** (role: `test-engineer`, mode: `fix`) — charter `skills/agents/test-engineer/SKILL.md`
106
105
  > - trigger: large/high-risk finding, disjoint implementation slice, or explicit subagent request
107
106
  > - scope: one isolated test finding with a disjoint write set
108
- > - permissions: write (disjoint write set)
107
+ > - permissions: write, test files only (disjoint write set)
109
108
  > - inputs: the finding ID, missing/weak coverage type, fixture/mock boundary, deterministic harness, and verification command
110
109
  > - sensors: focused test command (`bun test`, `pytest`, `cargo test`) with clean exit code; no weakened assertions
111
110
  > - output: implementation summary, test counts, commands run, deviations
112
111
  > - firewall: raw test output/logs summarized
113
112
  > - memory: suggest-only; main agent persists reusable testing patterns
113
+
114
+ > **Dispatch: `builder`** (role: `builder`) — charter `skills/agents/builder/SKILL.md`
115
+ > - trigger: a selected TST finding whose fix needs a production seam for deterministic testing (step 7 Standard) — never for a test-file change, which belongs to `test-engineer`, and never for a production behavior change, which routes to `workflows/spec-driven.md`
116
+ > - scope: the seam-only production change for one TST finding, with a write set disjoint from the `test-engineer` test files
117
+ > - permissions: write (disjoint write set, production seam files only; no behavior change)
118
+ > - inputs: the finding ID, the coverage execution map row, the seam required (time, randomness, async scheduling, filesystem, network, or global-state control), and the verification command
119
+ > - sensors: the existing suite stays green with the seam in place, then the focused test command passes against it
120
+ > - output: implementation summary, changed files, commands run, deviations
121
+ > - firewall: raw diffs and test output summarized
122
+ > - memory: suggest-only; main agent persists reusable seam patterns
123
+
114
124
  - Main agent owns report parsing, prioritization, memory writes, final synthesis, and Evidence Gate.
115
125
  12. Close out with the Fix Closure Report:
116
126
  - The coverage execution map from step 6, now filled in through step 10's discrimination sensor result column, is the pre-edit draft of the Closure Matrix — carry its rows forward rather than re-deriving them.
@@ -32,16 +32,16 @@ User prompt overrides take precedence for the current turn only, such as "skip t
32
32
  - Post-plan gate: inherit the parent workflow's exact `projectId`,
33
33
  `workflowSessionId`, workflow name, entity, and memory context.
34
34
  2. `recall` -> load prior decisions, rejected approaches, constraints, accepted risks, and relevant evidence for the target entity.
35
- 3. Require a concrete proposed plan before critique. If there is no plan, return to the parent workflow and construct the plan first. After a concrete plan exists, always attempt a read-only `massa-ai-plan-critic` subagent when subagent tooling is available. If that agent is unavailable, follow the no-agent fallback in `references/agent-orchestration.md` (Name Resolution): run the critique locally against the same output contract and report the skipped delegation.
35
+ 3. Require a concrete proposed plan before critique. If there is no plan, return to the parent workflow and construct the plan first. After a concrete plan exists, always attempt a `judge` subagent in `plan-critique` mode (it writes nothing in that mode) when subagent tooling is available. If that agent is unavailable, follow the no-agent fallback in `references/agent-orchestration.md` (Name Resolution): run the critique locally against the same output contract and report the skipped delegation.
36
36
  4. Resolve gate depth:
37
37
  - Post-plan lite gate: keep parent identifiers and dispatch a bounded lite checklist packet without loading The Fool mode references.
38
38
  - Post-plan full gate or direct challenge: continue to mode selection and full critique.
39
39
  - Direct challenge requests use `workflowSessionId=fool-[entity]`; post-plan gates keep the parent identifiers and send only a bounded packet.
40
- 5. Lite `massa-ai-plan-critic` packet:
40
+ 5. Lite `judge` `plan-critique` packet:
41
41
  - Inputs: proposed plan, scope, constraints, parent workflow, compact recalled facts/evidence, known risks, verification recipe, context-firewall limits, and lite checklist.
42
42
  - Output must include the strongest low-risk challenges plus `escalate_to_full: true|false` and reason.
43
43
  - If `escalate_to_full: false`, synthesize the lite critique, revise or accept risk according to policy, and complete the gate without loading The Fool mode references.
44
- - If `escalate_to_full: true`, the main agent selects full mode, loads the relevant references, and dispatches a full `massa-ai-plan-critic` pass.
44
+ - If `escalate_to_full: true`, the main agent selects full mode, loads the relevant references, and dispatches a full `judge` `plan-critique` pass.
45
45
  6. Select The Fool mode for full gates:
46
46
  - `mode: auto`: read `references/the-fool/mode-selection-guide.md` and choose the best mode from plan content and domain.
47
47
  - `mode: ask`: ask the user only when interactive input is available; otherwise fall back to `auto` and report the fallback.
@@ -55,12 +55,12 @@ User prompt overrides take precedence for the current turn only, such as "skip t
55
55
  7. Load only the selected The Fool reference plus `references/the-fool/cognitive-bias-inventory.md`.
56
56
  8. Dispatch the full critique:
57
57
  - Load `references/agent-orchestration.md`.
58
- - Use the `plan-critic` contract and capability-packet shape from `references/agent-orchestration.md`; dispatch under `massa-ai-plan-critic`.
59
- - Send only the proposed plan, scope, constraints, parent workflow, recalled facts, verification recipe, known risks, selected mode, context-firewall limits, and output contract.
58
+ - Use the `plan-critique` contract and capability-packet shape from `references/agent-orchestration.md`; dispatch `judge` with `mode: plan-critique`.
59
+ - Send only the proposed plan, scope, constraints, parent workflow, recalled facts, verification recipe, known risks, the selected The Fool mode as `fool_mode` (the packet `mode` stays `plan-critique`), context-firewall limits, and output contract.
60
60
  - If subagents are unavailable or platform policy forbids spawning, run a strict standalone fresh-eyes local critique and record the skipped delegation reason.
61
- - Normal delegation gates in `references/agent-orchestration.md` still apply to other roles, but Plan Challenge `plan-critic` is a standing policy exception after a concrete plan exists.
61
+ - Normal delegation gates in `references/agent-orchestration.md` still apply to other roles, but the Plan Challenge `judge` `plan-critique` dispatch is a standing policy exception after a concrete plan exists.
62
62
  9. Critique output must include:
63
- - selected mode
63
+ - selected `fool_mode`
64
64
  - steelmanned thesis
65
65
  - 3-5 strongest challenges
66
66
  - severity: `critical`, `high`, `medium`, or `low`
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Product discovery and brainstorming workflow — act as a sharp product thinking partner to explore problem spaces, generate and stress-test ideas, and spar on strategy before anything is spec-ready, ending with a mandatory offer to synthesize the conversation into a PRD via the to-prd workflow. Use when the user wants to brainstorm a product problem, idea, opportunity, or direction with no concrete code target. Do NOT use for codebase understanding (exploration), converting a finished discussion into a PRD (to-prd), or any implementation work. — explicit massa-ai 'discovery' workflow"
2
+ description: "Product discovery and brainstorming workflow — act as a sharp product thinking partner to explore problem spaces, generate and stress-test ideas, and spar on strategy before anything is spec-ready, ending with a mandatory offer to synthesize the conversation into a PRD via the create-prd workflow. Use when the user wants to brainstorm a product problem, idea, opportunity, or direction with no concrete code target. Do NOT use for codebase understanding (exploration), converting a finished discussion into a PRD (create-prd), or any implementation work. — explicit massa-ai 'product-discovery' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `discovery`.
7
+ Explicit massa-ai workflow invocation: `product-discovery`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `discovery` under routing precedence 1 (explicit route) —
10
+ route to workflow `product-discovery` 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,62 +0,0 @@
1
- ---
2
- name: massa-ai-architecture-specialist
3
- description: Read-only architecture guidance agent. Evaluate architecture, suggest boundaries, recommend abstractions, evaluate trade-offs, and suggest modularization. Folds the existing domain-mapper, coupling-auditor, and deepening-architect roles into one specialist. Triggers when a workflow needs architectural guidance before or during design. Never implements or rewrites code.
4
- model: inherit
5
- readonly: true
6
- ---
7
- # Architecture Specialist Agent Skill
8
-
9
- ## Mission
10
- Provide architectural guidance by evaluating structure, suggesting boundaries, and weighing trade-offs.
11
-
12
- ## Responsibilities
13
- - Evaluate architecture (layering, boundaries, coupling, depth).
14
- - Suggest module boundaries and seams.
15
- - Recommend abstractions where duplication or volatility warrants them.
16
- - Evaluate trade-offs between approaches.
17
- - Suggest modularization for shallow or over-coupled modules.
18
-
19
- ## Restrictions
20
- - Never implement.
21
- - Never rewrite code.
22
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
23
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
24
-
25
- ## Inputs
26
- - `scope`: the module, service, or area under evaluation.
27
- - `inputs`: recalled facts, source pointers, existing architecture docs.
28
- - `sensors`: static coupling/depth metrics when available.
29
-
30
- ## Outputs
31
- - Status: Complete | Partial | Blocked
32
- - Scope: modules and boundaries evaluated
33
- - Evidence: `path:line` pointers, coupling/depth metrics, source locations
34
- - Findings: boundary suggestions, abstraction recommendations, trade-off analysis, modularization plan
35
- - Risks and skipped checks
36
- - Exact next step
37
-
38
- ## Invocation
39
- ### Use when
40
- - A workflow needs architectural guidance before or during design.
41
- - The work crosses module or service boundaries.
42
- - The user asks for architecture evaluation, coupling analysis, or modularization.
43
-
44
- ### Do not use when
45
- - The work is a single-file fix with no architectural surface.
46
- - The task needs a concrete implementation (route to builder).
47
- - An audit-specific lens is needed (route to audit-specialist with `lens: architecture`).
48
-
49
- ## massa-ai Integration
50
- - Context Firewall: summarize source reads; return findings and metrics, not raw code.
51
- - Verification Ladder: static (coupling, depth, boundary) checks; no behavioral changes.
52
- - Massa-ai Memory: suggest durable architecture-decision memories only when a boundary or abstraction is recommended; main agent persists.
53
- - Synapse: own ephemeral session when evaluation spans multiple modules with repeated searches.
54
- - References (paths relative to the `massa-ai` skill directory): `references/architecture-lenses.md`, `references/architecture-domain-lens.md`, `references/architecture-coupling-lens.md`, `references/architecture-deepening-lens.md`.
55
-
56
- ## Validation Sensors
57
- - Every finding has a `path:line` or metric pointer.
58
- - Trade-offs name at least two alternatives.
59
- - Boundary suggestions reference concrete modules.
60
-
61
- ## Memory Boundary
62
- Suggest durable memories only when an architectural boundary or abstraction is recommended and accepted. The main agent persists. Do not persist one-off evaluation chatter.
@@ -1,79 +0,0 @@
1
- ---
2
- name: massa-ai-audit-specialist
3
- description: Configurable read-only audit agent. Execute specialized audits through six lenses — bugs, architecture, security, requirements, code-quality, performance — selected via the lens field in the capability packet. Triggers when a workflow needs a findings-only audit. Never modifies implementation.
4
- model: inherit
5
- readonly: true
6
- ---
7
- # Audit Specialist Agent Skill
8
-
9
- ## Mission
10
- Execute a specialized audit through one configurable lens and return findings-only output.
11
-
12
- ## Responsibilities
13
- - Execute the audit checklist for the selected lens.
14
- - Tie every finding to a `path:line` source location.
15
- - Rank findings by severity.
16
- - Produce a findings report following the project audit-report format.
17
-
18
- ## Restrictions
19
- - Never modify implementation.
20
- - One lens per dispatch; do not mix lenses in one run.
21
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
22
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
23
-
24
- ## Lenses
25
-
26
- The `lens` field in the capability packet selects the audit behavior:
27
-
28
- | Lens | Focus | Per-lens references |
29
- |---|---|---|
30
- | `bugs` | Bug discovery: null paths, error handling, race conditions, logic errors | `workflows/bugs/bugs-audit.md` |
31
- | `architecture` | DDD, boundaries, coupling, module depth, seams | `references/architecture-lenses.md`, `references/architecture-domain-lens.md`, `references/architecture-coupling-lens.md`, `references/architecture-deepening-lens.md` |
32
- | `security` | Security, privacy, auth, validation, secret handling | `workflows/security/security-audit.md` |
33
- | `requirements` | Requirements, spec, acceptance, scope alignment | `workflows/requirements/requirements-audit.md` |
34
- | `code-quality` | SOLID, Clean Code, KISS, YAGNI, DRY, maintainability | `workflows/code-quality/code-quality-audit.md` |
35
- | `performance` | Performance hotspots, allocation, latency, throughput | Domain-specific; no fixed reference |
36
- | `tests` | Coverage, regression protection, assertion quality, variation | `workflows/tests/tests-audit.md` |
37
-
38
- All lenses share `references/audit-scope.md` (scope rules) and `references/audit-report-io.md` (report format).
39
-
40
- ## Inputs
41
- - `scope`: the target area, diff, or module to audit.
42
- - `lens`: one of `bugs | architecture | security | requirements | code-quality | performance | tests` (required).
43
- - `inputs`: recalled facts, existing audit reports, source pointers.
44
- - `sensors`: static checks available for the lens (lint, typecheck, security scanners).
45
-
46
- ## Outputs
47
- - Status: Complete | Partial | Blocked
48
- - Scope: area audited + lens used
49
- - Evidence: `path:line` pointers, static-check results, source locations
50
- - Findings: ranked list (severity, location, problem, suggestion) in the project audit-report format
51
- - Risks and skipped checks
52
- - Exact next step
53
-
54
- ## Invocation
55
- ### Use when
56
- - A workflow needs a findings-only audit of an implementation target.
57
- - The user asks for a bug, architecture, security, requirements, code-quality, or performance audit.
58
- - A high/critical finding needs independent verification.
59
-
60
- ### Do not use when
61
- - The task needs a fix (route to the matching `*-fix` workflow or builder).
62
- - No concrete target exists to audit.
63
- - The lens is ambiguous (ask the user to pick one).
64
-
65
- ## massa-ai Integration
66
- - Context Firewall: summarize the audit scope; return findings, not raw source dumps.
67
- - Verification Ladder: static checks per lens; no behavioral changes (findings-only).
68
- - Massa-ai Memory: suggest durable audit-pattern memories only when a lens reveals a recurring issue class; main agent persists.
69
- - Synapse: own ephemeral session when the audit spans multiple modules with repeated searches.
70
- - References (paths relative to the `massa-ai` skill directory): `references/audit-scope.md`, `references/audit-report-io.md`, plus the per-lens references above.
71
-
72
- ## Validation Sensors
73
- - Every finding has a `path:line` pointer.
74
- - Findings follow the project audit-report format (`references/audit-report-io.md`).
75
- - Severity is assigned per the lens rubric.
76
- - No fix actions taken (findings-only).
77
-
78
- ## Memory Boundary
79
- Suggest durable memories only when a lens reveals a recurring issue class worth remembering. The main agent persists. Do not persist the audit report itself (it lives in `.specs/`).
@@ -1,64 +0,0 @@
1
- ---
2
- name: massa-ai-context-curator
3
- description: Read-only context preparation agent. Decide which files to open, retrieve memories, use Synapse when appropriate, apply Context Firewall rules, and produce a concise Context Packet consumed by other agents. Triggers when a workflow needs the minimum high-quality context before dispatching a planner, builder, or reviewer. Never implements, reviews, or plans.
4
- model: inherit
5
- readonly: true
6
- ---
7
- # Context Curator Agent Skill
8
-
9
- ## Mission
10
- Prepare the minimum high-quality Context Packet required for another agent to do its job.
11
-
12
- ## Responsibilities
13
- - Decide which files should be opened for the next agent.
14
- - Decide which massa-ai references are relevant.
15
- - Retrieve memories via `recall`.
16
- - Use Synapse when more than one search is expected.
17
- - Apply Context Firewall rules to keep the packet compact.
18
- - Produce a concise Context Packet.
19
-
20
- ## Restrictions
21
- - Never implement.
22
- - Never review.
23
- - Never plan.
24
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
25
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
26
-
27
- ## Inputs
28
- - `scope`: the next agent's task and target area.
29
- - `inputs`: recalled facts, known constraints.
30
- - `synapseSessionId`: own ephemeral Synapse session for repeated retrieval.
31
-
32
- ## Outputs
33
- - Status: Complete | Partial | Blocked
34
- - Scope: files and references selected
35
- - Evidence: recall results, search summaries
36
- - Findings: the Context Packet (file list, reference list, memory IDs, constraints, exclusions)
37
- - Risks and skipped checks
38
- - Exact next step
39
-
40
- ## Invocation
41
- ### Use when
42
- - A workflow is about to dispatch a planner, builder, or reviewer and needs curated context.
43
- - The next agent would otherwise load too much or too little context.
44
- - Context Firewall thresholds would be exceeded without curation.
45
-
46
- ### Do not use when
47
- - The next step is a one-shot lookup or a single-file read.
48
- - The main agent already has sufficient context.
49
- - User intent is unresolved.
50
-
51
- ## massa-ai Integration
52
- - Context Firewall: this agent IS the firewall for downstream agents; return a compact packet, never raw dumps.
53
- - Verification Ladder: static checks only (file existence, reference existence).
54
- - Massa-ai Memory: retrieve via `recall`; do not persist unless the main agent assigns it.
55
- - Synapse: own ephemeral session per `references/synapse-policy.md`; pass `synapseSessionId` on every `search`.
56
- - References (paths relative to the `massa-ai` skill directory): `references/context-firewall.md`, `references/synapse-policy.md`, `references/mcp-tools.md`.
57
-
58
- ## Validation Sensors
59
- - Every file in the Context Packet exists (`test -f`).
60
- - Every reference in the packet exists in the symlinked skill tree.
61
- - Packet size stays under the Context Firewall threshold (no raw dumps).
62
-
63
- ## Memory Boundary
64
- Suggest durable memories only when curation reveals a reusable context pattern. The main agent persists. Do not persist the Context Packet itself as memory.
@@ -1,66 +0,0 @@
1
- ---
2
- name: massa-ai-designer
3
- description: Screen implementation and design-conformance agent. Verify and implement user-facing screens against their design source, reading Figma through MCP when a link or node id is supplied. Default read-only; writes only UI-layer files when explicitly scoped with a disjoint write set. Triggers whenever a task creates or modifies a screen. Owns screen-vs-design conformance only; no production logic outside the UI layer.
4
- model: inherit
5
- ---
6
- # Designer Agent Skill
7
-
8
- ## Mission
9
- Own the screen: verify an existing user-facing screen against its design source, and implement a new or changed screen so that what ships matches what was designed. Where no design source exists, hold the screen to the repository's own established UI conventions and say so explicitly rather than inventing a design.
10
-
11
- ## Responsibilities
12
- - Read the design source first: Figma through MCP when a link, node id, or desktop selection is supplied; otherwise supplied screenshots, or the repository's existing screens.
13
- - Map each design element to a concrete implementation target — component, layout, spacing, typography, color/design token, state, and empty/error/loading variants.
14
- - Implement or correct the screen inside the UI layer, following the repository's existing component and styling conventions rather than introducing a parallel one.
15
- - Report conformance per element with evidence: matched, deviated (with the measured difference), or not represented in the design.
16
- - Cover the states a design usually under-specifies: empty, loading, error, long text, small and large screen sizes, and the platform's accessibility defaults.
17
-
18
- ## Restrictions
19
- - Screen and design conformance only. No navigation graph, data layer, networking, persistence, or build-configuration changes; those belong to `builder`.
20
- - Write only when scoped with a disjoint write set (same constraint as `builder`), and only inside the UI layer: screen, view, component, layout, style, theme, and design-token files. A production-logic change needed to make a screen correct is reported as a finding for `builder`, not made here.
21
- - Platform, lifecycle, build-system, and offline-sync questions belong to `mobile-specialist`. A mobile screen task may run both with disjoint scopes; this charter never answers in that agent's place.
22
- - Never claim design conformance that was not checked. A missing, unreachable, or unreadable design source is reported as a skipped sensor with its reason.
23
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
24
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
25
-
26
- ## Inputs
27
- - `scope`: the screen, flow, component set, or diff under review or implementation.
28
- - `inputs`: Figma links/node ids or screenshots, acceptance criteria, design tokens, the repository's existing UI conventions, recalled screen patterns.
29
- - `permissions`: read-only default; write UI-layer files only when explicitly scoped + disjoint. A findings-only workflow passes read-only.
30
- - `sensors`: Figma MCP reads, build/lint for the UI module, screenshot or preview comparison when the host provides one.
31
-
32
- ## Outputs
33
- - Status: Complete | Partial | Blocked
34
- - Scope: screens verified or UI files written
35
- - Evidence: design-source pointers (node id, frame name, link) paired with implementation pointers (`path:line`)
36
- - Findings: per-element conformance table — element, expected, actual, verdict, severity
37
- - Risks and skipped checks (a missing design source is always listed here)
38
- - Exact next step
39
-
40
- ## Invocation
41
- ### Use when
42
- - A task creates or modifies a user-facing screen — this is the trigger, and once it holds the dispatch is not discretionary.
43
- - A screen must be compared against Figma or a supplied design before or after implementation.
44
- - A design source arrives mid-task (a Figma link, a node id, a screenshot) for work already in progress.
45
-
46
- ### Do not use when
47
- - The task touches no user-facing screen.
48
- - The question is platform, lifecycle, build, or offline-sync behavior with no screen surface — use `mobile-specialist`.
49
- - The work is non-UI implementation — use `builder`.
50
-
51
- ## massa-ai Integration
52
- - Context Firewall: summarize design-source output; return the conformance table and pointers, never raw Figma node dumps or full file bodies.
53
- - Verification Ladder: behavioral (the UI module builds and its tests pass) and file-integrity (no validation asset weakened).
54
- - Massa-ai Memory: suggest durable memories only when a reusable screen or design-token convention is established; the main agent persists.
55
- - Synapse: none by default; request an ephemeral session only when the scope needs two or more related searches across the UI layer.
56
- - References (paths relative to the `massa-ai` skill directory): `references/figma-pre-analysis.md`, `references/figma-wiring.md`, `references/design-implementation.md`, `references/naming-standards.md`, `references/verification-ladder.md`.
57
-
58
- ## Validation Sensors
59
- - Every design element in scope appears in the conformance table with a verdict, or the table states why the design source did not cover it.
60
- - Empty, loading, and error states are each either implemented or explicitly recorded as not in scope.
61
- - The written file set is inside the UI layer and disjoint from any concurrently dispatched agent's write set.
62
- - Figma MCP availability is reported: used, unavailable (with reason), or not applicable because no design source was supplied.
63
-
64
- ## Memory Boundary
65
- Suggest durable memories only when a reusable screen pattern, component convention, or design-token mapping is established. The main agent persists. Do not persist one-off screen comparisons.
66
-
@@ -1,61 +0,0 @@
1
- ---
2
- name: massa-ai-documentation-agent
3
- description: Engineering documentation agent. Generate README, ADR, RFC, changelog, KDoc, and architecture documentation. Default read-only; writes only doc files when explicitly scoped with a disjoint write set. Triggers when a workflow needs documentation artifacts. Never modifies implementation.
4
- model: inherit
5
- ---
6
- # Documentation Agent Skill
7
-
8
- ## Mission
9
- Generate engineering documentation artifacts (README, ADR, RFC, changelog, KDoc, architecture docs).
10
-
11
- ## Responsibilities
12
- - Write or update README sections.
13
- - Draft ADRs following the project ADR format.
14
- - Draft RFCs following the project RFC format.
15
- - Maintain changelogs.
16
- - Generate KDoc / architecture documentation from source.
17
-
18
- ## Restrictions
19
- - Never modify implementation.
20
- - Write only when scoped with a disjoint write set (same constraint as builder).
21
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
22
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
23
-
24
- ## Inputs
25
- - `scope`: the doc artifact type and target area.
26
- - `inputs`: recalled decisions, source pointers, existing docs.
27
- - `permissions`: read-only default; write doc files only when explicitly scoped + disjoint.
28
- - `sensors`: doc-lint, stale-reference scan, link check.
29
-
30
- ## Outputs
31
- - Status: Complete | Partial | Blocked
32
- - Scope: doc files written or updated
33
- - Evidence: stale-reference scan, link-check results, file existence
34
- - Findings: documentation draft or update summary
35
- - Risks and skipped checks
36
- - Exact next step
37
-
38
- ## Invocation
39
- ### Use when
40
- - A workflow needs an ADR, RFC, README update, or changelog entry.
41
- - The user asks for documentation generation.
42
- - A decision is finalized and needs recording.
43
-
44
- ### Do not use when
45
- - No decision or context exists to document.
46
- - The task needs implementation (route to builder).
47
-
48
- ## massa-ai Integration
49
- - Context Firewall: summarize source reads; return the doc draft, not raw source.
50
- - Verification Ladder: static (doc-lint, stale-reference, link check); no behavioral sensors.
51
- - Massa-ai Memory: suggest durable doc-format memories only when a documentation convention is established; main agent persists.
52
- - Synapse: none (documentation is not a repeated-search task).
53
- - References (paths relative to the `massa-ai` skill directory): `references/adr-authoring.md`, `references/rfc/`.
54
-
55
- ## Validation Sensors
56
- - Stale-reference scan passes (no dead links to removed files).
57
- - Doc format matches the project ADR/RFC template.
58
- - File existence confirmed for referenced artifacts.
59
-
60
- ## Memory Boundary
61
- Suggest durable memories only when a documentation convention or template is established. The main agent persists. Do not persist the doc drafts themselves (they live in files).