autospec

by ariel-frischerVerified

CLI for streamlined spec-driven development

120
Stars
11
Forks
Go
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/ariel-frischer/autospec

Getting Started

Guides for using skills like autospec.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

▄▀█ █ █ ▀█▀ █▀█ █▀ █▀█ █▀▀ █▀▀
█▀█ █▄█  █  █▄█ ▄█ █▀▀ ██▄ █▄▄

Spec-Driven Development Automation

GitHub CI GitHub Release Go Report Card License: MIT

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.

Supported agents: Claude Code, Codex CLI, and OpenCode.

📦 Installation

curl -fsSL https://raw.githubusercontent.com/ariel-frischer/autospec/main/install.sh | sh

🎯 Key Features

  • Automated Workflow Orchestration — Runs stages in dependency order with automatic retry on failure
  • YAML-First Artifacts — Machine-readable spec.yaml, plan.yaml, tasks.yaml for programmatic access
  • Smart Validation — Validates artifacts exist and meet completeness criteria before proceeding
  • Cross-Platform — Native binaries for Linux and macOS (Intel/Apple Silicon). Windows users: use WSL
  • Flexible Stage Selection — Mix and match stages with intuitive flags (-spti, -a, etc.)
  • Shell Completion — Tab completion for bash, zsh, and fish
  • OS Notifications — Native desktop notifications with custom sound support
  • History Tracking — View and filter command execution history with status, duration, and exit codes
  • Auto-Commit — Automatic git commit creation with .gitignore management and conventional commit messages

✨ What Makes Autospec Different?

Originally inspired by GitHub SpecKit, Autospec is a standalone Go CLI focused on YAML-native artifacts, programmatic validation, and context-efficient implementation execution.

FeatureGitHub SpecKitAutospec
Output FormatMarkdownYAML (machine-readable)
Workflow UXRepetitive, non-composable command flowOne-command end-to-end runs (autospec run -a, autospec prep)
ValidationChecklist/agent-driven reviewProgrammatic validation with retry logic
Token EfficiencyLong implementation chats can accumulate large contextFresh bounded sessions per phase/task (80%+ cost savings)
Status VisibilityNo built-in core status commandBuilt-in phase/task progress via autospec st
Phase OrchestrationAgent-driven /speckit.* commandsCLI-orchestrated stages with dependency handling
Workflow EnginePrompt files + shell/PowerShell helpersTyped Go orchestration in a single binary

🚀 Quick Start

New to autospec? See the Quickstart Guide or run the interactive demo.

Prerequisites

Initialize Your Project

  1. Navigate to your git repo/project directory, then check dependencies:

    autospec doctor
    
  2. Initialize Autospec (config, commands, and scripts):

    autospec init                    # Interactive agent selection
    autospec init ~/projects/myapp   # Initialize at specific path
    autospec init --ai codex         # Configure Codex
    autospec init --ai opencode      # Configure specific agent
    autospec init --ai claude,codex,opencode  # Configure multiple agents
    autospec init --project          # Project-level permissions (default: global)
    

    Permissions write to global config by default where supported. Codex project metadata is written to .codex/config.toml only with --project.

  3. Create project constitution (once per project, triggers the configured agent):

    autospec constitution
    

🎮 Usage

Core Flow Commands

specify → plan → tasks → implement

The core workflow runs four stages in sequence, each creating a YAML artifact:

StageCommandCreatesDescription
specifyautospec specify "desc"specs/001-feature/spec.yamlFeature specification with requirements
planautospec planspecs/001-feature/plan.yamlImplementation design and architecture
tasksautospec tasksspecs/001-feature/tasks.yamlActionable task breakdown with dependencies
implementautospec implementExecutes tasks, updates status in tasks.yaml

Branch creation: specify automatically creates and checks out a new feature branch (e.g., spec/001-user-auth) before generating the spec.

Recommended Workflow

  1. Generate the specification
  2. Review and edit specs/001-user-auth/spec.yaml as needed
  3. Continue with plan → tasks → implement
autospec run -s "Add user authentication with OAuth"
autospec run -pti

This iterative approach lets you review and refine the spec before committing to implementation.

Flexible Stage Selection with 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, codex, or opencode)
autospec run -a --agent opencode "Add REST API endpoints"
autospec run -a --agent claude "Add unit tests"
autospec run -a --agent codex "Add CLI smoke tests"

Shortcut Commands

# 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

Implementation Execution Modes

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-session are 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.

Optional Stage Commands

# 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"

Stage Flags Reference (run command)

FlagStageDescription
-sspecifyGenerate feature specification
-pplanGenerate implementation plan
-ttasksGenerate task breakdown
-iimplementExecute implementation
-aallAll core stages (-spti)
-nconstitutionCreate/update project constitution
-rclarifyRefine spec with Q&A (interactive mode)
-lchecklistGenerate validation checklist
-zanalyzeCross-artifact consistency check (interactive mode)

Stages always execute in canonical order regardless of flag order: constitution → specify → clarify → plan → tasks → checklist → analyze → implement

Task Management

Claude automatically updates task status during implementation. Manual updates:

autospec update-task T001 InProgress
autospec update-task T001 Completed
autospec update-task T001 Blocked

History Tracking

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

📁 Output Structure

Autospec generates structured YAML artifacts:

specs/
└── 001-user-auth/
    ├── spec.yaml      # Feature specification
    ├── plan.yaml      # Implementation plan
    └── tasks.yaml     # Actionable task breakdown

Example tasks.yaml

feature: 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]

⚙️ Configuration

Config Files (YAML format)

  • User config: ~/.config/autospec/config.yml (XDG compliant)
  • Project config: .autospec/config.yml

