@massa-ai/cursor-plugin 1.25.0 → 1.27.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 (220) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/agent-profiles/balanced/massa-ai-architecture-specialist.md +62 -0
  3. package/agent-profiles/balanced/massa-ai-audit-specialist.md +78 -0
  4. package/agent-profiles/balanced/massa-ai-builder.md +63 -0
  5. package/agent-profiles/balanced/massa-ai-context-curator.md +64 -0
  6. package/agent-profiles/balanced/massa-ai-documentation-agent.md +61 -0
  7. package/agent-profiles/balanced/massa-ai-furps-analyst.md +68 -0
  8. package/agent-profiles/balanced/massa-ai-investigator.md +65 -0
  9. package/agent-profiles/balanced/massa-ai-judge.md +96 -0
  10. package/agent-profiles/balanced/massa-ai-meta-judge.md +83 -0
  11. package/agent-profiles/balanced/massa-ai-mobile-specialist.md +79 -0
  12. package/agent-profiles/balanced/massa-ai-navigator.md +72 -0
  13. package/agent-profiles/balanced/massa-ai-plan-critic.md +87 -0
  14. package/agent-profiles/balanced/massa-ai-planner.md +62 -0
  15. package/agent-profiles/balanced/massa-ai-requirements-analyst.md +61 -0
  16. package/agent-profiles/balanced/massa-ai-reviewer.md +63 -0
  17. package/agent-profiles/balanced/massa-ai-test-engineer.md +62 -0
  18. package/agent-profiles/balanced/massa-ai-verification-agent.md +62 -0
  19. package/agent-profiles/cheap/massa-ai-architecture-specialist.md +62 -0
  20. package/agent-profiles/cheap/massa-ai-audit-specialist.md +78 -0
  21. package/agent-profiles/cheap/massa-ai-builder.md +63 -0
  22. package/agent-profiles/cheap/massa-ai-context-curator.md +64 -0
  23. package/agent-profiles/cheap/massa-ai-documentation-agent.md +61 -0
  24. package/agent-profiles/cheap/massa-ai-furps-analyst.md +68 -0
  25. package/agent-profiles/cheap/massa-ai-investigator.md +65 -0
  26. package/agent-profiles/cheap/massa-ai-judge.md +96 -0
  27. package/agent-profiles/cheap/massa-ai-meta-judge.md +83 -0
  28. package/agent-profiles/cheap/massa-ai-mobile-specialist.md +79 -0
  29. package/agent-profiles/cheap/massa-ai-navigator.md +72 -0
  30. package/agent-profiles/cheap/massa-ai-plan-critic.md +87 -0
  31. package/agent-profiles/cheap/massa-ai-planner.md +62 -0
  32. package/agent-profiles/cheap/massa-ai-requirements-analyst.md +61 -0
  33. package/agent-profiles/cheap/massa-ai-reviewer.md +63 -0
  34. package/agent-profiles/cheap/massa-ai-test-engineer.md +62 -0
  35. package/agent-profiles/cheap/massa-ai-verification-agent.md +62 -0
  36. package/agent-profiles/heavy/massa-ai-architecture-specialist.md +62 -0
  37. package/agent-profiles/heavy/massa-ai-audit-specialist.md +78 -0
  38. package/agent-profiles/heavy/massa-ai-builder.md +63 -0
  39. package/agent-profiles/heavy/massa-ai-context-curator.md +64 -0
  40. package/agent-profiles/heavy/massa-ai-documentation-agent.md +61 -0
  41. package/agent-profiles/heavy/massa-ai-furps-analyst.md +68 -0
  42. package/agent-profiles/heavy/massa-ai-investigator.md +65 -0
  43. package/agent-profiles/heavy/massa-ai-judge.md +96 -0
  44. package/agent-profiles/heavy/massa-ai-meta-judge.md +83 -0
  45. package/agent-profiles/heavy/massa-ai-mobile-specialist.md +79 -0
  46. package/agent-profiles/heavy/massa-ai-navigator.md +72 -0
  47. package/agent-profiles/heavy/massa-ai-plan-critic.md +87 -0
  48. package/agent-profiles/heavy/massa-ai-planner.md +62 -0
  49. package/agent-profiles/heavy/massa-ai-requirements-analyst.md +61 -0
  50. package/agent-profiles/heavy/massa-ai-reviewer.md +63 -0
  51. package/agent-profiles/heavy/massa-ai-test-engineer.md +62 -0
  52. package/agent-profiles/heavy/massa-ai-verification-agent.md +62 -0
  53. package/agent-profiles/home/massa-ai-architecture-specialist.md +62 -0
  54. package/agent-profiles/home/massa-ai-audit-specialist.md +78 -0
  55. package/agent-profiles/home/massa-ai-builder.md +63 -0
  56. package/agent-profiles/home/massa-ai-context-curator.md +64 -0
  57. package/agent-profiles/home/massa-ai-documentation-agent.md +61 -0
  58. package/agent-profiles/home/massa-ai-furps-analyst.md +68 -0
  59. package/agent-profiles/home/massa-ai-investigator.md +65 -0
  60. package/agent-profiles/home/massa-ai-judge.md +96 -0
  61. package/agent-profiles/home/massa-ai-meta-judge.md +83 -0
  62. package/agent-profiles/home/massa-ai-mobile-specialist.md +79 -0
  63. package/agent-profiles/home/massa-ai-navigator.md +72 -0
  64. package/agent-profiles/home/massa-ai-plan-critic.md +87 -0
  65. package/agent-profiles/home/massa-ai-planner.md +62 -0
  66. package/agent-profiles/home/massa-ai-requirements-analyst.md +61 -0
  67. package/agent-profiles/home/massa-ai-reviewer.md +63 -0
  68. package/agent-profiles/home/massa-ai-test-engineer.md +62 -0
  69. package/agent-profiles/home/massa-ai-verification-agent.md +62 -0
  70. package/agent-profiles/work/massa-ai-architecture-specialist.md +62 -0
  71. package/agent-profiles/work/massa-ai-audit-specialist.md +78 -0
  72. package/agent-profiles/work/massa-ai-builder.md +63 -0
  73. package/agent-profiles/work/massa-ai-context-curator.md +64 -0
  74. package/agent-profiles/work/massa-ai-documentation-agent.md +61 -0
  75. package/agent-profiles/work/massa-ai-furps-analyst.md +68 -0
  76. package/agent-profiles/work/massa-ai-investigator.md +65 -0
  77. package/agent-profiles/work/massa-ai-judge.md +96 -0
  78. package/agent-profiles/work/massa-ai-meta-judge.md +83 -0
  79. package/agent-profiles/work/massa-ai-mobile-specialist.md +79 -0
  80. package/agent-profiles/work/massa-ai-navigator.md +72 -0
  81. package/agent-profiles/work/massa-ai-plan-critic.md +87 -0
  82. package/agent-profiles/work/massa-ai-planner.md +62 -0
  83. package/agent-profiles/work/massa-ai-requirements-analyst.md +61 -0
  84. package/agent-profiles/work/massa-ai-reviewer.md +63 -0
  85. package/agent-profiles/work/massa-ai-test-engineer.md +62 -0
  86. package/agent-profiles/work/massa-ai-verification-agent.md +62 -0
  87. package/agents/massa-ai-judge.md +3 -6
  88. package/agents/massa-ai-meta-judge.md +2 -5
  89. package/agents/massa-ai-navigator.md +1 -1
  90. package/install.sh +32 -7
  91. package/package.json +2 -1
  92. package/skills/agents/judge/SKILL.md +4 -7
  93. package/skills/agents/meta-judge/SKILL.md +3 -6
  94. package/skills/agents/navigator/SKILL.md +2 -2
  95. package/skills/massa-ai/SKILL.md +1 -16
  96. package/skills/massa-ai/references/adr-authoring.md +3 -3
  97. package/skills/massa-ai/references/agent-orchestration.md +17 -2
  98. package/skills/massa-ai/references/architecture-coupling-lens.md +1 -1
  99. package/skills/massa-ai/references/architecture-deepening-lens.md +1 -1
  100. package/skills/massa-ai/references/architecture-domain-lens.md +1 -1
  101. package/skills/massa-ai/references/architecture-lenses.md +1 -1
  102. package/skills/massa-ai/references/audit-report-io.md +32 -2
  103. package/skills/massa-ai/references/audit-scope.md +22 -1
  104. package/skills/massa-ai/references/code-annotation.md +5 -5
  105. package/skills/massa-ai/references/codebase-investigation.md +1 -1
  106. package/skills/massa-ai/references/context-firewall.md +2 -1
  107. package/skills/massa-ai/references/conversation-feedback.md +1 -1
  108. package/skills/massa-ai/references/debug-diagnosis-loop.md +1 -1
  109. package/skills/massa-ai/references/decision-engine.md +1 -1
  110. package/skills/massa-ai/references/evidence-gate.md +1 -1
  111. package/skills/massa-ai/references/figma-pre-analysis.md +3 -3
  112. package/skills/massa-ai/references/furps/analyst-role.md +1 -1
  113. package/skills/massa-ai/references/furps/checklist.md +1 -1
  114. package/skills/massa-ai/references/furps/intake.md +1 -1
  115. package/skills/massa-ai/references/furps/report-contract.md +1 -1
  116. package/skills/massa-ai/references/graceful-degradation.md +22 -0
  117. package/skills/massa-ai/references/hook-enforcement.md +3 -3
  118. package/skills/massa-ai/references/implementation-delivery.md +4 -4
  119. package/skills/massa-ai/references/installation.md +1 -1
  120. package/skills/massa-ai/references/lessons.md +2 -2
  121. package/skills/massa-ai/references/maestro/artifacts-reports.md +1 -1
  122. package/skills/massa-ai/references/maestro/cli-device.md +1 -1
  123. package/skills/massa-ai/references/maestro/cloud.md +1 -1
  124. package/skills/massa-ai/references/maestro/config-env-output.md +1 -1
  125. package/skills/massa-ai/references/maestro/fact-ledger.md +1 -1
  126. package/skills/massa-ai/references/maestro/js-scripting.md +1 -1
  127. package/skills/massa-ai/references/maestro/mcp.md +1 -1
  128. package/skills/massa-ai/references/maestro/patterns.md +1 -1
  129. package/skills/massa-ai/references/maestro/selectors.md +1 -1
  130. package/skills/massa-ai/references/maestro/workspace-execution.md +1 -1
  131. package/skills/massa-ai/references/maestro/yaml-commands.md +1 -1
  132. package/skills/massa-ai/references/maestro.md +1 -1
  133. package/skills/massa-ai/references/mcp-tools.md +2 -2
  134. package/skills/massa-ai/references/memory-policy.md +2 -2
  135. package/skills/massa-ai/references/mobile-context.md +9 -5
  136. package/skills/massa-ai/references/mobile-diagnosis.md +2 -2
  137. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +1 -1
  138. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +1 -1
  139. package/skills/massa-ai/references/mobile-figma-matcher/core.md +1 -1
  140. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +1 -1
  141. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +1 -1
  142. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +1 -1
  143. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +1 -1
  144. package/skills/massa-ai/references/naming-standards.md +1 -1
  145. package/skills/massa-ai/references/pr-task-fix.md +2 -2
  146. package/skills/massa-ai/references/project-context.md +2 -2
  147. package/skills/massa-ai/references/repo-rules-discovery.md +4 -4
  148. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +1 -1
  149. package/skills/massa-ai/references/rfc/document-contract.md +1 -1
  150. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +1 -1
  151. package/skills/massa-ai/references/root-cause-scripts.md +2 -2
  152. package/skills/massa-ai/references/sonarqube-mcp.md +73 -0
  153. package/skills/massa-ai/references/spec-driven/artifact-store.md +1 -1
  154. package/skills/massa-ai/references/spec-driven/brownfield-mapping.md +16 -0
  155. package/skills/massa-ai/references/spec-driven/code-analysis.md +1 -1
  156. package/skills/massa-ai/references/spec-driven/coding-principles.md +1 -1
  157. package/skills/massa-ai/references/spec-driven/context-limits.md +1 -1
  158. package/skills/massa-ai/references/spec-driven/design.md +22 -1
  159. package/skills/massa-ai/references/spec-driven/discuss.md +1 -1
  160. package/skills/massa-ai/references/spec-driven/execute.md +3 -1
  161. package/skills/massa-ai/references/spec-driven/memory.md +1 -1
  162. package/skills/massa-ai/references/spec-driven/specify.md +3 -3
  163. package/skills/massa-ai/references/spec-driven/sub-agents.md +1 -1
  164. package/skills/massa-ai/references/spec-driven/tasks.md +1 -1
  165. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  166. package/skills/massa-ai/references/subagent-design.md +4 -4
  167. package/skills/massa-ai/references/synapse-policy.md +1 -1
  168. package/skills/massa-ai/references/tdd/calibrated-examples.md +1 -1
  169. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +1 -1
  170. package/skills/massa-ai/references/tdd/document-contract.md +1 -1
  171. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +1 -1
  172. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +1 -1
  173. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +1 -1
  174. package/skills/massa-ai/references/the-fool/evidence-audit.md +1 -1
  175. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +1 -1
  176. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +1 -1
  177. package/skills/massa-ai/references/the-fool/socratic-questioning.md +1 -1
  178. package/skills/massa-ai/references/ticket/atlassian-fix.md +1 -1
  179. package/skills/massa-ai/references/ticket/intake-and-sources.md +1 -1
  180. package/skills/massa-ai/references/ticket/templates-and-quality.md +1 -1
  181. package/skills/massa-ai/references/verification-ladder.md +1 -1
  182. package/skills/massa-ai/scripts/validate_audit_report.ts +382 -0
  183. package/skills/massa-ai/scripts/validate_design.ts +264 -0
  184. package/skills/massa-ai/workflows/adr.md +16 -8
  185. package/skills/massa-ai/workflows/architecture/architecture-audit.md +23 -40
  186. package/skills/massa-ai/workflows/architecture/architecture-fix.md +14 -6
  187. package/skills/massa-ai/workflows/bugs/bugs-audit.md +19 -35
  188. package/skills/massa-ai/workflows/bugs/bugs-fix.md +13 -5
  189. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +25 -41
  190. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +13 -5
  191. package/skills/massa-ai/workflows/commit.md +13 -5
  192. package/skills/massa-ai/workflows/debug.md +11 -3
  193. package/skills/massa-ai/workflows/design.md +15 -7
  194. package/skills/massa-ai/workflows/exploration.md +12 -4
  195. package/skills/massa-ai/workflows/feature.md +14 -13
  196. package/skills/massa-ai/workflows/general.md +13 -8
  197. package/skills/massa-ai/workflows/implementation/implementation-audit.md +15 -15
  198. package/skills/massa-ai/workflows/implementation/implementation-fix.md +13 -5
  199. package/skills/massa-ai/workflows/judge-with-debate.md +12 -4
  200. package/skills/massa-ai/workflows/long-session.md +10 -2
  201. package/skills/massa-ai/workflows/maestro/maestro-audit.md +11 -3
  202. package/skills/massa-ai/workflows/maestro/maestro-fix.md +12 -4
  203. package/skills/massa-ai/workflows/maestro/maestro.md +12 -4
  204. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +11 -3
  205. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +12 -4
  206. package/skills/massa-ai/workflows/onboarding.md +10 -2
  207. package/skills/massa-ai/workflows/refactor.md +12 -4
  208. package/skills/massa-ai/workflows/refinement/furps-refinement.md +12 -4
  209. package/skills/massa-ai/workflows/requirements/requirements-audit.md +19 -36
  210. package/skills/massa-ai/workflows/requirements/requirements-fix.md +13 -5
  211. package/skills/massa-ai/workflows/rfc.md +10 -2
  212. package/skills/massa-ai/workflows/security/security-audit.md +19 -35
  213. package/skills/massa-ai/workflows/security/security-fix.md +13 -5
  214. package/skills/massa-ai/workflows/spec-driven.md +20 -23
  215. package/skills/massa-ai/workflows/tdd.md +10 -2
  216. package/skills/massa-ai/workflows/tests/tests-audit.md +19 -35
  217. package/skills/massa-ai/workflows/tests/tests-fix.md +13 -5
  218. package/skills/massa-ai/workflows/the-fool.md +11 -3
  219. package/skills/massa-ai/workflows/ticket.md +10 -2
  220. package/skills/profile/SKILL.md +39 -0
