What problem does it solve?
This Skill automates the validation of SPEC documents, ensuring adherence to defined schemas and formats, thereby improving the quality and consistency of technical specifications.
Core Features & Use Cases
- JSON Schema Validation: Validates code blocks like TypeScript models, DB schemas, and API contracts against their respective meta-schemas.
- Structural Validation: Checks for the presence of required sections, correct Acceptance Criteria (AC) formatting, and explicit 'N/A' declarations for empty sections.
- Hybrid API Validation: Verifies the consistency between API schemas and their examples, and checks for the existence of Single Source of Truth (SSOT) paths.
- Write Operations Validation: Ensures consistency and completeness of data modification specifications, including operation mapping, table references, transaction integrity, idempotency strategies, and audit policies.
- Use Case: Before merging a new feature specification, run this Skill to automatically catch formatting errors, schema violations, and inconsistencies in API contracts, preventing potential implementation issues.
Quick Start
Run the spec-validator skill to validate the SPEC document located at 'docs/features/029-battle/SPEC-029.md'.