A structured template for building Next.js applications using AI assistance with proper documentation and workflow management.
This template provides a comprehensive system for developing Next.js applications with AI guidance. It includes organized documentation, phased development approach, and clear workflow management to ensure successful project completion.
- Node.js 18+ installed
- Git initialized repository
- Claude Code or similar AI assistant
-
Create your PRD
# Create a Product Requirements Document (PRD.md) in the root directory # Define your application requirements, features, and technical specifications
-
Initialize with AI
# Open Claude Code and run: "Create me an application based on the AGENT.md"
-
Project Structure Setup
- AI will create a nested project structure
- Main application will be in
/project-namefolder - Documentation will be organized in
/docsfolder - Control file (
CLAUDE.md) will be at root level
-
Configure Git
# Update your .gitignore to include the new project structure echo "/project-name/" >> .gitignore
/your-repository
├── README.md # This file
├── PRD.md # Product Requirements Document (you create this)
├── PROMPT.md # AI implementation prompt
├── CLAUDE.md # AI control and status file
├── .gitignore # Git ignore rules
└── /docs # Documentation folder
├── PHASES.md # Development phases breakdown
├── TASKS.md # Detailed task list
└── PROGRESS.md # Progress tracking
After AI initialization:
/your-repository
├── README.md
├── PRD.md
├── PROMPT.md
├── CLAUDE.md
├── .gitignore
├── /docs
│ ├── PHASES.md
│ ├── TASKS.md
│ └── PROGRESS.md
└── /project-name # ← Your Next.js application
├── /app
├── /components
├── /lib
├── package.json
└── ... (standard Next.js files)
- Framework: Next.js 14+ (App Router)
- Database: Supabase
- Authentication: Better Auth
- UI Components: shadcn/ui
- Styling: Tailwind CSS
- Language: TypeScript
- Create your
PRD.mdwith detailed requirements - Review the
PROMPT.mdto understand the AI workflow - Ensure your repository is properly initialized
- AI reads your PRD and creates a structured project plan
- Development is broken into logical phases with clear milestones
- Progress is tracked in real-time through documentation files
- Use simple commands to control the AI assistant:
"next"- Move to next task"status"- Check current progress"review"- Review implementation"continue"- Resume work on current task
- All progress is automatically tracked
- Phase completion is documented
- Task status is maintained in real-time
- Structured Development: Organized phases with clear objectives
- Progress Tracking: Real-time status updates and milestone tracking
- AI-Powered: Intelligent code generation and problem-solving
- Best Practices: Following Next.js and TypeScript best practices
- Production Ready: Built with deployment in mind
Before starting, ensure you have:
-
PRD.md - Your Product Requirements Document
- Project overview and objectives
- Feature requirements
- Technical specifications
- User stories and acceptance criteria
-
.gitignore - Proper git ignore rules
# Dependencies node_modules/ # Environment variables .env.local # Build output .next/ out/ # Project folder (if you want to keep repo clean) /project-name/
- Planning: AI analyzes PRD and creates development phases
- Setup: Initializes Next.js project with proper configuration
- Implementation: Builds features incrementally with proper testing
- Documentation: Maintains up-to-date progress and task tracking
- Review: Regular code reviews and optimization suggestions
- Be Specific: The more detailed your PRD, the better the AI implementation
- Follow Commands: Use the predefined commands for smooth workflow
- Check Progress: Regularly review
PROGRESS.mdandCLAUDE.md - Iterate: Don't hesitate to ask for reviews and improvements
This template is designed to evolve with feedback. Feel free to suggest improvements to the workflow or documentation structure.
This template is open source and available under the MIT License.
Ready to build your next application with AI assistance? 🚀
- Create your
PRD.md - Run the AI prompt
- Watch your application come to life!