speckit.validate

Validate implemented code against spec.md requirements and generate a traceability matrix.

Updated Oct 4, 2025
One-click install
npx skills add https://github.com/peancharoen/lcbp3 --skill speckit-validate-peancharoen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit.validate
Source: https://github.com/peancharoen/lcbp3/tree/main/.agents/skills/speckit.validate
Command: npx skills add https://github.com/peancharoen/lcbp3 --skill speckit-validate-peancharoen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates post-implementation validation by comparing code and project artifacts against formal specification documents to find gaps, missing acceptance criteria, unhandled edge cases, and insufficient tests.

Core Features & Use Cases

  • Requirements Mapping: Builds a requirements-to-implementation traceability matrix by extracting functional requirements, acceptance criteria, and edge cases from spec.md and mapping them to code and files referenced in tasks.md.
  • Comprehensive Validation Checks: Verifies requirement coverage, test presence, edge-case handling, and generates an actionable validation report with pass/partial/fail status and remediation recommendations.
  • Use Case: After a feature merge, run the validator to produce FEATURE_DIR/validation-report.md that summarizes uncovered requirements, missing tests, and prioritized fixes.

Quick Start

Run speckit.validate with the feature directory so it reads spec.md, plan.md, and tasks.md, inspects implementation files, and writes FEATURE_DIR/validation-report.md.

Frequently Asked Questions about speckit.validate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate implemented code against specification requirements?

To validate code against specification requirements, run a post-implementation review that compares source files with spec.md to identify mismatches, check acceptance criteria, and generate a traceability matrix mapping requirements to implementation.

How do I generate a requirements traceability matrix after a feature merge?

Generating a requirements traceability matrix involves extracting functional requirements and edge cases from spec.md, then mapping them to the code and files referenced in tasks.md to verify implementation coverage and produce a validation report.

What is the best way to check test coverage and edge-case handling for a newly implemented feature?

Checking test coverage and edge-case handling requires analyzing implementation files against specification documents to verify requirement coverage, test presence, and generate an actionable validation report with pass, partial, or fail status.

Can I automate post-implementation validation if I only have spec.md and plan.md available?

Automated post-implementation validation requires spec.md, plan.md, and tasks.md to be available, along with accessible source files created or modified by the implementation, ensuring accurate requirement mapping and coverage analysis.

How does automated code review handle unhandled edge cases and missing acceptance criteria?

Automated code review identifies unhandled edge cases and missing acceptance criteria by comparing project artifacts and code against formal specification documents, flagging gaps, and writing prioritized remediation recommendations to validation-report.md.

Why does post-implementation validation set an exit status based on coverage thresholds?

Post-implementation validation sets an exit status based on coverage thresholds to programmatically signal whether the implementation meets the required specification coverage, enabling automated CI/CD pipeline gates and immediate remediation alerts.