specpilot
v1.3.0
Published
A CLI tool for initializing specification-driven development projects with flexible, production-ready structures.
Maintainers
Readme
SpecPilot
A CLI tool for initializing specification-driven development projects with flexible, production-ready structures.
Quick Start
# Install globally
npm install -g specpilot
# Create a new project
specpilot init my-project --lang typescript --framework react
# Add specs to existing project
cd existing-project
specpilot add-specs
# Validate specifications
specpilot validate🚀 Next Steps to Populate Your Specs with AI
After creating a project, follow these steps to populate your specifications using AI:
- Open the generated guide: Check
.specs/README.mdfor full guidance - Copy the onboarding prompt: Use the prompt from
.specs/development/prompts.md - Paste into your AI agent: ChatGPT, Claude, or other AI assistants
- Review generated spec files: Examine the AI-generated requirements and architecture
This AI-assisted approach ensures comprehensive, high-quality specifications tailored to your project needs.
Commands
| Command | Description |
| ---------------- | ----------------------------- |
| init <name> | 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 <desc> | Update project specifications |
Examples
# Initialize with specific language/framework
specpilot init api --lang python --framework fastapi
# Update specifications
specpilot specify "REST API for user management" --update
# Validate with auto-fix
specpilot validate --fixSupported Languages & Frameworks
TypeScript
- React: SPA applications
- Express: REST APIs
- Next.js: Full-stack apps
- CLI: Command-line tools
JavaScript
- React: SPA applications
- Express: REST APIs
- Next.js: Full-stack apps
- CLI: Command-line tools
Python
- 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 & contextKey Files
project.yaml: Project configuration and rulesrequirements.md: Functional/non-functional requirementsarchitecture.md: System architecture decisionsprompts.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
Common Issues
Permission Errors
sudo chown -R $USER ~/.npm-global
npm config set prefix '~/.npm-global'Template Not Found
specpilot list --verboseValidation Failures
specpilot validate --verbose --fixMigration Issues
Error: "Source structure 'complex' not found"
# For NEW projects, use:
specpilot init my-project
# For EXISTING projects without specs:
specpilot add-specs
# Only use migrate if you have an old .project-spec folder
specpilot migrate --from complex --to simple --backupDebug Mode
DEBUG=specpilot specpilot <command>Why SpecPilot?
SpecPilot implements Specification-Driven Development (SDD) where specifications come first:
Specifications → Architecture → Code → Tests → DeploymentBenefits:
- 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
This project follows SDD principles. See .specs/ for contribution guidelines.
Development Setup
git clone https://github.com/girishr/SpecPilot.git
cd SpecPilot
npm install
npm run build
npm link # For local testingQuick Contribution Guide
- Review
.specs/project/requirements.md - Check
.specs/planning/tasks.md - Update specs when making changes
- Run
specpilot validatebefore committing
Documentation
- Full Guide: Comprehensive documentation
- CHANGELOG: Version history
- Issues: Bug reports & feature requests
License
MIT License - see LICENSE file for details.
Built with specification-driven development principles for serious production projects.
