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
- Package Manager Configuration
- Multilingual Support
- FAQ
Which one should you use?
- Use this Boilerplate if you want to maximize precision with TypeScript Γ Sub-agent setup optimized for Claude Code.
- Use claude-code-workflows if you're on Claude Code and want to start with any project in 2 commands and language-agnostic workflows.
- Use Agentic Code if you want zero-config, tool-agnostic workflows without language restrictions (Codex CLI/Cursor/Aider etc.).
# 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 (Backend) |
/task |
Single task with rule precision | Bug fixes, small changes |
/design |
Create design docs only | Architecture planning (Backend) |
/plan |
Create work plan from design | After design approval (Backend) |
/build |
Execute from existing plan | Resume work (Backend) |
/review |
Check code compliance | Post-implementation |
/front-design |
Create frontend design docs | React/Vite architecture planning |
/front-plan |
Create frontend work plan | After frontend design approval |
/front-build |
Execute frontend implementation | React component development |
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:
/implementcommand 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
This boilerplate uses npm by default, but you can switch to your preferred package manager like bun or pnpm.
There are two environment-dependent settings in package.json:
packageManager: The package manager and version to usescripts: The execution commands for each script
When you change these, Claude Code will recognize them and execute with the appropriate commands.
{
"packageManager": "bun@1.3.3",
"scripts": {
"build": "bun run tsc && tsc-alias",
"dev": "bun run src/index.ts",
"test": "bun test",
"check": "bunx @biomejs/biome check src",
"check:all": "bun run check && bun run lint && bun run format:check && bun run check:unused && bun run check:deps && bun run build && bun test"
}
}The above are representative examples. The following scripts are referenced in rules and sub-agent definitions. Update them as needed:
build, build:frontend, dev, preview, type-check, test, test:coverage, test:coverage:fresh, test:safe, cleanup:processes, check, check:fix, check:code, check:unused, check:deps, check:all, format, format:check, lint, lint:fix
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 languageAutomatically 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 |
| document-reviewer | Document quality check | After document creation |
| design-sync | Design Doc consistency | After Design Doc creation |
| acceptance-test-generator | Test skeleton from ACs | After design approval |
| 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 |
| integration-test-reviewer | Test implementation quality | After test implementation |
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! π€β¨
