Skip to main content

Spequa Workflow

Last Verified: 2026-04-12 | Renamed from: spec-kit / speckit (pre-April 2026) Toolkit: spequa v0.9.0 | Install: pip install spequa or editable install from /tools/spequa
Spequa is the spec-driven development pipeline used across all Equa repositories. All features, bug fixes, and significant refactors follow this pipeline before any implementation work begins. The pipeline enforces measurable acceptance criteria, code-cited evidence, and user-authorized closure. The authoritative source for all conventions is the project constitution (created per-repo via /spequa.1-constitution).

Pipeline Phases (0–16)

The pipeline has 17 numbered phases, invoked via Claude Code slash commands (/spequa.N-name):
#CommandPurposePrimary Output
0/spequa.0-pipelineAutonomous sequential pipeline loop — runs all phases with gate checkspipeline-state.md, pipeline-report.md
1/spequa.1-constitutionCreate or update the project constitutionconstitution.md
2/spequa.2-problemsFrame the problem space, constraints, and success criteriaProblem statement in spec.md
3/spequa.3-spequafyCreate or update the feature specificationspec.md
3.0/spequa.3.0-diagnoseStructured bug-fix workflow with root cause analysisspec.md (diagnostic variant)
3.1/spequa.3.1-analyze-domainAnalyze data files and extract domain modelsDomain model data for spec.md
4/spequa.4-clarifyIdentify underspecified areas, ask up to 5 clarification questionsclarifications.md
4.1/spequa.4.1-expert-decisionSenior domain expert decision between clarification optionsDecision record
5/spequa.5-planDesign phased implementation with AC mappingplan.md, research.md, data-model.md
5.1/spequa.5.1-researchFocused research to resolve technical unknowns during planningresearch.md
6/spequa.6-tasksGenerate actionable, dependency-ordered task breakdowntasks.md
6.1/spequa.6.1-taskstoissuesConvert tasks into GitHub issuesGitHub issues
7/spequa.7-checklistGenerate a custom quality checklist for the featurechecklist.md
8/spequa.8-analyzeCross-artifact consistency and quality analysis (read-only)Analysis report
9/spequa.9-testGenerate test plan and test stubs from spec artifactsTest files
10/spequa.10-implementExecute the implementation plan, processing all tasksCode changes, verification-results.md
11/spequa.11-docsValidate documentation structural integrity and cross-referencesDoc validation report
12/spequa.12-score-docsScorecard benchmark rubric for scoring audited documentationScorecard
13/spequa.13-code-review14-gate PR code review checklistReview verdict
14/spequa.14-create-pull-requestCreate a PR with pre-flight validation and self-review checklistGitHub PR
14.1/spequa.14.1-pr-checksWait for CI checks, summarize pass/fail, gate progressionCI status report
15/spequa.15-comet-reviewDelegate full PR review to Comet browser sidecarBrowser-based review verdict
15.1/spequa.15.1-comet-pr-review14-gate PR code review via Comet browserBrowser-based code review
16/spequa.16-closeValidate spec completion, capture evidence, formally closeClosure report
Every code claim in a spec must cite an exact file path and line number verified by reading the actual source. A task is not done until its verify step passes and the user authorizes closure.

Directory Structure

Per-Spec Directory

Each spec lives in specs/{id}-{slug}/ where {id} is a 3-digit zero-padded sequential number and {slug} is kebab-case:
specs/125-visual-diagrams/
├── spec.md                    # Feature specification (required)
├── clarifications.md          # Resolved ambiguities (required)
├── plan.md                    # Implementation plan (required)
├── tasks.md                   # Task breakdown (required)
├── checklist.md               # Quality validation checklist
├── research.md                # Phase 5.1 research output
├── data-model.md              # Entity/schema design
├── verification-results.md    # Post-implementation AC evidence
├── contracts/                 # API contracts
├── diagrams/                  # Mermaid .mmd visual diagrams
└── evidence/                  # Validation reports, screenshots
Some repos (particularly command-center-so) may still use a .specify/specs/ path from the pre-rename era. New specs should use specs/ at the repo root. The global platform-level specs live in /equa-specs/ at the workspace root.

Artifact Requirements

