Examples

Real-world examples of using SpecFact CLI.

Available Examples

Quick Start

See It In Action

For Brownfield Modernization (Recommended):

Read the complete brownfield examples to see the hard-SDD workflow:

Django Modernization Example

This example shows the complete workflow:

  1. Extract specs from legacy code → 23 features, 112 stories in 8 seconds
  2. 📋 Create SDD manifest → Hard spec with WHY/WHAT/HOW, coverage thresholds
  3. Validate SDD → Hash match, coverage threshold validation
  4. 📊 Review plan → SDD validation integrated, ambiguity resolution
  5. 🚀 Promote plan → SDD required for “review” or higher stages
  6. 🔒 Add contracts → Runtime enforcement prevents regressions
  7. 🔍 Re-validate SDD → Ensure coverage thresholds maintained

For Quick Testing:

Dogfooding SpecFact CLI

This example shows:

  • ⚡ Analyzed 19 Python files → Discovered 19 features and 49 stories in 3 seconds
  • 🚫 Set enforcement to “balanced” → Blocked 2 HIGH violations (as configured)
  • 📊 Compared manual vs auto-derived plans → Found 24 deviations in 5 seconds
Total time: < 10 seconds Total value: Found real naming inconsistencies and undocumented features