Requirements as Code
Treat product knowledge like source code.
RAC is a command-line tool for managing requirements, decisions, roadmaps, prompts, and design artifacts as plain Markdown, right inside your Git repository.
pip install requirements-as-code
What is RAC?
The code is structured, the tests are automated, the infrastructure is versioned — but the reasoning behind what you build is scattered across documents, tickets, chats, and AI conversations. RAC brings that knowledge back into the repository.
You write product thinking in Markdown; RAC validates it, inspects it, and connects it — so it stays durable, reviewable, and usable as context for both humans and AI. No proprietary formats, no hosted platform, no lock-in.
Who is it for?
- Software and product teams who want the why behind their software versioned alongside the code.
- AI-native teams who need structured, durable context instead of more scattered chat history.
Install
Requires Python 3.11+.
pip install requirements-as-code
# or
uv tool install requirements-as-code
Quick Start
rac validate requirement.md # check one artifact
rac validate rac/ # check every artifact in a directory
rac inspect requirement.md # see its type and completeness
rac stats rac/ # summarize a directory of artifacts
rac review rac/ # full repository review, worst problems first
New to RAC? Walk through your first artifact in five minutes: docs/quickstart.md.
Supported Artifact Types
- Requirements — what needs to exist
- Decisions — why choices were made (ADRs)
- Roadmaps — where the product is heading
- Prompts — reusable AI collaboration patterns
- Designs — product experience thinking
Everything stays plain Markdown — see docs/artifacts.md.
Documentation
- Quickstart — install and try RAC in five minutes
- CLI reference — every command, flag, and exit code
- Artifact types — the five types and their sections
- Relationships — link artifacts and validate the links
- Repository workflow — organize a repo with RAC
- Testing & contributing — local setup and verification
- Examples — small, realistic artifacts
How RAC earns trust
RAC asks you to trust it with your product knowledge, so it holds itself to the same standard it applies to your repository:
- It dogfoods itself. RAC's own planning corpus under
rac/is validated by RAC in CI (rac validate rac/,rac relationships rac/ --validate,rac review rac/) — if the tool's rules break the tool's own artifacts, the build fails. - Output is a contract. Golden tests pin the CLI's human and JSON output byte-for-byte; any change to what RAC prints is reviewed as a product change.
- JSON is versioned. Machine-readable output carries a
schema_versionand only changes additively.
Project Status
RAC is early and evolving quickly. A terminal Explorer ships alongside the
CLI — browse the artifact tree, read documents with their references as
navigable links, assess repository health, and reach anything from the /
command palette:
pip install 'requirements-as-code[explorer]'
rac explorer
Contributions, ideas, and experiments are welcome — see CONTRIBUTING.md.
License
MIT
Metadata
Release files for requirements-as-code 0.8.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requirements_as_code-0.8.11.tar.gz | 2.0 MB | With provenance | Details for requirements_as_code-0.8.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requirements_as_code-0.8.11-py3-none-any.whl | Python 3 | none | any | Details for requirements_as_code-0.8.11-py3-none-any.whl |
Total release size: 2.1 MB
Release files / requirements_as_code-0.8.11.tar.gz
| Download URL | requirements_as_code-0.8.11.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09e96ba5f428ab530312c15e3aa6b63aea329622d7324c91c7c28230f8e7c5bc
|
|
BLAKE2b-256 checksum How to use checksums |
bf83c1e585184d9ad3f07b39e6946f22c2ceee1405db6a64bb456e2cd1a4628d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency logRelease files / requirements_as_code-0.8.11-py3-none-any.whl
| Download URL | requirements_as_code-0.8.11-py3-none-any.whl |
|---|---|
| Size | 153.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38a4435494ffb402c2f7a5cc0e2611a8da425e1334be2508fc312cfaab9aaa1b
|
|
BLAKE2b-256 checksum How to use checksums |
918fa2b5a1cde1273405810b863a5835ed1d4ac759a9abe522802c0406b07b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency logSecurity for requirements-as-code 0.8.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for requirements_as_code-0.8.11.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.