SpecFact CLI Documentation
The “swiss knife” CLI that turns any codebase into a clear, safe, and shippable workflow
Keep backlog, specs, tests, and code in sync so AI-assisted changes don’t break production.
Built for both worlds
- Vibe coders and new builders who want to ship fast with guardrails and confidence.
- Legacy professionals who want AI speed without lowering standards, plus end-to-end spec -> backlog -> code sync.
Core promise: Works for new and long-lived projects with contract enforcement and validation.
The Missing Link (Coder + DevOps Bridge)
Most tools help either coders or agile teams. SpecFact does both:
- Backlog sync that is actually strong: round-trip sync + refinement with GitHub, Azure DevOps, Jira, Linear.
- Ceremony support teams can run: standup, refinement, sprint planning, flow metrics (Scrum/Kanban/SAFe).
- Policy + validation: DoR/DoD/flow checks plus contract enforcement for production-grade stability.
Recommended command entrypoints:
specfact backlog ceremony standup ...specfact backlog ceremony refinement ...
Try it now
- Coders: AI IDE Workflow
- Agile teams: Agile/Scrum Workflows
🚀 Quick Start
New to SpecFact CLI?
Primary Use Case: Understanding and improving existing codebases (and new projects)
- Installation - Get started in 60 seconds
- First Steps - Run your first command
- Tutorial: Backlog Refine with AI IDE - Integrate backlog refinement with your AI IDE (agile DevOps)
- Tutorial: Daily Standup and Sprint Review - Daily standup view, post comments, and Copilot export (GitHub/ADO)
- Working With Existing Code ⭐ PRIMARY - Legacy-first guide
- The Existing Code Journey ⭐ - Complete modernization workflow
Using GitHub Spec-Kit or OpenSpec?
Secondary Use Case: Add automated enforcement to your Spec-Kit or OpenSpec projects
- From Spec-Kit to SpecFact - Add enforcement to Spec-Kit projects
- Spec-Kit Comparison - Understand when to use each tool
- From OpenSpec to SpecFact - Add enforcement to OpenSpec projects
Module System Foundation
SpecFact now uses a module-first architecture to reduce hard-wired command coupling.
- Core runtime handles lifecycle, registry, contracts, and orchestration.
- Feature behavior lives in module-local command implementations.
- Legacy command-path shims remain for compatibility during migration windows.
Implementation layout:
- Primary module commands:
src/specfact_cli/modules/<module>/src/commands.py - Legacy compatibility shims:
src/specfact_cli/commands/*.py(onlyappre-export is guaranteed)
Why this matters:
- Modules can evolve at different speeds without repeatedly changing CLI core wiring.
- Interfaces and contracts keep feature development isolated and safer to iterate.
- Pending OpenSpec-driven module changes can land incrementally with lower migration risk.
Module security and extensions:
- Using Module Security and Extensions - How to use verified modules (arch-06) and schema extensions (arch-07) from the CLI and as a module author
- Extending ProjectBundle - Declare and use namespaced extension fields on Feature/ProjectBundle
- Module Security - Publisher, integrity (checksum/signature), and versioned dependencies
📚 Documentation
Guides
- Command Chains ⭐ NEW - Complete workflows from start to finish
- Agile/Scrum Workflows - Persona-based collaboration for teams
- Policy Engine Commands - Scaffold policy config templates and run
policy init|validate|suggest - DevOps Backlog Integration 🆕 NEW FEATURE - Integrate SpecFact into agile DevOps workflows with bidirectional backlog sync
- Backlog Refinement 🆕 NEW FEATURE - AI-assisted template-driven backlog refinement for standardizing work items
- Backlog Dependency Analysis - Analyze critical path, cycles, orphans, and dependency impact from backlog graph data
- Backlog Delta Commands - Track backlog graph changes under
specfact backlog delta - Project DevOps Flow - Run plan/develop/review/release/monitor stage actions from one command surface
- Extending ProjectBundle - Add namespaced custom fields to Feature/ProjectBundle (arch-07)
- Using Module Security and Extensions - Use arch-06 (module security) and arch-07 (schema extensions) from CLI and as a module author
- Sidecar Validation 🆕 - Validate external codebases without modifying source
- Thorough Codebase Validation - Quick check, contract-full, sidecar, dogfooding
- UX Features - Progressive disclosure, context detection, intelligent suggestions
- Use Cases - Real-world scenarios and workflows
- IDE Integration - Set up slash commands in your IDE
- CoPilot Mode - Using
--mode copiloton CLI - Template Customization 🆕 NEW - Create and customize backlog templates for your team
- Troubleshooting - Common issues and solutions
- Competitive Analysis - How SpecFact compares
DevOps & Backlog Sync 🚀
For Developers & DevOps Teams: Keep your backlogs in sync with feature branches, code changes, and validations.
- DevOps Integration Guide ⭐ - Complete guide for GitHub Issues and Azure DevOps integration
- Cross-Adapter Sync: Lossless round-trip migration between backlog tools (GitHub ↔ ADO)
- Bidirectional Sync: Import backlog items as proposals, export proposals as backlog items
- Code Change Tracking: Automatically detect commits and add progress comments
- Status Synchronization: Keep OpenSpec and backlog status in sync
- Backlog Refinement Guide 🆕 NEW - AI-assisted template-driven refinement for standardizing work items
- Tutorial: Backlog Refine with AI IDE - End-to-end tutorial for agile DevOps teams (slash prompt, DoR, split stories, underspec/overspec)
- Tutorial: Daily Standup and Sprint Review - Daily standup view, post yesterday/today/blockers, interactive mode, Copilot export (GitHub/ADO)
- Template Detection: Automatically detect which template matches a backlog item with priority-based resolution
- AI-Assisted Refinement: Generate prompts for IDE AI copilots to refine unstructured input
- Confidence Scoring: Validate refined content and provide confidence scores
- Lossless Preservation: Preserve original backlog data for round-trip synchronization
- Agile Filtering 🆕: Filter by sprint, release, iteration, labels, state, assignee for agile workflows
- Persona/Framework Support 🆕: Filter templates by persona (product-owner, architect, developer) and framework (scrum, safe, kanban)
- Definition of Ready (DoR) 🆕: Validate sprint readiness with repo-level DoR configuration
- Preview/Write Safety 🆕: Preview mode by default, explicit
--writeflag for writeback - OpenSpec Integration 🆕: Add OpenSpec reference comments with
--openspec-commentflag (preserves original body) - Template Customization 🆕: Create custom templates for your team - see Template Customization Guide
- Authentication - Device code auth for GitHub and Azure DevOps
- GitHub Adapter - GitHub Issues adapter reference
- Azure DevOps Adapter - Azure DevOps work items adapter reference
- Backlog Adapter Patterns - Patterns for implementing backlog adapters
Quick Start for DevOps Teams:
# Export OpenSpec proposals to GitHub Issues
specfact sync bridge --adapter github --mode export-only \
--repo-owner your-org --repo-name your-repo
# Export to Azure DevOps work items
specfact sync bridge --adapter ado --mode export-only \
--ado-org your-org --ado-project your-project
# Cross-adapter sync: GitHub -> ADO (lossless round-trip)
specfact sync bridge --adapter github --mode bidirectional \
--bundle main --backlog-ids 123
specfact sync bridge --adapter ado --mode export-only \
--bundle main --change-ids <change-id>
Reference
- Reference Documentation - Complete technical reference index
- Command Reference - Complete command documentation
- Authentication - Device code auth flows and token storage
- Architecture - Technical design and principles
- Bridge Registry 🆕 - Module-declared bridge converters and lifecycle registration
- Operational Modes - CI/CD vs CoPilot modes
- Directory Structure - Project structure
Module Protocol Reporting
- Lifecycle protocol compliance reporting now classifies modules using the effective runtime interface and emits a single aggregate summary line for full/partial/legacy status.
Examples
- Brownfield Examples - Real-world modernization examples
- Quick Examples - Code snippets and patterns
🆘 Getting Help
Documentation
You’re here! Browse the guides above.
Community
- 💬 GitHub Discussions - Ask questions
- 🐛 GitHub Issues - Report bugs
Direct Support
- 📧 Email: [email protected]
🤝 Contributing
Found an error or want to improve the docs?
- Fork the repository
- Edit the markdown files in
docs/ - Submit a pull request
See CONTRIBUTING.md for guidelines.
Happy building! 🚀
Copyright © 2025 Nold AI (Owner: Dominikus Nold)
Trademarks: All product names, logos, and brands mentioned in this documentation are the property of their respective owners. NOLD AI (NOLDAI) is a registered trademark (wordmark) at the European Union Intellectual Property Office (EUIPO). See TRADEMARKS.md for more information.
License: See LICENSE for licensing information.