A self-improving Next.js template with autonomous AI workflows powered by Claude Code.
# Copy this template to start a new project
cp -r ~/starters/nextjs-autonomous my-new-project
cd my-new-project
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with your values
# Set up database
npm run db:setup
# Start development
npm run devThis template includes powerful AI-driven workflows that handle development tasks autonomously.
Creates spec, plan, and tasks, then awaits your approval before autonomous implementation.
/specify "Add email verification with OTP codes"Best for: First time using a workflow, complex features, learning
Runs autonomously with periodic checkpoints for oversight.
/specify-auto "Add dark mode support" --budget 15Best for: Familiar workflows, well-defined specs, speed
Analyzes bug, implements fix, and updates memory to prevent recurrence.
/bugfix "Login fails with database error"Scans for vulnerabilities and optionally fixes them autonomously.
/security --auto-fixEvery workflow updates .claude/memory/ with learnings:
- MEMORY.md: Core patterns (auto-loaded every session)
- common-bugs.md: Bug catalog with solutions
- security-patterns.md: Security best practices
- performance-patterns.md: Optimization techniques
- anti-patterns.md: Mistakes to avoid
Your project gets smarter over time.
.claude/
├── skills/ # Workflow commands
├── agents/ # Specialized AI agents
├── memory/ # Self-improving knowledge base
└── config/ # Safety limits and settings
.specify/ # Feature specs and design docs
.vscode/ # VS Code settings (file nesting!)
scripts/ # Utility scripts
docs/ # Project documentation
src/ # Source code
- Hard limits: Max cost, time, iterations
- Checkpoints: User approval at key stages
- Rollback: Everything in feature branches
- Circuit breakers: Auto-stop on repeated failures
- Read
docs/WORKFLOW.mdfor detailed workflow explanations - Customize
.claude/config/loop-limits.jsonfor your budget - Run your first workflow:
/specify "your feature idea" - Watch your memory grow as you build
