Transform product requirements into working software through AI-orchestrated, specification-driven development.
Philosophy: Write a PRD, get deployable code. Each phase generates artifacts that feed the next—requirements → specs → architecture → plan → implementation—with human oversight when you want it.
Inspired by spec-kit and ralph-claude-code.
# Install
git clone <repository-url> && cd spec-to-ship
export PATH="$PWD/src:$PATH"
# Initialize project
mkdir my-project && cd my-project && git init
workflow init
# Edit docs/PRD.md with your requirements, then:
workflow clarify # Refine requirements interactively
workflow constitution # Define the project non-negotiables
workflow specs # Generate feature specifications
workflow arch # Create architecture document
workflow plan # Generate implementation plan
workflow build # Execute autonomous build loop| Tool | Version | Install |
|---|---|---|
| Bash | 4.0+ | System |
| Git | 2.0+ | System |
| Claude Code | Latest | See link |
| jq | 1.6+ | brew install jq / apt install jq |
| envsubst | Any | brew install gettext / apt install gettext |
| Command | Purpose |
|---|---|
init |
Initialize project structure |
clarify |
Refine PRD interactively |
specs |
Generate feature specifications |
arch |
Create architecture document |
plan |
Generate implementation plan |
build |
Execute autonomous build loop |
gate |
Validate milestone completion |
status |
Show workflow state |
explore |
Analyze existing codebase |
ci |
CI/CD integration commands |
provider |
Manage AI providers |
config |
Manage configuration |
See docs/COMMANDS.md for full reference.
Use different AI providers per phase:
workflow provider list # Show available providers
workflow config set PROVIDER_DEFAULT opencode
workflow build --provider claude # Override for one runControl when to pause for review:
workflow build --hitl task # Pause after every task
workflow build --hitl milestone # Pause after milestones
workflow build --hitl every:5 # Pause every 5 iterationsWork with existing codebases:
workflow explore --depth deep # Analyze existing code
workflow init --brownfield # Initialize with protectionIntegrate with your pipeline:
workflow ci validate # Run quality gates
workflow ci report json # JSON for CI systems
workflow ci hooks install # Git hooksBlock builds on violations:
workflow ci gate constitution # Check project constitution
workflow ci gate checklist # Check feature checklistInterrupted builds resume automatically:
workflow build # Prompts to resume if interruptedworkflow config # View all settings
workflow config set KEY=VALUE # Set a valueKey settings:
PROVIDER_DEFAULT- AI provider (claude, opencode, gemini, copilot)HITL_ENABLED/HITL_MODE- Human oversightBUILD_MAX_ITERATIONS- Iteration limit
.workflow/ # State, config, logs, audit trails
docs/ # PRD, architecture, implementation plan
specs/ # Feature specifications
src/ # Your source code
PRD → clarify → specs → arch → plan → build → gate
↓ ↓ ↓ ↓ ↓
Structured Specs Arch.md Plan.md Code
PRD *.md
- Command Reference - All commands and options
- Troubleshooting - Common issues and solutions
- AI Providers - Provider configuration
bats tests/ # Run tests
shellcheck src/**/*.sh # Lint scriptsLICENSE