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): 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:
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.
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

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

Format Requirements

All .mmd files must include the dark theme directive as the first line:
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

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:

Installation

Spequa is available as a Python package and as Claude Code slash commands:

Naming History

Old command names (/speckit.*, /equa-spec.*) are no longer recognized. Use the /spequa.* prefix exclusively.