Skip to main content

A strict Spec Agent workflow for spec-driven development

Project description

Spec Agent CLI

Spec Agent turns unclear feature requests into approved, product-only specifications before any implementation planning begins. It installs three Agent Skills under the open .agents/skills convention and keeps specification evolution and code drift observation available without mixing them into implementation work.

Install

Python 3.11 or newer is required.

uv tool install spec-agent-cli

Alternatives:

pipx install spec-agent-cli
pip install spec-agent-cli

Initialize a repository

cd /path/to/your-project
spec-agent init

This creates only missing project files and installs:

.agents/skills/spec-request-flow/
.agents/skills/spec-drift-sync/
.agents/skills/spec-evolution/
AGENTS.md                         # managed rules block; user content is preserved
SPEC.md                           # created only when absent
spec/features/
spec/evolution/events.jsonl
spec/evolution/timeline.md
spec/traceability.json

Use spec-agent init --check for a read-only status check. Use spec-agent init --force to refresh locally modified managed skill files after a CLI upgrade. --force never replaces project specifications or history.

Start a feature

Ask a compatible agent:

Use spec-request-flow to define feature X. Do not implement it.

The Spec Agent repeatedly clarifies blocking product questions, compares meaningful product approaches, writes spec.md and acceptance.md, asks for approval, records the approved product evolution, and then gives you the prompt for a separate Code Agent. That handoff requires spec: BEHAVIOR-ID backlinks in relevant production code and tests.

Validate implementation traceability

After an approved implementation, the Code Agent establishes the derived baseline and then validates it:

spec-agent traceability-sync --repo .
spec-agent validate --repo .

validate is read-only and returns failure for missing, unknown, unbaselined, moved, or changed backlink evidence. traceability-sync is used only after approved implementation or explicit reconciliation; it must not be used to hide unexplained drift.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spec_agent_cli-0.2.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spec_agent_cli-0.2.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file spec_agent_cli-0.2.0.tar.gz.

File metadata

  • Download URL: spec_agent_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for spec_agent_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 32c1ebe434756ff892a8c6a899f0490e9c78bda4d0a1f3d2be51a369ad875c2b
MD5 d3f89548e249d0480c76fdf235e332c2
BLAKE2b-256 25136727ca6c35b37e2d9fd0a71c9511c18cd5aa8288f99cad767058272339b7

See more details on using hashes here.

File details

Details for the file spec_agent_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: spec_agent_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for spec_agent_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9609ac40c7f9bf81ae992d94779ead2fc21aed43383b74d7c520250e426aeb9b
MD5 35537b3e1934ce51394a0d0a5c8464a8
BLAKE2b-256 8b9cd22601cdc2c7b6e7f11ab4b45571e8e90190bc6fab8108f3687df3e6eb07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page