Skip to content

Commands Cheatsheet ​

Quick reference for every SNIPER v3 command. For detailed usage, see the commands reference.

Slash Commands ​

In v3, all work flows through five slash commands. The core engine (/sniper-flow) selects a protocol and drives agent teams through structured phases automatically.

CommandPurpose
/sniper-flowCore execution engine -- runs any protocol
/sniper-initScaffold .sniper/ directory and project config
/sniper-learnSubmit, review, or deprecate project learnings
/sniper-reviewManually trigger a quality gate review
/sniper-statusShow protocol progress and recent activity

/sniper-flow ​

The core protocol execution engine. Orchestrates agent teams through structured phases. Auto-detects the appropriate protocol from your request, or accepts an explicit --protocol flag.

Arguments:

FlagDescription
--protocol <name>Run a specific protocol (full, feature, patch, ingest, explore, refactor, hotfix)
--resumeResume from the last checkpoint
--phase <name>Start from a specific phase (skips earlier phases)

Usage examples:

10 lines
/sniper-flow                        # Auto-detect protocol from request
/sniper-flow --protocol full        # Full lifecycle (discover -> define -> design -> solve -> implement -> review -> retro)
/sniper-flow --protocol feature     # Feature mini-lifecycle (define -> design -> solve -> implement -> review -> retro)
/sniper-flow --protocol patch       # Quick bug fix (implement -> review)
/sniper-flow --protocol ingest      # Reverse-engineer an existing codebase
/sniper-flow --protocol explore     # Exploratory analysis only
/sniper-flow --protocol refactor    # Code improvement (analyze -> implement -> review)
/sniper-flow --protocol hotfix      # Emergency fix, fastest path to production
/sniper-flow --resume               # Resume from last checkpoint
/sniper-flow --phase plan           # Jump to a specific phase

Auto-detection rules:

ScopeProtocol
New project (no source files)full
Critical / urgent / production fixhotfix
Bug fix or small change (< 5 files)patch
New feature or enhancement (5--20 files)feature
Major rework or multi-component change (20+ files)full
Understand / document an existing codebaseingest
Exploratory analysis or researchexplore
Code improvement, no new featuresrefactor

/sniper-learn ​

Submit, review, or deprecate project learnings. Manages conventions, anti-patterns, and decisions in .sniper/memory/.

Usage:

/sniper-learn                       # Interactive — choose submit, review, or deprecate

Headless / CI/CD Execution

For non-interactive protocol execution in CI/CD pipelines, use the sniper run CLI command instead of a slash command. See Headless & CI/CD for details.


/sniper-init ​

Scaffold the .sniper/ directory, detect your project stack, and walk through interactive configuration.

Arguments:

FlagDescription
--language <name>Primary language (auto-detected if omitted)

Creates:

PathContents
.sniper/config.yamlProject configuration
.sniper/checkpoints/Phase checkpoint storage
.sniper/gates/Gate result storage
.sniper/checklists/Quality gate checklists
.claude/agents/Agent definitions
.claude/settings.jsonHooks and settings
docs/Documentation directory
CLAUDE.mdProject instructions

/sniper-review ​

Manually trigger a quality gate review outside of the normal protocol flow.

Arguments:

FlagDescription
--phase <name>Phase to review (defaults to current active phase)

Spawns a gate-reviewer agent, runs the phase checklist, and writes the result to .sniper/gates/. This does not advance the protocol -- it is a manual check only.


/sniper-status ​

Display project info, active protocol progress, and recent activity. Read-only -- never modifies any files.

Takes no arguments.


Protocols ​

Every protocol is a YAML state machine that defines a sequence of phases, agent assignments, spawn strategies, and quality gates. Use /sniper-flow --protocol <name> to run one explicitly, or let auto-detection choose for you.

Protocol Summary ​

