Skip to main content

ralph-starter spec

Validate, list, and summarize specs for spec-driven development workflows.

Synopsis

ralph-starter spec <action> [options]

Actions

validate

Validate spec completeness across the project.

ralph-starter spec validate
ralph-starter spec validate --path openspec/changes/add-auth

Auto-detects the spec format (OpenSpec, Spec-Kit, or raw markdown) and validates each spec against a 0-100 completeness score.

Checks performed:

CheckPointsDescription
Proposal20Has a proposal, rationale, or overview section
RFC 211925 / 1025 if SHALL, MUST, SHOULD, or MAY keywords present; 10 if absent but content >200 chars
Design15Has a design, architecture, or technical section
Tasks15Has a tasks section or checkbox items
Criteria15Has Given/When/Then acceptance criteria
Depth10 / 510 if content >= 500 chars; 5 if 200-499 chars

Specs scoring below 40 are flagged as failing.

list

List available specs from any detected source.

ralph-starter spec list

Outputs all discovered specs with their available files.

summary

Show spec completeness metrics.

ralph-starter spec summary

Displays format, change count, average completeness score.

Options

OptionDescription
--path <path>Path to a specific spec file or directory to validate

Examples

# Validate all specs in an OpenSpec project
ralph-starter spec validate
# PASS add-auth (85/100)
# FAIL fix-login (30/100)
# No acceptance criteria found.

# Validate a specific file
ralph-starter spec validate --path specs/api-spec.md

# Quick overview
ralph-starter spec summary
# Format: OpenSpec
# Changes: 3 active, 1 archived
# Specs: 5 global
# Average: 72/100 completeness

See also