ai-devkit
v0.11.0
Published
A CLI toolkit for AI-assisted software development with phase templates and environment setup
Downloads
1,119
Maintainers
Readme
The official command-line interface for AI DevKit.
This tool orchestrates the setup and management of AI-assisted development environments, ensuring your project is ready for agents like Cursor, Claude Code, Antigravity, and more.
Features
- 🎯 Phase-based Development: Structured templates for each stage of the software development lifecycle
- 🤖 AI Environment Setup: Automatic configuration for Cursor and Claude Code
- 📝 Customizable Templates: Markdown-based templates with YAML frontmatter
- 🚀 Interactive CLI: User-friendly prompts with flag override support
- ⚙️ State Management: Tracks initialized phases and configuration
Installation
# Using npx (no installation needed)
npx ai-devkit init
# Or install globally
npm install -g ai-devkitQuick Start
Initialize AI DevKit in your project:
# Interactive mode (recommended)
ai-devkit initThis will:
- Create a
.ai-devkit.jsonconfiguration file - Set up your AI development environment (Cursor/Claude Code)
- Generate phase templates in
docs/ai/
Detailed user guide can be found here.
Available Phases
- Requirements: Problem understanding, requirements gathering, and success criteria
- Design: System architecture, data models, and technical design (include mermaid diagrams for architecture/data flow)
- Planning: Task breakdown, milestones, and project timeline
- Implementation: Technical implementation notes and code guidelines
- Testing: Testing strategy, test cases, and quality assurance
- Deployment: Deployment process, infrastructure, and release procedures
- Monitoring: Monitoring strategy, metrics, alerts, and observability
Commands
ai-devkit init
Initialize AI DevKit in your project.
Options:
-e, --environment <env>: Specify environment (cursor|claude|both)-a, --all: Initialize all phases at once-p, --phases <phases>: Comma-separated list of specific phases
# Interactive mode
ai-devkit init
# Initialize for Cursor with all phases
ai-devkit init --environment cursor --all
# Initialize specific phases
ai-devkit init --phases requirements,design,implementationai-devkit phase [name]
Add or update a specific phase template.
Examples:
# Interactive selection
ai-devkit phase
# Add specific phase
ai-devkit phase requirements
ai-devkit phase testingGenerated Structure
After initialization, your project will have:
your-project/
├── .ai-devkit.json # Configuration and state
├── docs/
│ └── ai/
│ ├── requirements/
│ │ └── README.md
│ ├── design/
│ │ └── README.md
│ ├── planning/
│ │ └── README.md
│ ├── implementation/
│ │ └── README.md
│ ├── testing/
│ │ └── README.md
│ ├── deployment/
│ │ └── README.md
│ └── monitoring/
│ └── README.md
└── [Environment-specific files]Supported Tools & Agents: | Agent | Support | Notes | |-----------------------------------------------------------|---------|---------------------------------------------------| | Claude Code | ✅ | | | GitHub Copilot | ✅ | VSCode only | | Gemini CLI | ✅ | | | Cursor | ✅ | | | opencode | ✅ | | | Antigravity | ✅ | | | Windsurf | 🚧 | Testing | | Kilo Code | 🚧 | Testing | | Roo Code | 🚧 | Testing | | Codex CLI | ✅ | Only Global | | Amp | 🚧 | Testing |
Templates are designed to provide structure while remaining concise and AI-friendly.
Workflow Examples
Initial Project Setup
Initialize your project:
ai-devkit initStart with requirements:
- Use slash command to start filling the requirement
/new-requerement - Your AI assistant will help clarify and document requirements
- Use slash command to review the requirement
/review-requirement
- Use slash command to start filling the requirement
Design your system:
- Review
docs/ai/design/and feature-specific files - Use slash command to review the design
/review-design - Your AI assistant will help clarify and document design
- Review
Plan your work:
- Review
docs/ai/planning/and feature-specific plans - Clarify and document plan with AI assistant
- Review
Implement with guidance:
- When the plan is ready, your AI assistant will help you implement the code
- You can start the execution of the plan with the command
/execute-plan - AI assistant will help you to review the code and update the implementation notes
- After executing each task, you can check the implementation and compare it with the design with AI support by using the command
/check-implementation - Once the implementation is good, you can review the code with AI support by using the command
/code-review
Test thoroughly:
- After implementation is done, you can start testing
- Use
docs/ai/testing/as your testing guide - Use slash command to start writing test
/writing-test
Deploy confidently:
- Follow deployment procedures in
docs/ai/deployment/
- Follow deployment procedures in
Monitor and iterate:
- Set up monitoring per
docs/ai/monitoring/
- Set up monitoring per
Use Cases
- New Projects: Scaffold complete development documentation
- Existing Projects: Add structured documentation gradually
- Team Collaboration: Share common development practices
- AI Pair Programming: Provide context for AI assistants
- Knowledge Management: Document decisions and patterns
Best Practices
- Keep templates updated: As your project evolves, update phase documentation
- Reference across phases: Link requirements to design, design to implementation
- Use with AI assistants: Templates are designed to work well with AI code assistants
- Customize for your needs: Templates are starting points, not rigid requirements
- Track decisions: Document architectural decisions and their rationale
Configuration File
The .ai-devkit.json file tracks your setup:
{
"version": "0.2.0",
"environment": "cursor",
"initializedPhases": ["requirements", "design", "planning"],
"createdAt": "2025-10-14T...",
"updatedAt": "2025-10-14T..."
}Development
To work on the CLI package:
# Clone the repository
git clone <repository-url>
cd ai-devkit
# Install dependencies for the monorepo
npm install
# Navigate to CLI package
cd packages/cli
# Run in development mode
npm run dev -- init
# Build
npm run build
# Test locally
npm link
ai-devkit initContributing
Contributions are welcome! Please feel free to submit issues and pull requests.
License
MIT
Happy building with AI! 🚀
Quick Reference
| Quick links | Description | |-------------|-------------| | CHANGELOG.md | Recent changes and release notes |