ProtocolPhasesAuto RetroUse Case
fulldiscover → define → design → solve → implement → review → retroYesNew projects, major reworks
featuredefine → design → solve → implement → review → retroYesNew features (5--20 files)
patchimplement → reviewNoBug fixes, small changes
ingestscan → document → extractNoReverse-engineer existing codebases
explorediscoverNoResearch and analysis
refactoranalyze → implement → review → retroYesCode improvement, no new features
hotfiximplementNoCritical production fixes

full ​

Complete project lifecycle from discovery through retrospective.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
discoveranalystsinglediscoverNodocs/discovery-brief.md, docs/codebase-overview.md
defineproduct-managersingledefineYesdocs/prd.md
designarchitectsingledesignYesdocs/architecture.md
solveproduct-managersinglesolveYesdocs/stories/
implementfullstack-dev, qa-engineerteamimplementNoSource code, test files
reviewcode-reviewersinglereviewYesdocs/review-report.md
retroretro-analystsingle—No.sniper/memory/ updates

feature ​

Incremental feature -- define, design, solve, implement, review, and retro.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
defineproduct-managersingledefineYesdocs/prd.md
designarchitectsingledesignYesdocs/architecture.md
solveproduct-managersinglesolveYesdocs/stories/
implementfullstack-dev, qa-engineerteamimplementNoSource code, test files
reviewcode-reviewersinglereviewYesdocs/review-report.md
retroretro-analystsingle—No.sniper/memory/ updates

patch ​

Quick fix -- implement and review only.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
implementfullstack-devsingleimplementNoSource code, test files
reviewcode-reviewersinglereviewYesdocs/review-report.md

ingest ​

Codebase ingestion -- scan, document, and extract conventions.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
scananalystsingleingest-scanNodocs/codebase-overview.md
documentanalystsingleingest-documentNodocs/spec.md
extractanalystsingleingest-extractNo.sniper/conventions.yaml

explore ​

Exploratory analysis -- research and document findings.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
discoveranalystsinglediscoverNodocs/spec.md, docs/codebase-overview.md

refactor ​

Code improvement -- analyze, refactor, and review.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
analyzeanalystsinglerefactor-analyzeNodocs/spec.md
implementfullstack-devsingleimplementNoSource code, test files
reviewcode-reviewersinglereviewYesdocs/review-report.md

hotfix ​

Critical fix -- fastest path to production. Single phase, non-blocking gate.

PhaseAgentsSpawnGateHuman ApprovalKey Outputs
implementfullstack-devsingleimplement (non-blocking)NoSource code, test files

CLI Subcommands ​

The sniper binary provides project scaffolding, management, and CI/CD support.

Core ​

CommandDescription
sniper initInteractive project initialization (scaffolds .sniper/)
sniper statusShow project status and protocol progress
sniper migrateMigrate v2 config to v3 format

Protocol Execution ​

CommandDescription
sniper run <protocol>Run a protocol headlessly
sniper run <protocol> --auto-approveAuto-approve all gates
sniper run <protocol> --output <format>Output format: json, yaml, text
sniper run <protocol> --timeout <minutes>Set execution timeout
sniper protocol create <name>Create a custom protocol YAML
sniper protocol listList built-in and custom protocols
sniper protocol validate <name>Validate a custom protocol

Plugins and Packs ​

CommandDescription
sniper plugin install <package>Install a language plugin or domain pack
sniper plugin remove <name>Remove a plugin
sniper plugin listList installed plugins
sniper marketplace search <query>Search for plugins and packs

Project Management ​

CommandDescription
sniper dashboardOpen the project dashboard
sniper revertRevert changes from a protocol phase using checkpointed commits
sniper signalRecord a learning signal for agent memory
sniper sphereManage project spheres (bounded contexts)
sniper workspace init [name]Initialize a multi-repo workspace
sniper knowledgeManage domain knowledge sources

TIP

See the Headless & CI/CD guide for integrating sniper run into your pipelines.