CLI for streamlined spec-driven development
# Add to your Claude Code skills
git clone https://github.com/ariel-frischer/autospecSpec-Driven Development Automation
Build features systematically with AI-powered specification workflows.
Stop AI slop. Autospec brings structure to AI coding: spec ā plan ā tasks ā implement - all in one command.
Built with a multi-agent architecture and inspired by GitHub SpecKit, Autospec reimagines the specification workflow with YAML-first artifacts for programmatic access and validation. These principles ensure reliable, performant, and maintainable software that developers can trust for their critical development workflows.
curl -fsSL https://raw.githubusercontent.com/ariel-frischer/autospec/main/install.sh | sh
spec.yaml, plan.yaml, tasks.yaml for programmatic access-spti, -a, etc.)Originally inspired by GitHub SpecKit, Autospec is now a fully standalone tool with its own embedded commands and workflows.
| Feature | GitHub SpecKit | Autospec | |---------|---------------|----------| | Output Format | Markdown | YAML (machine-readable) | | Validation | Manual review | Automatic with retry logic | | Context Efficiency | Full prompt each time | Smart YAML injection + phase-isolated sessions | | Status Updates | Manual | Auto-updates spec.yaml & tasks.yaml | | Phase Orchestration | Manual | Automated with dependencies | | Session Isolation | Single session | Per-phase/task (80%+ cost savings) | | Implementation | Shell scripts | Go (type-safe, single binary) |
New to autospec? See the Quickstart Guide or run the interactive demo.
Navigate to your git repo/project directory, then check dependencies:
autospec doctor
Initialize Autospec (config, commands, and scripts):
autospec init # Interactive agent selection
autospec init ~/projects/myapp # Initialize at specific path
autospec init --ai opencode # Configure specific agent
autospec init --ai claude,opencode # Configure multiple agents
autospec init --project # Project-level permissions (default: global)
Permissions write to global config by default:
~/.claude/settings.json(Claude) or~/.config/opencode/opencode.json(OpenCode). Use--projectfor project-level config.
Create project constitution (once per project, triggers Claude session):
autospec constitution
specify ā plan ā tasks ā implement
The core workflow runs four stages in sequence, each creating a YAML artifact:
| Stage | Command | Creates | Description |
|-------|---------|---------|-------------|
| specify | autospec specify "desc" | specs/001-feature/spec.yaml | Feature specification with requirements |
| plan | autospec plan | specs/001-feature/plan.yaml | Implementation design and architecture |
| tasks | autospec tasks | specs/001-feature/tasks.yaml | Actionable task breakdown with dependencies |
| implement | autospec implement | ā | Executes tasks, updates status in tasks.yaml |
Branch creation:
specifyautomatically creates and checks out a new feature branch (e.g.,spec/001-user-auth) before generating the spec.
specs/001-user-auth/spec.yaml as neededautospec run -s "Add user authentication with OAuth"
autospec run -pti
This iterative approach lets you review and refine the spec before committing to implementation.
run# All core stages: specify ā plan ā tasks ā implement
autospec run -a "Add user authentication with OAuth"
# Specify + plan
autospec run -sp "Add caching layer"
# Tasks + implement
autospec run -ti --spec 007-feature
# Specify + clarify
autospec run -sr "Add payments"
# All core + checklist
autospec run -a -l
# Tasks + checklist + analyze + implement
autospec run -tlzi
# All core with skip confirmations (-y)
autospec run -a -y "Feature description"
# Use a specific agent (claude or opencode)
autospec run -a --agent opencode "Add REST API endpoints"
autospec run -a --agent claude "Add unit tests"
# All core stages: specify ā plan ā tasks ā implement
autospec all "Add feature description"
# Planning only: specify ā plan ā tasks (no implementation)
autospec prep "Add feature description"
# Implementation only
autospec implement
autospec implement 003-feature "Focus on tests"
# Show artifacts and task progress
autospec status
autospec st
autospec st -v
Control how implementation runs with different levels of context isolation:
# Phase mode (default): 1 session per phase - balanced cost/context
autospec implement
autospec implement --from-phase 3 # Resume from phase 3 onwards
autospec implement --phase 3 # Run only phase 3
# Task mode: 1 session per task - complex tasks, max isolation
autospec implement --tasks
autospec implement --from-task T005 # Resume from task T005 onwards
autospec implement --task T003 # Run only task T003
# Single mode: 1 session for all - small specs, simple tasks
autospec implement --single-session
Set the default mode via config:
implement_method: phases | tasks | single-session
--tasks,--phases, and--single-sessionare mutually exclusive. Task-level execution respects dependency order and validates each task completes before proceeding.
Why isolate sessions? Context accumulation causes LLM performance degradation and higher API costs (each turn bills the entire context). Phase/task isolation can reduce costs by 80%+ on large specs. See FAQ for details.
# Create/update project principles
autospec constitution "Emphasize security"
# Refine spec with Q&A (interactive mode)
autospec clarify "Focus on edge cases"
# Generate validation checklist
autospec checklist "Include a11y checks"
# Cross-artifact consistency analysis (interactive mode)
autospec analyze "Verify API contracts"
run command)| Flag | Stage | Description |
|------|-------|-------------|
| -s | specify | Generate feature specification |
| -p | plan | Generate implementation plan |
| -t | tasks | Generate task breakdown |
| -i | implement | Execute implementation |
| -a | all | All core stages (-spti) |
| -n | constitution | Create/update project constitution |
| -r | clarify | Refine spec with Q&A (interactive mode) |
| -l | checklist | Generate validation checklist |
| -z | analyze | Cross-artifact consistency check (interactive mode) |
Stages always execute in canonical order regardless of flag order:
constitution ā specify ā clarify ā plan ā tasks ā checklist ā analyze ā implement
Claude automatically updates task status during implementation. Manual updates:
autospec update-task T001 InProgress
autospec update-task T001 Completed
autospec update-task T001 Blocked
View command execution history with filtering and status tracking. See docs/public/reference.md for details.
autospec history # View all history
autospec history -n 10 # Last 10 entries
autospec history --status failed
Autospec generates structured YAML artifacts:
specs/
āāā 001-user-auth/
āāā spec.yaml # Feature specification
āāā plan.yaml # Implementation plan
āāā tasks.yaml # Actionable task breakdown
tasks.yamlfeature: user-authentication
tasks:
- id: T001
title: Create user model
status: Completed
dependencies: []
- id: T002
title: Add login endpoint
status: InProgress
dependencies: [T001]
- id: T003
title: Write authentication tests
status: Pending
dependencies: [T002]
No comments yet. Be the first to share your thoughts!