@@ -1,6 +1,6 @@
1
1
  # Audit Scope
2
2
 
3
- Use this reference from audit workflows, implementation audit, bug finder, mobile Figma, and execution workflows before inspecting changed code or selecting an audit report.
3
+ Use from audit workflows, implementation audit, bug finder, mobile Figma, and execution workflows before inspecting changed code or selecting an audit report.
4
4
 
5
5
  ## Scope Packets
6
6
 
@@ -64,6 +64,27 @@ Use the smallest scope type that matches the user's target:
64
64
  - Feature/flow: map entry points through main transformations and side effects; ask for a narrower flow when the feature spans too many unrelated surfaces.
65
65
  - Implementation parent scope: accept the exact packet supplied by `workflows/implementation/implementation-audit.md`, including PR diff when that is the selected scope type; child lenses must not broaden it without parent approval.
66
66
 
67
+ ## Lens Audit Scope Resolution Procedure
68
+
69
+ Use this procedure in `bugs-audit`, `architecture-audit`, `code-quality-audit`, `requirements-audit`, `security-audit`, and `tests-audit` once each workflow's own step 4 has selected one of the 5 resolution branches below from its trigger list (modified files, commit range, codebase area, explicit-files/globs/branch-comparison/symbol/feature/whole-repo, or implementation-parent scope). This is the single home for the mechanical resolution steps; each lens workflow keeps only its branch-name trigger list and a pointer here.
70
+
71
+ - **Modified files**: include staged and unstaged tracked files from the working tree, plus untracked non-generated source/test/fixture/schema/config/docs files only when they can affect the lens's evidence (see Per-Lens Scope Deltas for the exact affect-scope and deleted-file-breakage wording per lens). Exclude generated, dependency, build, log, cache, temporary, and secret paths per repo rules. Inspect diffs first, then only the surrounding evidence the lens needs.
72
+ - **Commit range**: use the user-supplied explicit commits/range when given. For "commits made by me", resolve author identity from `git config user.email`, falling back to `git config user.name` when empty, and review only branch-unique commits by that identity. For branch-relative commit scopes, resolve the base with `Branch, Commit, And PR Diff Resolution` below. Ask the user for any missing range/identity/base before proceeding. Inspect the changed files and diffs from those commits, then the lens-specific evidence named in Per-Lens Scope Deltas.
73
+ - **Codebase area**: require a concrete path, module, package, feature area, or glob; ask when missing. Follow `references/codebase-investigation.md`'s retrieval order to find the lens-specific targets in Per-Lens Scope Deltas. Map only top-level modules first and recommend a narrower pass when scope is broad.
74
+ - **Explicit files/globs, branch comparison, symbol/class/function, feature/flow, or explicitly requested whole-repo scope**: resolve the target here and record the resolution method, base/head when relevant, resolved files, exclusions, requirements source when applicable, and freshness timestamp. For symbol/class/function targets, inspect definitions, references, callers, tests, and config plus the lens's extra targets, only as needed to verify a candidate finding. For feature/flow targets, map entry points through the lens-specific transformations named in Per-Lens Scope Deltas. For whole-repo scope, map the lens's first-pass surface (Per-Lens Scope Deltas) and report skipped-depth checks rather than implying exhaustive coverage.
75
+ - **Implementation parent scope**: accept the exact scope packet from `implementation-audit`; do not broaden beyond resolved files, surrounding code, and the lens-specific evidence in Per-Lens Scope Deltas needed to verify the lens's claim. Return compact lens findings to the parent implementation audit; do not write broad project memories unless explicitly assigned.
76
+
77
+ ### Per-Lens Scope Deltas
78
+
79
+ | Lens (workflow) | Commit-range trigger phrase | Modified-files affect-scope + deleted-file breakage extras | Codebase-area retrieval targets | Symbol/class/function extra targets | Feature/flow mapping focus | Whole-repo first pass | Implementation-parent extra evidence |
80
+ | --- | --- | --- | --- | --- | --- | --- | --- |
81
+ | Architecture (`architecture-audit`) | architecture issues introduced by branch commits | architecture contracts or module boundaries; deletion also breaks architecture contracts | target modules, entry points, exported surfaces, references, semantic hotspots, tests, adjacent config | exported surfaces, references, dependency direction, callers, tests, ADRs | entry points through main transformations, contracts, side effects | top-level modules | exported surfaces, references, config, tests, ADRs |
82
+ | Bugs (`bugs-audit`) | bugs introduced by branch commits | runtime or validation behavior; deletion breaks imports, exports, routing, migrations, config, tests, or packaging | entry points, public API, tests, adjacent config | callers, callees, tests, contracts, config | input -> transformation -> output through the named flow | high-risk entry points | callers, callees, tests, config, migrations, schemas, public contracts |
83
+ | Code Quality (`code-quality-audit`) | quality issues introduced by branch commits | maintainability, validation behavior, or public contracts; deletion breaks imports, exports, routing, migrations, config, tests, or packaging | target modules, semantic hotspots, public API, tests, adjacent config | references, call sites, tests, current usage evidence | main code path only as far as needed for maintainability/overengineering | sampled/top-level coverage | public API, tests, config, project patterns |
84
+ | Requirements (`requirements-audit`) | requirement drift introduced by branch commits | required behavior; deletion also breaks required behavior or documentation contracts | entry points, public API, tests, config, docs, acceptance criteria | call paths, public contracts, tests, config, docs, requirement links | expected behavior from the requirements source to implementation, tests, docs, contracts | top-level requirement areas | public contracts, tests, config, docs, requirements |
85
+ | Security (`security-audit`) | security issues introduced by branch commits | runtime or validation behavior; deletion also breaks secrets handling or policy enforcement | entry points, trust boundaries, policy checks, validators, tests, adjacent config | call paths, trust boundaries, validators, policies, tests, config, schemas | untrusted input, identity, authorization, validation, persistence, side effects, logs | major trust boundaries | called auth/validation helpers, config, schemas, tests |
86
+ | Tests (`tests-audit`) | test gaps introduced by branch commits | runtime, validation, or test behavior; deletion also breaks test coverage | production entry points, tests, fixtures, mocks, test commands, coverage-sensitive config | call paths, behavior contracts, tests, fixtures, mocks, test commands | changed or targeted behavior mapped to existing tests and deterministic harnesses | major test surfaces | nearby tests, fixtures, config, callers |
87
+
67
88
  ## Branch, Commit, And PR Diff Resolution
