Skip to content

Commands Cheatsheet

Quick reference for every SNIPER command. Jump to a command or browse by category.

Quick Lookup

CommandDescriptionGate
initScaffold .sniper/ directory and config--
ingestReverse-engineer artifacts from existing codeFLEXIBLE
discoverResearch market, risks, and usersFLEXIBLE
planProduce PRD, architecture, UX spec, securitySTRICT
solveShard PRD into epics and storiesFLEXIBLE
sprintImplement stories with parallel dev teamSTRICT
reviewRun the review gate for the current phaseper-phase
featureScoped mini-lifecycle for a single featureFLEX / STRICT
debugStructured bug investigationFLEXIBLE
auditRefactor, review, test, security, or perf auditvaries
workspaceMulti-repo workspace managementvaries
composeAssemble a spawn prompt from persona layers--
docGenerate or update project documentationFLEXIBLE
statusShow lifecycle status and artifact state--
memoryManage conventions, anti-patterns, decisions--

Lifecycle Commands

init

Scaffold the .sniper/ directory and walk through interactive project configuration.

PhaseSetup
TeamNone (single agent)
Outputs.sniper/config.yaml · .sniper/ directory tree · CLAUDE.md
Gate--
ReferenceFull command reference

ingest

Reverse-engineer project purpose, architecture, and conventions from an existing codebase.

PhaseIngest
Teamingest (3 members)
Members
NameProcessTechnicalCognitive
code-archaeologistcode-archaeologist--systems-thinker
architecture-cartographerarchitecture-cartographerbackendsystems-thinker
convention-minerconvention-miner--systems-thinker
Outputsdocs/brief.md · docs/architecture.md · docs/conventions.md
GateFLEXIBLE · ingest-review
CoordinationParallel (no dependencies)
ReferenceFull command reference

discover

Research the market landscape, assess technical and business risks, and study target users.

PhaseDiscover
Teamdiscover (3 members)
Members
NameProcessTechnicalCognitive
analystanalyst--systems-thinker
risk-researcheranalystinfrastructuredevils-advocate
user-researcheranalyst--user-empathetic
Outputsdocs/brief.md · docs/risks.md · docs/personas.md
GateFLEXIBLE · discover-review
CoordinationParallel (no dependencies)
ReferenceFull command reference

plan

Produce a PRD, system architecture, UX specification, and security analysis. Uses Opus-class models.

PhasePlan
Teamplan (4 members)
Members
NameProcessTechnicalCognitive
product-managerproduct-managerapi-designsystems-thinker
architectarchitectbackendsecurity-first
ux-designerux-designerfrontenduser-empathetic
security-analystarchitectsecuritysecurity-first
Outputsdocs/prd.md · docs/architecture.md · docs/ux-spec.md · docs/security.md
GateSTRICT · plan-review
Dependenciesarchitect, ux-designer, security-analyst all blocked by product-manager (PRD first)
Plan approvalarchitect must present approach before writing
ModelOpus
ReferenceFull command reference

solve

Break the PRD into epics and self-contained stories with acceptance criteria.

