π― Your universal starting point for any new project
Transform this template into your custom project in 5 minutes. Includes Next.js 14 + FastAPI, 15 AI agents, auto-setup scripts, and intelligent project customization that configures everything for your specific use case.
# Use as template on GitHub (recommended)
# β Click "Use this template" button on GitHub
# β Clone your new repository
# OR clone directly
git clone https://github.com/your-org/claude-code-project-template.git my-new-project
cd my-new-project./setup.shWhat happens:
- β Checks Node.js 18+ and Python 3.8+ installed
- β Installs all dependencies (Next.js + FastAPI packages)
- β Launches interactive wizard (customizes for YOUR project)
The wizard asks:
- Project name (e.g., "Task Manager Pro")
- Tech stack (Next.js + FastAPI by default)
- Deployment platforms (Vercel + Railway)
- Domain/industry (Healthcare, SaaS, E-commerce, etc.)
- Author info
What gets customized:
- β
package.jsonβ Your project name/description - β
app/layout.tsxβ Page titles and metadata - β
main.pyβ API title and description - β
.claude/context/project-context.yamlβ All 15 agents know your project - β
README.mdβ Updated with your project details
# Terminal 1 - Frontend
npm run dev
# β http://localhost:3000
# Terminal 2 - Backend
uvicorn main:app --reload
# β http://localhost:8000
# β API docs: http://localhost:8000/docsThat's it! In 5 minutes you have:
- β Fully configured Next.js + FastAPI project
- β 15 AI agents that know your project context
- β Beautiful landing page with your project name
- β Working health check endpoints
- β Auto-generated API documentation
See QUICK_START_NEW_PROJECT.md for detailed guide.
-
Get your own API keys:
- Anthropic Claude: https://console.anthropic.com/settings/keys
- OpenRouter (optional): https://openrouter.ai/keys
-
Where to add them:
- Railway: Dashboard β Environment Variables
- Vercel: Dashboard β Environment Variables
- Local development: Copy
.env.exampleto.env.local
-
Files with placeholders:
.claude/scripts/restore-railway-env-vars.sh- Railway restoration script.env.example- Local development template
Never commit real API keys to git. Use environment variables in your deployment platform.
This template extracts the complete infrastructure from a production project and gives you:
- Orchestrators: Feature planning (DPPM framework), bug coordination
- Executors: Full-stack code, frontend specialists, AI/ML engineering
- Validators: Quality gates, test execution, code review
- Experts: Deployment, architecture, design, debugging, memory management
- Git hooks validate file placement on every commit
- Auto-fix repairs violations automatically
- Lifecycle rules archive old files (completion reports, test results)
- Zero-maintenance file organization
- Agents remember past work across sessions
- Hot/Warm/Cold memory tiers (performance-optimized)
- Weekly consolidation, monthly archival
- Memory Expert ensures safety
- Silent self-reflection (agents self-assess before submission)
- Tier 1 (agent) + Tier 2 (validator) quality gates
- 50% reduction in rework
- Continuous improvement
- Pre-commit structure validation
- Commit message enforcement
- Post-merge reminders
- Automated cleanup (nightly cron jobs)
Not all projects need the same infrastructure. Pick your tier:
| Feature | Minimal | Standard | Complete |
|---|---|---|---|
| Setup Time | 30 minutes | 2 hours | 1 day |
| Core Agents | 5 | 15 | 15 |
| Structure Enforcement | Basic | Full | Full |
| Auto-Fix | β | β | β |
| Memory System | β | β | β |
| Git Hooks | Pre-commit only | All 3 | All 3 |
| Reflection System | β | β | β |
| Automated Cleanup | β | β | β (cron) |
| Best For | Prototypes, learning | Production projects | Mission-critical |
Unsure? See docs/TIER_COMPARISON.md for a decision tree.
Can I upgrade later? Yes! python setup.py --upgrade-to=standard
- Tier Comparison - Which tier should I choose?
- Quick Start (Minimal) - 30-minute setup
- Quick Start (Standard) - 2-hour setup
- Quick Start (Complete) - 1-day setup
- How to Use Agents - Invoking agents, delegation protocol
- How to Use Structure Enforcement - Lifecycle rules, auto-fix
- How to Use Memory System - Tri-tier memory, consolidation
- How to Use Reflection - Quality gates, self-scoring
- How to Use Git Hooks - Customizing hooks
- Troubleshooting Guide - Common issues and fixes
claude-code-project-template/
βββ setup.py # Interactive wizard (all the magic)
βββ .claude/
β βββ agents/ # 15 specialized agents
β βββ scripts/ # Portable automation
β βββ hooks/ # Git hook templates
β βββ structure/ # Canonical structure schema
β βββ memory/ # Memory system templates
β βββ docs/ # Protocols & methodologies
βββ docs/ # Comprehensive guides
βββ tests/ # Validation suite
Orchestrators (Planning, No Execution):
@atharva-2.0- Feature orchestrator (DPPM framework)@bug-fix-orchestrator- Bug fix coordination
Executors (Implementation, No Planning):
@anand-2.0- Full-stack code executor@hitesh-2.0- Frontend specialist (React, Vue, etc.)@sama-2.0- AI/ML engineering
Validators (Review, No Implementation):
@ankur-2.0- Quality gatekeeper (APPROVE/REVISE/FAIL verdicts)@harshit-2.0- Test executor (runs tests, reports results)
Domain Experts:
@shawar-2.0- Deployment expert (Vercel, Railway, AWS, etc.)@vidya-2.0- Solution architect@varsha-2.0- UI/UX designer@debugger- Bug investigation
Support:
@memory-expert- Memory management & curation@reflection-expert- Meta-reflection on agent quality@documentation-manager- Documentation lifecycle
Every agent has:
- Strict role boundaries (MUST/MUST NOT guardrails)
- Skills auto-loading (frontend-design, document-skills, etc.)
- Permission modes (ask, auto-accept, auto-deny)
- Persistent memory (learns from past work)
- Auto-context loading (inherits project context automatically)
Problem: When creating new projects from this template, agents need to know project-specific context (name, URLs, tech stack). Manual updates across 15 agent files are error-prone.
Solution: Single source of truth with automatic context propagation.
-
Run initialization script once:
./.claude/scripts/init-project.sh
-
Answer prompts:
- Project name, slug, description
- Tech stack (React/Vue, FastAPI/Express, etc.)
- Deployment (Vercel, Railway, AWS, etc.)
- URLs, domain context
-
Script generates:
.claude/context/project-context.yaml -
All agents auto-load this file via frontmatter:
context: inherit: ".claude/context/project-context.yaml"
-
Variables interpolated automatically:
{{ project.name }}β "Task Manager Pro"{{ tech_stack.frontend.framework }}β "Next.js"{{ deployment.backend.platform }}β "Railway"
Result: Every agent knows your project without manual updates!
# Initialize new project context (Quick wizard)
python3 init-project.py
# Initialize new project context (Full wizard)
./.claude/scripts/init-project.sh
# Validate context completeness
./.claude/scripts/validate-context.sh
# Add context to agent files (auto-run during init)
./.claude/scripts/add-context-to-agents.sh- Complete Guide:
.claude/docs/guides/AUTO_CONTEXT_SYSTEM.md - Context Schema:
.claude/context/project-context.yaml - Wizard Comparison:
INITIALIZATION_WIZARDS.md
- Git hooks validate structure on every commit
- Auto-fix repairs violations automatically
- Lifecycle rules archive old files (7-45 day retention)
- Result: Developers never think about file placement
- 15 agents, each with ONE job
- Strict boundaries prevent role confusion
- Explicit handoffs ensure accountability
- Result: Predictable, high-quality output
- Hot memory (last 20 events): Always fast
- Warm memory (events 21-100): Pattern recognition
- Cold memory (events 101+): Long-term learnings
- Result: Agents learn without performance degradation
- Agents self-assess before submission (Tier 1)
- Validator provides calibration feedback (Tier 2)
- Agents improve over time
- Result: 50% fewer rejections
- Extracted from real production project
- Battle-tested workflows
- Conservative defaults
- Result: Works out-of-the-box
After setup, run:
python tests/validate_setup.pyExpected output:
Running setup validation...
β
Git hooks installed (pre-commit, commit-msg, post-merge)
β
Structure validator operational
β
All 15 agents have valid frontmatter
β
Memory system initialized (15 memory files)
β
CLAUDE.md configured for "my-awesome-project"
β
Scripts executable
β
Configurations valid
π All checks passed! Setup complete.
- Node.js 18+ (for Next.js frontend)
- Python 3.8+ (for FastAPI backend and automation scripts)
- Git (for hooks and version control)
- Claude Code v2.0.43+ (for skills auto-loading)
Node.js packages (via npm):
next- Next.js frameworkreact,react-dom- React librarytypescript- TypeScript compilertailwindcss- CSS frameworkplaywright- E2E testingeslint- Code linting
Python packages (via pip):
PyYAML- Configuration parsingjinja2- Template renderingquestionary- Interactive wizardanthropic- Claude API (optional)requests- HTTP requests (optional)
Contributions welcome! See CONTRIBUTING.md for:
- How to add new agents
- How to improve scripts
- How to enhance documentation
MIT License - See LICENSE
This template is built on production-tested patterns from real-world projects, which pioneered:
- Multi-agent orchestration (15 specialized agents)
- Tri-tier memory system
- Silent reflection quality gates
- Automated structure enforcement
- DPPM orchestration framework
- Run setup:
./setup.sh(installs all dependencies) - Initialize project:
./.claude/scripts/init-project.sh - Start development:
- Frontend:
npm run dev(Next.js on http://localhost:3000) - Backend:
uvicorn main:app --reload(FastAPI on http://localhost:8000)
- Frontend:
- Read quick start: docs/QUICK_START_STANDARD.md
- Invoke your first agent:
@anand-2.0 help me get started - Make a test commit to verify git hooks work
Welcome to production-grade agent orchestration! π