Skip to main content

devspec

devspec is a spec-driven development framework for teams using GitHub Copilot and other AI coding agents.

It stores planning, implementation, review, and recovery state in Git-tracked files instead of relying on chat history. Use it when you want agents to follow the same workflow for project context, engineering standards, work-item intake, implementation, review, and session recovery.

Quick Start

Install with the devspec CLI from the target repository. The recommended one-off path is uvx, which avoids a permanent global install and works well on restricted developer machines.

uvx devspec init --target . --profile all --repo-state existing
uvx devspec doctor --target . --profile all

Use --repo-state new for a new repository. After validation, commit the copied framework files, run the foundation flow, then start the first work item.

For the full setup manual, see docs/how-to/README.md.

Setup Options

Situation Start here
Simplest one-off setup uv and uvx setup
Approved Windows package install WinGet setup
Persistent macOS/Linux package install Homebrew setup
CLI setup paths are blocked Manual copy setup

Install profiles let you choose which AI coding agent files to copy. Most multi-agent teams can start with --profile all; single-tool teams can use a smaller profile such as copilot, codex, cursor, claude, gemini, or antigravity.

Core Workflow

devspec has two workflow layers.

Layer Purpose Full guide
Foundation Capture stable project context, architecture, stack, structure, standards, and rules. New repository, existing repository
Work items Move one feature, bug, security issue, or accepted change request from intake to review. Work-item lifecycle

For a new project:

New repository foundation flow

/devspec.projectcontext
/devspec.techstack
/devspec.codebase-structure
/devspec.coding-standards
/devspec.rules

For an existing project:

Existing repository foundation flow

/devspec.extract
/devspec.projectcontext
/devspec.techstack
/devspec.codebase-structure
/devspec.coding-standards
/devspec.rules

Then run the work-item flow:

Work-item lifecycle flow

/devspec.story
/devspec.finalize
/devspec.tasks
/devspec.implement
/devspec.review

For a missed related requirement after finalization, use the append-only change-request route:

Work-item command selection guide

/devspec.changerequest -> /devspec.finalize -> /devspec.tasks -> /devspec.implement -> /devspec.review

Use /devspec.clarify only when a work item records a blocking question. Use /devspec.changerequest for a missed related requirement after finalization; it appends to existing work-item Markdown artifacts rather than creating a separate CR file. Use /devspec.diagram when a diagram would clarify architecture, workflow, state, sequence, or domain behavior.

AI Tool Support

GitHub Copilot prompt and agent files are the reference implementation. Other adapters are thin wrappers around the same command registry and Git-tracked artifacts.

Tool Setup notes
GitHub Copilot Native /devspec.* prompt commands through .github/prompts/ and .github/agents/.
Claude Code Project skills expose /devspec-* command-style invocations.
OpenAI Codex AGENTS.md provides always-on repository instructions and Codex workflow guidance.
Cursor Project rules guide Cursor Agent and Inline Edit.
Gemini CLI GEMINI.md provides context; optional commands expose /devspec:* shortcuts.
Google Antigravity Workspace rules and skills expose /devspec-* command-style invocations.

Canonical command names remain /devspec.*. Some adapters expose host-native shortcuts such as /devspec:story or /devspec-story; see Command Invocation by Agent.

More Documentation

Need Start here
Install or troubleshoot setup docs/how-to/setup/README.md
Run devspec workflows docs/how-to/README.md
Use command examples docs/how-to/README.md#command-examples
Set up AI coding agents docs/how-to/README.md#ai-coding-agent-setup
Work across multiple repositories docs/how-to/README.md#multi-repo-work
Upgrade devspec files docs/how-to/README.md#upgrades
Validate adapter behavior devspec/adapters/validation-flows.md
Review adapter support details devspec/adapters/README.md
Check platform compatibility devspec/adapters/compatibility-matrix.md
Plan enterprise rollout devspec/adapters/enterprise-governance.md

License

This repository is released under the Apache License 2.0.

Metadata

Release files for devspec 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devspec 0.2.0
File Size Uploaded
devspec-0.2.0.tar.gz 161.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devspec 0.2.0
File Interpreter ABI Platform
devspec-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 407.5 kB

Release files / devspec-0.2.0.tar.gz

Download URL devspec-0.2.0.tar.gz
Size 161.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4240c2eaf45afdb801ff32b3a8dbb1ef37fdd3396330771f2ca821178254da13
BLAKE2b-256 checksum
How to use checksums
ae5bb093b495bff7e2d02bfba43ba4aa7091386a459fee36915619d259e975e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}

Release files / devspec-0.2.0-py3-none-any.whl

Download URL devspec-0.2.0-py3-none-any.whl
Size 246.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce512eea62e74f952f49b6997242fb5f5d1e99f258f7f9ac214764bc75731b9a
BLAKE2b-256 checksum
How to use checksums
b87b16339410e4343dd96a8ac6d4d3c565c2dfc212d4ac4ce8a69d044310033d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page