PhaseSolve
TeamSingle agent (no team spawned)
Agent[scrum-master](/reference/personas/process/scrum-master) · [systems-thinker](/reference/personas/cognitive/systems-thinker)
Outputsdocs/epics/*.md · docs/stories/*.md
GateFLEXIBLE
ReferenceFull command reference

sprint

Implement stories with a parallel development team. Members are drawn from a pool based on story ownership.

PhaseSprint
Teamsprint (2--5 from pool)
Members
NameProcessTechnicalCognitiveModelOwns
backend-devdeveloperbackendsystems-thinkerSonnetbackend
frontend-devdeveloperfrontenduser-empatheticSonnetfrontend
infra-devdeveloperinfrastructuresystems-thinkerSonnetinfrastructure
ai-devdeveloperai-mlperformance-focusedOpusai
qa-engineerqa-engineerbackenddevils-advocateSonnettests
OutputsSource code · test files
GateSTRICT
Coordinationbackend <-> frontend · backend <-> ai · backend <-> qa
Noteqa-engineer is always included. Other members are spawned on demand based on story ownership.
ReferenceFull command reference

review

Run the review gate for the current phase. Evaluates artifacts against the phase checklist.

PhaseAny (runs the gate for whichever phase is active)
TeamNone (single agent)
OutputsReview report with PASS / WARN / FAIL per criterion
GateDetermined by current phase
ReferenceFull command reference

Extended Commands

feature

Scoped mini-lifecycle for a single feature: brief, spec, architecture delta, stories, then sprint.

PhaseFeature (multi-phase)
Teamfeature-plan (2 members) + sprint team
Planning members
NameProcessTechnicalCognitive
feature-pmproduct-manager--systems-thinker
feature-architectarchitectbackendsystems-thinker
Outputsdocs/features/SNPR-{XXXX}/spec.md · arch-delta.md · stories · source code
GateFLEXIBLE (planning) · STRICT (sprint)
Dependenciesfeature-architect blocked by feature-pm
Plan approvalfeature-architect must present approach before writing
ModelOpus
ReferenceFull command reference

debug

Structured investigation of a bug with parallel log analysis and code tracing.

PhaseDebug
Teamdebug (2 members)
Members
NameProcessTechnicalCognitive
log-analystlog-analyst--devils-advocate
code-investigatorcode-investigatorbackendsystems-thinker
Outputsdocs/bugs/BUG-{NNN}/investigation.md
GateFLEXIBLE · debug-review
CoordinationParallel (no dependencies)
ReferenceFull command reference

audit

Run a targeted audit. The --target flag determines the team and scope.

audit --target refactor

Scope a refactoring effort with impact analysis and migration planning.

PhaseRefactor
TeamSingle-agent phases (no team spawned)
AgentsImpact analysis: [impact-analyst](/reference/personas/process/impact-analyst) · [devils-advocate](/reference/personas/cognitive/devils-advocate)
Migration planning: [migration-architect](/reference/personas/process/migration-architect) · [backend](/reference/personas/technical/backend) · [systems-thinker](/reference/personas/cognitive/systems-thinker)
OutputsScope assessment · migration plan · stories
GateFLEXIBLE · refactor-review

audit --target review --pr N

Automated code review of a pull request.

PhasePR Review
Teamreview-pr (3 members)
Members
NameProcessTechnicalCognitive
code-reviewercode-reviewer--devils-advocate
security-reviewercode-reviewer--security-first
test-reviewerqa-engineer--systems-thinker
Outputsdocs/reviews/PR-{NNN}-review.md
GateAUTO

audit --target review --release TAG

Assess release readiness with changelog and breaking-change analysis.

PhaseRelease Review
Teamreview-release (3 members)
Members
NameProcessTechnicalCognitive
release-managerrelease-manager--systems-thinker
breaking-change-analystcode-reviewer--devils-advocate
doc-reviewerdoc-writer--user-empathetic
Outputsdocs/releases/{version}-readiness.md
GateAUTO

audit --target tests

Analyze test coverage gaps and diagnose flaky tests.

PhaseTest Audit
Teamtest (2 members)
Members
NameProcessTechnicalCognitive
coverage-analystcoverage-analyst--systems-thinker
flake-hunterflake-hunter--devils-advocate
Outputsdocs/audits/TST-{NNN}/coverage-report.md · flaky-report.md
GateFLEXIBLE · test-review

audit --target security

Threat modeling and vulnerability scanning.

PhaseSecurity Audit
Teamsecurity (2 members)
Members
NameProcessTechnicalCognitive
threat-modelerthreat-modelersecuritysystems-thinker
vuln-scannervuln-scannersecuritydevils-advocate
Outputsdocs/audits/SEC-{NNN}/threat-model.md · vulnerability-report.md
GateFLEXIBLE · security-review

audit --target performance

Profile bottlenecks and produce an optimization plan.

PhasePerformance Audit
TeamSingle agent (no team spawned)
Agent[perf-profiler](/reference/personas/process/perf-profiler) · [backend](/reference/personas/technical/backend) · [systems-thinker](/reference/personas/cognitive/systems-thinker)
OutputsPerformance profile · optimization plan · stories
GateFLEXIBLE · perf-review

Workspace Commands

workspace init

Initialize a multi-repo workspace with shared configuration.

Command/sniper-workspace init
TeamNone (single agent)
OutputsWorkspace configuration · repo manifests

workspace feature

Plan and execute a feature that spans multiple repositories.

Command/sniper-workspace feature
Teamworkspace-feature (2 members) + sprint teams per repo
Members
NameProcessTechnicalCognitive
orchestratorworkspace-orchestrator--systems-thinker
contract-designercontract-designerapi-designsystems-thinker
Outputsfeatures/WKSP-{XXXX}/brief.md · plan.md · contracts/*.contract.yaml
GateSTRICT · workspace-review

workspace status

Show the current state of all repos in the workspace.

Command/sniper-workspace status
TeamNone (read-only)
OutputsConsole output

workspace validate

Validate that repo implementations match interface contracts.

Command/sniper-workspace validate
Teamworkspace-validation (1 member)
Agent[integration-validator](/reference/personas/process/integration-validator) · [backend](/reference/personas/technical/backend) · [devils-advocate](/reference/personas/cognitive/devils-advocate)
Outputsfeatures/WKSP-{XXXX}/validation-wave-{N}.md

Utility Commands

compose

Assemble a spawn prompt from persona layers. Used internally by phase commands and available for manual composition.

TeamNone (single agent)
Inputs--process · --technical · --cognitive · --domain · --name · --ownership
Outputs.sniper/spawn-prompts/{name}.md
ReferenceFull command reference

doc

Generate or update project documentation with a sequential writing pipeline.

Teamdoc (3 members)
Members
NameProcessTechnicalCognitive
doc-analystdoc-analyst--user-empathetic
doc-writerdoc-writerfrom-configmentor-explainer
doc-reviewerdoc-reviewer--devils-advocate
OutputsREADME.md · docs/*.md · docs/.sniper-doc-review.md
GateFLEXIBLE · doc-review
CoordinationSequential: analyst -> writer -> reviewer
ReferenceFull command reference

status

Show lifecycle status, artifact state, and the next recommended action. Read-only.

TeamNone (read-only)
OutputsConsole output
ReferenceFull command reference

memory

Manage the agent memory system -- conventions, anti-patterns, and architectural decisions.

TeamNone (single agent)
Outputs.sniper/memory/ entries
ReferenceFull command reference

Common Flags

Most phase commands accept these flags:

FlagDescription
dry-runCompose prompts without spawning agents
skip-reviewSkip the review gate (ignored on STRICT gates)
--context "{text}"Label for the phase log entry
--feature SNPR-{XXXX}Scope sprint to a feature

CLI Commands

The sniper binary provides project scaffolding and management:

bash
sniper init                    # Scaffold .sniper/ directory
sniper status                  # Show lifecycle status
sniper update                  # Update framework files to latest version
sniper add-pack <pack-name>    # Add a domain pack
sniper remove-pack <pack-name> # Remove a domain pack
sniper list-packs              # List installed and available packs
sniper memory                  # Manage agent memory
sniper workspace               # Workspace management

Phase Flow

init -> ingest (existing) -> feature / discover -> plan -> solve -> sprint -> sprint -> ...
                \                                                      |
                 \-> discover -> plan -> solve -> sprint ---------------/
  • ingest is for existing codebases; discover is for greenfield projects.
  • sprint repeats until all stories are complete.
  • feature, debug, and audit can run at any time after ingest or discover.