68
89
 
69
90
  Use this order:
@@ -1,7 +1,7 @@
1
1
  # Code Annotation And Test Coverage
2
2
 
3
- Use this reference in every implementation workflow, before writing or editing
4
- source. It defines the three things every created or updated unit of code owes
3
+ Use in every implementation workflow, before writing or editing
4
+ source. Defines the three things every created or updated unit of code owes
5
5
  the next reader: an API doc block, a rationale comment, and a test.
6
6
 
7
7
  ## Principle
@@ -46,7 +46,7 @@ Rules:
46
46
 
47
47
  ## 2. Rationale Comment
48
48
 
49
- Doc blocks describe the contract. They do not explain why the code changed. Add
49
+ Doc blocks describe the contract, not why the code changed. Add
50
50
  a rationale block once at the changed unit — the class, the method, or the
51
51
  enclosing block — not on every line.
52
52
 
@@ -108,8 +108,8 @@ Rules:
108
108
 
109
109
  Data models and anemic domain models carry state, not behavior. A unit test
110
110
  that constructs them and asserts their own getters, setters, fields, or
111
- constructor defaults mirrors the implementation and cannot detect that the
112
- model is wrong — it is the "test that mirrors the code" anti-pattern from the
111
+ constructor defaults mirrors the implementation and cannot detect the
112
+ model is wrong — the "test that mirrors the code" anti-pattern from the
113
113
  rule above. **Do not write unit tests for these kinds:**
