@massa-ai/cursor-plugin 1.6.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 (172) hide show
  1. package/.cursor-plugin/plugin.json +5 -0
  2. package/README.md +87 -0
  3. package/agents/massa-ai-architecture-specialist.md +65 -0
  4. package/agents/massa-ai-audit-specialist.md +81 -0
  5. package/agents/massa-ai-builder.md +67 -0
  6. package/agents/massa-ai-context-curator.md +67 -0
  7. package/agents/massa-ai-documentation-agent.md +65 -0
  8. package/agents/massa-ai-furps-analyst.md +71 -0
  9. package/agents/massa-ai-investigator.md +68 -0
  10. package/agents/massa-ai-mobile-specialist.md +82 -0
  11. package/agents/massa-ai-navigator.md +75 -0
  12. package/agents/massa-ai-plan-critic.md +90 -0
  13. package/agents/massa-ai-planner.md +65 -0
  14. package/agents/massa-ai-requirements-analyst.md +64 -0
  15. package/agents/massa-ai-reviewer.md +66 -0
  16. package/agents/massa-ai-test-engineer.md +66 -0
  17. package/agents/massa-ai-verification-agent.md +65 -0
  18. package/hooks/hooks.json +26 -0
  19. package/hooks/massa-ai-hook +298 -0
  20. package/install.sh +413 -0
  21. package/package.json +30 -0
  22. package/skills/agents/architecture-specialist/SKILL.md +69 -0
  23. package/skills/agents/audit-specialist/SKILL.md +85 -0
  24. package/skills/agents/builder/SKILL.md +71 -0
  25. package/skills/agents/context-curator/SKILL.md +71 -0
  26. package/skills/agents/documentation-agent/SKILL.md +69 -0
  27. package/skills/agents/furps-analyst/SKILL.md +74 -0
  28. package/skills/agents/investigator/SKILL.md +72 -0
  29. package/skills/agents/mobile-specialist/SKILL.md +86 -0
  30. package/skills/agents/navigator/SKILL.md +79 -0
  31. package/skills/agents/plan-critic/SKILL.md +93 -0
  32. package/skills/agents/planner/SKILL.md +69 -0
  33. package/skills/agents/requirements-analyst/SKILL.md +68 -0
  34. package/skills/agents/reviewer/SKILL.md +70 -0
  35. package/skills/agents/test-engineer/SKILL.md +70 -0
  36. package/skills/agents/verification-agent/SKILL.md +69 -0
  37. package/skills/def/SKILL.md +17 -0
  38. package/skills/find/SKILL.md +19 -0
  39. package/skills/graph/SKILL.md +16 -0
  40. package/skills/index/SKILL.md +19 -0
  41. package/skills/map/SKILL.md +24 -0
  42. package/skills/massa-ai/SKILL.md +315 -0
  43. package/skills/massa-ai/personas/README.md +35 -0
  44. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +76 -0
  45. package/skills/massa-ai/personas/catalog.json +157 -0
  46. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +74 -0
  47. package/skills/massa-ai/personas/product-manager.md +67 -0
  48. package/skills/massa-ai/personas/senior-mobile-engineer.md +74 -0
  49. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +75 -0
  50. package/skills/massa-ai/references/adr-authoring.md +189 -0
  51. package/skills/massa-ai/references/agent-orchestration.md +221 -0
  52. package/skills/massa-ai/references/architecture-coupling-lens.md +239 -0
  53. package/skills/massa-ai/references/architecture-deepening-lens.md +136 -0
  54. package/skills/massa-ai/references/architecture-domain-lens.md +186 -0
  55. package/skills/massa-ai/references/architecture-lenses.md +108 -0
  56. package/skills/massa-ai/references/audit-report-io.md +459 -0
  57. package/skills/massa-ai/references/audit-scope.md +103 -0
  58. package/skills/massa-ai/references/code-annotation.md +111 -0
  59. package/skills/massa-ai/references/codebase-investigation.md +96 -0
  60. package/skills/massa-ai/references/context-firewall.md +62 -0
  61. package/skills/massa-ai/references/conversation-feedback.md +104 -0
  62. package/skills/massa-ai/references/debug-diagnosis-loop.md +140 -0
  63. package/skills/massa-ai/references/decision-engine.md +73 -0
  64. package/skills/massa-ai/references/evidence-gate.md +53 -0
  65. package/skills/massa-ai/references/furps/analyst-role.md +49 -0
  66. package/skills/massa-ai/references/furps/checklist.md +92 -0
  67. package/skills/massa-ai/references/furps/intake.md +104 -0
  68. package/skills/massa-ai/references/furps/report-contract.md +140 -0
  69. package/skills/massa-ai/references/hook-enforcement.md +137 -0
  70. package/skills/massa-ai/references/implementation-delivery.md +101 -0
  71. package/skills/massa-ai/references/installation.md +110 -0
  72. package/skills/massa-ai/references/lessons.md +119 -0
  73. package/skills/massa-ai/references/maestro/artifacts-reports.md +69 -0
  74. package/skills/massa-ai/references/maestro/cli-device.md +65 -0
  75. package/skills/massa-ai/references/maestro/cloud.md +67 -0
  76. package/skills/massa-ai/references/maestro/config-env-output.md +76 -0
  77. package/skills/massa-ai/references/maestro/fact-ledger.md +71 -0
  78. package/skills/massa-ai/references/maestro/js-scripting.md +70 -0
  79. package/skills/massa-ai/references/maestro/mcp.md +59 -0
  80. package/skills/massa-ai/references/maestro/patterns.md +96 -0
  81. package/skills/massa-ai/references/maestro/selectors.md +91 -0
  82. package/skills/massa-ai/references/maestro/workspace-execution.md +81 -0
  83. package/skills/massa-ai/references/maestro/yaml-commands.md +203 -0
  84. package/skills/massa-ai/references/maestro.md +47 -0
  85. package/skills/massa-ai/references/mcp-tools.md +296 -0
  86. package/skills/massa-ai/references/memory-policy.md +103 -0
  87. package/skills/massa-ai/references/mobile-context.md +113 -0
  88. package/skills/massa-ai/references/mobile-diagnosis.md +106 -0
  89. package/skills/massa-ai/references/mobile-figma-matcher/ATTRIBUTION.md +5 -0
  90. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +13 -0
  91. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +13 -0
  92. package/skills/massa-ai/references/mobile-figma-matcher/core.md +117 -0
  93. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +12 -0
  94. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +12 -0
  95. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +14 -0
  96. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +77 -0
  97. package/skills/massa-ai/references/naming-standards.md +47 -0
  98. package/skills/massa-ai/references/pr-task-fix.md +80 -0
  99. package/skills/massa-ai/references/project-context.md +76 -0
  100. package/skills/massa-ai/references/rfc/ATTRIBUTION.md +5 -0
  101. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +120 -0
  102. package/skills/massa-ai/references/rfc/document-contract.md +85 -0
  103. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +101 -0
  104. package/skills/massa-ai/references/root-cause-scripts.md +97 -0
  105. package/skills/massa-ai/references/spec-driven/artifact-store.md +98 -0
  106. package/skills/massa-ai/references/spec-driven/code-analysis.md +119 -0
  107. package/skills/massa-ai/references/spec-driven/coding-principles.md +80 -0
  108. package/skills/massa-ai/references/spec-driven/context-limits.md +64 -0
  109. package/skills/massa-ai/references/spec-driven/design.md +257 -0
  110. package/skills/massa-ai/references/spec-driven/discuss.md +182 -0
  111. package/skills/massa-ai/references/spec-driven/execute.md +471 -0
  112. package/skills/massa-ai/references/spec-driven/lessons.md +5 -0
  113. package/skills/massa-ai/references/spec-driven/memory.md +214 -0
  114. package/skills/massa-ai/references/spec-driven/specify.md +283 -0
  115. package/skills/massa-ai/references/spec-driven/sub-agents.md +151 -0
  116. package/skills/massa-ai/references/spec-driven/tasks.md +494 -0
  117. package/skills/massa-ai/references/spec-driven/validate.md +397 -0
  118. package/skills/massa-ai/references/subagent-design.md +132 -0
  119. package/skills/massa-ai/references/synapse-policy.md +160 -0
  120. package/skills/massa-ai/references/tdd/calibrated-examples.md +54 -0
  121. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +83 -0
  122. package/skills/massa-ai/references/tdd/document-contract.md +136 -0
  123. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +83 -0
  124. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +103 -0
  125. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +170 -0
  126. package/skills/massa-ai/references/the-fool/evidence-audit.md +202 -0
  127. package/skills/massa-ai/references/the-fool/mode-selection-guide.md +113 -0
  128. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +200 -0
  129. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +206 -0
  130. package/skills/massa-ai/references/the-fool/socratic-questioning.md +153 -0
  131. package/skills/massa-ai/references/ticket/atlassian-fix.md +130 -0
  132. package/skills/massa-ai/references/ticket/intake-and-sources.md +65 -0
  133. package/skills/massa-ai/references/ticket/templates-and-quality.md +129 -0
  134. package/skills/massa-ai/references/verification-ladder.md +62 -0
  135. package/skills/massa-ai/scripts/lessons.py +590 -0
  136. package/skills/massa-ai/workflows/adr.md +33 -0
  137. package/skills/massa-ai/workflows/architecture/architecture-audit.md +125 -0
  138. package/skills/massa-ai/workflows/architecture/architecture-fix.md +110 -0
  139. package/skills/massa-ai/workflows/bugs/bugs-audit.md +113 -0
  140. package/skills/massa-ai/workflows/bugs/bugs-fix.md +97 -0
  141. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +154 -0
  142. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +99 -0
  143. package/skills/massa-ai/workflows/commit.md +61 -0
  144. package/skills/massa-ai/workflows/debug.md +86 -0
  145. package/skills/massa-ai/workflows/design.md +54 -0
  146. package/skills/massa-ai/workflows/exploration.md +119 -0
  147. package/skills/massa-ai/workflows/feature.md +52 -0
  148. package/skills/massa-ai/workflows/general.md +46 -0
  149. package/skills/massa-ai/workflows/implementation/implementation-audit.md +87 -0
  150. package/skills/massa-ai/workflows/implementation/implementation-fix.md +90 -0
  151. package/skills/massa-ai/workflows/long-session.md +44 -0
  152. package/skills/massa-ai/workflows/maestro/maestro-audit.md +56 -0
  153. package/skills/massa-ai/workflows/maestro/maestro-fix.md +74 -0
  154. package/skills/massa-ai/workflows/maestro/maestro.md +68 -0
  155. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +68 -0
  156. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +74 -0
  157. package/skills/massa-ai/workflows/onboarding.md +23 -0
  158. package/skills/massa-ai/workflows/refactor.md +47 -0
  159. package/skills/massa-ai/workflows/refinement/furps-refinement.md +81 -0
  160. package/skills/massa-ai/workflows/requirements/requirements-audit.md +114 -0
  161. package/skills/massa-ai/workflows/requirements/requirements-fix.md +93 -0
  162. package/skills/massa-ai/workflows/rfc.md +55 -0
  163. package/skills/massa-ai/workflows/security/security-audit.md +113 -0
  164. package/skills/massa-ai/workflows/security/security-fix.md +97 -0
  165. package/skills/massa-ai/workflows/spec-driven.md +217 -0
  166. package/skills/massa-ai/workflows/tdd.md +71 -0
  167. package/skills/massa-ai/workflows/tests/tests-audit.md +114 -0
  168. package/skills/massa-ai/workflows/tests/tests-fix.md +96 -0
  169. package/skills/massa-ai/workflows/the-fool.md +82 -0
  170. package/skills/massa-ai/workflows/ticket.md +42 -0
  171. package/skills/persona-router/SKILL.md +158 -0
  172. package/skills/status/SKILL.md +15 -0
