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 the same three Agent Skills for both the open .agents/skills convention and Claude Code's .claude/skills convention. Specification evolution and code drift observation remain 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
.claude/skills/spec-request-flow/
.claude/skills/spec-drift-sync/
.claude/skills/spec-evolution/
CLAUDE.md                         # managed Claude rules block; user content is preserved
SPEC.md                           # created only when absent
spec/packets/
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. Both skill trees come from one canonical packaged source, so their behavior cannot evolve independently. --force never replaces project specifications or history.

Start a feature

Ask a compatible agent, including Claude Code:

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.

Open the local workspace

After initializing a repository, launch the read-only Potpie-inspired dashboard:

spec-agent ui --repo .

Use --no-open in headless environments. The dashboard reads SPEC.md, packet specifications, acceptance scenarios, evolution events, Git history, drift results, and derived traceability without modifying the repository.

The UI is a small React app compiled into static assets and bundled with the CLI, so end users do not need Node.js. To change the dashboard during development:

cd dashboard
npm install
npm run build

Then restart spec-agent ui.

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.4.4.tar.gz (194.7 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.4.4-py3-none-any.whl (126.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spec_agent_cli-0.4.4.tar.gz
  • Upload date:
  • Size: 194.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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.4.4.tar.gz
Algorithm Hash digest
SHA256 afc43bf1ae0461450bd6c05c40eebc23429ce61948067d2c8660c0ca60e2d118
MD5 75e19a2f92c67e0378de1ae19f203b93
BLAKE2b-256 c73e94ffe6cc7f2820cffba3114d4910430aa5191c488597f60e90e7aa59ea66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spec_agent_cli-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 126.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 46f6024ac101590be41fb4b3778435b8aedf40db4dd073a1e96a6a608e98cc8e
MD5 2ff28927456816211f32c1ad5e628521
BLAKE2b-256 8f4e19780fd38281b675ebb3d2d5dcb431a70e4966de241170a78046b65de8e9

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