114
114
 
115
115
  - **Data models** — persistence-layer entities: ORM-mapped classes, database
@@ -1,6 +1,6 @@
1
1
  # Codebase Investigation
2
2
 
3
- Use this reference when understanding unfamiliar code before planning, fixing, reviewing, or refactoring.
3
+ Use when understanding unfamiliar code before planning, fixing, reviewing, or refactoring.
4
4
 
5
5
  ## Golden Rules
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Context Firewall
2
2
 
3
- Use this reference before loading raw artifacts >200 lines, >20 KB, >50 search hits, generated reports, logs, screenshots, browser snapshots, CSVs, external research, or any source batch likely to exceed the next decision's needs.
3
+ Use before loading raw artifacts >200 lines, >20 KB, >50 search hits, generated reports, logs, screenshots, browser snapshots, CSVs, external research, or any source batch likely to exceed the next decision's needs.
4
4
 
5
5
  ## Principle
6
6
 
@@ -56,6 +56,7 @@ The main agent receives only:
56
56
 
57
57
  Subagents should not return raw dumps. Never poll a running subagent for status and never read a subagent transcript — the returned output contract is the only channel back into the main context (canonical rules: `references/agent-orchestration.md`, Orchestrator Working Memory). The main agent still owns memory recall, persistence, synthesis, and the final Evidence Gate.
58
58
 
59
+
59
60
  ## Persistence Boundary
60
61
 
61
62
  `massa-ai` remains the canonical memory layer for massa-ai workflows. Do not introduce `.notebook/`, SQLite, generated state files, or new persistence systems unless a separate workflow explicitly requires them.
@@ -1,6 +1,6 @@
1
1
  # Conversation Feedback
2
2
 
3
- Use this reference when a massa-ai workflow needs chat-visible status updates for routing, loading, memory, NotebookLM, subagents, divergences, errors, verification, or completion.
3
+ Use when a massa-ai workflow needs chat-visible status updates for routing, loading, memory, NotebookLM, subagents, divergences, errors, verification, or completion.
4
4
 
5
5
  ## Principle
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Debug Diagnosis Loop
2
2
 
3
- Use this reference when `workflows/debug.md` asks for an evidence-first diagnosis loop.
3
+ Use when `workflows/debug.md` asks for an evidence-first diagnosis loop.
4
4
 
5
5
  ## Principle
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Decision Engine Reference
2
2
 
3
- Load this when scoring memories, making a trade-off decision, or debugging with
3
+ Load when scoring memories, making a trade-off decision, or debugging with
4
4
  prior attempts. Do not load for simple edits where no memory write or design
5
5
  decision is needed.
6
6
 
@@ -18,7 +18,7 @@ A completion report must include:
18
18
 
19
19
  Completion reports must also state that tests, specs, fixtures, snapshots,
20
20
  schemas, public contracts, and validator checks were not weakened unless the
21
- user explicitly requested a validation-asset change.
21
+ user explicitly requested it.
22
22
 
23
23
  ## Acceptable Evidence
