@sniper.ai/core 2.0.0 → 3.1.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 (210) hide show
  1. package/README.md +87 -98
  2. package/agents/analyst.md +29 -0
  3. package/agents/architect.md +38 -0
  4. package/agents/backend-dev.md +43 -0
  5. package/agents/code-reviewer.md +72 -0
  6. package/agents/doc-writer.md +60 -0
  7. package/agents/frontend-dev.md +43 -0
  8. package/agents/fullstack-dev.md +44 -0
  9. package/agents/gate-reviewer.md +72 -0
  10. package/agents/lead-orchestrator.md +51 -0
  11. package/agents/product-manager.md +40 -0
  12. package/agents/qa-engineer.md +37 -0
  13. package/agents/retro-analyst.md +104 -0
  14. package/checklists/discover.yaml +23 -0
  15. package/checklists/implement.yaml +28 -0
  16. package/checklists/ingest-document.yaml +18 -0
  17. package/checklists/ingest-extract.yaml +13 -0
  18. package/checklists/ingest-scan.yaml +18 -0
  19. package/checklists/multi-faceted-review.yaml +57 -0
  20. package/checklists/plan.yaml +36 -0
  21. package/checklists/refactor-analyze.yaml +19 -0
  22. package/checklists/review.yaml +29 -0
  23. package/claude-md.template +42 -0
  24. package/config.template.yaml +156 -0
  25. package/hooks/settings-hooks.json +40 -0
  26. package/hooks/signal-hooks.json +16 -0
  27. package/package.json +23 -5
  28. package/personas/cognitive/devils-advocate.md +24 -0
  29. package/personas/cognitive/performance-focused.md +23 -0
  30. package/personas/cognitive/security-first.md +24 -0
  31. package/protocols/explore.yaml +21 -0
  32. package/protocols/feature.yaml +47 -0
  33. package/protocols/full.yaml +65 -0
  34. package/protocols/hotfix.yaml +19 -0
  35. package/protocols/ingest.yaml +42 -0
  36. package/protocols/patch.yaml +30 -0
  37. package/protocols/refactor.yaml +43 -0
  38. package/schemas/checkpoint.schema.yaml +133 -0
  39. package/schemas/cost.schema.yaml +97 -0
  40. package/schemas/dependency-graph.schema.yaml +37 -0
  41. package/schemas/gate-result.schema.yaml +101 -0
  42. package/schemas/knowledge-manifest.schema.yaml +39 -0
  43. package/schemas/live-status.schema.yaml +122 -0
  44. package/schemas/protocol-meta.schema.yaml +58 -0
  45. package/schemas/protocol.schema.yaml +100 -0
  46. package/schemas/retro.schema.yaml +95 -0
  47. package/schemas/revert-plan.schema.yaml +40 -0
  48. package/schemas/signal.schema.yaml +39 -0
  49. package/schemas/velocity.schema.yaml +52 -0
  50. package/schemas/workspace-lock.schema.yaml +34 -0
  51. package/schemas/workspace.schema.yaml +82 -0
  52. package/skills/sniper-flow/SKILL.md +196 -0
  53. package/skills/sniper-init/SKILL.md +102 -0
  54. package/skills/sniper-review/SKILL.md +49 -0
  55. package/skills/sniper-status/SKILL.md +79 -0
  56. package/templates/architecture.md +23 -0
  57. package/templates/checkpoint.yaml +27 -0
  58. package/templates/codebase-overview.md +19 -0
  59. package/templates/cost.yaml +23 -0
  60. package/templates/custom-protocol.yaml +98 -0
  61. package/templates/knowledge-manifest.yaml +32 -0
  62. package/templates/live-status.yaml +26 -0
  63. package/templates/multi-faceted-review-report.md +28 -0
  64. package/templates/registry.md +4 -0
  65. package/templates/review-report.md +25 -0
  66. package/templates/signal-record.yaml +37 -0
  67. package/templates/spec.md +28 -0
  68. package/templates/story.md +19 -0
  69. package/templates/velocity.yaml +9 -0
  70. package/templates/workspace-config.yaml +44 -0
  71. package/framework/checklists/code-review.md +0 -33
  72. package/framework/checklists/debug-review.md +0 -34
  73. package/framework/checklists/discover-review.md +0 -33
  74. package/framework/checklists/doc-review.md +0 -39
  75. package/framework/checklists/feature-review.md +0 -42
  76. package/framework/checklists/ingest-review.md +0 -42
  77. package/framework/checklists/memory-review.md +0 -30
  78. package/framework/checklists/perf-review.md +0 -33
  79. package/framework/checklists/plan-review.md +0 -52
  80. package/framework/checklists/refactor-review.md +0 -33
  81. package/framework/checklists/security-review.md +0 -34
  82. package/framework/checklists/sprint-review.md +0 -41
  83. package/framework/checklists/story-review.md +0 -30
  84. package/framework/checklists/test-review.md +0 -32
  85. package/framework/checklists/workspace-review.md +0 -34
  86. package/framework/claude-md.template +0 -37
  87. package/framework/commands/sniper-audit.md +0 -1549
  88. package/framework/commands/sniper-compose.md +0 -323
  89. package/framework/commands/sniper-debug.md +0 -337
  90. package/framework/commands/sniper-discover.md +0 -423
  91. package/framework/commands/sniper-doc.md +0 -441
  92. package/framework/commands/sniper-feature.md +0 -515
  93. package/framework/commands/sniper-ingest.md +0 -506
  94. package/framework/commands/sniper-init.md +0 -388
  95. package/framework/commands/sniper-memory.md +0 -219
  96. package/framework/commands/sniper-plan.md +0 -630
  97. package/framework/commands/sniper-review.md +0 -369
  98. package/framework/commands/sniper-solve.md +0 -408
  99. package/framework/commands/sniper-sprint.md +0 -716
  100. package/framework/commands/sniper-status.md +0 -481
  101. package/framework/commands/sniper-workspace-feature.md +0 -267
  102. package/framework/commands/sniper-workspace-init.md +0 -252
  103. package/framework/commands/sniper-workspace-status.md +0 -112
  104. package/framework/commands/sniper-workspace-validate.md +0 -138
  105. package/framework/config.template.yaml +0 -196
  106. package/framework/personas/cognitive/devils-advocate.md +0 -30
  107. package/framework/personas/cognitive/mentor-explainer.md +0 -29
  108. package/framework/personas/cognitive/performance-focused.md +0 -30
  109. package/framework/personas/cognitive/security-first.md +0 -29
  110. package/framework/personas/cognitive/systems-thinker.md +0 -29
  111. package/framework/personas/cognitive/user-empathetic.md +0 -29
  112. package/framework/personas/domain/.gitkeep +0 -0
  113. package/framework/personas/process/analyst.md +0 -29
  114. package/framework/personas/process/architect.md +0 -30
  115. package/framework/personas/process/architecture-cartographer.md +0 -25
  116. package/framework/personas/process/code-archaeologist.md +0 -22
  117. package/framework/personas/process/code-investigator.md +0 -29
  118. package/framework/personas/process/code-reviewer.md +0 -26
  119. package/framework/personas/process/contract-designer.md +0 -31
  120. package/framework/personas/process/convention-miner.md +0 -27
  121. package/framework/personas/process/coverage-analyst.md +0 -24
  122. package/framework/personas/process/developer.md +0 -32
  123. package/framework/personas/process/doc-analyst.md +0 -63
  124. package/framework/personas/process/doc-reviewer.md +0 -62
  125. package/framework/personas/process/doc-writer.md +0 -42
  126. package/framework/personas/process/flake-hunter.md +0 -30
  127. package/framework/personas/process/impact-analyst.md +0 -23
  128. package/framework/personas/process/integration-validator.md +0 -29
  129. package/framework/personas/process/log-analyst.md +0 -22
  130. package/framework/personas/process/migration-architect.md +0 -24
  131. package/framework/personas/process/perf-profiler.md +0 -27
  132. package/framework/personas/process/product-manager.md +0 -32
  133. package/framework/personas/process/qa-engineer.md +0 -31
  134. package/framework/personas/process/release-manager.md +0 -23
  135. package/framework/personas/process/retro-analyst.md +0 -30
  136. package/framework/personas/process/scrum-master.md +0 -31
  137. package/framework/personas/process/threat-modeler.md +0 -30
  138. package/framework/personas/process/triage-lead.md +0 -23
  139. package/framework/personas/process/ux-designer.md +0 -31
  140. package/framework/personas/process/vuln-scanner.md +0 -27
  141. package/framework/personas/process/workspace-orchestrator.md +0 -30
  142. package/framework/personas/technical/ai-ml.md +0 -33
  143. package/framework/personas/technical/api-design.md +0 -32
  144. package/framework/personas/technical/backend.md +0 -32
  145. package/framework/personas/technical/database.md +0 -32
  146. package/framework/personas/technical/frontend.md +0 -33
  147. package/framework/personas/technical/infrastructure.md +0 -32
  148. package/framework/personas/technical/security.md +0 -34
  149. package/framework/settings.template.json +0 -6
  150. package/framework/spawn-prompts/_template.md +0 -25
  151. package/framework/teams/debug.yaml +0 -56
  152. package/framework/teams/discover.yaml +0 -57
  153. package/framework/teams/doc.yaml +0 -76
  154. package/framework/teams/feature-plan.yaml +0 -61
  155. package/framework/teams/ingest.yaml +0 -85
  156. package/framework/teams/perf.yaml +0 -33
  157. package/framework/teams/plan.yaml +0 -86
  158. package/framework/teams/refactor.yaml +0 -34
  159. package/framework/teams/retro.yaml +0 -30
  160. package/framework/teams/review-pr.yaml +0 -73
  161. package/framework/teams/review-release.yaml +0 -70
  162. package/framework/teams/security.yaml +0 -59
  163. package/framework/teams/solve.yaml +0 -48
  164. package/framework/teams/sprint.yaml +0 -68
  165. package/framework/teams/test.yaml +0 -59
  166. package/framework/teams/workspace-feature.yaml +0 -69
  167. package/framework/teams/workspace-validation.yaml +0 -27
  168. package/framework/templates/arch-delta.md +0 -74
  169. package/framework/templates/architecture.md +0 -95
  170. package/framework/templates/brief.md +0 -73
  171. package/framework/templates/bug-report.md +0 -55
  172. package/framework/templates/contract-validation-report.md +0 -68
  173. package/framework/templates/contract.yaml +0 -60
  174. package/framework/templates/conventions.md +0 -59
  175. package/framework/templates/coverage-report.md +0 -67
  176. package/framework/templates/doc-api.md +0 -53
  177. package/framework/templates/doc-guide.md +0 -35
  178. package/framework/templates/doc-readme.md +0 -49
  179. package/framework/templates/epic.md +0 -47
  180. package/framework/templates/feature-brief.md +0 -54
  181. package/framework/templates/feature-spec.md +0 -53
  182. package/framework/templates/flaky-report.md +0 -64
  183. package/framework/templates/investigation.md +0 -49
  184. package/framework/templates/memory-anti-pattern.yaml +0 -16
  185. package/framework/templates/memory-convention.yaml +0 -17
  186. package/framework/templates/memory-decision.yaml +0 -16
  187. package/framework/templates/migration-plan.md +0 -47
  188. package/framework/templates/optimization-plan.md +0 -59
  189. package/framework/templates/performance-profile.md +0 -64
  190. package/framework/templates/personas.md +0 -118
  191. package/framework/templates/postmortem.md +0 -69
  192. package/framework/templates/pr-review.md +0 -50
  193. package/framework/templates/prd.md +0 -92
  194. package/framework/templates/refactor-scope.md +0 -52
  195. package/framework/templates/release-readiness.md +0 -66
  196. package/framework/templates/retro.yaml +0 -44
  197. package/framework/templates/risks.md +0 -64
  198. package/framework/templates/security.md +0 -111
  199. package/framework/templates/sprint-review.md +0 -32
  200. package/framework/templates/story.md +0 -53
  201. package/framework/templates/threat-model.md +0 -71
  202. package/framework/templates/ux-spec.md +0 -71
  203. package/framework/templates/vulnerability-report.md +0 -56
  204. package/framework/templates/workspace-brief.md +0 -52
  205. package/framework/templates/workspace-plan.md +0 -50
  206. package/framework/workflows/discover-only.md +0 -39
  207. package/framework/workflows/full-lifecycle.md +0 -56
  208. package/framework/workflows/quick-feature.md +0 -44
  209. package/framework/workflows/sprint-cycle.md +0 -47
  210. package/framework/workflows/workspace-feature.md +0 -71