Priority: Environment vars > Project config > User config > Defaults

All Settings

# .autospec/config.yml

# Agent configuration
agent_preset: ""                      # Empty falls back to claude; built-in: claude | codex | opencode
skip_permissions: true                # Autonomous mode for supported agents
custom_agent_cmd: ""                  # Custom command template with {{PROMPT}} placeholder
# custom_agent:                       # Structured agent config (alternative to custom_agent_cmd)
#   command: claude
#   args:
#     - -p
#     - --dangerously-skip-permissions
#     - --verbose
#     - --output-format
#     - stream-json
#     - "{{PROMPT}}"

# Workflow settings
max_retries: 0                        # Max retry attempts per stage (0-10)
specs_dir: ./specs                    # Directory for feature specs
state_dir: ~/.autospec/state          # Directory for state files
skip_preflight: false                 # Skip preflight checks
timeout: 2400                         # Timeout in seconds (40 min default, 0 = no timeout)
skip_confirmations: false             # Skip confirmation prompts
implement_method: phases              # Default: phases | tasks | single-session
auto_commit: false                    # Auto-create git commit after workflow (default: false)
enable_risk_assessment: false         # Enable risk section in plan.yaml (opt-in)

# Output formatting (Claude agent only)
cclean:
  style: default                      # Output style: default | minimal | detailed
  verbose: false                      # Show verbose output
  linenumbers: false                  # Show line numbers in output

# Codex automated output formatting
codex_output:
  mode: compact                       # compact | full
  max_lines_per_message: 40           # Max displayed lines per compact block
  color: true                         # Colorize compact Codex output

# Notifications (all platforms)
notifications:
  enabled: false                      # Enable notifications (opt-in)
  type: both                          # sound | visual | both
  sound_file: ""                      # Custom sound file (empty = system default)
  on_command_complete: true           # Notify when command finishes
  on_stage_complete: false            # Notify on each stage
  on_error: true                      # Notify on failures
  on_long_running: false              # Notify after threshold
  long_running_threshold: 2m          # Duration threshold

Custom Agent Configuration

For full control over agent invocation, use custom_agent:

custom_agent:
  command: claude
  args:
    - -p
    - --model
    - claude-sonnet-4-5-20250929
    - "{{PROMPT}}"

Or as a single command string:

custom_agent_cmd: "claude -p --model claude-sonnet-4-5-20250929 {{PROMPT}}"

See Agent Configuration for complete details including OpenCode setup and environment variables.

Commands

autospec init
autospec init --project
autospec config show
autospec config show --json
autospec config sync              # Add new options, remove deprecated ones
autospec config migrate
autospec config migrate --dry-run

🐚 Shell Completion

The easiest way to set up shell completions (auto-detects your shell):

autospec completion install

Or install for a specific shell:

autospec completion install bash
autospec completion install zsh
autospec completion install fish

See docs/public/SHELL-COMPLETION.md for detailed setup and manual instructions.

🔧 Exit Codes

Uses standardized exit codes (0-5) for CI/CD integration. See docs/public/reference.md for full details.

autospec run -a "feature" && echo "Success" || echo "Failed: $?"

🔍 Troubleshooting

autospec doctor
autospec --debug run -a "feature"
autospec config show

See docs/public/troubleshooting.md for common issues and solutions.

📝 Slash Commands for Interactive Sessions

autospec init installs agent-native prompts for interactive sessions. Claude Code receives project skills such as .claude/skills/autospec.specify/SKILL.md, preserving /autospec.specify invocation. Codex and OpenCode share .agents/skills/autospec-* skills for interactive $autospec-specify / $autospec-clarify usage. Codex and OpenCode CLI workflow runs receive rendered prompt text directly through codex exec and opencode run; OpenCode init no longer generates .opencode/command files.

# Claude Code skill aliases
/autospec.specify       # Generate spec.yaml interactively
/autospec.plan          # Generate plan.yaml
/autospec.tasks         # Generate tasks.yaml
/autospec.implement     # Execute implementation

# Codex/OpenCode shared skill names
$autospec-specify "Add user auth"
$autospec-plan
$autospec-tasks
$autospec-implement

Use these when you prefer chat-based iteration over autospec's automated (-p) mode.

📚 Documentation

Full documentation: ariel-frischer.github.io/autospec

DocumentDescription
Quickstart GuideComplete your first workflow in 10 minutes
CLI ReferenceFull command reference with all flags and options
Agent ConfigurationClaude, Codex, OpenCode, and custom agent configuration
Worktree ManagementRun multiple features in parallel with git worktrees
Claude SettingsSandboxing, permissions, and Claude Code configuration
Codex SettingsCodex CLI auth, sandboxing, and yolo mode
TroubleshootingCommon issues and solutions
FAQFrequently asked questions

📥 Build from Source

Requires Go 1.25+

git clone https://github.com/ariel-frischer/autospec.git
cd autospec
make install

🤝 Contributing

Contributions welcome! See CONTRIBUTORS.md for development guidelines.

📄 License

MIT License — see LICENSE for details.


Documentation: autospec --help

Issues: github.com/ariel-frischer/autospec/issues

Star us on GitHub if you find Autospec useful!

Frequently Asked Questions

What is autospec?

autospec is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ariel-frischer. CLI for streamlined spec-driven development. It has 120 GitHub stars.

Is autospec safe to use?

Yes. autospec passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install autospec?

Clone the repository with "git clone https://github.com/ariel-frischer/autospec" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is autospec written in?

autospec is primarily written in Go. It is open-source under ariel-frischer on GitHub, so you can review or fork the full source.

Are there alternatives to autospec?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh autospec against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details