@massa-ai/cursor-plugin 1.26.0 → 1.29.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 (156) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/agent-profiles/balanced/massa-ai-judge.md +4 -8
  3. package/agent-profiles/balanced/massa-ai-meta-judge.md +2 -5
  4. package/agent-profiles/balanced/massa-ai-navigator.md +1 -1
  5. package/agent-profiles/cheap/massa-ai-judge.md +4 -8
  6. package/agent-profiles/cheap/massa-ai-meta-judge.md +2 -5
  7. package/agent-profiles/cheap/massa-ai-navigator.md +1 -1
  8. package/agent-profiles/heavy/massa-ai-judge.md +4 -8
  9. package/agent-profiles/heavy/massa-ai-meta-judge.md +2 -5
  10. package/agent-profiles/heavy/massa-ai-navigator.md +1 -1
  11. package/agent-profiles/home/massa-ai-judge.md +4 -8
  12. package/agent-profiles/home/massa-ai-meta-judge.md +2 -5
  13. package/agent-profiles/home/massa-ai-navigator.md +1 -1
  14. package/agent-profiles/work/massa-ai-judge.md +4 -8
  15. package/agent-profiles/work/massa-ai-meta-judge.md +2 -5
  16. package/agent-profiles/work/massa-ai-navigator.md +1 -1
  17. package/agents/massa-ai-judge.md +4 -8
  18. package/agents/massa-ai-meta-judge.md +2 -5
  19. package/agents/massa-ai-navigator.md +1 -1
  20. package/install.sh +35 -0
  21. package/package.json +1 -1
  22. package/skills/agents/judge/SKILL.md +6 -9
  23. package/skills/agents/meta-judge/SKILL.md +3 -6
  24. package/skills/agents/navigator/SKILL.md +2 -2
  25. package/skills/massa-ai/SKILL.md +6 -17
  26. package/skills/massa-ai/references/adr-authoring.md +3 -3
  27. package/skills/massa-ai/references/agent-orchestration.md +18 -3
  28. package/skills/massa-ai/references/architecture-coupling-lens.md +1 -1
  29. package/skills/massa-ai/references/architecture-deepening-lens.md +1 -1
  30. package/skills/massa-ai/references/architecture-domain-lens.md +1 -1
  31. package/skills/massa-ai/references/architecture-lenses.md +1 -1
  32. package/skills/massa-ai/references/audit-report-io.md +32 -2
  33. package/skills/massa-ai/references/audit-scope.md +22 -1
  34. package/skills/massa-ai/references/code-annotation.md +5 -5
  35. package/skills/massa-ai/references/codebase-investigation.md +1 -1
  36. package/skills/massa-ai/references/coding-guidelines.md +67 -0
  37. package/skills/massa-ai/references/context-firewall.md +2 -1
  38. package/skills/massa-ai/references/conversation-feedback.md +1 -1
  39. package/skills/massa-ai/references/debug-diagnosis-loop.md +1 -1
  40. package/skills/massa-ai/references/decision-engine.md +1 -1
  41. package/skills/massa-ai/references/evidence-gate.md +1 -1
  42. package/skills/massa-ai/references/figma-pre-analysis.md +3 -3
  43. package/skills/massa-ai/references/furps/analyst-role.md +1 -1
  44. package/skills/massa-ai/references/furps/checklist.md +1 -1
  45. package/skills/massa-ai/references/furps/intake.md +1 -1
  46. package/skills/massa-ai/references/furps/report-contract.md +1 -1
  47. package/skills/massa-ai/references/graceful-degradation.md +22 -0
  48. package/skills/massa-ai/references/hook-enforcement.md +3 -3
  49. package/skills/massa-ai/references/implementation-delivery.md +4 -4
  50. package/skills/massa-ai/references/installation.md +1 -1
  51. package/skills/massa-ai/references/lessons.md +2 -2
  52. package/skills/massa-ai/references/maestro/artifacts-reports.md +1 -1
  53. package/skills/massa-ai/references/maestro/cli-device.md +1 -1
  54. package/skills/massa-ai/references/maestro/cloud.md +1 -1
  55. package/skills/massa-ai/references/maestro/config-env-output.md +1 -1
  56. package/skills/massa-ai/references/maestro/fact-ledger.md +1 -1
  57. package/skills/massa-ai/references/maestro/js-scripting.md +1 -1
  58. package/skills/massa-ai/references/maestro/mcp.md +1 -1
  59. package/skills/massa-ai/references/maestro/patterns.md +1 -1
  60. package/skills/massa-ai/references/maestro/selectors.md +1 -1
  61. package/skills/massa-ai/references/maestro/workspace-execution.md +1 -1
  62. package/skills/massa-ai/references/maestro/yaml-commands.md +1 -1
  63. package/skills/massa-ai/references/maestro.md +1 -1
  64. package/skills/massa-ai/references/mcp-tools.md +2 -2
  65. package/skills/massa-ai/references/memory-policy.md +2 -2
  66. package/skills/massa-ai/references/mobile-context.md +9 -5
  67. package/skills/massa-ai/references/mobile-diagnosis.md +2 -2
  68. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +1 -1
  69. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +1 -1
  70. package/skills/massa-ai/references/mobile-figma-matcher/core.md +1 -1
  71. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +1 -1
  72. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +1 -1
  73. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +1 -1
  74. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +1 -1
  75. package/skills/massa-ai/references/naming-standards.md +1 -1
  76. package/skills/massa-ai/references/pr-task-fix.md +2 -2
  77. package/skills/massa-ai/references/project-context.md +2 -2
  78. package/skills/massa-ai/references/repo-rules-discovery.md +4 -4
  79. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +1 -1
  80. package/skills/massa-ai/references/rfc/document-contract.md +1 -1
  81. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +1 -1
  82. package/skills/massa-ai/references/root-cause-scripts.md +2 -2
  83. package/skills/massa-ai/references/skill-architect/examples.md +256 -0
  84. package/skills/massa-ai/references/skill-architect/patterns.md +317 -0
  85. package/skills/massa-ai/references/skill-architect/quality-checklist.md +70 -0
  86. package/skills/massa-ai/references/sonarqube-mcp.md +73 -0
  87. package/skills/massa-ai/references/spec-driven/artifact-store.md +1 -1
  88. package/skills/massa-ai/references/spec-driven/brownfield-mapping.md +16 -0
  89. package/skills/massa-ai/references/spec-driven/code-analysis.md +1 -1
  90. package/skills/massa-ai/references/spec-driven/coding-principles.md +1 -1
  91. package/skills/massa-ai/references/spec-driven/context-limits.md +1 -1
  92. package/skills/massa-ai/references/spec-driven/design.md +22 -1
  93. package/skills/massa-ai/references/spec-driven/discuss.md +1 -1
  94. package/skills/massa-ai/references/spec-driven/execute.md +3 -1
  95. package/skills/massa-ai/references/spec-driven/memory.md +1 -1
  96. package/skills/massa-ai/references/spec-driven/specify.md +3 -3
  97. package/skills/massa-ai/references/spec-driven/sub-agents.md +1 -1
  98. package/skills/massa-ai/references/spec-driven/tasks.md +1 -1
  99. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  100. package/skills/massa-ai/references/subagent-design.md +4 -4
  101. package/skills/massa-ai/references/synapse-policy.md +1 -1
  102. package/skills/massa-ai/references/tdd/calibrated-examples.md +1 -1
  103. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +1 -1
  104. package/skills/massa-ai/references/tdd/document-contract.md +1 -1
  105. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +1 -1
  106. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +1 -1
  107. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +1 -1
  108. package/skills/massa-ai/references/the-fool/evidence-audit.md +1 -1
  109. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +1 -1
  110. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +1 -1
  111. package/skills/massa-ai/references/the-fool/socratic-questioning.md +1 -1
  112. package/skills/massa-ai/references/ticket/atlassian-fix.md +1 -1
  113. package/skills/massa-ai/references/ticket/intake-and-sources.md +1 -1
  114. package/skills/massa-ai/references/ticket/templates-and-quality.md +1 -1
  115. package/skills/massa-ai/references/verification-ladder.md +1 -1
  116. package/skills/massa-ai/scripts/validate_audit_report.ts +382 -0
  117. package/skills/massa-ai/scripts/validate_design.ts +264 -0
  118. package/skills/massa-ai/scripts/validate_skill.ts +364 -0
  119. package/skills/massa-ai/workflows/adr.md +16 -8
  120. package/skills/massa-ai/workflows/architecture/architecture-audit.md +23 -40
  121. package/skills/massa-ai/workflows/architecture/architecture-fix.md +14 -6
  122. package/skills/massa-ai/workflows/bugs/bugs-audit.md +19 -35
  123. package/skills/massa-ai/workflows/bugs/bugs-fix.md +13 -5
  124. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +25 -41
  125. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +13 -5
  126. package/skills/massa-ai/workflows/commit.md +13 -5
  127. package/skills/massa-ai/workflows/debug.md +11 -3
  128. package/skills/massa-ai/workflows/design.md +15 -7
  129. package/skills/massa-ai/workflows/exploration.md +12 -4
  130. package/skills/massa-ai/workflows/feature.md +14 -13
  131. package/skills/massa-ai/workflows/general.md +13 -8
  132. package/skills/massa-ai/workflows/implementation/implementation-audit.md +15 -15
  133. package/skills/massa-ai/workflows/implementation/implementation-fix.md +13 -5
  134. package/skills/massa-ai/workflows/judge-with-debate.md +12 -4
  135. package/skills/massa-ai/workflows/long-session.md +10 -2
  136. package/skills/massa-ai/workflows/maestro/maestro-audit.md +11 -3
  137. package/skills/massa-ai/workflows/maestro/maestro-fix.md +12 -4
  138. package/skills/massa-ai/workflows/maestro/maestro.md +12 -4
  139. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +11 -3
  140. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +12 -4
  141. package/skills/massa-ai/workflows/onboarding.md +10 -2
  142. package/skills/massa-ai/workflows/refactor.md +12 -4
  143. package/skills/massa-ai/workflows/refinement/furps-refinement.md +12 -4
  144. package/skills/massa-ai/workflows/requirements/requirements-audit.md +19 -36
  145. package/skills/massa-ai/workflows/requirements/requirements-fix.md +13 -5
  146. package/skills/massa-ai/workflows/rfc.md +10 -2
  147. package/skills/massa-ai/workflows/security/security-audit.md +19 -35
  148. package/skills/massa-ai/workflows/security/security-fix.md +13 -5
  149. package/skills/massa-ai/workflows/skill-architect.md +393 -0
  150. package/skills/massa-ai/workflows/spec-driven.md +20 -23
  151. package/skills/massa-ai/workflows/tdd.md +10 -2
  152. package/skills/massa-ai/workflows/tests/tests-audit.md +19 -35
  153. package/skills/massa-ai/workflows/tests/tests-fix.md +13 -5
  154. package/skills/massa-ai/workflows/the-fool.md +11 -3
  155. package/skills/massa-ai/workflows/ticket.md +10 -2
  156. package/skills/massa-ai/workflows/to-prd.md +81 -0
