Speckit verify run

From racecraft-lab/Paddock · View interactive version

Speckit verify run is an AI agent skill from the GitHub repository racecraft-lab/Paddock. Perform a non-destructive post-implementation verification gate validating the implementation against spec.md, plan.md, tasks.md, and constitution.md.

How to use this skill

Skill file

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Goal

Validate the implementation against its specification artifacts (spec.md, plan.md, tasks.md, constitution.md). This command MUST run only after /speckit.implement has completed.

Operating Constraints

STRICTLY READ-ONLY: Do not modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).

Constitution Authority: The project constitution (.specify/memory/constitution.md) is non-negotiable within this verification scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, tasks or implementation—not dilution, reinterpretation, or silent ignoring of the principle. If a principle itself needs to change, that must occur in a separate, explicit constitution update outside /speckit.verify.run.

Execution Steps

1. Initialize Verification Context

Run .specify/scripts/bash/check-prerequisites.sh --json --paths-only from repo root.

  1. Script succeeds: Parse JSON for FEATURE_DIR and BRANCH. Paths-only mode does not validate the branch; set FEATURE_BRANCH = true only when BRANCH is a feature branch. If BRANCH is detached, main, or otherwise non-feature, scan specs/NNN-*/, ask the user to choose the intended feature, and set FEATURE_BRANCH = false.
  2. Script fails: You MUST prompt for available features (Scan specs/NNN-*/ to get available features). Use Codex's structured request_user_input path if it is available; otherwise ask one concise plain-text selection question and wait for the user. Do NOT guess or auto-select a change. Always let the user choose.

Derive absolute paths:

Abort if any required file is missing (instruct the user to run missing prerequisite command).

For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").

2. Load Configuration

Run the load-config script (.specify/extensions/verify/scripts/bash/load-config.sh or .specify/extensions/verify/scripts/powershell/load-config.ps1) from the repo root. Parse the max_findings value from its output and store it for use in Step 6. If the script fails, abort and relay its error message to the user.

3. Load Artifacts (Progressive Disclosure)

Load only the minimal necessary context from each artifact:

From spec.md:

From plan.md:

From data-model.md (if present):

From tasks.md:

From constitution:

4. Identify Implementation Scope

Build the set of files to verify from tasks.md.

5. Build Semantic Models

Create internal representations (do not include raw artifacts in output):

6. Verification Checks (Token-Efficient Analysis)

Focus on high-signal findings. Limit to the configured max_findings value (loaded in Step 2); aggregate remainder in overflow summary.

A. Task Completion
B. File Existence
C. Requirement Coverage
D. Scenario & Test Coverage
E. Spec Intent Alignment
F. Constitution Alignment
G. Design & Structure Consistency

7. Severity Assignment

Use this heuristic to prioritize findings:

8. Produce Compact Verification Report

Output a Markdown report (no file writes) with the following structure.

If FEATURE_BRANCH = false, prepend: > ⚠️ **Non-Feature-Branch Verification** from \<BRANCH>\ against \<FEATURE_DIR>\. Some checks may be affected by cross-feature interference.

Verification Report

| ID | Category | Severity | Location(s) | Summary | Recommendation |

|----|----------|----------|-------------|---------|----------------|

| A1 | Task Completion | CRITICAL | tasks.md | 3 of 12 tasks incomplete | Complete tasks T05, T08, T11 |

| B1 | File Existence | CRITICAL | src/auth.ts | Task-referenced file missing | Create file or update task reference |

| C1 | Requirement Coverage | CRITICAL | spec.md:FR-003 | No implementation evidence | Implement FR-003 |

(Add one row per finding; generate stable IDs prefixed by check letter: A1, B1, C1... Reference specific files and line numbers in Location(s) where applicable.)

Task Summary Table:

| Task ID | Status | Referenced Files | Notes |

|---------|--------|-----------------|-------|

Constitution Alignment Issues: (if any)

Metrics:

9. Provide Next Actions

At end of report, output a concise Next Actions block:

10. Offer Remediation

Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)

Operating Principles

Context Efficiency

Analysis Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.