24
24
 
@@ -1,6 +1,6 @@
1
1
  # Figma Pre-Analysis And Sequential Retrieval
2
2
 
3
- Load this reference whenever a workflow receives one or more Figma links, node
3
+ Load whenever a workflow receives one or more Figma links, node
4
4
  IDs, or a readable desktop selection as a design source — the Figma audit/fix
5
5
  family (`mobile-figma-audit`, `mobile-figma-fix`), `design`, and the
6
6
  design-source gates of implementation workflows (`feature`, `spec-driven`).
@@ -14,14 +14,14 @@ restate it.
14
14
 
15
15
  Full Figma extraction on unscoped links overloads one context with mixed
16
16
  screens, buries feature boundaries, and makes evidence non-attributable. A
17
- cheap pre-analysis pass first maps what the links contain, so each retrieval
17
+ cheap pre-analysis pass maps what the links contain first, so each retrieval
18
18
  pass reads one coherent slice.
19
19
 
20
20
  ## Stage 1 — Pre-Analysis (always first, exactly one subagent)
21
21
 
22
22
  Dispatch one read-only subagent (investigator-class; Figma MCP — Model Context
23
23
  Protocol — access, no repository mutation) over the user-provided Figma links.
24
- Its job is understanding, **not** extraction:
24
+ Its job: understanding, **not** extraction:
25
25
 
26
26
  - Summarize composition: pages, screens, frames, component sets, shared tokens.
27
27
  - Summarize product context: what the screens are for, the features they serve,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Reusable sub-agent role for `workflows/refinement/furps-refinement.md`. Charter follows `references/subagent-design.md`. Registered in `references/agent-orchestration.md`.
4
4
 
5
- Purpose: analyze exactly one FURPS+ dimension (F, U, R, P, S, or X) of a PRD/ADR against its checklist section and return structured refinement findings.
5
+ Purpose: analyze exactly one FURPS+ dimension (F, U, R, P, S, or X) of a PRD/ADR against its checklist section, returning structured refinement findings.
6
6
 
7
7
  Trigger description:
8
8
  - Use when the `furps-refinement` workflow fans out per-dimension analysis and needs isolated context plus independent verification per dimension.
@@ -1,6 +1,6 @@
1
1
  # FURPS+ Refinement Checklist
2
2
 
3
- Use this reference from `workflows/refinement/furps-refinement.md` when analyzing a PRD and/or ADR against the FURPS+ quality model. One `furps-analyst` sub-agent loads only its assigned dimension section; the main agent loads the full file only when synthesizing or when no dimension split is used.
3
+ Use from `workflows/refinement/furps-refinement.md` when analyzing a PRD and/or ADR against the FURPS+ quality model. One `furps-analyst` sub-agent loads only its assigned dimension section; the main agent loads the full file only when synthesizing or when no dimension split is used.
4
4
 
5
5
  ## Source
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FURPS+ Refinement Intake & Sub-agent Packet Contract
2
2
 
3
- Use this reference from `workflows/refinement/furps-refinement.md` during intake and before dispatching sub-agents. It defines source detection, DoR sourcing, the context-firewall, the bounded document packet, and the sub-agent packet contracts.
3
+ Use from `workflows/refinement/furps-refinement.md` during intake and before dispatching sub-agents. Defines source detection, DoR sourcing, the context-firewall, the bounded document packet, and the sub-agent packet contracts.
4
4
 
5
5
  ## Source-type detection
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FURPS+ Refinement Report Contract
2
2
 
3
- Use this reference from `workflows/refinement/furps-refinement.md` before writing the final report. It extends the shared `references/audit-report-io.md` single-lens contract with FURPS-specific sections and the required refinement outputs (open questions, suggestions, insights, risks, DoR coverage gaps).
3
+ Use from `workflows/refinement/furps-refinement.md` before writing the final report. Extends the shared `references/audit-report-io.md` single-lens contract with FURPS-specific sections and the required refinement outputs (open questions, suggestions, insights, risks, DoR coverage gaps).
4
4
 
5
5
  ## Report path
6
6
 
@@ -0,0 +1,22 @@
1
+ # Graceful Degradation
2
+
3
+ Load when any massa-ai tool, index, or MCP capability named below is
4
+ unavailable, empty, stale, or mismatched. Continue the workflow with the
5
+ listed fallback instead of blocking.
6
+
7
+ | Failure | Behavior |
8
+ |---|---|
9
+ | `recall` empty | Continue as cold start; do not invent memory. |
10
+ | massa-ai server unavailable | Fall back to focused shell/file reads; keep session concept. |
11
+ | Synapse unavailable | Continue with stateless search. |
12
+ | Synapse prime/access mismatch | Use verified REST fallback or skip that optional step. |
13
+ | index incomplete or stale | Use recall; skip search-dependent steps until ready. Graph tools (`trace_path`, `impact_analysis`, `get_architecture`) fall back to `search`/`get_references`; record reduced retrieval confidence. |
14
+ | no meaningful memory | Say memory was intentionally skipped. |
15
+ | memory write fails | Continue and report the unpersisted insight. |
16
+ | `create_checkpoint` unavailable | Continue with `.specs/` artifact state as fallback. |
17
+ | `handoff_begin` unavailable (`HANDOFFS_ENABLED=false`) | Fall back to `remember` + `.specs/` writes; record skipped handoff-table write. |
18
+ | `bootstrap` unavailable | Proceed with manual `remember` calls. |
19
+ | `compact_snapshot` unavailable | Continue with `compress` + `remember`; record skipped snapshot. |
20
+ | code execution (`execute`/`execute_file`/`batch_execute`) unavailable | Load file into context instead; note the local-dev-only trust model still applies. |
21
+ | `fetch_and_index` unavailable | Use native web fetch + manual indexing or skip external content. |
22
+ | feedback reference unavailable | Continue without feedback lines; do not block the workflow. |
@@ -1,15 +1,15 @@
1
1
  # Hook Enforcement
2
2
 
3
- Maps the runtime hook layer (`scripts/hooks/`, `hooks/hooks.json`) to massa-ai
3
+ Maps the runtime hook layer (`apps/claude-plugin/hooks/`, its `hooks.json`) to massa-ai
4
4
  workflows and references, and documents the massa-ai dual-write/tag contract.
5
- Hooks **enforce** existing references and the gate the router already selected;
5
+ Hooks **enforce** existing references and the gate the router already selected —
6
6
  they never re-author policy and never re-route. One canonical location per rule.
7
7
 
8
8
  ## Platform Scoping
9
9
 
10
10
  The full hook graph installs for **Claude Code, Codex, and Cursor**. OpenCode has
11
11
  no hook model and keeps the `AGENTS.md` bootstrap only. The installer
