Skip to content

Sequant Cheat Sheet

Quick reference for all commands, flags, and common workflows. For detailed docs, see the full documentation.


Terminal window
# Install globally
npm install -g sequant
# Or run via npx (no install needed)
npx sequant init
Terminal window
sequant update # Update skill templates to latest version
sequant sync # Sync skills and templates (non-interactive, CI-safe)
sequant doctor # Verify installation health
ScenarioCommand
First time setupsequant init
New Sequant version releasednpm update -g sequant && sequant update
CI/automation template syncsequant sync
Something seems offsequant doctor

GoalCommand
Not sure where to start?/solve 123
Solve an issue end-to-end/fullsolve 123
Step-by-step workflow/spec 123/exec 123/qa 123
Headless batch runnpx sequant run 1 2 3 --quality-loop

Core Workflow

CommandPurpose
/spec <issue>Plan and review acceptance criteria, post issue comment
/exec <issue>Build in isolated worktree until AC met
/test <issue>Browser-based testing for admin features (needs Chrome DevTools MCP)
/qa <issue>Code review and quality gate validation

Automation

CommandPurpose
/fullsolve <issue>Full pipeline: spec → exec → test → qa with auto-fix
/solve <issues...>Recommend optimal workflow for issue(s)
/loopRe-run quality checks, fix failures, iterate

Testing & Docs

CommandPurpose
/testgen <issue>Generate test stubs from spec verification criteria
/verifyCLI/script execution verification with captured output
/docs <issue>Generate admin-facing feature documentation

Analysis & Utilities

CommandPurpose
/assess <issue>Triage issue, recommend next phase
/improveDiscover codebase improvements, create issues
/reflectAnalyze workflow effectiveness
/security-reviewDeep security analysis for sensitive features
/cleanRepository cleanup (stale worktrees, branches)
/mergerMulti-issue post-QA merge coordination
/upstreamMonitor Claude Code releases for compatibility
/releaseVersion bump, tag, GitHub release, npm publish

CommandPurpose
sequant initInitialize Sequant in a project
sequant updateUpdate skill templates to latest versions
sequant syncSync skills and templates (non-interactive)
sequant doctorCheck installation health and prerequisites
sequant status [issue]Show version, config, workflow state
sequant run <issues...>Execute workflow headlessly
sequant state [init|rebuild|clean]Manage workflow state
sequant statsView local workflow analytics
sequant dashboardLaunch real-time workflow dashboard
sequant logsView and manage log files

Execution Mode

FlagDescriptionDefault
--sequentialRun issues one at a timeoff (parallel)
--chainChain issues: each branches from previous (requires --sequential)off
--qa-gateWait for QA pass before next issue in chain (requires --chain)off
--phases <list>Phases to runspec,exec,qa
--resumeResume from last completed phase (reads GitHub markers)off
--base <branch>Base branch for worktree creationmain (or settings.run.defaultBase)

Quality

FlagDescriptionDefault
-q, --quality-loopAuto-retry on failuresoff
--max-iterations <n>Max retry iterations3
--testgenRun testgen phase after specoff
--smart-testsEnable smart test detectionon
--no-smart-testsDisable smart test detection

Environment

FlagDescriptionDefault
--no-mcpDisable MCP server injectionoff
--timeout <seconds>Timeout per phase in seconds1800
--batch <issues>Group issues to run together (e.g., --batch "1 2")[]

Output

FlagDescriptionDefault
-d, --dry-runPreview without executionoff
-v, --verboseVerbose output with streamingoff
--log-jsonEnable structured JSON loggingon
--no-logDisable JSON logging for this run
--log-path <path>Custom log directory path.sequant/logs/
--quietSuppress version warnings and non-essential outputoff

Terminal window
/fullsolve 123

Runs spec → exec → test → qa with automatic fix loops.

Terminal window
/spec 123 # Review the plan
/exec 123 # Implement in worktree
/qa 123 # Quality gate check

Pause between phases to review output and adjust.

Terminal window
npx sequant run 101 102 103 --quality-loop

Runs all issues with auto-retry on failures.

Sequential chain (each builds on previous)

Section titled “Sequential chain (each builds on previous)”
Terminal window
npx sequant run 101 102 103 --sequential --chain --qa-gate

Each issue branches from the last; waits for QA pass before continuing.

Terminal window
npx sequant run 123 --resume

Picks up from the last completed phase using GitHub markers.

Terminal window
npx sequant run 101 102 --dry-run

Shows what would happen without executing anything.

Terminal window
npx sequant run 123 --phases spec,testgen,exec,qa

Creates test stubs from spec, then implements against them.

Terminal window
/spec 123
/exec 123
/security-review
/qa 123

Adds a security review phase before final QA.


VerdictMeaningAction
READY_FOR_MERGEAll AC met, quality highMerge the PR
AC_MET_BUT_NOT_A_PLUSAC met, meaningful improvements suggestedMerge or iterate
NEEDS_VERIFICATIONAC met, pending external verificationVerify in CI/staging
AC_NOT_METAcceptance criteria failuresFix and re-run /qa

.claude/skills/ # Skill definitions (slash commands)
.claude/settings.json # Claude Code settings
.sequant/settings.json # Sequant configuration
.sequant/state.json # Workflow state tracking
.sequant/metrics.json # Local analytics data
.sequant/logs/ # Run logs
worktrees/ # Isolated git worktrees per issue

ProblemFix
Something feels brokennpx sequant doctor
Check current statenpx sequant status
View recent logsnpx sequant logs
Clean up stale worktrees/clean
Reset workflow statenpx sequant state clean