Skip to content

Templates Reference

Templates define the structure of artifacts produced by SNIPER agents during phase execution. They ensure consistent output format across projects. Templates are stored in .sniper/templates/ as markdown or YAML files.

Artifact Templates

Discovery Phase

TemplateFileProduced ByDescription
Briefbrief.mdAnalystProject brief with objectives, users, scope, and risks
Personaspersonas.mdAnalystUser persona definitions
Risksrisks.mdAnalystRisk assessment with severity and mitigations

Planning Phase

TemplateFileProduced ByDescription
PRDprd.mdProduct ManagerProduct requirements with user stories and acceptance criteria
Architecturearchitecture.mdArchitectSystem architecture with diagrams, data models, and API design
UX Specux-spec.mdUX DesignerUser experience specification with flows and wireframes
Securitysecurity.mdSecurity AnalystSecurity requirements, threat model, and mitigations

Solve Phase

TemplateFileProduced ByDescription
Epicepic.mdScrum MasterEpic definition with scope, stories, and dependencies
Storystory.mdScrum MasterSelf-contained story with embedded context and acceptance criteria
Conventionsconventions.mdScrum MasterCoding conventions extracted during story creation

Sprint Phase

TemplateFileProduced ByDescription
Sprint Reviewsprint-review.mdQA EngineerSprint completion report with test results

Documentation Phase

TemplateFileProduced ByDescription
READMEdoc-readme.mdDoc WriterProject README
API Docsdoc-api.mdDoc WriterAPI documentation
Guidedoc-guide.mdDoc WriterUser guide

Feature Lifecycle

TemplateFileProduced ByDescription
Feature Brieffeature-brief.mdFeature scopingFeature scope definition
Feature Specfeature-spec.mdFeature planningFeature specification with architecture delta
Arch Deltaarch-delta.mdFeature planningArchitecture changes for merge-back

Debug Workflow

TemplateFileProduced ByDescription
Bug Reportbug-report.mdTriage LeadStructured bug report
Investigationinvestigation.mdCode InvestigatorRoot cause analysis
Postmortempostmortem.mdDebug teamPost-incident analysis

Audit Workflow

TemplateFileProduced ByDescription
PR Reviewpr-review.mdCode ReviewerPull request review report
Refactor Scoperefactor-scope.mdMigration ArchitectRefactoring plan and scope
Coverage Reportcoverage-report.mdCoverage AnalystTest coverage analysis
Flaky Reportflaky-report.mdFlake HunterFlaky test identification report
Threat Modelthreat-model.mdThreat ModelerSecurity threat model
Vulnerability Reportvulnerability-report.mdVuln ScannerVulnerability scan results
Performance Profileperformance-profile.mdPerf ProfilerPerformance profiling results
Optimization Planoptimization-plan.mdPerf ProfilerPerformance optimization recommendations
Migration Planmigration-plan.mdMigration ArchitectMigration execution plan
Release Readinessrelease-readiness.mdRelease ManagerRelease readiness assessment

Workspace Mode

TemplateFileProduced ByDescription
Workspace Briefworkspace-brief.mdWorkspace OrchestratorCross-repo feature scope
Workspace Planworkspace-plan.mdWorkspace OrchestratorCross-repo implementation plan
Contractcontract.yamlContract DesignerInterface contract definition (YAML)
Contract Validation Reportcontract-validation-report.mdIntegration ValidatorContract compliance results

Memory

TemplateFileDescription
Conventionmemory-convention.yamlConvention entry format
Anti-Patternmemory-anti-pattern.yamlAnti-pattern entry format
Decisionmemory-decision.yamlDecision entry format
Retroretro.yamlSprint retrospective format

Template Usage

Templates are automatically used by agents during phase execution. The agent reads the template, fills in project-specific content, and writes the artifact to the docs/ directory.

TIP

Templates define structure, not content. Agents use them as scaffolding and fill in details based on the project context, prior artifacts, and their persona expertise.

Domain Pack Templates

Domain packs can provide additional templates or template addenda that extend standard templates with domain-specific sections. See Domain Packs for details.