Core USP: SpecFact CLI works seamlessly with VS Code, Cursor, GitHub Actions, and any agentic workflow. This folder contains real examples of bugs that were caught and fixed through different integration points.
This folder contains everything you need to understand and test SpecFact CLI integrations:
-
integration-showcases.md⭐ START HERE- Purpose: Real-world examples of bugs fixed via CLI integrations
- Content: 5 complete examples showing how SpecFact catches bugs in different workflows
- Best for: Understanding what SpecFact can do and seeing real bug fixes
- Time: 15-20 minutes to read
-
integration-showcases-testing-guide.md🔧 TESTING GUIDE- Purpose: Step-by-step guide to test and validate all 5 examples
- Content: Detailed instructions, expected outputs, validation status
- Best for: Developers who want to verify the examples work as documented
- Time: 2-4 hours to complete all tests
-
integration-showcases-quick-reference.md⚡ QUICK REFERENCE- Purpose: Quick command reference for all 5 examples
- Content: Essential commands, setup steps, common workflows
- Best for: Quick lookups when you know what you need
- Time: 5 minutes to scan
-
setup-integration-tests.sh🚀 AUTOMATED SETUP- Purpose: Automated script to create test cases for all examples
- Content: Creates test directories, sample code, and configuration files
- Best for: Setting up test environment quickly
- Time: < 1 minute to run
Step 1: Read the main showcase document
→ integration-showcases.md
This gives you a complete overview of what SpecFact can do with real examples.
Step 2: Choose your path:
-
Want to test the examples? → Use
setup-integration-tests.shthen followintegration-showcases-testing-guide.md -
Just need quick commands? → Check
integration-showcases-quick-reference.md -
Ready to integrate? → Pick an example from
integration-showcases.mdand adapt it to your workflow
Step 1: Run the setup script
./docs/examples/integration-showcases/setup-integration-tests.shStep 2: Follow the testing guide
→ integration-showcases-testing-guide.md
Step 3: Verify validation status
- Example 1: ✅ FULLY VALIDATED
- Example 2: ✅ FULLY VALIDATED
- Example 3:
⚠️ COMMANDS VERIFIED (end-to-end testing deferred) - Example 4: ✅ FULLY VALIDATED
- Example 5: ⏳ PENDING VALIDATION
- Integration: VS Code + Pre-commit Hook
- Bug: Blocking I/O call in async context
- Result: Caught before commit, prevented production race condition
- Status: ✅ FULLY VALIDATED
- Integration: Cursor AI Assistant
- Bug: Missing None check in data processing
- Result: Prevented regression during refactoring
- Status: ✅ FULLY VALIDATED
- Integration: GitHub Actions workflow
- Bug: Type mismatch in API endpoint
- Result: Blocked bad code from merging
- Status: ✅ FULLY VALIDATED (CI/CD workflow validated in production)
- Integration: Git pre-commit hook
- Bug: Function signature change (breaking change)
- Result: Blocked commit locally before pushing
- Status: ✅ FULLY VALIDATED
- Integration: AI assistant workflows
- Bug: Edge cases in data validation
- Result: Discovered hidden bugs with symbolic execution
- Status: ⏳ PENDING VALIDATION
- Examples README - Overview of all SpecFact examples
- Brownfield FAQ - Common questions about brownfield modernization
- Getting Started - Installation and setup
- Command Reference - All available commands
Overall Progress: 80% complete (4/5 fully validated, 1/5 pending)
Key Achievements:
- ✅ CLI-first approach validated (works offline, no account required)
- ✅ 3+ integration case studies showing bugs fixed
- ✅ Enforcement blocking validated across all tested examples
- ✅ Documentation updated with actual command outputs and test results
Remaining Work:
- ⏳ Example 5 validation (2-3 hours estimated)
- ✅ Example 3 validated in production CI/CD (GitHub Actions workflow verified)
-
Start with Example 1 - It's the simplest and fully validated
-
Use the setup script - Saves time creating test cases
-
Check validation status - Examples 1, 2, and 4 are fully tested and working
-
Read the testing guide - It has actual command outputs and expected results
-
Adapt to your workflow - These examples are templates you can customize
Questions? Check the Brownfield FAQ or open an issue on GitHub.