@@ -0,0 +1,130 @@
1
+ # Atlassian Ticket Execution
2
+
3
+ Use this reference before any Atlassian tool call that reads creation metadata or mutates Jira.
4
+
5
+ ## Capability Discovery
6
+
7
+ Inspect currently callable tools and dynamically identify Atlassian MCP operations by capability and schema, not by one provider-specific function name. Locate operations for:
8
+
9
+ - Accessible Atlassian sites or cloud resources.
10
+ - Jira project lookup.
11
+ - Issue-type, field, option, and hierarchy metadata.
12
+ - Jira issue search and issue retrieval.
13
+ - Jira issue creation.
14
+
15
+ Atlassian MCP is required. Do not use Jira CLI, REST calls assembled outside the MCP, browser automation, GitHub Issues, Linear, Trello, Asana, Shortcut, or local repository files as creation fallbacks.
16
+
17
+ If multiple accessible sites contain the same project key, ask the user to choose the site before drafting final fields.
18
+
19
+ ## Preflight
20
+
21
+ Complete preflight before requesting creation approval:
22
+
23
+ 1. Resolve the exact site or cloud resource and exact Jira project key.
24
+ 2. Fetch supported Epic, standard, and sub-task issue types needed by the selected hierarchy.
25
+ 3. Fetch required create fields and allowed values for each requested issue type, including parent-field behavior.
26
+ 4. Confirm the create operation is callable with the required fields.
27
+ 5. Validate every proposed parent relationship against Jira metadata.
28
+ 6. Search the selected project for potential duplicates using the exact summary plus the top 3 domain terms from the acceptance criteria, component/surface, and primary user-visible outcome. If fewer than 3 domain terms exist, use all available non-prefix terms and record the reduced query.
29
+ 7. Build the exact top-down creation order.
30
+
31
+ Never promise that a generic `Story`, `Task`, `Bug`, `Spike`, `Epic`, or `Sub-task` name exists. Use the project's returned issue-type IDs and names. When Jira lacks the requested semantic type, show supported choices and require user selection instead of silently mapping it.
32
+
33
+ ## External Review Artifact
34
+
35
+ Resolve the temporary plans directory in this order:
36
+
37
+ - Codex: `$CODEX_HOME/plans/`; if `CODEX_HOME` is unset, use `~/.codex/plans/` only when that is the detected Codex home.
38
+ - Claude Code: `~/.claude/plans/`.
39
+ - Cursor: `~/.cursor/plans/`.
40
+ - OpenCode: `~/.config/opencode/plans/`.
41
+ - Other agents: the runtime-provided agent home plus `/plans/`.
42
+ - If no agent home is known or the directory cannot be written, ask for an external writable directory.
43
+
44
+ The path must resolve outside the active repository. Reject symlinks or relative paths that resolve inside it. Create one file named `ticket-<lowercase-project>-<kebab-slug>-<YYYYMMDDTHHMMSSZ>.md`.
45
+
46
+ Minimum artifact metadata:
47
+
48
+ ```markdown
49
+ # Jira Ticket Draft
50
+
51
+ **Project:** EXAMPLE
52
+ **Hierarchy:** epic-tickets | epic-tickets-subtasks | tickets-subtasks
53
+ **Draft Revision:** 1
54
+ **Approval Status:** NOT APPROVED
55
+ **Approved Revision:** none
56
+ **Created:** 2026-06-15T12:00:00Z
57
+ ```
58
+
59
+ For each stable draft ID, include issue type ID and name, summary, parent draft ID or Jira key, dependency draft IDs or Jira keys, required fields, complete description, duplicate candidates and disposition, creation status, Jira key, and Jira URL. Include source pointers, open questions, and the ordered creation list once for the batch.
60
+
61
+ Any revision to a summary, description, field, relationship, dependency, duplicate disposition, or creation order must increment `Draft Revision`, set `Approval Status: NOT APPROVED`, and clear `Approved Revision`.
62
+
63
+ ## Approval Gate
64
+
65
+ After final metadata, quality, and duplicate checks, present the current artifact and ask for explicit approval to create the listed Jira issues for the named project and current revision.
66
+
67
+ Valid approval must clearly authorize Jira creation for that revision. Approval does not carry across revisions. Do not treat prior approval, silence, "looks close", or a request to keep editing as authorization.
68
+
69
+ Immediately before the first mutation, verify:
70
+
71
+ - Artifact revision still equals approved revision.
72
+ - Approval status is `APPROVED`.
73
+ - Project, site, issue metadata, and duplicate dispositions have not changed since approval.
74
+ - No unresolved blocking field or open question remains.
75
+
76
+ If any check changes the draft, invalidate approval and return to review.
77
+
78
+ ## Creation Order And Checkpointing
79
+
80
+ Create strictly top-down:
81
+
82
+ 1. New Epic, when selected. Capture its key and URL.
83
+ 2. Standard issues in dependency-safe order. Set the Epic or parent relationship only through the current Jira-supported field shape.
84
+ 3. Sub-tasks after each parent standard issue has a confirmed Jira key.
85
+
86
+ After each successful create call:
87
+
88
+ 1. Verify the response contains a Jira key or stable identifier.
89
+ 2. Fetch or construct the canonical URL only from returned site and issue data.
90
+ 3. Update that draft ID in the external artifact to `CREATED` with key and URL before the next mutation.
91
+ 4. If artifact update fails, stop before creating another issue and report the confirmed Jira result.
92
+
93
+ Do not add comments, transition statuses, assign owners, set optional fields, or link issues unless they are explicitly present in the approved draft.
94
+
95
+ ## Ambiguous Results And Partial Failure
96
+
97
+ For timeout, connection loss, malformed response, or unknown create result:
98
+
99
+ 1. Stop the batch.
100
+ 2. Search the selected project using the approved summary plus the top 3 domain terms before retrying.
101
+ 3. If one matching issue is confirmed, record it as created and require resume approval for remaining items.
102
+ 4. If zero or multiple plausible matches remain, mark the draft ID `UNKNOWN`, report the ambiguity, and do not retry automatically.
103
+
104
+ For any partial failure:
105
+
106
+ - Retain the external artifact.
107
+ - Report created, unknown, failed, and pending draft IDs with known Jira links.
108
+ - Never auto-delete created issues.
109
+ - Never auto-transition, comment on, or mark a parent blocked as compensation.
110
+ - Never continue with dependent children after a parent failure.
111
+
112
+ ## Resume
113
+
114
+ Resume only after explicit user approval of the retained artifact's current revision.
115
+
116
+ Before resuming:
117
+
118
+ 1. Re-fetch every recorded Jira issue and parent relationship.
119
+ 2. Re-run duplicate searches for `UNKNOWN`, `FAILED`, and `PENDING` items.
120
+ 3. Re-fetch relevant issue metadata and required fields.
121
+ 4. Recompute remaining creation order.
122
+ 5. Update any changed facts in the artifact, increment revision, and invalidate old approval.
123
+
124
+ Create only items confirmed missing. Jira is authoritative for already-created issues; the artifact is the review and checkpoint record.
125
+
126
+ ## Completion And Cleanup
127
+
128
+ Complete only when every approved draft ID is mapped to a confirmed Jira issue and parent relationships match the approved hierarchy.
129
+
130
+ Report all keys and URLs first. Then delete the temporary artifact. If deletion fails, report the path and error without changing the successful Jira outcome. Retain the artifact on cancellation, partial failure, or unresolved ambiguity.
@@ -0,0 +1,65 @@
1
+ # Ticket Intake And Sources
2
+
3
+ Use this reference from `workflows/ticket.md` before drafting. Gather only missing decisions, keep source roles explicit, and avoid repository-derived ticket conventions.
4
+
5
+ ## Ordered Intake
6
+
7
+ Resolve inputs in this order:
8
+
9
+ 1. **Jira project key**: require an explicit key such as `MOBILE`, `SA`, or `EXP`. Use Atlassian MCP to confirm exact accessibility and project identity. Do not infer a project from repository names, Git history, existing branch names, or arbitrary issue references.
10
+ 2. **Hierarchy**: require one of these exact modes:
11
+ - `epic-tickets`: create a new Epic and standard child issues.
12
+ - `epic-tickets-subtasks`: create a new Epic, standard child issues, and sub-tasks.
13
+ - `tickets-subtasks`: create standard issues and optional sub-tasks without creating an Epic. Ask for an existing Epic key only when the user wants those standard issues attached and Jira supports that relationship.
14
+ 3. **Ticket template source**: ask whether to use a Jira reference issue, an explicitly supplied local file or pasted template, or the built-in templates. A Jira reference may be supplied as a key or URL.
15
+ 4. **Definition of Ready and Definition of Done**: ask whether the user wants to provide either source. Accept Jira or Confluence content through Atlassian MCP, explicitly supplied local files, or pasted text. Use built-in checklists when omitted.
16
+ 5. **Jira-required choices**: after metadata inspection, ask only for unresolved issue types, priorities, components, labels, ownership, versions, or custom fields that are required by Jira or material to the user's intent.
17
+
18
+ Group related choices into at most three concise questions at a time. Reuse answers across the draft unless the user scopes a different value to a specific issue.
19
+
20
+ ## Source Roles
21
+
22
+ Use each source only for its declared role:
23
+
24
+ - User prompt, supplied requirements, specs, TDDs, and approved project documents provide business and technical facts.
25
+ - Jira or pasted reference tickets provide headings, field conventions, tone, naming style, and expected detail.
26
+ - DoR/DoD sources provide readiness and completion checks.
27
+ - Current Jira metadata provides authoritative project, issue-type, field, option, and hierarchy constraints.
28
+ - Current source code provides verified implementation context when exploration is enabled.
29
+ - massa-ai memory provides leads and prior conventions, not current Jira truth.
30
+
31
+ Never copy a reference ticket's business context, customer names, issue keys, owners, components, labels, dates, estimates, links, acceptance criteria, or implementation claims unless another valid source confirms they apply.
32
+
33
+ If a reference and current Jira metadata conflict, current Jira metadata wins for fields and hierarchy. Surface meaningful format conflicts instead of silently blending them.
34
+
35
+ ## Bounded Code Exploration
36
+
37
+ Run the massa-ai exploration workflow as a read-only child pass when ticket quality depends on current implementation context, reusable utilities, ownership boundaries, or likely affected modules.
38
+
39
+ Skip exploration when:
40
+
41
+ - The user explicitly opts out.
42
+ - No codebase is available.
43
+ - Work is process-only and source inspection would not improve scope or verification.
44
+ - Supplied authoritative design material already resolves the relevant implementation boundaries.
45
+
46
+ Exploration must:
47
+
48
+ - Start from the closest code entry point to the requested behavior.
49
+ - Return exact current-source paths or symbols plus confirmed patterns and constraints.
50
+ - Separate confirmed facts from inferences.
51
+ - Use one consolidated pass by default.
52
+ - Parallelize only genuinely independent code areas when agent orchestration is available and context packets remain isolated.
53
+
54
+ Exploration must not:
55
+
56
+ - Search Git history, branches, commits, pull requests, or repository ticket references for ticket examples or template conventions.
57
+ - Invent file paths or prescribe implementation details unsupported by current source.
58
+ - Turn repository observations into Jira project conventions.
59
+
60
+ ## Missing Sources
61
+
62
+ - Unreadable Jira reference: ask whether to retry with a valid key or use built-in templates.
63
+ - Unreadable DoR/DoD source: report which source failed and ask whether to retry or use the corresponding default.
64
+ - Ambiguous pasted content: ask whether it is a template, factual requirements, DoR, or DoD before using it.
65
+ - Large source set: apply `references/context-firewall.md` and retain compact facts with source pointers instead of raw copies.
@@ -0,0 +1,129 @@
1
+ # Ticket Templates And Quality
2
+
3
+ Use this reference when decomposing work, selecting prefixes, drafting descriptions, and validating the review artifact.
4
+
5
+ ## Title Prefixes
6
+
7
+ Every Epic, standard issue, and sub-task summary must start with exactly one allowed prefix:
8
+
9
+ `[Mobile]`, `[FE]`, `[BE]`, `[Mobile/FE/BE]`, `[Mobile/FE]`, `[Mobile/BE]`, `[FE/BE]`, `[SPIKE]`, `[E2E]`, `[INFRA]`, `[DEVOPS]`
10
+
11
+ Selection rules:
12
+
13
+ - Use `[SPIKE]`, `[E2E]`, `[INFRA]`, or `[DEVOPS]` when purpose defines the work.
14
+ - Otherwise select the exact affected application layers.
15
+ - Do not add service names as extra bracketed prefixes.
16
+ - Ask when source evidence supports multiple prefixes and the distinction changes ownership or scope.
17
+ - Keep the remaining summary concise, action-oriented, and specific enough to distinguish duplicate candidates.
18
+
19
+ ## Built-In Definition Of Ready
20
+
21
+ Use when the user supplies no DoR:
22
+
23
+ - Outcome and motivation are clear.
24
+ - In-scope and out-of-scope boundaries are explicit.
25
+ - Acceptance or exit criteria are observable and testable.
26
+ - Dependencies, blockers, and parent relationships are identified.
27
+ - Required design, API, UX, data, or operational references are linked when applicable.
28
+ - Important unknowns have an owner or are explicitly excluded from the ticket.
29
+ - Jira-required fields are resolved.
30
+
31
+ ## Built-In Definition Of Done
32
+
33
+ Use when the user supplies no DoD:
34
+
35
+ - Acceptance or exit criteria have objective evidence.
36
+ - Relevant automated tests and required manual checks pass.
37
+ - Lint, type, build, and validation commands required by the affected project pass.
38
+ - Security, privacy, accessibility, observability, migration, and rollback work is completed when triggered by scope.
39
+ - Documentation and operational runbooks are updated when behavior or operations changed.
40
+ - No unrelated scope is bundled into completion.
41
+ - Created or changed behavior is traceable to this Jira issue.
42
+
43
+ Do not add impossible or irrelevant default checks to a ticket. Mark a default item `Not applicable` only with a short reason, or remove it during review.
44
+
45
+ ## Built-In Templates
46
+
47
+ Follow a user-provided template's compatible structure first. Otherwise use the smallest applicable built-in template.
48
+
49
+ ### Epic
50
+
51
+ - **Outcome**: user or business result and why it matters.
52
+ - **Context**: source-backed background and constraints.
53
+ - **Scope**: explicit in scope and out of scope.
54
+ - **Success Measures**: observable outcomes without fabricated metrics.
55
+ - **Child Work**: proposed standard issues and dependency order.
56
+ - **Dependencies And Risks**: external teams, systems, decisions, and material risks.
57
+ - **References**: supplied documents and verified links.
58
+ - **Definition Of Ready** and **Definition Of Done**.
59
+
60
+ ### Story Or Task
61
+
62
+ - **Goal**: delivered outcome and value.
63
+ - **Context**: enough source-backed context for an assignee with no prior conversation.
64
+ - **Scope**: in scope and out of scope.
65
+ - **Implementation Context**: verified files, modules, contracts, or reusable patterns when exploration ran; avoid prescribing incidental syntax.
66
+ - **Acceptance Criteria**: observable behavior, including important failure behavior.
67
+ - **Dependencies** and **References**.
68
+ - **Definition Of Ready** and **Definition Of Done**.
69
+
70
+ Use Story for user-facing value and Task for engineering or operational work without direct user value, subject to project-supported Jira issue types.
71
+
72
+ ### Bug
73
+
74
+ - **Problem**: observed incorrect behavior and impact.
75
+ - **Environment**: affected platform, version, environment, or configuration when known.
76
+ - **Steps To Reproduce**: deterministic steps when available.
77
+ - **Expected Behavior** and **Actual Behavior**.
78
+ - **Evidence**: logs, screenshots, links, or verified source pointers.
79
+ - **Suspected Area**: only evidence-backed locations or hypotheses.
80
+ - **Acceptance Criteria**: corrected behavior plus regression coverage.
81
+ - **Dependencies**, **References**, **Definition Of Ready**, and **Definition Of Done**.
82
+
83
+ Never state a root cause as fact unless verified. Label hypotheses as hypotheses.
84
+
85
+ ### Spike
86
+
87
+ - **Question**: the decision or uncertainty to resolve.
88
+ - **Context**: why investigation is needed now.
89
+ - **Scope**: approaches, systems, and explicit exclusions.
90
+ - **Required Evidence**: prototypes, measurements, source review, or vendor documentation.
91
+ - **Exit Criteria**: questions answered, options compared, trade-offs documented, and recommendation produced.
92
+ - **Deliverable**: expected artifact or decision record.
93
+ - **Timebox**: include only when user-provided or required by project convention.
94
+ - **Dependencies**, **References**, **Definition Of Ready**, and **Definition Of Done**.
95
+
96
+ ### Sub-Task
97
+
98
+ - **Parent Outcome**: parent issue key or stable parent draft ID and contribution to it.
99
+ - **Atomic Work**: one bounded implementation or verification action.
100
+ - **Implementation Context**: verified target boundary when known.
101
+ - **Acceptance Criteria**: evidence that this action is complete.
102
+ - **Dependencies**, **References**, **Definition Of Ready**, and **Definition Of Done**.
103
+
104
+ A sub-task cannot exist without one standard parent issue. Do not use sub-tasks to hide independently deliverable scope.
105
+
106
+ ## Decomposition Rules
107
+
108
+ - Prefer independently verifiable standard issues over arbitrary layer-by-layer fragments.
109
+ - Use sub-tasks only when work cannot deliver independently outside its parent because it shares the same owner, release path, acceptance outcome, and verification gate.
110
+ - Split work when acceptance criteria can pass independently, owners differ, release paths differ, one issue contains >3 outcomes, one issue contains >8 checklist items, or a draft mixes unrelated user-visible outcomes.
111
+ - Do not enforce fixed day estimates. Size by outcome coherence, dependency boundaries, reviewability, and whether an assignee can complete the work without reopening product decisions.
112
+ - Express dependency edges through stable draft IDs before Jira keys exist. Reject self-dependencies and cycles.
113
+
114
+ ## Deterministic Quality Gate
115
+
116
+ Before review approval, verify every draft:
117
+
118
+ 1. Project key was validated through Atlassian MCP.
119
+ 2. Requested issue type exists and all Jira-required fields have values or explicit user-approved omission where Jira permits it.
120
+ 3. Summary starts with exactly one allowed prefix and contains meaningful text after it.
121
+ 4. Outcome, scope, and relevant context are present and source-backed.
122
+ 5. Story, Task, Bug, and Sub-task drafts contain observable acceptance criteria; Spike drafts contain observable exit criteria; Epics contain success measures and child scope.
123
+ 6. Parent relationships follow current Jira metadata and selected hierarchy mode.
124
+ 7. Dependency graph is acyclic and references valid draft IDs or verified Jira keys.
125
+ 8. No unresolved placeholder such as `TBD`, `TODO`, `[fill in]`, or invented fact blocks creation. Non-blocking unknowns are labeled and excluded from scope.
126
+ 9. Duplicate search was run in the selected project and candidates have an explicit create, revise, or cancel disposition.
127
+ 10. Draft artifact records source pointers, open questions, creation order, `Draft Revision`, and `Approval Status: NOT APPROVED` before review.
128
+
129
+ Do not use an LLM-only quality judgment as proof that these gates passed.
@@ -0,0 +1,62 @@
1
+ # Verification Ladder
2
+
3
+ Use this reference before completing work, and before Quick/Standard/Spec-driven sizing, shared-reference loading, or a verification recipe.
4
+
5
+ ## Task Sizing Gate
6
+
7
+ Classify implementation size before editing:
8
+
9
+ - Quick: <=3 files and <=200 changed LOC, clear acceptance criteria, one ownership area, no public contract, no security/privacy, no migration, no irreversible operation, and no cross-service compatibility risk.
10
+ - Standard: <=10 files or <=500 changed LOC within one ownership area, or shared behavior/public API/test impact that still has clear acceptance criteria and no unresolved architecture decision.
11
+ - Spec-driven: >10 files, >500 changed LOC, multiple ownership areas, unclear acceptance criteria, new dependency, migration, irreversible operation, security/privacy/auth, public compatibility, cross-service contract, or any unresolved architecture/product decision.
12
+
13
+ Quick tasks can proceed inside the active workflow. Standard tasks need an explicit verification recipe before edits. Spec-driven tasks should route to `workflows/spec-driven.md` or be split into atomic tasks.
14
+
15
+ ## Shared Reference Trigger Table
16
+
17
+ Load these references when the trigger condition is met:
18
+
19
+ | Reference | Deterministic trigger |
20
+ |---|---|
21
+ | `references/context-firewall.md` | Before raw artifacts >200 lines, >20 KB, >50 search hits, generated reports, logs, screenshots, external research, or broad search output. |
22
+ | `references/pr-task-fix.md` | Standard+ feature/refactor work, any work split into PR groups, or any task with >3 files or >200 LOC. |
23
+ | `references/agent-orchestration.md` | Explicit user delegation request, >=2 independent slices, >10 files, high/critical audit findings, or independent verification. Do not load for overlapping write sets or tasks needing full conversation history. |
24
+ | `references/naming-standards.md` | New, renamed, audited, or preserved implementation-facing identifiers, public contract fields, fixtures, tests, schemas, docs, or examples. |
25
+ | `references/synapse-policy.md` | Planned related `search` calls >=2, parallel delegated retrieval, or Synapse fallback diagnosis. |
26
+ | `references/mobile-context.md` | Non-debug Android, iOS, KMP, native bridge, lifecycle, offline/sync, permissions, push/background, local persistence, or backend-mobile contract work. |
27
+ | `references/mobile-diagnosis.md` | Debug target involves Android, iOS, KMP, devices, simulators/emulators, native bridges, lifecycle, or mobile-only regressions. |
28
+
29
+ ## Verification Recipe
30
+
31
+ Before Quick work that touches validation assets, and before all Standard or Spec-driven edits, name:
32
+
33
+ - expected behavior or acceptance criteria
34
+ - commands, tests, builds, linters, or artifact checks to run
35
+ - validation assets that must not be weakened, such as tests, specs, benchmarks, fixtures, and snapshots
36
+ - skipped checks and the reason they cannot run
37
+
38
+ ## Mandatory Verification Fix Gate
39
+
40
+ Every `*-fix` workflow must execute this gate for each selected finding or coherent finding group before it can claim closure:
41
+
42
+ - Run the report's Verification Suggestion when available, or run an equivalent deterministic command/artifact check that proves the same behavior.
43
+ - Run target-relevant tests, builds, lint, type checks, static checks, runtime checks, render sensors, or artifact inspections before final closure; model judgment alone cannot satisfy the gate.
44
+ - A finding cannot be marked `fixed` when a target-relevant command or artifact check exists but was not attempted.
45
+ - If verification cannot run, record one concrete skipped-check reason and mark the finding `blocked`, `deferred`, or `skipped`; do not silently complete it.
46
+ - Reinspect validation assets after changes and record that tests, specs, fixtures, snapshots, benchmarks, public contracts, and generated baselines were not weakened unless the user explicitly requested that validation-asset change.
47
+ - Closure evidence must include command/artifact, result, skipped reason or `none`, highest Verification Ladder level reached, validation assets protected, and residual risk.
48
+
49
+ ## Ladder
50
+
51
+ Use the cheapest sufficient evidence first:
52
+
53
+ 1. Static checks: lint, typecheck, import checks, schema validation, or focused static scans.
54
+ 2. File integrity: confirm validation assets were not deleted, weakened, or rewritten unless the user explicitly requested that change.
55
+ 3. Behavioral checks: targeted tests, reproduction commands, build outputs, CLI transcripts, UI artifact inspection, or runtime checks.
56
+ 4. Higher-order checks: judge, faithfulness, or semantic similarity checks only when a concrete tool or command exists.
57
+
58
+ Do not use model self-evaluation as completion evidence. If a higher-order check is unavailable, state that it was skipped and rely on deterministic evidence.
59
+
60
+ ## Output
61
+
62
+ Report the highest ladder level reached, key command or artifact evidence, skipped checks, and residual risk.