Read this in other languages: 日本語
⚡ This boilerplate is for developers who want to:
- Build production-ready TypeScript projects faster with AI
- Avoid context exhaustion in long AI coding sessions
- Standardize team workflows with specialized AI agents
- Quick Start (3 Steps)
- Why Sub Agents?
- Real Projects & Results
- Documentation & Guides
- Slash Commands
- Development Workflow
- Project Structure
- Development Commands
- Rules & Quality Assurance
- Architecture Patterns
- Multilingual Support
- FAQ
# 1. Create your project (30 seconds)
npx github:shinpr/ai-coding-project-boilerplate my-project
# 2. Install dependencies (automatic)
cd my-project && npm install
# 3. Launch Claude Code and configure
claude # Launch Claude Code
/project-inject # Configure project context
/implement <your feature> # Start building!
💡 First time? Check the Quick Start Guide for detailed setup instructions
Traditional AI coding struggles with:
- ❌ Losing context in long sessions
- ❌ Declining code quality over time
- ❌ Frequent session restarts for large tasks
Sub agents solve this by:
- ✅ Splitting work into specialized roles (design, implementation, review)
- ✅ Keeping context fresh and quality consistent
- ✅ Handling large projects without degradation
Each agent focuses on one thing and does it well. No context exhaustion, no quality drop.
👉 Learn more about Sub Agents (Anthropic docs)
Sub agents working together to build a production-ready TypeScript project
- Without this boilerplate: ~1 week for setup + infrastructure
- With this boilerplate: ~2 days to production-ready application
What: MCP server enabling Claude Code/Cursor CLI as sub agents
Time: 2 days → 30 TypeScript files with full test coverage
Result: Production-deployed, 3-minute setup
What: AI image generation via Gemini API
Time: 1.5 days → Complete creative tool with advanced features
Result: Multi-image blending, character consistency, one-command integration
💡 Key Insight: Proper rules + sub agents = production-quality code at AI speed
- Quick Start Guide - Get running in 5 minutes
- Use Cases & Commands - Daily workflow reference
- Rule Editing Guide - Customize for your project
- Design Philosophy - Why it works (770K tokens without exhaustion)
Essential commands for Claude Code:
Command | Purpose | When to Use |
---|---|---|
/implement |
End-to-end feature development | New features |
/task |
Single task with rule precision | Bug fixes, small changes |
/design |
Create design docs only | Architecture planning |
/build |
Execute from existing plan | Resume work |
/review |
Check code compliance | Post-implementation |
graph LR
A[Requirements] --> B[Scale Detection]
B -->|Small| C[Direct Implementation]
B -->|Medium| D[Design → Implementation]
B -->|Large| E[PRD → Design → Implementation]
C --> F[Quality Check → Commit]
D --> F
E --> F
- Requirement Analysis:
/implement
command analyzes task scale - Document Generation: Creates necessary docs (PRD, Design Doc, Work Plan)
- Task Execution: Specialized agents handle each phase
- Quality Assurance: Automatic testing, type checking, and fixes
- Commit & Continue: Clean commits for each completed task
ai-coding-project-boilerplate/
├── .claude/ # AI agent configurations
│ ├── agents/ # Specialized sub-agent definitions
│ └── commands/ # Slash command definitions
├── docs/
│ ├── rules/ # Development rules & patterns
│ ├── guides/ # User documentation
│ ├── adr/ # Architecture decisions
│ ├── design/ # Design documents
│ └── prd/ # Product requirements
├── src/ # Your source code
├── scripts/ # Utility scripts
└── CLAUDE.md # Claude Code configuration
npm run dev # Start development server
npm run build # Production build
npm run test[:watch] # Run tests (with optional watch mode)
npm run check:all # Complete check: types + lint + test + build
npm run lint # Lint check
npm run format # Auto-format code
npm run check:deps # Check circular dependencies
Rules guide AI to produce consistent, high-quality code. Without them, AI output varies wildly.
With them, you get predictable, production-ready results.
- ✅ Use:
unknown
type + type guards for safety - ❌ Avoid:
any
type (breaks type checking) - ✅ Use: Test-first development (Red-Green-Refactor)
- ❌ Avoid: Commented-out code (use git instead)
- ✅ Use: YAGNI principle (only build what's needed now)
Sub agents handle quality automatically:
- task-executor: Implements with TDD approach
- quality-fixer: Fixes type/lint/test issues
- code-reviewer: Validates against design docs
Manual verification: npm run check:all
Three proven patterns optimized for AI coding:
Pattern | Best For | Key Benefit |
---|---|---|
Layered | Enterprise apps | Clear separation of concerns |
Vertical Slice | Features-first development | Minimal context per feature |
Hybrid Progressive | Growing projects | Scales from MVP to enterprise |
Details in docs/rules/architecture/
Full support for English and Japanese:
npm run lang:en # Switch to English
npm run lang:ja # Switch to Japanese
npm run lang:status # Check current language
Automatically updates all configurations, rules, and agent definitions.
Q: How do sub agents work?
A: Just use /implement
or /task
. The right agents activate automatically.
Q: What if there are errors?
A: quality-fixer auto-fixes most issues. If not, it provides clear instructions.
Q: Can I customize for my project?
A: Yes! Run /project-inject
to configure project-specific context.
Q: What's the typical workflow?
A: /project-inject
(once) → /implement
(features) → auto quality checks → commit
Q: How is this different from Copilot/Cursor?
A: Those help write code. This manages entire development lifecycle with specialized agents.
Agent | Specialization | Activation |
---|---|---|
requirement-analyzer | Scale assessment | Start of /implement |
technical-designer | Design documentation | Medium/large features |
work-planner | Task breakdown | After design approval |
task-executor | Implementation | During build phase |
quality-fixer | Automated fixes | On any quality issue |
code-reviewer | Compliance check | /review command |
MIT License - Free to use, modify, and distribute
The AI Coding Project Boilerplate is engineered to maximize AI coding productivity while maintaining human-level code quality. By leveraging specialized sub agents and context engineering, it enables teams to build production-ready TypeScript applications at unprecedented speed.
Happy Coding with Claude Code! 🤖✨