@@ -1,6 +1,6 @@
1
1
  # Architecture Lenses
2
2
 
3
- Use this reference for architecture audits, architecture-focused reviews, and refactor planning. It is the shared index and vocabulary guard; load the detail references only when a workflow needs that lens:
3
+ Use for architecture audits, architecture-focused reviews, and refactor planning. Shared index and vocabulary guard; load the detail references only when a workflow needs that lens:
4
4
 
5
5
  - `references/architecture-domain-lens.md` for bounded contexts, ubiquitous language, subdomain classification, cohesion, and integration patterns.
6
6
  - `references/architecture-coupling-lens.md` for dependency graphs, strength/distance/volatility, dependency direction, and contract health.
@@ -1,6 +1,6 @@
1
1
  # Audit Report I/O
2
2
 
3
- Use this reference from audit workflows before writing reports and from execution workflows before report-driven changes.
3
+ Use from audit workflows before writing reports and from execution workflows before report-driven changes.
4
4
 
5
5
  ## Report Paths
6
6
 
@@ -557,10 +557,40 @@ Before editing:
557
557
 
558
558
  - Verify workflow, project, target, target focus, scope, base/head, and resolved files match the current request.
559
559
  - Reinspect each finding's current location and evidence. Stop or re-audit when schema v2 drift rules invalidate any selected finding.
