NextReady is the first development template specifically optimized for AI-assisted development with Claude Code.
The CLAUDE.md file is the heart of NextReady's AI integration. It contains detailed information about your project's architecture, patterns, and conventions, enabling Claude to understand your codebase without requiring extensive explanations.
Authentication system, API middleware patterns, permission system, and database architecture
All CLI commands, build processes, testing approaches, and development workflows
API route protection, error handling, component structure, and naming conventions
Required variables, optional configurations, and deployment considerations
# Example CLAUDE.md Structure
## Architecture Overview
- **NextAuth v5** with JWT strategy
- **Multi-provider support**: Google, GitHub, email/password
- **Role-based access control**: USER, ADMIN, SUPER_ADMIN
- **API Middleware Pattern**: Composable middleware system
## Key Patterns
```typescript
// API Route Protection
export const GET = withApiMiddleware(handler, {
rateLimit: "default",
requiredRole: UserRole.ADMIN,
requiredPermission: Permission.USER_READ,
});
```
## Development Commands
- `npm run dev` - Development server
- `npm run build` - Production build with type checking
- `npm run db:push` - Database schema updatesNextReady enables powerful AI-assisted workflows that maintain consistency and follow established patterns. Here are the most common and effective workflows for AI-assisted development.
AI-assisted end-to-end feature creation
AI as your development partner
Intelligent problem solving
Combine NextReady's CLI tools with AI assistance for powerful development workflows:
# Setup new feature with AI guidance
npm run setup:feature
# Claude can help generate the feature structure
# Validate system after AI changes
npm run validate
# Ensure AI-generated code follows all patterns
# Generate database migrations with AI
npm run db:generate
# Claude can help with complex schema changesClaude can help you make informed architectural decisions by understanding your existing patterns:
npm run validate after AI-generated changes