12
- (`scripts/agent_integrations.py`) preserves unrelated user hooks on install and
12
+ (each host plugin's `install.sh`) preserves unrelated user hooks on install and
13
13
  uninstall via managed-command tracking.
14
14
 
15
15
  Platform hook formats differ; the installer translates one canonical graph
@@ -1,7 +1,7 @@
1
1
  # Implementation Delivery Protocol
2
2
 
3
- Use this reference in every implementation workflow, before the first repository
4
- mutation. It defines how verified work leaves the agent's hands: isolated in a
3
+ Use in every implementation workflow, before the first repository
4
+ mutation. Defines how verified work leaves the agent's hands: isolated in a
5
5
  worktree, committed atomically, pushed, proposed as a pull request, watched
6
6
  through CI, repaired if red — and merged only after the user says so.
7
7
 
@@ -10,8 +10,8 @@ They do not mutate, so they have nothing to deliver.
10
10
 
11
11
  ## Principle
12
12
 
13
- Work that is not isolated, not pushed, and not tested by CI is not delivered —
14
- it is a local opinion. The protocol turns "I finished" into "CI agrees, and a
13
+ Work that is not isolated, not pushed, and not tested by CI is not delivered — it
14
+ is a local opinion. The protocol turns "I finished" into "CI agrees, and a
15
15
  human chose to merge it".
16
16
 
17
17
  ## The Chain
@@ -1,6 +1,6 @@
1
1
  # Massa-ai Installation And Diagnostics
2
2
 
3
- Load this only for installing, configuring, validating, or troubleshooting the
3
+ Load only for installing, configuring, validating, or troubleshooting the
4
4
  massa-ai stack. Ordinary workflow routing should use MCP tools instead.
5
5
 
6
6
  ## Install And Upgrade
@@ -1,6 +1,6 @@
1
1
  # Lessons
2
2
 
3
- Use this reference when loading confirmed project lessons during startup, or recording grounded reusable failures after verification, across any workflow that produces verifiable outcomes.
3
+ Use when loading confirmed project lessons during startup, or recording grounded reusable failures after verification, across any workflow that produces verifiable outcomes.
4
4
 
5
5
  ## Artifacts
6
6
 
@@ -73,7 +73,7 @@ If `lessons.ts` is unavailable or cannot run, record `Lessons: skipped - script
73
73
  ## Continuous-Learning Loop (hook-fed)
74
74
 
75
75
  The lessons layer is a closed loop, not manual-only. Two runtime hooks
76
- (`scripts/hooks/`, installed for Claude Code by the installer) feed it:
76
+ (`apps/claude-plugin/hooks/`, installed for Claude Code by the plugin installer) feed it:
77
77
 
78
78
  1. **observe** — `observe_runner.py` (PostToolUse) captures raw tool-use
79
79
  observations into the gitignored `.specs/observations.json` buffer. Grounding
@@ -1,6 +1,6 @@
1
1
  # Maestro Artifacts And Reports Reference
2
2
 
3
- Use this when running, auditing, or fixing flows that need report paths, artifact directories, screenshots, videos, debug output, or recording.
3
+ Use when running, auditing, or fixing flows that need report paths, artifact directories, screenshots, videos, debug output, or recording.
4
4
 
5
5
  ## Reports
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro CLI And Device Reference
2
2
 
3
- Use this for CLI preflight, local command syntax, device/platform readiness, and local execution constraints.
3
+ Use for CLI preflight, local command syntax, device/platform readiness, and local execution constraints.
4
4
 
5
5
  ## Mandatory Preflight
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Cloud Reference
2
2
 
3
- Use this only when a Maestro task touches Cloud execution, CI upload, Cloud devices, Cloud-auth-backed AI, or app binary reuse.
3
+ Use only when a Maestro task touches Cloud execution, CI upload, Cloud devices, Cloud-auth-backed AI, or app binary reuse.
4
4
 
5
5
  ## Cloud Command
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Config, Env, And Output Boundaries
2
2
 
3
- Use this when deciding whether a fact belongs in a Flow header, `config.yaml`, CLI invocation, report metadata, or artifact output.
3
+ Use when deciding whether a fact belongs in a Flow header, `config.yaml`, CLI invocation, report metadata, or artifact output.
4
4
 
5
5
  ## Boundary Matrix
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Fact Ledger
2
2
 
3
- Use this before making Maestro claims. It defines source authority, fact tags, local transcript requirements, and quarantine rules for unsupported checklist items.
3
+ Use before making Maestro claims. Defines source authority, fact tags, local transcript requirements, and quarantine rules for unsupported checklist items.
4
4
 
5
5
  ## Authority Order
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro JavaScript Reference
2
2
 
3
- Use this for `evalScript`, `runScript`, inline expressions, generated data, shared state, and JavaScript logging.
3
+ Use for `evalScript`, `runScript`, inline expressions, generated data, shared state, and JavaScript logging.
4
4
 
5
5
  ## Execution Methods
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro MCP Reference
2
2
 
3
- Use this only when the task mentions Maestro MCP, agent/device automation through MCP tools, Maestro Viewer, or Cloud MCP tooling.
3
+ Use only when the task mentions Maestro MCP, agent/device automation through MCP tools, Maestro Viewer, or Cloud MCP tooling.
4
4
 
5
5
  ## MCP Surface
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Workflow Patterns
2
2
 
3
- Use this for stable suite design, setup/teardown strategy, validation assets, and workflow output contracts.
3
+ Use for stable suite design, setup/teardown strategy, validation assets, and workflow output contracts.
4
4
 
5
5
  ## Stable Flow Design
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Selectors Reference
2
2
 
3
- Use this when choosing or auditing selectors. Official selector index: https://docs.maestro.dev/reference/selectors.md.
3
+ Use when choosing or auditing selectors. Official selector index: https://docs.maestro.dev/reference/selectors.md.
4
4
 
5
5
  ## Source Basis
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Workspace And Execution Reference
2
2
 
3
- Use this when discovering Maestro roots, config files, tags, execution order, suite isolation, and CI invocation.
3
+ Use when discovering Maestro roots, config files, tags, execution order, suite isolation, and CI invocation.
4
4
 
5
5
  ## Discovery
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro YAML Commands Reference
2
2
 
3
- Use this when authoring or auditing Maestro flow commands. Official command inventory lives at https://docs.maestro.dev/reference/commands-available.md.
3
+ Use when authoring or auditing Maestro flow commands. Official command inventory lives at https://docs.maestro.dev/reference/commands-available.md.
4
4
 
5
5
  ## Flow Header
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Maestro Reference Index
2
2
 
3
- Use this small index from `workflows/maestro/maestro.md`, `workflows/maestro/maestro-audit.md`, and `workflows/maestro/maestro-fix.md` to select the minimum focused Maestro reference for the current step. Do not treat this index as the full Maestro source of truth.
3
+ Use this small index from `workflows/maestro/maestro.md`, `workflows/maestro/maestro-audit.md`, and `workflows/maestro/maestro-fix.md` to select the minimum focused Maestro reference for the current step. Not the full Maestro source of truth.
4
4
 
5
5
  ## Source Policy
6
6
 
@@ -1,6 +1,6 @@
1
1
  # massa-ai Tool Contracts (52 Tools)
2
2
 
3
- Load this reference when exact MCP schemas, REST fallbacks, response modes, or
3
+ Load when exact MCP schemas, REST fallbacks, response modes, or
4
4
  polling rules are needed. Prefer the active tool declaration over copied
5
5
  examples. The canonical tool list and order is defined in
6
6
  `apps/mcp-client/src/tool-definitions.ts` CANONICAL_ORDER.
@@ -278,7 +278,7 @@ required operation is absent or its adapter is proven broken.
278
278
 
279
279
  ## Polling Discipline
280
280
 
281
- Never call `index_status` in a tight turn-by-turn loop. Poll after a real
281
+ Never call `index_status` in a tight turn-by-turn loop — poll after a real
282
282
  delay. Preferred shell pattern:
283
283
 
284
284
  ```bash
@@ -1,6 +1,6 @@
1
1
  # Memory Policy
2
2
 
3
- Read this when writing, updating, pruning, promoting, or resolving conflicting massa-ai memories.
3
+ Read when writing, updating, pruning, promoting, or resolving conflicting massa-ai memories.
4
4
 
5
5
  ## Tiers
6
6
 
@@ -15,7 +15,7 @@ Supported massa-ai types are only `critical`, `conversation`, `code`, `decision`
15
15
 
16
16
  ## Observational Memory
17
17
 
18
- Observational Memory is not a new storage layer. It is the discipline for deciding which execution observations become massa-ai memories.
18
+ Observational Memory is not a new storage layer — it is the discipline for deciding which execution observations become massa-ai memories.
19
19
 
20
20
  - Observer mode: capture only high-signal events, decisions, failed attempts, ruled-out hypotheses, and verification recipes.
21
21
  - Reflector mode: when the same lesson appears in 3+ independent sessions, promote it to semantic or procedural memory.
@@ -1,6 +1,6 @@
1
1
  # Mobile Context
2
2
 
3
- Use this reference when a non-debug workflow touches KMP, iOS, Android, native bridges, mobile app lifecycle, offline sync, permissions, push/background work, local persistence, or backend-mobile contracts.
3
+ Use when a non-debug workflow touches KMP, iOS, Android, native bridges, mobile app lifecycle, offline sync, permissions, push/background work, local persistence, or backend-mobile contracts.
4
4
 
5
5
  Mobile is a context modifier, not a primary workflow. Keep the selected workflow based on user intent:
6
6
 
@@ -19,13 +19,17 @@ Mobile is a context modifier, not a primary workflow. Keep the selected workflow
19
19
  - Fix findings from a security audit report -> `workflows/security/security-fix.md`
20
20
  - Broad, cross-boundary, unclear, or multi-platform implementation -> `workflows/spec-driven.md`
21
21
 
22
- For `feature`, `spec-driven`, `rfc`, `adr`, and `tdd`, supported mobile UI work can use the optional design-source gate. Ask for one or more Figma links, node IDs, a readable desktop selection, supplied screenshots, or explicit `none` only when the request is Android, iOS, KMP Compose Multiplatform UI, or plausibly mobile UI. Clear backend, CLI, docs, infrastructure, and non-UI requests skip the prompt.
23
-
24
22
  Maestro is a first-class mobile E2E workflow family when the primary target is flow implementation, existing-flow audit, or saved `MST-*` remediation. Generic test coverage, assertion quality, or regression-risk review still belongs to `workflows/tests/tests-audit.md` or `workflows/tests/tests-fix.md` when the target is not Maestro-specific.
25
23
 
26
- When Figma sources or screenshots are supplied for supported Android, iOS, or KMP Compose Multiplatform UI implementation, keep the parent workflow as the lifecycle owner and invoke `workflows/design.md` only for the affected UI slice or visual feasibility context. Use `workflows/mobile-figma/mobile-figma-audit.md` for compare/audit intent and `workflows/mobile-figma/mobile-figma-fix.md` for saved `MFM-*` findings.
24
+ ## Design-Source Intake Gate
25
+
26
+ Use this gate for `feature`, `spec-driven`, `rfc`, `adr`, and `tdd` workflows when the target is Android, iOS, KMP Compose Multiplatform UI, or plausibly mobile UI. Clear backend, CLI, docs, infrastructure, or non-UI work skips the gate entirely.
27
27
 
28
- Treat `none` as a first-class answer: record `Figma Source: none by user choice` and do not re-ask unless the mobile UI scope changes. For unsupported targets such as Flutter, React Native, web, desktop, or generic design exploration, record supplied design sources as outside mobile Figma scope, do not run mobile Figma, and continue the parent workflow. Screenshots are context-only unless paired with structured Figma evidence; do not claim exact Figma parity, tokens, variables, or dimensions from screenshots alone.
28
+ - Ask once for one or more Figma links, node IDs, a readable desktop selection, supplied screenshots, or explicit `none`. Treat `none` as a first-class answer: record `Figma Source: none by user choice` and do not re-ask unless the mobile UI scope changes.
29
+ - When Figma sources or screenshots are supplied for supported Android, iOS, or KMP Compose Multiplatform UI implementation/update work, keep the parent workflow as the lifecycle owner and invoke `workflows/design.md` only for the affected UI slice or visual feasibility context. Preserve mobile Figma routing by intent: compare/audit wording uses `workflows/mobile-figma/mobile-figma-audit.md`; saved `MFM-*` findings use `workflows/mobile-figma/mobile-figma-fix.md`.
30
+ - When Figma links or node IDs are supplied, load `references/figma-pre-analysis.md` and run its two-stage sequential retrieval protocol before consuming the design evidence.
31
+ - For unsupported targets such as Flutter, React Native, web, desktop, or generic design exploration, record supplied design sources as outside mobile Figma scope, do not run mobile Figma, and continue the parent workflow.
32
+ - Figma defines visible design intent and represented variants only. Screenshots are context-only unless paired with structured Figma evidence; do not claim exact Figma parity, tokens, variables, or dimensions from screenshots alone. Product behavior not represented by the design source still requires a separate requirements source.
29
33
 
30
34
  ## Mobile Context Packet
31
35
 
@@ -1,8 +1,8 @@
1
1
  # Mobile Diagnosis
2
2
 
3
- Use this reference when `workflows/debug.md` handles broken behavior involving KMP, iOS, Android, native bridges, real devices, simulators, emulators, mobile app lifecycle, or device-specific failures.
3
+ Use when `workflows/debug.md` handles broken behavior involving KMP, iOS, Android, native bridges, real devices, simulators, emulators, mobile app lifecycle, or device-specific failures.
4
4
 
5
- This extends `references/debug-diagnosis-loop.md`. Do not use it instead of the general debug loop.
5
+ This extends `references/debug-diagnosis-loop.md`. Not a substitute for the general debug loop.
6
6
 
7
7
  For non-debug mobile feature, refactor, tests, or security work, keep the intent-specific workflow and load `references/mobile-context.md` instead. Use `references/mobile-context.md` from Debug only when shared mobile vocabulary or non-bug parity/security/test framing is needed — and always when a fix creates or updates a Compose screen, because its Compose Screen Previews rule (`@Preview` coverage) applies to debug-path edits too.
8
8
 
@@ -1,6 +1,6 @@
1
1
  # Android Jetpack Compose Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as Android Jetpack Compose.
3
+ Load only for Target Surface Packet rows classified as Android Jetpack Compose.
4
4
 
5
5
  - Resolve composables, modifiers, layout primitives, Material/theme tokens, typography, shapes, painters/assets, state holders, previews/providers, navigation entry, semantics, and test tags affecting the surface.
6
6
  - Distinguish Android-only Compose from Compose Multiplatform using module and source-set evidence.
@@ -1,6 +1,6 @@
1
1
  # Android Views Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as Android Views XML.
3
+ Load only for Target Surface Packet rows classified as Android Views XML.
4
4
 
5
5
  - Resolve `res/layout`, qualifiers, includes/merges, styles/themes, dimensions, colors/selectors, text appearances, drawables, fonts, strings, binding/adapters, and Material components affecting the surface.
6
6
  - Follow aliases to final values. Record the symbolic resource chain and resolved value.
@@ -1,6 +1,6 @@
1
1
  # Mobile Figma Core
2
2
 
3
- Use this shared reference after `repository-detection.md` identifies one or more target surfaces. It defines Figma evidence, requirements boundaries, asset handling, mapping and comparison semantics, runtime evidence, and parity-claim limits. Load only the platform references named by the Target Surface Packet.
3
+ Use after `repository-detection.md` identifies one or more target surfaces. Defines Figma evidence, requirements boundaries, asset handling, mapping and comparison semantics, runtime evidence, and parity-claim limits. Load only the platform references named by the Target Surface Packet.
4
4
 
5
5
  ## Boundaries
6
6
 
@@ -1,6 +1,6 @@
1
1
  # iOS SwiftUI Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as iOS SwiftUI.
3
+ Load only for Target Surface Packet rows classified as iOS SwiftUI.
4
4
 
5
5
  - Resolve `View` composition, modifiers, layout containers, environment values, state selection, navigation entry, styles, asset catalogs, symbols, fonts, previews, accessibility modifiers, and UIKit hosting/interoperability affecting the surface.
6
6
  - Compare Figma coordinates with SwiftUI points, then account for display scale only for rendered-pixel evidence.
@@ -1,6 +1,6 @@
1
1
  # iOS UIKit Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as iOS UIKit.
3
+ Load only for Target Surface Packet rows classified as iOS UIKit.
4
4
 
5
5
  - Resolve storyboards, XIBs, programmatic views, view controllers, reusable views/cells, Auto Layout constraints, appearance APIs, trait-dependent resources, asset catalogs, fonts, strings, and state configuration.
6
6
  - Compare Figma coordinates with UIKit points, then account for device display scale only when validating rendered pixels.
@@ -1,6 +1,6 @@
1
1
  # KMP Compose Multiplatform Figma Contract
2
2
 
3
- Load this reference only for shared Compose Multiplatform Target Surface Packet rows.
3
+ Load only for shared Compose Multiplatform Target Surface Packet rows.
4
4
 
5
5
  - Resolve common composables, shared state, theme/design tokens, Compose resources, adaptive layout, accessibility semantics, platform adapters, and `expect`/`actual` declarations affecting presentation.
6
6
  - Keep business/domain behavior in established shared boundaries. Do not move platform-only UI behavior into common code merely to reduce duplication.
@@ -1,6 +1,6 @@
1
1
  # Mobile Figma Repository Detection
2
2
 
3
- Use this reference before loading any stack-specific matcher reference. Classify the concrete target module and files, not the repository root or repository name.
3
+ Use before loading any stack-specific matcher reference. Classify the concrete target module and files, not the repository root or repository name.
4
4
 
5
5
  Monorepositories may contain several valid mobile stacks; classify only modules connected to the requested target.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Naming Standards
2
2
 
3
- Use this reference when a workflow writes code, drafts implementation contracts, audits code quality, or executes findings that introduce, rename, or preserve identifiers.
3
+ Use when a workflow writes code, drafts implementation contracts, audits code quality, or executes findings that introduce, rename, or preserve identifiers.
4
4
 
5
5
  ## Goal
6
6
 
@@ -1,12 +1,12 @@
1
1
  # PR Task Fix
2
2
 
3
- Load this reference from `workflows/feature.md` and `workflows/refactor.md` before non-trivial implementation or refactor execution that can be decomposed into reviewable task groups.
3
+ Load from `workflows/feature.md` and `workflows/refactor.md` before non-trivial implementation or refactor execution that can be decomposed into reviewable task groups.
4
4
 
5
5
  ## ADR/TDD Input Gate
6
6
 
7
7
  Before decomposition, inspect the first user prompt, current prompt context, explicitly attached or readable local files, and any already supplied Atlassian MCP source pointers.
8
8
 
9
- If there is no ADR or TDD plain text, no attached/readable ADR or TDD file, and no already supplied Atlassian ADR/TDD source, ask whether the user wants to provide an ADR or TDD through Atlassian MCP. Do not ask again when the user has already supplied, declined, or made Atlassian unavailable for this run.
9
+ If there is no ADR or TDD plain text, no attached/readable ADR or TDD file, and no already-supplied Atlassian ADR/TDD source, ask whether the user wants to provide an ADR or TDD through Atlassian MCP. Do not ask again once the user has already supplied, declined, or made Atlassian unavailable for this run.
10
10
 
11
11
  Use ADR/TDD input as implementation context, not as permission to bypass the active workflow's scope, source verification, or verification recipe. If the ADR/TDD conflicts with current source or project instructions, surface the conflict and resolve it before implementation.
12
12
 
@@ -1,6 +1,6 @@
1
1
  # Project Context Intake
2
2
 
3
- Use this reference at the start of every workflow, before the first substantive
3
+ Use at the start of every workflow, before the first substantive
4
4
  read, edit, plan, or answer. It defines the minimum project-context sweep that
5
5
  makes agent behavior match this repository's actual conventions instead of
6
6
  generic defaults.
@@ -41,7 +41,7 @@ When two sources conflict, the higher tier wins:
41
41
  6. Current repository source code.
42
42
  7. Recalled memory — context only, never canonical.
43
43
 
44
- A conflict between a doc and current source is a finding: report it rather than
44
+ A conflict between a doc and current source is a finding — report it rather than
45
45
  silently picking a side.
46
46
 
47
47
  ## Dedupe Guard