560
- - Verify every finding has common and workflow-specific fields plus the correct ID form.
560
+ - Verify every finding has common and workflow-specific fields plus the correct ID form (deterministic backing below).
561
561
  - For implementation reports, require source-qualified IDs and child-lens fields.
562
562
  - For mobile Figma reports, re-read the Figma node and reject stale design/source/configuration evidence.
563
563
  - Ignore ruled-out candidates, skipped checks, no-finding summaries, `NOT EVALUATED` rows, constraint deviations, and low-confidence suspects unless the user explicitly changes scope after revalidation.
564
564
  - Build verification from report suggestions plus current project sensors.
565
565
 
566
566
  Do not execute from chat summaries, inline comments, screenshots alone, or remembered audit content. The saved markdown report is the source of truth.
567
+
568
+ ## Deterministic Validation
569
+
570
+ `skills/massa-ai/scripts/validate_audit_report.ts` replaces the model-run
571
+ metadata/ID checklist with a scripted check, run before any `*-fix` workflow
572
+ edits code:
573
+
574
+ ```bash
575
+ bun skills/massa-ai/scripts/validate_audit_report.ts <path-to-report.md> --family <family>
576
+ ```
577
+
578
+ `--family` is one of `architecture`, `bugs`, `code-quality`, `security`,
579
+ `requirements`, `tests`, `maestro`, `mobile-figma`, or `implementation`
580
+ (auto-detected from the report's `Workflow:` field when omitted). It checks:
581
+
582
+ - required freshness-header metadata fields for that family (common fields
583
+ plus family-specific extras — `Requirements Source` for single-lens and
584
+ implementation reports; `Scenario Source`/`Maestro CLI`/`Device/Emulator
585
+ Readiness` for Maestro; the mobile Figma identity fields for Mobile Figma)
586
+ - finding-ID format (`PREFIX-N`, or `<Area>/<PREFIX>-N` for the
587
+ implementation composite family)
588
+ - Area<->Prefix table membership for implementation reports (rejects an
589
+ unrecognized Area, a mismatched Area/Prefix pair, and any raw `SONAR-*`
590
+ executable ID)
591
+ - finding-ID uniqueness and gap-free per-prefix/per-area sequencing
592
+
593
+ A non-zero exit blocks editing. The script does **not** re-check drift
594
+ against current source, table-structure presence (Target Surface Matrix,
595
+ Maestro Run Matrix, etc.), or Figma-node freshness — those stay a manual
596
+ step per the "Before editing" list above.
@@ -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
 
@@ -0,0 +1,67 @@
1
+ # Coding Guidelines
2
+
3
+ Source: Karpathy Guidelines (Useful-Agent-Skills)
4
+
5
+ Behavioral guidelines to reduce common LLM coding mistakes. These principles bias toward caution over speed—for trivial tasks, use judgment.
6
+
7
+ ## 1. Think Before Coding
8
+
9
+ **Don't assume. Don't hide confusion. Surface tradeoffs.**
10
+
11
+ Before implementing:
12
+
13
+ - State assumptions explicitly. If uncertain, ask.
14
+ - If multiple interpretations exist, present them—don't pick silently.
15
+ - If a simpler approach exists, say so. Push back when warranted.
16
+ - If something is unclear, stop. Name what's confusing. Ask.
17
+ - Disagree honestly. If the user's approach seems wrong, say so—don't be sycophantic.
18
+
19
+ ## 2. Simplicity First
20
+
21
+ **Minimum code that solves the problem. Nothing speculative.**
22
+
23
+ - No features beyond what was asked.
24
+ - No abstractions for single-use code.
25
+ - No "flexibility" or "configurability" that wasn't requested.
26
+ - No error handling for impossible scenarios.
27
+ - If you write 200 lines and it could be 50, rewrite it.
28
+
29
+ Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
30
+
31
+ ## 3. Surgical Changes
32
+
33
+ **Touch only what you must. Clean up only your own mess.**
34
+
35
+ When editing existing code:
36
+
37
+ - Don't "improve" adjacent code, comments, or formatting.
38
+ - Don't refactor things that aren't broken.
39
+ - Match existing style, even if you'd do it differently.
40
+ - If you notice unrelated dead code, mention it—don't delete it.
41
+
42
+ When your changes create orphans:
43
+
44
+ - Remove imports/variables/functions that YOUR changes made unused.
45
+ - Don't remove pre-existing dead code unless asked.
46
+
47
+ **The test:** Every changed line should trace directly to the user's request.
48
+
49
+ ## 4. Goal-Driven Execution
50
+
51
+ **Define success criteria. Loop until verified.**
52
+
53
+ Transform tasks into verifiable goals:
54
+
55
+ - "Add validation" → "Write tests for invalid inputs, then make them pass"
56
+ - "Fix the bug" → "Write a test that reproduces it, then make it pass"
57
+ - "Refactor X" → "Ensure tests pass before and after"
58
+
59
+ For multi-step tasks, state a brief plan:
60
+
61
+ ```
62
+ 1. [Step] → verify: [check]
63
+ 2. [Step] → verify: [check]
64
+ 3. [Step] → verify: [check]
65
+ ```
66
+
67
+ Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
@@ -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.