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 do not break production. Works for brand-new projects and long-lived codebases - even if you are new to coding.
No API keys required. Works offline. Zero vendor lock-in.
docs.specfact.io is the canonical docs entry point for SpecFact.
- Core CLI/runtime/platform documentation remains owned by
specfact-cli. - Module-specific deep docs are canonically owned by
specfact-cli-modules. - The live modules docs site is currently published at
https://modules.specfact.io/.
Use this repository's docs for the overall SpecFact workflow, CLI runtime lifecycle, module registry, trust model, and command-group topology.
Use the modules docs site for bundle-specific deep dives, adapter details, workflow tutorials, and module-authoring guidance.
In short, module-specific deep docs are canonically owned by specfact-cli-modules.
# Zero-install (recommended)
uvx specfact-cli@latest
# Or install globally
pip install -U specfact-cli# First run: install official bundles
specfact init --profile solo-developer
# Alternative bundle selection
specfact init --install backlog,codebase
specfact init --install all
# IDE prompt/template setup
specfact init ide
specfact init ide --ide cursor
specfact init ide --ide vscodespecfact init ide discovers prompt resources from installed workflow modules and exports them to your IDE. If module prompt payloads are not installed yet, the CLI uses packaged fallback resources.
# Analyze an existing codebase
specfact code import my-project --repo .
# Snapshot current project state
specfact project snapshot --bundle my-project
# Validate external code without modifying source
specfact code validate sidecar init my-project /path/to/repo
specfact code validate sidecar run my-project /path/to/repoAs of 0.40.0, flat root commands are removed. Use grouped commands:
specfact validate ...->specfact code validate ...specfact plan ...-> removed; usespecfact project devops-floworspecfact project snapshotspecfact policy ...-> removed; usespecfact backlog verify-readiness
SpecFact's USP is closing the drift gap between backlog -> specs -> code.
These commands require the backlog bundle to be installed first, for example via
specfact init --profile backlog-team or specfact init --install backlog.
# 1) Initialize backlog config + field mapping
specfact backlog init-config --force
specfact backlog map-fields --provider ado --ado-org <org> --ado-project "<project>"
# 2) Run ceremony workflows on real backlog scope
specfact backlog ceremony standup ado --ado-org <org> --ado-project "<project>" --state any --assignee any --limit 5
specfact backlog ceremony refinement ado --ado-org <org> --ado-project "<project>" --id <work-item-id> --preview
# 3) Keep backlog + spec intent aligned (avoid silent drift)
specfact backlog verify-readiness --bundle <bundle-name>Compatibility note: specfact backlog daily ... and specfact backlog refine ... still exist, but the preferred entrypoints are backlog ceremony standup and backlog ceremony refinement.
For GitHub, replace adapter/org/project with:
specfact backlog ceremony standup github --repo-owner <owner> --repo-name <repo> --state any --assignee any --limit 5
AI IDE quick start
# In your IDE chat (Cursor, VS Code, Copilot, etc.)
/specfact.01-import my-project --repo .Next steps
- Vibe coders and new builders who want to ship fast with guardrails and confidence.
- Legacy professionals who want AI speed without lowering standards.
- DevOps and engineering leaders who need evidence and repeatable workflows.
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 ...specfact backlog verify-readiness --bundle <bundle-name>specfact backlog analyze-deps --bundle <bundle-name>
What the backlog readiness and ceremony commands do in practice:
- Turns team agreements (DoR, DoD, flow checks) into executable checks against your real backlog data.
- Shows exactly what is missing per item (for example missing acceptance criteria or definition of done).
- Runs structured ceremony workflows directly from the CLI.
Start with:
specfact backlog ceremony standup --helpspecfact backlog verify-readiness --bundle <bundle-name>specfact backlog refine --help
The specfact-cli repository owns the platform-level features that every workflow bundle depends on:
specfact initfor first-run bootstrap and IDE setup.specfact modulefor install/list/show/search/enable/disable/uninstall/upgrade lifecycle flows.specfact upgradefor CLI upgrades.- Runtime contracts, registry bootstrapping, trust checks, logging, and shared orchestration.
- The grouped command surface that mounts installed bundle families under
project,backlog,code,spec, andgovern.
Official workflow behavior now ships from nold-ai/specfact-cli-modules.
The core CLI discovers those bundle packages, mounts their command groups, and enforces compatibility, trust, and lifecycle rules.
Installed official bundles expose the current grouped surfaces:
specfact project ...specfact backlog ...specfact code ...specfact spec ...specfact govern ...
Install examples:
specfact module install nold-ai/specfact-project
specfact module install nold-ai/specfact-backlog
specfact module install nold-ai/specfact-codebase
specfact module install nold-ai/specfact-spec
specfact module install nold-ai/specfact-governIf startup warns that bundled modules are missing or outdated, run:
specfact module init --scope project
specfact module initUse this repo's docs for the current CLI/runtime release branch and the overall process of how official modules plug into the core platform.
Use https://modules.specfact.io/ for the in-depth backlog, project, spec, govern, adapter, and module-authoring guides.
- Bootstrap: install the CLI and initialize the official bundles you need.
- Analyze or sync: import code, connect backlog systems, or sync external artifacts into project bundles.
- Validate: run spec, governance, and sidecar validation flows before implementation or release.
- Iterate safely: use module-provided workflows while the core runtime keeps command mounting, trust, and lifecycle consistent.
SpecFact complements your stack rather than replacing it.
- Spec-Kit/OpenSpec for authoring and change tracking
- Backlog tools for planning and delivery
- CI/CD for enforcement and regression prevention