Installation tool for spec-kit-extensions that works alongside specify init
Project description
๐ Claude Code users: Visit github.com/MartyBonacci/specswarm for the best experience
Using other AI tools? Continue with this repository - it's designed to work universally across AI coding assistants. Note that our development focus is shifting to SpecSwarm for Claude Code.
8 production-tested workflows that extend spec-kit to cover the complete software development lifecycle.
What Is This?
spec-kit provides excellent structured workflows for feature development (/speckit.specify โ /speckit.plan โ /speckit.tasks โ /speckit.implement). These extensions add 8 additional workflows for the remaining ~75% of software development work:
/speckit.baseline- Establish project baseline and track all changes by workflow type/speckit.bugfix- Fix bugs with regression-test-first approach/speckit.enhance- Make minor enhancements with streamlined single-doc workflow/speckit.modify- Modify existing features with automatic impact analysis/speckit.refactor- Improve code quality with metrics tracking/speckit.hotfix- Handle production emergencies with expedited process/speckit.deprecate- Sunset features with phased 3-step rollout/speckit.cleanup- Clean up codebase with automated scripts
Command Extensions (provide commands without workflow structure)
/speckit.review- Review completed work with structured feedback/speckit.story-to-issue- Create GitHub issue per story with tasks as checkboxes
Why Use These Extensions?
The Problem
With vanilla spec-kit, you get structure for ~25% of your work (new features), but the remaining 75% happens ad-hoc:
- Bugs: No systematic approach โ regressions happen
- Feature changes: No impact analysis โ breaking changes
- Code quality: No metrics โ unclear if refactor helped
- Emergencies: No process โ panic-driven development
- Feature removal: No plan โ angry users
- Codebase Cleanup: No automation โ manual effort
- Work Review: No structure โ inconsistent feedback
- Document Integration: Manual copy-paste โ context lost, inconsistent
The Solution
These extensions bring spec-kit's structured approach to all development activities:
| Activity | Without Extensions | With Extensions |
|---|---|---|
| New Feature | โ
/speckit.specify workflow |
โ Same |
| Project Baseline | โ Ad-hoc | โ
/speckit.baseline with comprehensive docs |
| Bug Fix | โ Ad-hoc | โ
/speckit.bugfix with regression tests |
| Minor Enhancement | โ Ad-hoc | โ
/speckit.enhance with streamlined planning |
| Modify Feature | โ Ad-hoc | โ
/speckit.modify with impact analysis |
| Refactor Code | โ Ad-hoc | โ
/speckit.refactor with metrics |
| Production Fire | โ Panic | โ
/speckit.hotfix with post-mortem |
| Remove Feature | โ Hope | โ
/speckit.deprecate with 3-phase sunset |
| Codebase Cleanup | โ Manual | โ
/speckit.cleanup with automation |
| Work Review | โ Inconsistent | โ
/speckit.review with structured feedback |
| GitHub Issues | โ Manual or fragmented | โ
/speckit.story-to-issue with story-level tracking |
Benefits
Real-World Validation
These workflows are production-tested on a React Router v7 Twitter clone ("Tweeter") with:
- โ 14 features implemented
- โ 3 modifications (with impact analysis that caught dependencies)
- โ 2 bugfixes (regression tests prevented recurrence)
- โ 1 refactor (metrics showed 15% code duplication reduction)
- โ 100% build success rate across all workflows
See EXAMPLES.md for detailed real-world examples.
Quick Start
Prerequisites
- spec-kit installed (installation guide)
- AI coding agent (Claude Code, GitHub Copilot, Gemini CLI, Cursor, etc.)
- Git repository with
.specify/directory
Installation
spec-kit-extensions works with any AI agent that supports spec-kit. Installation is a two-step process:
Step 1: Initialize spec-kit (creates .specify/ structure):
specify init --here --ai claude
# or for PowerShell: specify init --here --ai claude --script ps
Step 2: Install extensions:
specify-extend --all
This will:
- Detect your configured AI agent
- Install all 8 workflow extensions and 1 command extension into
.specify/ - Set up quality gates
- Configure branch naming patterns
Optional: Install GitHub integration:
specify-extend --all --github-integration
The --github-integration flag will interactively prompt you to select GitHub features:
- Review enforcement workflows - Automatically require reviews before merge
- Review reminder workflow - Auto-comment on PRs with instructions
- PR template - Structured PR template with review checklist
- Issue templates - 9 templates for all workflow types
- GitHub Copilot config - PR review configuration
- CODEOWNERS template - Automatic reviewer assignment
- Documentation - Complete guide for all features
You can select individual features or install all with all. Non-interactive: specify-extend --all --github-integration --no-interactive
For detailed installation instructions, see INSTALLATION.md.
Alternative: Install the CLI tool manually
# 1. Initialize spec-kit in your project
cd your-project
specify init .
# 2. Install specify-extend tool from PyPI
pip install specify-extend
# Or use with uvx (no installation needed)
uvx specify-extend --all
# Or run directly with Python
python -m specify_extend --all
# 3. Install extensions (auto-detects your agent)
specify-extend --all
specify-extend --all --script ps # Optional: install PowerShell workflows
# Or install specific extensions
specify-extend bugfix modify refactor
Optional: Fetch upstream spec-kit for reference
If you want the upstream spec-kit documentation and scripts on hand (purely for referenceโour tools do not read from it), fetch a shallow checkout into spec-kit/:
scripts/fetch-spec-kit.sh # defaults to main
scripts/fetch-spec-kit.sh v0.12.0 # or any tag/branch
The fetched spec-kit/ directory is .gitignored to keep your working tree clean.
The specify-extend tool automatically:
- โ Downloads latest extensions from GitHub
- โ Detects your AI agent (Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Amazon Q, etc.)
- โ Installs extensions matching your setup
- โ Configures agent-specific commands
- โ Updates constitution with quality gates
- โ
Patches spec-kit's
common.shto support extension branch patterns
Optional: LLM-Enhanced Constitution Updates
For intelligent merging of quality gates into your existing constitution (instead of simple appending):
specify-extend --all --llm-enhance
This creates a one-time prompt that uses your AI agent to intelligently merge quality gates while preserving your constitution's style and structure. The prompt/command includes instructions to delete itself after use.
GitHub Copilot: Reference .github/prompts/speckit.enhance-constitution.md in Copilot Chat (also creates matching agent file)
Other agents: Run /speckit.enhance-constitution
See specify-extend documentation for details.
Manual install (copy files)
If you prefer manual installation or need more control:
Option 1: Copy into Existing Project
# Clone this repo
git clone https://github.com/pradeepmouli/spec-kit-extensions.git /tmp/extensions
# Copy files into your project
cd your-project
cp -r /tmp/extensions/extensions/* .specify/extensions/
cp -r /tmp/extensions/scripts/* .specify/scripts/bash/
# Optional (PowerShell): copy only if you want PowerShell workflows
mkdir -p .specify/scripts/powershell/
cp -r /tmp/extensions/scripts/powershell/* .specify/scripts/powershell/
cp -r /tmp/extensions/commands/* .claude/commands/
# Merge constitution sections
cat /tmp/extensions/docs/constitution-template.md >> .specify/memory/constitution.md
# Clean up
rm -rf /tmp/extensions
Option 2: Git Submodule (Team Projects)
cd your-project
git submodule add https://github.com/pradeepmouli/spec-kit-extensions.git .specify/extensions-source
# Create symlinks per INSTALLATION.md
See INSTALLATION.md for detailed manual installation instructions.
Verify Installation
# In your project, try:
/speckit.bugfix --help
# Should see:
# Usage: /speckit.bugfix "bug description"
# Creates a bugfix workflow with regression-test-first approach
Usage
Quick Decision Tree
What are you doing?
Starting with spec-kit?
โโ Use `/speckit.baseline` to establish project context
Building something new?
โโ Major feature (multi-phase, complex)?
โ โโ Use `/speckit.specify "description"`
โโ Minor enhancement (simple, quick)?
โโ Use `/speckit.enhance "description"`
Fixing broken behavior?
โโ Production emergency?
โ โโ Use `/speckit.hotfix "incident description"`
โโ Non-urgent bug?
โโ Use `/speckit.bugfix "bug description"`
Changing existing feature?
โโ Adding/modifying behavior?
โ โโ Use `/speckit.modify 014 "change description"`
โโ Improving code without changing behavior?
โโ Use `/speckit.refactor "improvement description"`
Removing a feature?
โโ Use `/speckit.deprecate 014 "deprecation reason"`
Reviewing completed work?
โโ Use `/speckit.review [task-id]`
Creating GitHub issues?
โโ Use `/speckit.story-to-issue` (one issue per story with task checkboxes)
Example: Fix a Bug
# Step 1: Create bug report
/speckit.bugfix "profile form crashes when submitting without image upload"
# Creates: bug-report.md with initial analysis
# Shows: Next steps to review and investigate
# Step 2: Investigate and update bug-report.md with root cause
# Step 3: Create fix plan
/speckit.plan
# Creates: Detailed fix plan with regression test strategy
# Step 4: Break down into tasks
/speckit.tasks
# Creates: Task list (reproduce, write regression test, fix, verify)
# Step 5: Execute fix
/speckit.implement
# Runs all tasks including regression-test-first approach
Example: Modify Existing Feature
# Step 1: Create modification spec with impact analysis
/speckit.modify 014 "make profile fields optional instead of required"
# Creates: modification-spec.md + impact-analysis.md
# Shows: Impact summary and next steps
# Step 2: Review modification spec and impact analysis
# - Check affected files and contracts
# - Assess backward compatibility
# - Refine requirements if needed
# Step 3: Create implementation plan
/speckit.plan
# Creates: Detailed plan for implementing changes
# Step 4: Break down into tasks
/speckit.tasks
# Creates: Task list (update contracts, update tests, implement)
# Step 5: Execute changes
/speckit.implement
# Runs all tasks in correct order
Example: Create GitHub Issue from Story
# After planning your feature with spec-kit
/speckit.plan # Creates spec.md with story and acceptance criteria
/speckit.tasks # Creates tasks.md with task breakdown
# Create a single GitHub issue with full context
/speckit.story-to-issue
# Creates: One GitHub issue with:
# - Story description
# - Acceptance criteria
# - All tasks as checkboxes
# - Implementation plan summary
# - Workflow-aware labels
# Output: Issue #123 created with URL
# Track progress by checking off tasks in GitHub
# Use /speckit.review when ready for validation
Workflow Cheat Sheet
| Workflow | Command | Key Feature | Test Strategy |
|---|---|---|---|
| Feature | /speckit.specify "..." |
Full spec + design | TDD (test before code) |
| Baseline | /speckit.baseline |
Context tracking | No tests (doc only) |
| Bugfix | /speckit.bugfix "..." |
Regression test | Test before fix |
| Enhance | /speckit.enhance "..." |
Single-doc workflow | Tests for new behavior |
| Modify | /speckit.modify 014 "..." |
Impact analysis | Update affected tests |
| Refactor | /speckit.refactor "..." |
Baseline metrics | Tests unchanged |
| Hotfix | /speckit.hotfix "..." |
Post-mortem | Test after (only exception) |
| Deprecate | /speckit.deprecate 014 "..." |
3-phase sunset | Remove tests last |
| Review | /speckit.review [task-id] |
Structured feedback | Verify tests |
| Cleanup | /speckit.cleanup |
Automated scripts | Manual verification |
| StoryโIssue | /speckit.story-to-issue |
GitHub integration | N/A (tracking only) |
- INSTALLATION.md - Step-by-step installation for all scenarios
- AI-AGENTS.md - Setup guides for different AI coding agents
- EXAMPLES.md - Real examples from Tweeter project
- QUICKSTART.md - 5-minute tutorial
- Extension README - Detailed workflow documentation
- Architecture - How the system works
- CONTRIBUTING.md - How to contribute improvements
Compatibility
AI Agents
These extensions work with any AI agent that supports spec-kit. Command files are installed per agent:
| Agent | Command directory | Format |
|---|---|---|
| Claude Code | .claude/commands |
Markdown |
| GitHub Copilot | .github/agents |
Markdown |
| Cursor | .cursor/commands |
Markdown |
| Windsurf | .windsurf/workflows |
Markdown |
| Gemini CLI | .gemini/commands |
TOML |
| Qwen Code | .qwen/commands |
TOML |
| opencode | .opencode/commands |
Markdown |
| Codex CLI | .codex/commands |
Markdown |
| Amazon Q Developer CLI | .q/commands |
Markdown |
| Manual/Generic | None (use scripts directly) | N/A |
Detection also recognizes:
- Copilot:
.github/copilot-instructions.md - Cursor:
.cursorrules
If no agent is detected, you can pass --agent explicitly or use the scripts directly.
See AI-AGENTS.md for detailed setup guides for each agent.
spec-kit Versions
- โ spec-kit v0.0.80+ (includes VS Code agent config support with handoffs)
- โ
spec-kit v0.0.18+ (updated for new
/speckit.prefix) - โ Fully compatible with core spec-kit workflows
- โ Non-breaking (can be added/removed without affecting existing features)
- โ ๏ธ Breaking change from v0.0.17: All commands now use
/speckit.prefix
Component Versions
This project has two independently versioned components:
- Extension Templates (v2.5.1) - Workflow templates, commands, and scripts
- See CHANGELOG.md for template version history
- CLI Tool (v1.5.2) -
specify-extendinstallation tool- Check version with
specify-extend --version - See CHANGELOG.md for CLI version history
- Check version with
Both components are released together but versioned separately to allow independent updates.
Optional GitHub Integration
New in vX.Y.Z: spec-kit-extensions now includes optional GitHub workflows, issue templates, and AI agent configuration to enhance your development workflow.
Features
- ๐ Review Enforcement - Automatically require code reviews before merging spec-kit branches
- ๐ฌ Review Reminders - Auto-comment on PRs with helpful review instructions
- ๐ PR Template - Structured PR template with review checklist
- ๐ฅ CODEOWNERS - Automatic reviewer assignment based on workflow type
- ๐ค Copilot for PRs - GitHub Copilot integration for AI-assisted code review
- ๐ Issue Templates - Structured templates for all 9 workflow types
- โ Review Helper - Tools to check review status and validate branches
What's Included
-
GitHub Actions Workflows (3 workflows)
spec-kit-review-required.yml- Enforces review completion before mergespec-kit-review-helper.yml- Manual tools for checking review statusspec-kit-review-reminder.yml- Auto-comments on PRs with review instructions
-
GitHub Code Review Integration
pull_request_template.md- Structured PR template with review checklistCODEOWNERS.example- Automatic reviewer assignment configurationcopilot.yml- GitHub Copilot for PRs configuration with spec-kit awareness
-
Issue Templates (9 templates)
- Feature Request, Bug Report, Enhancement Request
- Modification Request, Refactoring Request, Hotfix Request
- Deprecation Request, Cleanup Request, Baseline/Documentation Request
-
AI Agent Configuration
copilot-instructions.md- GitHub Copilot workflow guidance- Includes review requirements and best practices
Installation (Optional)
Option 1: Automated Installation (Recommended)
Use the --github-integration flag during installation:
specify-extend --all --github-integration
This will:
- Interactively prompt you to select which GitHub features to install
- Download and install selected features from the latest release
- Set up the
.github/directory automatically
Available features to select:
review-enforcement- Review requirement enforcement workflowreview-reminder- PR review reminder workflowreview-helper- Manual review checking toolspr-template- Pull request templateissue-templates- 9 issue templates for all workflowscopilot-config- GitHub Copilot configurationcodeowners- CODEOWNERS templatedocumentation- Complete docsall- Install everything
Non-interactive mode (installs all features):
specify-extend --all --github-integration --no-interactive
Option 2: Manual Installation
If you prefer manual control, first obtain the spec-kit-extensions files:
# Clone the spec-kit-extensions repository
git clone https://github.com/pradeepmouli/spec-kit-extensions.git /tmp/spec-kit-extensions
# Or download a specific release
# wget https://github.com/pradeepmouli/spec-kit-extensions/archive/refs/tags/vX.Y.Z.tar.gz
# tar -xzf vX.Y.Z.tar.gz
Then copy the desired files to your project:
# Navigate to your project directory
cd /path/to/your/project
# Copy workflows (recommended for review enforcement)
cp /tmp/spec-kit-extensions/.github/workflows/spec-kit-review-*.yml .github/workflows/
# Copy PR template (recommended for structured PRs)
cp /tmp/spec-kit-extensions/.github/pull_request_template.md .github/
# Copy issue templates (optional)
cp -r /tmp/spec-kit-extensions/.github/ISSUE_TEMPLATE .github/
# Copy GitHub Copilot configuration (optional, for Copilot users)
cp /tmp/spec-kit-extensions/.github/copilot-instructions.md .github/
cp /tmp/spec-kit-extensions/.github/copilot.yml.example .github/
# NOTE: copilot.yml.example is instructional. Configure it for your GitHub Copilot
# setup according to the actual Copilot configuration schema, then rename to
# copilot.yml to activate (if applicable to your Copilot version).
# Copy CODEOWNERS template (optional, for teams)
cp /tmp/spec-kit-extensions/.github/CODEOWNERS.example .github/CODEOWNERS
# IMPORTANT: Edit .github/CODEOWNERS to replace placeholder values
# Commit the files
git add .github/
git commit -m "Add spec-kit GitHub workflows and code review integration"
git push
Usage
Complete Review Workflow:
- Implement your work using spec-kit workflows
- Run
/speckit.reviewbefore creating a PR (REQUIRED) - Commit the review file to your branch
- Create PR - fill out the PR template checklist
- GitHub Actions automatically:
- Post reminder comment with review instructions
- Validate review file exists and is approved
- Add appropriate labels
- Request reviewers (via CODEOWNERS)
- Block merge if review missing or not approved
- GitHub Copilot assists with PR review (if configured)
- Human reviewers perform additional review
- Merge when both AI review + human review approved
Issue Templates:
- Click "New Issue" โ Select appropriate template
- Fill out structured form
- Use suggested workflow commands to start implementation
Review Helper:
- Go to Actions โ Spec-Kit Review Helper โ Run workflow
- Check status, list pending reviews, or validate branches
GitHub Copilot for PRs (if configured):
- Ask Copilot to "Review this PR for spec-kit workflow compliance"
- Copilot checks review completion, specification alignment, and code quality
- Works alongside
/speckit.reviewfor comprehensive coverage
Documentation
See .github/README.md for complete documentation including:
- Detailed workflow descriptions
- Configuration options
- Troubleshooting guide
- Examples and best practices
Benefits
- Consistent Quality - All code reviewed before merge
- Automated Enforcement - No manual checking needed
- Better Documentation - Reviews committed with code
- Structured Issues - Complete information from the start
Note: These are entirely optional. Use what helps your workflow!
Project Structure
After installation, your project will have:
your-project/
โโโ .specify/
โ โโโ extensions/ # Extension workflows
โ โ โโโ README.md
โ โ โโโ QUICKSTART.md
โ โ โโโ enabled.conf # Enable/disable workflows
โ โ โโโ workflows/
โ โ โโโ baseline/
โ โ โโโ bugfix/
โ โ โโโ enhance/
โ โ โโโ modify/
โ โ โโโ refactor/
โ โ โโโ hotfix/
โ โ โโโ deprecate/
โ โ โโโ cleanup/
โ โ โโโ review/
โ โโโ scripts/bash/ # Bash scripts (Linux/Mac/Git Bash)
โ โ โโโ create-baseline.sh
โ โ โโโ create-bugfix.sh
โ โ โโโ create-enhance.sh
โ โ โโโ create-modification.sh
โ โ โโโ create-refactor.sh
โ โ โโโ create-hotfix.sh
โ โ โโโ create-deprecate.sh
โ โ โโโ create-cleanup.sh
โ โ โโโ mark-task-status.sh
โ โโโ scripts/powershell/ # PowerShell scripts (Windows)
โ โ โโโ create-baseline.ps1
โ โ โโโ create-bugfix.ps1
โ โ โโโ create-enhance.ps1
โ โ โโโ create-modification.ps1
โ โ โโโ create-refactor.ps1
โ โ โโโ create-hotfix.ps1
โ โ โโโ create-deprecate.ps1
โ โ โโโ create-cleanup.ps1
โ โโโ memory/
โ โโโ constitution.md # Updated with workflow quality gates
โโโ .claude/commands/ # Example: Claude Code command files
โโโ speckit.baseline.md
โโโ speckit.bugfix.md
โโโ speckit.enhance.md
โโโ speckit.modify.md
โโโ speckit.refactor.md
โโโ speckit.hotfix.md
โโโ speckit.deprecate.md
โโโ speckit.cleanup.md
โโโ speckit.review.md
Note: specify-extend installs either bash or PowerShell scripts based on --script (default: bash). Bash scripts work on Linux, macOS, and Windows (via Git Bash or WSL).
FAQ
Do I need to use all 9 workflows?
No! Enable only what you need via .specify/extensions/enabled.conf. Common combinations:
- Minimal: Just
/bugfix(most teams need this) - Standard:
/bugfix+/enhance+/modify(covers most scenarios) - Complete: All 9 workflows (full lifecycle coverage + maintenance)
Can I customize the workflows?
Yes! See Extension Development Guide for creating custom workflows or modifying existing ones.
What if I pick the wrong workflow?
No problem! Create the correct workflow and copy your work over. The worst case is having the wrong template.
Do these work without Claude Code?
Yes! The workflows are agent-agnostic. They work with any AI agent that supports spec-kit, or even manually if you prefer following the templates yourself.
Will these be contributed to spec-kit?
That's the plan! We've opened an issue proposing these extensions be incorporated upstream. Until then, use this repo.
Contributing
We welcome contributions! See CONTRIBUTING.md for:
- Bug reports
- Feature requests
- New workflow ideas
- Documentation improvements
- Real-world usage examples
License
MIT License - Same as spec-kit
See LICENSE for details.
Credits
Built with โค๏ธ for the spec-kit community by developers who wanted structured workflows for more than just new features.
Special Thanks:
- GitHub spec-kit team for the foundation
- Anthropic Claude Code team for excellent AI agent integration
- Early adopters who tested these workflows in production
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- spec-kit: Original spec-kit repo
Ready to try it? โ Installation Guide โ 5-Minute Tutorial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file specify_extend-1.5.9.tar.gz.
File metadata
- Download URL: specify_extend-1.5.9.tar.gz
- Upload date:
- Size: 253.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c2de3a9926e3559bff31b1d2a3673dd8c4a9f77d6b3a15736c9ca2f6da7b80
|
|
| MD5 |
3d798254c353b2bb53f1ea025df2fa52
|
|
| BLAKE2b-256 |
38a3771a2f0fbf9382ad4a452d4d5f42dba56bba9db574c8c2ed788dfe631f52
|
File details
Details for the file specify_extend-1.5.9-py3-none-any.whl.
File metadata
- Download URL: specify_extend-1.5.9-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6374a5c117a18574cc201093929555d89350f8ab6c4eceb38ac1ab5fed4a3e
|
|
| MD5 |
3d27b3b4ae48db1b3dc624ab8d7b13b6
|
|
| BLAKE2b-256 |
60f153bf4dc553a435e6a4129f62b2e10c754119c66b001dbfe98dac95d6b74f
|