A CLI tool for initializing specification-driven development projects with flexible, production-ready structures.
npm install specpilot

A CLI tool for initializing specification-driven development projects with flexible, production-ready structures.
``bashInstall globally
npm install -g specpilot
$3
After creating a project, follow these steps to populate your specifications using AI:
1. Open the generated guide: Check
.specs/README.md for full guidance
2. Copy the onboarding prompt: Use the prompt from .specs/development/prompts.md
3. Paste into your AI agent: ChatGPT, Claude, or other AI assistants
4. Review generated spec files: Examine the AI-generated requirements and architectureThis AI-assisted approach ensures comprehensive, high-quality specifications tailored to your project needs.
Commands
| Command | Description |
| ---------------- | ----------------------------- |
|
init | Initialize new SDD project |
| add-specs | Add specs to existing project |
| validate | Validate specification files |
| list | Show available templates |
| migrate | Migrate between spec versions |
| specify | Update project specifications |$3
`bash
Initialize with specific language/framework
specpilot init api --lang python --framework fastapiUpdate specifications
specpilot specify "REST API for user management" --updateValidate with auto-fix
specpilot validate --fix
`Supported Languages & Frameworks
$3
- React: SPA applications
- Express: REST APIs
- Next.js: Full-stack apps
- CLI: Command-line tools
$3
- React: SPA applications
- Express: REST APIs
- Next.js: Full-stack apps
- CLI: Command-line tools
$3
- FastAPI: Modern REST APIs
- Django: Full-stack applications
- Data Science: ML/Data Science projects
Project Structure
SpecPilot generates a
.specs/ folder with organized subdirectories:`
.specs/
āāā project/ # Project config & requirements
āāā architecture/ # System design & API specs
āāā planning/ # Roadmap & task tracking
āāā quality/ # Testing & documentation
āāā development/ # AI prompts & context
`$3
-
project.yaml: Project configuration and rules
- requirements.md: Functional/non-functional requirements
- architecture.md: System architecture decisions
- prompts.md: AI interaction tracking (MANDATED)
- tasks.md: Task management (backlog/sprint/completed)Configuration
SpecPilot requires no global configuration. Each project is self-contained with settings in
project.yaml.Troubleshooting
$3
#### Permission Errors
`bash
sudo chown -R $USER ~/.npm-global
npm config set prefix '~/.npm-global'
`#### Template Not Found
`bash
specpilot list --verbose
`#### Validation Failures
`bash
specpilot validate --verbose --fix
`#### Migration Issues
Error: "Source structure 'complex' not found"
`bash
For NEW projects, use:
specpilot init my-projectFor EXISTING projects without specs:
specpilot add-specsOnly use migrate if you have an old .project-spec folder
specpilot migrate --from complex --to simple --backup
`$3
`bash
DEBUG=specpilot specpilot
`Why SpecPilot?
SpecPilot implements Specification-Driven Development (SDD) where specifications come first:
`
Specifications ā Architecture ā Code ā Tests ā Deployment
`Benefits:
- Clarity: Everyone understands what needs to be built
- Consistency: Standardized structure across projects
- Quality: Built-in validation and testing
- AI-Ready: Clear context for AI assistants
- Maintainable: Comprehensive documentation
Contributing
.specs/ for contribution guidelines.$3
`bash
git clone https://github.com/girishr/SpecPilot.git
cd SpecPilot
npm install
npm run build
npm link # For local testing
`$3
.specs/project/requirements.md
2. Check .specs/planning/tasks.md
3. Update specs when making changes
4. Run specpilot validate` before committing- Full Guide: Comprehensive documentation
- CHANGELOG: Version history
- Issues: Bug reports & feature requests
MIT License - see LICENSE file for details.
---
_Built with specification-driven development principles for serious production projects._