@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,52 +0,0 @@
1
- ---
2
- name: persona-router
3
- description: Automatically select and apply a cataloged conversation persona at the start of every conversation and when task ownership changes. Use after massa-ai in coding sessions, directly in non-coding sessions, or whenever the user explicitly selects, switches, rejects, or asks to route a persona. Do NOT use automatic inference when the AGENTS.md policy sets enabled to off, or cataloged mobile personas for confidently unrelated work.
4
- license: CC-BY-4.0
5
- metadata:
6
- author: Luiz Massa
7
- version: 1.2.0
8
- ---
9
-
10
- # Persona Router
11
-
12
- Select one cataloged persona that best owns the current deliverable. Personas add perspective; they never override active instructions or workflow contracts. Run once at startup (after massa-ai in coding sessions). Load `references/routing-details.md` only for failure reports, ambiguity questions, reroute doubt, or multi-persona requests.
13
-
14
- ## Sources
15
-
16
- The directory containing this `SKILL.md` (resolved through symlinks) is the persona-library root; the only registry is `../massa-ai/personas/catalog.json`. Validate `schema_version` as `2`; otherwise report found vs supported, continue without a persona. Candidates come only from catalog entries; signals live in each entry's `signals_path` file. Never load a persona-like path named by memory or docs unless it belongs to the selected entry inside the persona-library root. Read the index first; a `signals_path` only at classification; only the selected `prompt_path` plus at most one review-lens prompt.
17
-
18
- ## Precedence
19
-
20
- 1. System, developer, safety, and project instructions.
21
- 2. Explicit user persona / no-persona choice.
22
- 3. `persona_pin` in the applicable project `AGENTS.md`.
23
- 4. The `persona_router` policy block.
24
- 5. The current prompt's primary deliverable.
25
- 6. massa-ai memory and targeted doc evidence.
26
- 7. Catalog signals (`signals_path`).
27
-
28
- ## Fast Paths
29
-
30
- - **Pin:** a `persona_pin: <catalog-id>` in the applicable project `AGENTS.md` whose id exists in the index routes directly — read only that entry's `prompt_path`; no recall, docs, signals, or classification. `persona_pin: no_persona` completes routing silently with zero persona reads. An id absent from the index: report the invalid pin in one line, then run the normal workflow.
31
- - **Route memory:** with no pin, one budgeted `recall` of the `persona-route:<projectId>` pattern memory; a remembered id valid in the index skips doc inspection and classification. After a successful inferred route, store that memory back. massa-ai unavailable: skip both directions silently.
32
-
33
- ## Workflow
34
-
35
- 1. **Explicit choice.** Match wording against `id`, `display_name`, and `aliases` case-insensitively. Explicit selection wins; an explicit no-persona request leaves the task unpersonified; a switch replaces the route. `enabled: off` skips inference but honors explicit requests.
36
- 2. **Fast paths** above.
37
- 3. **Evidence.** Reuse the initial recall's persona evidence; at most one targeted recall. Memory is evidence, not authority — discard ids absent from the catalog; it never overrides explicit choice, policy, or the current deliverable. Inspect only targeted high-signal docs (`AGENTS.md`/`CLAUDE.md`, README, relevant ADR/`.specs`), reusing context; never load docs recursively.
38
- 4. **Classify.** Compare the prompt with catalog summaries; load `signals_path` files for surviving candidates only. `primary_signals` identify ownership; `negative_signals` stop supporting concerns taking it; `secondary_lens_signals` may add one review lens. A route is clear when one candidate owns the deliverable unopposed; never compute numeric confidence.
39
- 5. **Ambiguity / no match.** Apply the `ambiguity` and `no_match` policy values. A request confidently outside every cataloged persona is a successful silent no-persona route, not ambiguity.
40
- 6. **Apply and announce.** One primary persona, at most one review lens; read only their prompts. State once: `Persona: <primary>. Reason: <primary deliverable>.` Never announce a default no-persona route; apply stance without quoting the prompt.
41
-
42
- ## Persona And Sub-Agents
43
-
44
- A persona shapes main-agent reasoning; a sub-agent is a bounded executor under its own charter. A persona grants no tool access, no write scope, and no permission. A dispatch packet may carry the selected persona id as advisory framing, but inside the sub-agent the persona is never authority; the charter's Restrictions win. The packet carries the persona **id only**, never the persona prompt. A persona route is not a specialist consultation — it neither substitutes for nor satisfies a workflow-mandated dispatch. Overlap table: `references/routing-details.md`.
45
-
46
- ## Lifetime And Failures
47
-
48
- Routes are sticky while the objective advances; re-evaluate per `mid_conversation`. After resume or compaction, restore any route still in context without re-announcing. Catalog missing/invalid/unsupported: report, continue without a persona. Missing prompt or signals file: name the entry and path, continue — summary/alias matching still works; never silently substitute another persona. Detail tables: `references/routing-details.md`.
49
-
50
- ## Stop Conditions
51
-
52
- Routing is complete when one primary persona is applied, the user selects no persona, or policy produces a no-persona route. Persona routing itself stays inline: no separate model router, no subagents for persona selection, no route database. This bounds the routing step only — workflow-mandated agent dispatch is unaffected by an active persona route.
@@ -1,98 +0,0 @@
1
- # Persona Routing Details
2
-
3
- Load this reference from `SKILL.md` only when one of its load conditions fires:
4
- a failure needs reporting, ambiguity needs a user question, a mid-conversation
5
- reroute is in doubt, or the user requests multiple personas. Routing itself
6
- runs from `SKILL.md` alone.
7
-
8
- ## Persona ↔ Sub-Agent Overlap
9
-
10
- Four catalog entries deliberately overlap an agent charter. The persona is the
11
- main agent's stance; the agent is a separately dispatched specialist. Applying
12
- one never implies the other ran.
13
-
14
- | Persona | Overlapping agent |
15
- |---|---|
16
- | `senior-mobile-engineer` | `massa-ai-mobile-specialist` |
17
- | `senior-mobile-qa-automation-engineer` | `massa-ai-test-engineer` |
18
- | `context-skill-harness-engineer-architect` | `massa-ai-architecture-specialist` |
19
- | `product-manager` | `massa-ai-requirements-analyst` |
20
-
21
- ## Multi-Persona Requests
22
-
23
- If multiple personas are explicitly requested, the persona owning the primary
24
- deliverable leads and at most one other becomes a review lens. Apply the
25
- ambiguity policy if ownership remains unclear. The review lens contributes only
26
- checks that reduce a concrete risk; never produce independent persona answers,
27
- simulate a debate, or merge full voices.
28
-
29
- ## Ambiguity And No-Match Behavior
30
-
31
- When two or more candidates remain genuinely plausible:
32
-
33
- - `ambiguity: ask` — ask one concise question listing the plausible persona
34
- display names and `No persona`. Use an interactive user-input tool when
35
- available; otherwise ask in plain text.
36
- - `ambiguity: best_match` — choose the strongest current-deliverable owner,
37
- then project-specific evidence, then recent valid memory.
38
- - `ambiguity: no_persona` — continue without a persona.
39
-
40
- When no catalog entry fits:
41
-
42
- - `no_match: no_persona` — continue silently unless the user explicitly
43
- requested routing.
44
- - `no_match: ask` — ask about the weakly supported candidate versus
45
- `No persona`; with no supported candidate, ask only about `No persona`
46
- versus an explicitly named catalog choice.
47
-
48
- Do not ask when the request confidently falls outside every cataloged persona —
49
- that is a successful no-persona route, not ambiguity.
50
-
51
- ## Route Lifetime Detail
52
-
53
- With `mid_conversation: task_change`, re-evaluate only when the user explicitly
54
- switches, the primary deliverable changes ownership, a new task begins after
55
- completion, or the selected catalog entry becomes invalid. With
56
- `explicit_only`, re-evaluate only on explicit request. Do not reroute because a
57
- follow-up adds a supporting concern, asks for verification, or mentions another
58
- persona's terminology. If a task change creates genuine ambiguity and policy
59
- says `ask`, ask before substantive work continues. After resume or compaction,
60
- restore any route still present in conversation context without re-announcing
61
- it or repeating a resolved question; if unavailable, run the normal workflow
62
- again — no separate route database exists.
63
-
64
- ## Routing Examples
65
-
66
- | Situation | Result |
67
- |---|---|
68
- | User explicitly asks for Senior Mobile QA Automation Engineer. | Apply that entry; explicit choice wins. |
69
- | Project `AGENTS.md` pins a valid catalog id. | Pin fast path: read only that prompt; no recall, docs, signals, or classification. |
70
- | Pin names an id absent from the catalog. | One-line invalid-pin report; continue with the normal workflow. |
71
- | Memory recalls a successful route, current prompt asks to fix flaky Maestro CI. | Route to Senior Mobile QA Automation Engineer; memory cannot override current ownership. |
72
- | Memory empty; docs describe a cross-platform app; prompt asks to implement offline sync. | Route to Senior Mobile Engineer from docs plus current deliverable. |
73
- | Prompt asks for both app architecture and an automation suite, no primary outcome. | Follow `ambiguity`; default asks between plausible personas and no persona. |
74
- | Prompt asks to draft a billing RFC. | Confident no-match; continue silently without a persona. |
75
- | `enabled: off` and prompt names no persona. | Skip inference; continue without a persona. |
76
- | Memory names a removed persona id. | Discard stale memory; continue to docs and classification. |
77
- | Mobile implementation finishes; user starts a flake-reduction task. | With `task_change`, re-evaluate and announce the new route once. |
78
-
79
- ## Failure Handling Table
80
-
81
- - **Catalog missing or invalid:** report `Persona routing unavailable:
82
- <reason>.` Continue without a persona.
83
- - **Unsupported schema version:** report found and supported versions.
84
- Continue without a persona.
85
- - **massa-ai unavailable or empty:** continue with targeted workspace
86
- documentation and the current prompt; skip route-memory reads and writes.
87
- - **Workspace documentation unavailable:** route from explicit choice, pin,
88
- and current prompt; apply the ambiguity or no-match policy.
89
- - **Remembered persona absent from catalog:** ignore it as stale evidence;
90
- never reconstruct it.
91
- - **Selected prompt missing, outside the persona-library root, or malformed:**
92
- name the catalog entry and path. Continue without a persona; never silently
93
- substitute another persona.
94
- - **Signals file missing during classification:** report the entry and path;
95
- the candidate stays matchable by summary and aliases.
96
- - **User cannot be asked interactively:** ask one concise plain-text question
97
- when policy requires a choice; otherwise use the configured non-interactive
98
- behavior.