Every spec must produce the required artifacts before implementation begins.
ArtifactLocationRequired
spec.mdspecs/{id}-{slug}/spec.mdYes
clarifications.mdspecs/{id}-{slug}/clarifications.mdYes
plan.mdspecs/{id}-{slug}/plan.mdYes
tasks.mdspecs/{id}-{slug}/tasks.mdYes
checklist.mdspecs/{id}-{slug}/checklist.mdYes (phase 7)
verification-results.mdspecs/{id}-{slug}/verification-results.mdPost-implementation
diagrams/specs/{id}-{slug}/diagrams/*.mmdConditional
diagrams/ is generated when the plan has 3+ phases with multi-system scope (architecture diagram), or when tasks has 5+ tasks with dependencies (task dependency and key dependency diagrams). See the Visual Diagrams section below.

ID Conventions

Spec IDs

3-digit zero-padded, sequential: 010, 011, …, 125, 126. Duplicate ID prefixes are prohibited; if a collision is discovered, the newer spec must be renumbered. A single global numbering sequence is used across all Equa repos (decided April 2026).

Task IDs

Prefix S{specId}-T with zero-padded 3-digit task numbers. Example: S125-T001, S125-T002. Tasks are sequential across all phases within a spec.

Status Lifecycle

StatusMeaning
DRAFTspec.md exists, open questions remain
SPECIFIEDAll clarifications resolved, clarifications.md complete
PLANNEDplan.md written with phased approach
TASKEDtasks.md created with dependency graph
IN PROGRESSImplementation actively underway
IMPLEMENTEDAll tasks done, all ACs verified, awaiting user sign-off
DONEUser has explicitly approved closure
No spec may skip from DRAFT to IMPLEMENTED. Each phase produces its artifact.

Visual Diagrams Convention

Diagrams are conditionally generated based on spec complexity.

When Diagrams Are Generated

Diagram TypeTriggerOutput Files
Architecture diagramPlan has 3+ phases with multi-system scopediagrams/architecture.mmd
Task dependency diagramTasks has 5+ tasks with inter-task dependenciesdiagrams/task-dependencies.mmd
Key dependency diagramTasks has 5+ tasks with dependenciesdiagrams/key-dependencies.mmd

Format Requirements

All .mmd files must include the dark theme directive as the first line:
%%{init: {'theme': 'dark'}}%%
Diagrams are also embedded inline in the parent markdown (plan.md or tasks.md) as fenced Mermaid code blocks. The inline version is the canonical source; the .mmd file is an extracted copy.

Autonomous Pipeline Mode

The full pipeline can be executed automatically using /spequa.0-pipeline, which chains all 17 phases in a single session with gate checks, self-correction on failures, pauses for clarification, and scoring against the R1-R10 rubric.

Gate Configuration

GateStepDefault Mode
Gate 1post-specifyPAUSE
Gate 2post-clarifyPAUSE
Gate 3post-planAUTO
Gate 4post-tasksPAUSE
Gate 5post-analyzeAUTO (always PAUSE on CRITICAL)

Quality Signal Auto-Pause

The pipeline scans each artifact for quality signals that indicate unresolved issues. Auto-pause fires regardless of gate mode:
  • Canonical marker: [NEEDS CLARIFICATION] (bracket-uppercase)
  • Scanner regex: /\[needs[\s._-]*clarification\]/i (catches common variants)
  • Additional signals: **Unresolved** items in clarifications.md, unmapped ACs in plan.md or tasks.md

Spec-Hash Integrity

Every generated artifact includes a spec-hash field (first 8 hex characters of SHA-256 of spec.md at generation time). On resume with --from, each prerequisite artifact’s hash is compared against the current spec.md. A hash mismatch warns in user-mode and auto-halts in agent-mode.

Pipeline Artifacts

The autonomous pipeline produces two additional tracking files:
  • pipeline-state.md — Phase statuses, timestamps, and gate results
  • pipeline-report.md — AC-by-AC scorecard with evidence (written on completion or halt)

Closure Hard Gates

A spec must not be marked DONE until all of the following are true:
  1. Every task in tasks.md is marked [x] Done with date
  2. Every AC in spec.md maps to a PASS in verification-results.md
  3. Lint exits 0 with no new errors
  4. Type checking exits 0
  5. All tests pass (existing + new)
  6. Automated validation evidence in pipeline-report.md with all ACs at PASS, confirmed by recorded UI/UX demo testing; or user has explicitly approved
  7. If autopilot was used, pipeline-state.md shows all gates PASS

Queue Management

The portfolio queue tracks every spec with status, priority, milestone, and linkage to spec artifacts. After completing all tasks for a spec, the implementer updates the queue entry to IMPLEMENTED. Only the user may advance status to DONE.

Templates

Artifact templates are maintained alongside the spequa toolkit source:
TemplatePurpose
spec-template.mdUser stories, acceptance scenarios, functional requirements
plan-template.mdTechnical context, constitution check, project structure, phased design
tasks-template.mdTask breakdown format, dependency diagram section, MVP strategy
checklist-template.mdQuality validation checklist format
constitution-template.mdConstitution amendment format

Installation

Spequa is available as a Python package and as Claude Code slash commands:
# PyPI install (any project)
pip install spequa

# Editable install from workspace (recommended for Equa dev)
pip install -e /Users/shawnowen/dev/equa/tools/spequa

# Verify installation — slash commands appear in Claude Code
# /spequa.0-pipeline through /spequa.16-close

Naming History

EraNameCommandsActive Period
v1spec-kit / speckit/speckit.specify, /speckit.clarify, etc.2026-01 → 2026-03
v2equa-spec/equa-spec.specify, /equa-spec.pipeline, etc.2026-03 → 2026-04
v3 (current)spequa/spequa.0-pipeline through /spequa.16-close2026-04 → present
Old command names (/speckit.*, /equa-spec.*) are no longer recognized. Use the /spequa.* prefix exclusively.