@@ -1,61 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Feature Planning Team
3
- # Produces Feature Spec + Architecture Delta for an incremental feature
4
- # ─────────────────────────────────────────
5
-
6
- team_name: sniper-feature-plan-{feature_id}
7
- description: "Feature planning for {feature_title}"
8
- model_override: opus # use Opus for architecture decisions
9
-
10
- teammates:
11
- - name: feature-pm
12
- compose:
13
- process: product-manager
14
- technical: null
15
- cognitive: systems-thinker
16
- tasks:
17
- - id: feature-spec
18
- name: "Feature Requirements Spec"
19
- output: docs/features/{feature_id}/spec.md
20
- template: .sniper/templates/feature-spec.md
21
- description: >
22
- Read the feature brief and produce a Feature Spec with functional requirements,
23
- non-functional requirements, user stories, API changes, data model changes,
24
- UI changes, and rollout strategy. Reference the existing architecture doc to
25
- understand the current system context.
26
- reads:
27
- - "docs/features/{feature_id}/brief.md"
28
- - "docs/architecture.md"
29
- - "docs/conventions.md"
30
- blocked_by: []
31
-
32
- - name: feature-architect
33
- compose:
34
- process: architect
35
- technical: backend
36
- cognitive: systems-thinker
37
- tasks:
38
- - id: arch-delta
39
- name: "Architecture Delta"
40
- output: docs/features/{feature_id}/arch-delta.md
41
- template: .sniper/templates/arch-delta.md
42
- description: >
43
- Read the feature spec and produce an Architecture Delta documenting what changes
44
- to the system architecture this feature requires. Include new components, modified
45
- components, new data models, new/modified API endpoints, infrastructure changes,
46
- and patterns to follow from existing conventions. The delta will later be merged
47
- back into the main architecture doc.
48
- reads:
49
- - "docs/features/{feature_id}/spec.md"
50
- - "docs/architecture.md"
51
- - "docs/conventions.md"
52
- blocked_by: [feature-spec]
53
- plan_approval: true
54
-
55
- coordination:
56
- - between: [feature-pm, feature-architect]
57
- topic: "Feature spec review — architect waits for PM's spec before starting architecture delta"
58
-
59
- review_gate:
60
- checklist: .sniper/checklists/feature-review.md
61
- mode: flexible
@@ -1,85 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Ingest Team
3
- # Reverse-engineers project artifacts from an existing codebase
4
- # ─────────────────────────────────────────
5
-
6
- team_name: sniper-ingest
7
- description: "Reverse-engineer project artifacts from an existing codebase"
8
- model_override: null # use default model
9
-
10
- teammates:
11
- - name: code-archaeologist
12
- compose:
13
- process: code-archaeologist
14
- technical: null
15
- cognitive: systems-thinker
16
- tasks:
17
- - id: project-brief
18
- name: "Reverse-engineer Project Brief"
19
- output: docs/brief.md
20
- template: .sniper/templates/brief.md
21
- description: >
22
- Read the codebase and produce a project brief that captures what this project does,
23
- what problem it solves, who uses it, and what its current scope is. Focus on the
24
- business domain and product purpose, not implementation details. Read package.json,
25
- README.md, entry points, route definitions, and UI components to understand the project.
26
- reads:
27
- - "package.json"
28
- - "README.md"
29
- - "src/"
30
- blocked_by: []
31
-
32
- - name: architecture-cartographer
33
- compose:
34
- process: architecture-cartographer
35
- technical: backend
36
- cognitive: systems-thinker
37
- tasks:
38
- - id: system-architecture
39
- name: "Reverse-engineer System Architecture"
40
- output: docs/architecture.md
41
- template: .sniper/templates/architecture.md
42
- description: >
43
- Map the complete technical architecture from source code. Produce a system architecture
44
- document with component diagrams, data models, API contracts, infrastructure topology,
45
- and cross-cutting concerns. Document the system AS BUILT, including inconsistencies
46
- and technical debt.
47
- reads:
48
- - "src/"
49
- - "db/"
50
- - "docker/"
51
- - "infra/"
52
- - "terraform/"
53
- - ".github/"
54
- blocked_by: []
55
-
56
- - name: convention-miner
57
- compose:
58
- process: convention-miner
59
- technical: null
60
- cognitive: systems-thinker
61
- tasks:
62
- - id: conventions
63
- name: "Extract Coding Conventions"
64
- output: docs/conventions.md
65
- template: .sniper/templates/conventions.md
66
- description: >
67
- Analyze the codebase to extract coding conventions: naming, code organization,
68
- error handling, testing patterns, API patterns, imports, config, and logging.
69
- Every convention must cite a real code example. Also update the ownership section
70
- in .sniper/config.yaml to match the actual project directory structure.
71
- reads:
72
- - "src/"
73
- - "tests/"
74
- - ".eslintrc*"
75
- - "tsconfig*"
76
- - ".prettierrc*"
77
- - "ruff.toml"
78
- - "pyproject.toml"
79
- blocked_by: []
80
-
81
- coordination: [] # all tasks are independent — parallel execution
82
-
83
- review_gate:
84
- checklist: .sniper/checklists/ingest-review.md
85
- mode: flexible
@@ -1,33 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Performance Audit Team
3
- # Structured performance analysis
4
- # ─────────────────────────────────────────
5
-
6
- # Phase 1 (Profiling) is run by the lead directly as a single-agent phase.
7
- # Unlike tests and security which use 2-agent teams, performance analysis
8
- # is more sequential — the optimization plan depends on a coherent profiling
9
- # analysis, so a single profiler keeps the analysis consistent.
10
- #
11
- # Phase 2 (Optimization Planning) is run by the lead directly.
12
- # Phase 3 (Execution) uses the standard sprint infrastructure.
13
- #
14
- # This team YAML is used by /sniper-audit --target performance.
15
-
16
- team_name: sniper-perf-audit-{audit_id}
17
- description: "Performance Audit: {audit_title}"
18
- model_override: null
19
-
20
- # Personas used by the single-agent phases:
21
- personas:
22
- profiling:
23
- process: perf-profiler
24
- technical: backend
25
- cognitive: systems-thinker
26
-
27
- # Phase 3 (Execution) reuses sprint teammates from sprint.yaml
28
-
29
- coordination: []
30
-
31
- review_gate:
32
- checklist: .sniper/checklists/perf-review.md
33
- mode: flexible
@@ -1,86 +0,0 @@
1
- team_name: sniper-plan
2
- phase: plan
3
- model_override: opus
4
-
5
- teammates:
6
- - name: product-manager
7
- compose:
8
- process: product-manager
9
- technical: api-design
10
- cognitive: systems-thinker
11
- domain: null
12
- tasks:
13
- - id: prd
14
- name: "Product Requirements Document"
15
- output: "docs/prd.md"
16
- template: ".sniper/templates/prd.md"
17
- reads: ["docs/brief.md", "docs/personas.md", "docs/risks.md"]
18
- description: >
19
- Write a comprehensive PRD covering: problem statement, user stories,
20
- feature requirements (P0/P1/P2), success metrics, constraints,
21
- and out-of-scope items. This is the single source of truth for what to build.
22
-
23
- - name: architect
24
- compose:
25
- process: architect
26
- technical: backend
27
- cognitive: security-first
28
- domain: null
29
- tasks:
30
- - id: architecture
31
- name: "System Architecture Document"
32
- output: "docs/architecture.md"
33
- template: ".sniper/templates/architecture.md"
34
- reads: ["docs/prd.md", "docs/brief.md", "docs/risks.md"]
35
- blocked_by: [prd]
36
- plan_approval: true
37
- description: >
38
- Design the complete system architecture. Include: component diagram,
39
- data models, API contracts, infrastructure topology, technology choices
40
- with rationale, and non-functional requirements.
41
-
42
- - name: ux-designer
43
- compose:
44
- process: ux-designer
45
- technical: frontend
46
- cognitive: user-empathetic
47
- domain: null
48
- tasks:
49
- - id: ux-spec
50
- name: "UX Specification"
51
- output: "docs/ux-spec.md"
52
- template: ".sniper/templates/ux-spec.md"
53
- reads: ["docs/prd.md", "docs/personas.md"]
54
- blocked_by: [prd]
55
- description: >
56
- Define the UX: information architecture, screen inventory,
57
- key user flows (with decision trees), component hierarchy,
58
- interaction patterns, and responsive breakpoints.
59
-
60
- - name: security-analyst
61
- compose:
62
- process: architect
63
- technical: security
64
- cognitive: security-first
65
- domain: null
66
- tasks:
67
- - id: security
68
- name: "Security & Compliance Requirements"
69
- output: "docs/security.md"
70
- template: ".sniper/templates/security.md"
71
- reads: ["docs/prd.md", "docs/risks.md"]
72
- blocked_by: [prd]
73
- description: >
74
- Define security architecture: auth model, data encryption strategy,
75
- compliance requirements (with specific regulations), threat model,
76
- and security testing requirements.
77
-
78
- coordination:
79
- - between: [architect, security-analyst]
80
- topic: "Align security architecture with system architecture"
81
- - between: [architect, ux-designer]
82
- topic: "Align frontend component boundaries with backend API contracts"
83
-
84
- review_gate:
85
- checklist: ".sniper/checklists/plan-review.md"
86
- mode: strict
@@ -1,34 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Refactor Team
3
- # Structured large-scale code refactoring
4
- # ─────────────────────────────────────────
5
-
6
- # Note: Phase 1 (Impact Analysis) and Phase 2 (Migration Planning) are run by
7
- # the lead directly as single-agent phases. Phase 3 (Execution) uses the
8
- # standard sprint infrastructure with refactor stories.
9
- #
10
- # This team YAML is used for reference by the /sniper-audit --target refactor
11
- # command to understand the team structure and review gate.
12
-
13
- team_name: sniper-refactor-{refactor_id}
14
- description: "Refactoring: {refactor_title}"
15
- model_override: null
16
-
17
- # Personas used by the single-agent phases:
18
- personas:
19
- impact_analysis:
20
- process: impact-analyst
21
- technical: null
22
- cognitive: devils-advocate
23
- migration_planning:
24
- process: migration-architect
25
- technical: backend
26
- cognitive: systems-thinker
27
-
28
- # Phase 3 (Execution) reuses sprint teammates from sprint.yaml
29
-
30
- coordination: []
31
-
32
- review_gate:
33
- checklist: .sniper/checklists/refactor-review.md
34
- mode: flexible
@@ -1,30 +0,0 @@
1
- team_name: sniper-retro
2
- phase: retro
3
-
4
- teammates:
5
- - name: retro-analyst
6
- compose:
7
- process: retro-analyst
8
- technical: null
9
- cognitive: systems-thinker
10
- domain: null
11
- tasks:
12
- - id: sprint-retrospective
13
- name: "Sprint Retrospective Analysis"
14
- output: ".sniper/memory/retros/sprint-{N}-retro.yaml"
15
- template: ".sniper/templates/retro.yaml"
16
- reads:
17
- - "docs/stories/"
18
- - "docs/reviews/"
19
- - ".sniper/memory/conventions.yaml"
20
- - ".sniper/memory/anti-patterns.yaml"
21
- description: >
22
- Analyze the completed sprint to extract learnings. Review all story
23
- implementations for recurring code patterns, examine review gate
24
- results for systematic issues, and calibrate estimation accuracy.
25
- Cross-reference findings against existing memory to avoid duplicates.
26
- Produce a structured retrospective with actionable findings.
27
-
28
- coordination: []
29
-
30
- review_gate: null
@@ -1,73 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER PR Review Team
3
- # Multi-perspective pull request review
4
- # ─────────────────────────────────────────
5
-
6
- team_name: sniper-review-pr-{pr_number}
7
- description: "PR review for #{pr_number}"
8
- model_override: null
9
-
10
- teammates:
11
- - name: code-reviewer
12
- compose:
13
- process: code-reviewer
14
- technical: null
15
- cognitive: devils-advocate
16
- tasks:
17
- - id: code-review
18
- name: "Code Quality Review"
19
- output: docs/reviews/PR-{pr_number}-review.md (code quality section)
20
- description: >
21
- Review the PR diff for code quality: logic errors, naming clarity,
22
- pattern adherence, error handling, complexity, DRY violations, and
23
- architecture compliance. Reference docs/conventions.md for project
24
- patterns. Each finding must include severity, file:line, description,
25
- and suggested fix.
26
- reads:
27
- - "PR diff"
28
- - "docs/conventions.md"
29
- - "docs/architecture.md"
30
- blocked_by: []
31
-
32
- - name: security-reviewer
33
- compose:
34
- process: code-reviewer
35
- technical: null
36
- cognitive: security-first
37
- tasks:
38
- - id: security-review
39
- name: "Security Review"
40
- output: docs/reviews/PR-{pr_number}-review.md (security section)
41
- description: >
42
- Review the PR diff for security issues: OWASP top 10, input validation,
43
- authentication checks, authorization checks, secrets handling, SQL injection,
44
- XSS, CSRF, insecure dependencies. Each finding must include severity,
45
- file:line, description, and suggested fix.
46
- reads:
47
- - "PR diff"
48
- - "docs/security.md"
49
- blocked_by: []
50
-
51
- - name: test-reviewer
52
- compose:
53
- process: qa-engineer
54
- technical: null
55
- cognitive: systems-thinker
56
- tasks:
57
- - id: test-review
58
- name: "Test Coverage Review"
59
- output: docs/reviews/PR-{pr_number}-review.md (test coverage section)
60
- description: >
61
- Review the PR for test quality and coverage: missing tests for new code
62
- paths, uncovered edge cases, test naming, mock patterns, assertion quality.
63
- Each finding must include severity and suggested test additions.
64
- reads:
65
- - "PR diff"
66
- - "docs/conventions.md"
67
- blocked_by: []
68
-
69
- coordination: [] # all reviewers work in parallel
70
-
71
- review_gate:
72
- checklist: null # reviews don't have their own review gate
73
- mode: auto
@@ -1,70 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Release Readiness Team
3
- # Multi-perspective release assessment
4
- # ─────────────────────────────────────────
5
-
6
- team_name: sniper-review-release-{version}
7
- description: "Release readiness assessment for {version}"
8
- model_override: null
9
-
10
- teammates:
11
- - name: release-manager
12
- compose:
13
- process: release-manager
14
- technical: null
15
- cognitive: systems-thinker
16
- tasks:
17
- - id: changelog
18
- name: "Changelog & Version Recommendation"
19
- output: docs/releases/{version}-readiness.md (changelog and version sections)
20
- description: >
21
- Read the git log since the last release. Categorize all changes as features,
22
- fixes, breaking changes, internal, or docs. Determine the correct semver
23
- version bump. Produce a clear, user-facing changelog.
24
- reads:
25
- - "git log"
26
- - "package.json"
27
- blocked_by: []
28
-
29
- - name: breaking-change-analyst
30
- compose:
31
- process: code-reviewer
32
- technical: null
33
- cognitive: devils-advocate
34
- tasks:
35
- - id: breaking-changes
36
- name: "Breaking Change Analysis"
37
- output: docs/releases/{version}-readiness.md (breaking changes and migration sections)
38
- description: >
39
- Analyze all changes since the last release for breaking changes: API changes,
40
- schema changes, configuration changes, behavior changes. For each breaking
41
- change, write a migration step. Err on the side of flagging as breaking.
42
- reads:
43
- - "git diff"
44
- - "docs/architecture.md"
45
- blocked_by: []
46
-
47
- - name: doc-reviewer
48
- compose:
49
- process: doc-writer
50
- technical: null
51
- cognitive: user-empathetic
52
- tasks:
53
- - id: doc-review
54
- name: "Documentation Status"
55
- output: docs/releases/{version}-readiness.md (documentation section)
56
- description: >
57
- Check if documentation is up to date with the changes in this release.
58
- Compare changed source files with their corresponding documentation.
59
- Flag any docs that need updating before release.
60
- reads:
61
- - "git log"
62
- - "docs/"
63
- - "README.md"
64
- blocked_by: []
65
-
66
- coordination: [] # all reviewers work in parallel
67
-
68
- review_gate:
69
- checklist: null # release reviews produce a report, not a gate
70
- mode: auto
@@ -1,59 +0,0 @@
1
- # ─────────────────────────────────────────
2
- # SNIPER Security Audit Team
3
- # Structured security analysis
4
- # ─────────────────────────────────────────
5
-
6
- # Phase 1 (Analysis) spawns 2 agents in parallel:
7
- # - threat-modeler: maps attack surface and models threats via STRIDE
8
- # - vuln-scanner: finds application-level vulnerabilities via code analysis
9
- #
10
- # Phase 2 (Planning) is run by the lead to generate remediation stories.
11
- # Phase 3 (Execution) uses the standard sprint infrastructure.
12
- #
13
- # This team YAML is used by /sniper-audit --target security.
14
-
15
- team_name: sniper-security-audit-{audit_id}
16
- description: "Security Audit: {audit_title}"
17
- model_override: null
18
-
19
- teammates:
20
- - name: threat-modeler
21
- compose:
22
- process: threat-modeler
23
- technical: security
24
- cognitive: systems-thinker
25
- tasks:
26
- - id: threat-modeling
27
- name: "Threat Modeling"
28
- description: >
29
- Map the application's attack surface using STRIDE methodology. Identify
30
- trust boundaries, data flows, and potential threat vectors. Produce a
31
- structured threat model with risk ratings and recommended mitigations.
32
- output: threat-model.md
33
- blocked_by: []
34
- plan_approval: false
35
-
36
- - name: vuln-scanner
37
- compose:
38
- process: vuln-scanner
39
- technical: security
40
- cognitive: devils-advocate
41
- tasks:
42
- - id: vulnerability-scanning
43
- name: "Vulnerability Scanning"
44
- description: >
45
- Perform application-level vulnerability analysis via code review.
46
- Check for OWASP Top 10 issues, insecure dependencies, hardcoded
47
- secrets, and missing security controls. Produce a vulnerability
48
- report with severity ratings and remediation guidance.
49
- output: vulnerability-report.md
50
- blocked_by: []
51
- plan_approval: false
52
-
53
- # Phase 3 (Execution) reuses sprint teammates from sprint.yaml
54
-
55
- coordination: []
56
-
57
- review_gate:
58
- checklist: .sniper/checklists/security-review.md
59
- mode: flexible
@@ -1,48 +0,0 @@
1
- team_name: null
2
- phase: solve
3
-
4
- agent:
5
- compose:
6
- process: scrum-master
7
- technical: null
8
- cognitive: systems-thinker
9
- domain: null
10
- reads:
11
- - "docs/prd.md"
12
- - "docs/architecture.md"
13
- - "docs/ux-spec.md"
14
- - "docs/security.md"
15
-
16
- tasks:
17
- - id: epic-sharding
18
- name: "Epic Sharding"
19
- output: "docs/epics/"
20
- template: ".sniper/templates/epic.md"
21
- description: >
22
- Break the PRD into 6-12 epics. Each epic file must include:
23
- - Scope and clear boundaries (what's in, what's out)
24
- - Relevant sections from architecture doc (EMBEDDED, not just referenced)
25
- - Dependencies on other epics
26
- - Acceptance criteria for the epic as a whole
27
- - Estimated total story points
28
-
29
- - id: story-creation
30
- name: "Story Creation"
31
- output: "docs/stories/"
32
- template: ".sniper/templates/story.md"
33
- blocked_by: [epic-sharding]
34
- description: >
35
- For each epic, create 3-8 stories. Each story file must include:
36
- - Full context from PRD + Architecture (EMBEDDED in the story file)
37
- - Acceptance criteria as testable assertions
38
- - Test requirements (unit, integration, e2e as applicable)
39
- - File ownership (which directories this story's implementation touches)
40
- - Dependencies on other stories
41
- - Complexity estimate (S/M/L/XL)
42
-
43
- CRITICAL: Stories must be self-contained. A teammate reading ONLY the story
44
- file must have enough context to implement it without reading any other docs.
45
-
46
- review_gate:
47
- checklist: ".sniper/checklists/story-review.md"
48
- mode: flexible
@@ -1,68 +0,0 @@
1
- team_name: "sniper-sprint-{number}"
2
- phase: sprint
3
-
4
- available_teammates:
5
- - name: backend-dev
6
- compose:
7
- process: developer
8
- technical: backend
9
- cognitive: systems-thinker
10
- domain: null
11
- owns_from_config: backend
12
- model: sonnet
13
-
14
- - name: frontend-dev
15
- compose:
16
- process: developer
17
- technical: frontend
18
- cognitive: user-empathetic
19
- domain: null
20
- owns_from_config: frontend
21
- model: sonnet
22
-
23
- - name: infra-dev
24
- compose:
25
- process: developer
26
- technical: infrastructure
27
- cognitive: systems-thinker
28
- domain: null
29
- owns_from_config: infrastructure
30
- model: sonnet
31
-
32
- - name: ai-dev
33
- compose:
34
- process: developer
35
- technical: ai-ml
36
- cognitive: performance-focused
37
- domain: null
38
- owns_from_config: ai
39
- model: opus
40
-
41
- - name: qa-engineer
42
- compose:
43
- process: qa-engineer
44
- technical: backend
45
- cognitive: devils-advocate
46
- domain: null
47
- owns_from_config: tests
48
- model: sonnet
49
-
50
- sprint_rules:
51
- - "Each teammate reads their assigned story file(s) COMPLETELY before writing any code"
52
- - "Backend and frontend must agree on API contracts via inter-agent messaging BEFORE implementing"
53
- - "All new code must include tests — no story is complete without passing tests"
54
- - "QA engineer is blocked until implementation stories are complete"
55
- - "Every teammate messages the team lead when their task is complete"
56
- - "If any teammate is blocked for > 10 minutes, message the lead immediately"
57
-
58
- coordination:
59
- - between: [backend-dev, frontend-dev]
60
- topic: "API contracts — agree on endpoints, payloads, and auth before coding"
61
- - between: [backend-dev, ai-dev]
62
- topic: "AI pipeline integration points — data flow, WebSocket events, API boundaries"
63
- - between: [backend-dev, qa-engineer]
64
- topic: "Share testable endpoints as they're completed"
65
-
66
- review_gate:
67
- checklist: ".sniper/checklists/sprint-review.md"
68
- mode: strict