Installation Guide
April 23, 2026 · View on GitHub
This guide provides detailed, platform-specific installation instructions for Spec-Flow.
Table of Contents
- Quick Install
- Prerequisites
- Platform-Specific Instructions
- Post-Installation Setup
- Verification
- Troubleshooting
Quick Install
For the impatient:
# Clone the repository
git clone https://github.com/marcusgoll/Spec-Flow.git
cd Spec-Flow
# Copy settings
cp .claude/settings.example.json .claude/settings.local.json
# Edit settings and add your project paths
# Then verify installation
pwsh -File .spec-flow/scripts/powershell/check-prerequisites.ps1 -Json
# OR
.spec-flow/scripts/bash/check-prerequisites.sh --json
If all checks pass ✅, you're ready! Continue to Getting Started.
Prerequisites
Required
| Tool | Minimum Version | Installation Guide |
|---|---|---|
| Git | 2.39+ | git-scm.com |
| PowerShell (Windows) | 7.3+ | See Windows section |
| Bash (macOS/Linux) | 5.0+ | Included with OS |
| Python | 3.10+ | python.org |
| Claude Code | Latest | claude.com/code |
Optional
| Tool | Purpose | Installation |
|---|---|---|
GitHub CLI (gh) | Auto-merge helpers | cli.github.com |
| Pester 5 | PowerShell test suites | Install-Module -Name Pester -Force |
| jq | JSON parsing in shell scripts | stedolan.github.io/jq |
Platform-Specific Instructions
Windows
1. Install Git
# Using winget (recommended)
winget install Git.Git
# Verify
git --version
# Expected: git version 2.39 or higher
2. Install PowerShell 7.3+
# Using winget
winget install Microsoft.PowerShell
# Verify
pwsh --version
# Expected: PowerShell 7.3 or higher
Important: Use pwsh (PowerShell 7+), not powershell (Windows PowerShell 5.1).
3. Install Python 3.10+
# Using winget
winget install Python.Python.3.12
# Verify
python --version
# Expected: Python 3.10 or higher
4. Install Claude Code
-
Download from claude.com/code
-
Run the installer
-
Follow the setup wizard
-
Verify installation:
claude --version
5. Clone Spec-Flow
# Navigate to your projects directory
cd C:\Projects
# Clone the repository
git clone https://github.com/marcusgoll/Spec-Flow.git
cd Spec-Flow
6. Optional: Install GitHub CLI
winget install GitHub.cli
# Verify
gh --version
macOS
1. Install Homebrew (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. Install Git
# Usually pre-installed, but update to latest
brew install git
# Verify
git --version
# Expected: git version 2.39 or higher
3. Install PowerShell 7.3+ (Cross-Platform)
brew install --cask powershell
# Verify
pwsh --version
# Expected: PowerShell 7.3 or higher
Note: macOS includes Bash by default, but you can use PowerShell for cross-platform consistency.
4. Install Python 3.10+
brew install python@3.12
# Verify
python3 --version
# Expected: Python 3.10 or higher
5. Install Claude Code
-
Download from claude.com/code
-
Open the
.dmgfile -
Drag Claude Code to Applications
-
Verify installation:
claude --version
6. Clone Spec-Flow
# Navigate to your projects directory
cd ~/Projects
# Clone the repository
git clone https://github.com/marcusgoll/Spec-Flow.git
cd Spec-Flow
7. Optional: Install GitHub CLI
brew install gh
# Verify
gh --version
Linux
Ubuntu/Debian
# Update package list
sudo apt update
# Install Git
sudo apt install git
# Install PowerShell (optional, cross-platform)
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update package list
sudo apt update
# Install PowerShell
sudo apt install -y powershell
# Verify
pwsh --version
Fedora/RHEL/CentOS
# Install Git
sudo dnf install git
# Install PowerShell
# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
# Install PowerShell
sudo dnf install powershell
# Verify
pwsh --version
Arch Linux
# Install Git
sudo pacman -S git
# Install PowerShell from AUR
yay -S powershell-bin
# Verify
pwsh --version
Python 3.10+
# Ubuntu/Debian
sudo apt install python3 python3-pip
# Fedora/RHEL
sudo dnf install python3 python3-pip
# Arch
sudo pacman -S python python-pip
# Verify
python3 --version
Clone Spec-Flow
# Navigate to your projects directory
cd ~/projects
# Clone the repository
git clone https://github.com/marcusgoll/Spec-Flow.git
cd Spec-Flow
Post-Installation Setup
1. Configure Claude Code Permissions
Copy the example settings:
cp .claude/settings.example.json .claude/settings.local.json
Edit .claude/settings.local.json and add your project paths:
{
"permissions": {
"allow": [
"Read(/absolute/path/to/your/project)",
"Write(/absolute/path/to/your/project)",
"Edit(/absolute/path/to/your/project)",
"Bash(/absolute/path/to/your/project)"
],
"deny": [],
"ask": []
}
}
Platform-specific paths:
- Windows:
C:\\Users\\YourName\\Projects\\your-project - macOS/Linux:
/Users/yourname/projects/your-project
Pro tip: Use absolute paths to avoid permission issues.
2. Set Execution Policy (Windows PowerShell Only)
If using Windows, ensure PowerShell scripts can execute:
# Check current policy
Get-ExecutionPolicy
# If it's "Restricted", change it:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
3. Make Shell Scripts Executable (macOS/Linux)
chmod +x .spec-flow/scripts/bash/*.sh
4. Verify Spec-Flow Directory Structure
Your repository should have:
Spec-Flow/
├── .claude/
│ ├── agents/
│ ├── commands/
│ └── settings.example.json
├── .spec-flow/
│ ├── scripts/
│ │ ├── powershell/
│ │ └── bash/
│ ├── templates/
│ └── memory/
├── docs/
├── specs/
└── README.md
5. Initialize Memory Files (First-Time Setup)
Create your engineering constitution:
# In Claude Code
/constitution
This creates .spec-flow/memory/constitution.md with your team's principles.
Initialize your roadmap:
Windows:
pwsh -File .spec-flow/scripts/powershell/roadmap-init.ps1
macOS/Linux:
.spec-flow/scripts/bash/roadmap-init.sh
This creates .spec-flow/memory/roadmap.md as an optional legacy markdown
roadmap seed. The primary shipped roadmap surface is GitHub Issues via
npx spec-flow setup-roadmap and the installed /roadmap workflow command.
Verification
Run the prerequisite checker to verify everything is installed:
Windows (PowerShell):
pwsh -File .spec-flow/scripts/powershell/check-prerequisites.ps1 -Json
macOS/Linux (Bash):
.spec-flow/scripts/bash/check-prerequisites.sh --json
Expected Output
{
"status": "ready",
"checks": {
"git": { "installed": true, "version": "2.39.0" },
"pwsh": { "installed": true, "version": "7.4.0" },
"python": { "installed": true, "version": "3.12.0" },
"claude": { "installed": true, "version": "1.0.0" }
},
"warnings": [],
"errors": []
}
If you see "status": "ready", you're all set! ✅
Troubleshooting
"pwsh: command not found"
Solution: Install PowerShell 7.3+ (see platform instructions above). On macOS/Linux, you can also use the Bash scripts instead.
"Permission denied" when running scripts
Windows: Set execution policy (see Post-Installation Setup)
macOS/Linux: Make scripts executable:
chmod +x .spec-flow/scripts/bash/*.sh
"Python not found"
Solution: Ensure Python is in your PATH. On Windows, reinstall Python and check "Add Python to PATH" during installation.
"Claude Code not accessible"
Solution:
- Verify Claude Code is installed and running
- Check
.claude/settings.local.jsonhas correct project paths - Restart Claude Code after updating settings
"Git version too old"
Solution: Update Git to 2.39+:
- Windows:
winget upgrade Git.Git - macOS:
brew upgrade git - Linux: Update via package manager (
apt,dnf,pacman)
"check-prerequisites.ps1" fails
Common causes:
- PowerShell version: Ensure you're using
pwsh(7.3+), notpowershell(5.1) - Missing dependencies: Install Python, Git, or Claude Code
- Path issues: Verify tools are in your system PATH
Debug:
# Check PowerShell version
pwsh --version
# Check if tools are accessible
git --version
python --version
claude --version
Next Steps
Once installation is verified:
- Read the Getting Started guide: getting-started.md
- Explore the checked-in example docs:
docs/examples/flightpro-sample-project/ - Customize templates: Edit files in
.spec-flow/templates/ - Update your constitution: Tailor
.spec-flow/memory/constitution.mdto your project
Updating Spec-Flow
To update to the latest version:
cd Spec-Flow
git pull origin main
Check CHANGELOG.md for breaking changes or new features.
Uninstalling
To remove Spec-Flow:
# Navigate to parent directory
cd ..
# Remove the repository
rm -rf Spec-Flow
# Optionally, remove PowerShell (if installed only for Spec-Flow)
# Windows: winget uninstall Microsoft.PowerShell
# macOS: brew uninstall --cask powershell
# Linux: sudo apt remove powershell (or equivalent)
Get Help
If you encounter issues not covered here:
- Troubleshooting Guide: troubleshooting.md
- GitHub Issues: Report a bug
- Repository: Spec-Flow on GitHub
Happy building! 🚀