Skip to content

Repository files navigation

AI Spec Driven Development Toolkit

A schema-first, AI-assisted workflow that turns spec → implementation into a deterministic pipeline backed by machine-checkable artifacts.


Why This Exists

  • Clarity for humans, structure for AIs.
  • Falsifiability: every statement is testable.
  • Traceability: FRs ↔ APIs ↔ Fixtures ↔ NFRs remain linked end to end.
  • Early delivery: CI enforces quality from Step 0.

Start Here


Toolkit Layout

<toolkit-root>/
├─ README.md                 # this file (high-level orientation)
├─ docs/                     # audience-specific guidance
├─ prompts/                  # deterministic prompt contracts
├─ schema/                   # JSON Schemas per step + shared atoms/collections/errors
├─ spec/common/              # shared seed manifest (toolkit baseline)
└─ tools/                    # CLI package + schema registry
   └─ specdev_tools/         # Python CLI package
      ├─ cli.py              # entry point
      ├─ core/               # errors, registry, trace_types, changelog_parser
      ├─ validation/         # validate, validators/, linters (fixtures, seed, docs,
      │                      #   quality, hallucination, dependency, forward-replay,
      │                      #   traceability, invariants, governance, matrix)
      ├─ generation/         # prompt_generator, prompt_schema_sync, schema_differ
      ├─ canonical/          # autofix, integrity, lint, registry
      └─ migration/          # planner, runner

Most teams vendor the toolkit as a git submodule at <product-repo>/devspec_toolkit/ beside their live spec/ directory.


Versioning & Migration

This toolkit uses Semantic Versioning:

  • MAJOR: Breaking changes that require spec migration
  • MINOR: New features, backward compatible
  • PATCH: Bug fixes and documentation

Current version is defined in tools/pyproject.toml. See CHANGELOG.md for release history and changelog/ for machine-readable version details.

Projects track their toolkit version in spec/specdev_version to enable migration tooling. When versions mismatch, use the specdev align CLI to upgrade.

👉 Migration Guide


Working With The Toolkit


Commands & Troubleshooting

All authoritative CLI examples, guardrails, and troubleshooting checklists live in docs/developers/reference.md.


Additional Resources


Platform Support

macOS and Linux are fully supported. Windows users should run the toolkit under WSL2.


License

This toolkit is released under the MIT License.

About

Schema-first toolkit for AI-assisted, spec-driven development. Turns spec → implementation into a deterministic pipeline backed by machine-checkable artifacts: JSON Schemas per step, deterministic prompt contracts, and a Python CLI that validates every stage in CI. Requirements, APIs, fixtures and NFRs stay traceable end to end.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages