A comprehensive, AI-driven product development template for building web and mobile applications with React, React Native, Express.js, and PostgreSQL.
This template provides a complete framework for AI-assisted software development using Claude Code. It includes:
- Structured Development Phases: Discovery, Planning, Implementation, Testing, Review, Deployment
- AI Skills: Specialized capabilities for code review, security audits, testing, and more
- Slash Commands: Workflow automation for common development tasks
- Documentation Templates: PRDs, ADRs, design docs, and checklists
- Platform Configurations: Pre-configured setups for web, mobile, backend, and CLI projects
| Layer | Technology |
|---|---|
| Language | TypeScript 5.x |
| Web Frontend | React 18+, TailwindCSS |
| Mobile | React Native with Expo |
| Backend | Express.js 4.x, Node.js 20+ |
| Database | PostgreSQL with Prisma ORM |
| Real-time | Socket.io |
| Background Jobs | BullMQ with Redis |
| Testing | Jest, React Testing Library, Supertest, Playwright |
# Clone or download this template
git clone <template-repository-url> my-project
cd my-project
# Initialize the project
./scripts/setup/init-project.sh my-project web# Copy environment example
cp .env.example .env.local
# Edit .env.local with your values (never commit it)
# DATABASE_URL=postgresql://user:pass@localhost:5432/mydb
# JWT_SECRET=your-secret-key# Install dependencies
npm install
# Setup database
npx prisma migrate dev
# Start development server
npm run devOpen your project in Claude Code and use:
/start-discovery
to begin the AI-assisted development workflow.
.
+-- .claude/ # Claude Code configuration
| +-- commands/ # Slash commands for workflows
| +-- skills/ # AI skills for specialized tasks
| +-- rules/ # Development rules and standards
| +-- agents/ # Agent configurations
| +-- settings.json # Team settings
|
+-- config/ # Platform-specific configurations
| +-- web/ # React web configuration
| +-- mobile/ # React Native configuration
| +-- backend/ # Express.js configuration
| +-- cli/ # CLI tool configuration
|
+-- docs/ # Documentation
| +-- phases/ # Phase-specific guides
| +-- templates/ # Document templates
| +-- checklists/ # Project checklists
|
+-- scripts/ # Setup and utility scripts
| +-- setup/ # Project initialization
|
+-- CLAUDE.md # Main AI guidance document
+-- .env.example # Environment variable template
+-- .mcp.json # MCP server configuration
-
Discovery (
/start-discovery)- Gather requirements
- Stakeholder analysis
- User story creation
-
Planning (
/start-planning)- Architecture design
- Task breakdown
- Risk assessment
-
Implementation (
/start-implementation)- Feature development
- Test-driven development
- Code reviews
-
Testing
- Unit tests
- Integration tests
- E2E tests
-
Review (
/run-review)- Code quality checks
- Security audit
- Performance review
-
Deployment (
/prepare-release)- Release checklist
- Deployment verification
- Monitoring setup
| Command | Description |
|---|---|
/start-discovery |
Begin requirements gathering |
/start-planning |
Start architecture planning |
/start-implementation |
Begin development phase |
/run-review |
Execute code review workflow |
/prepare-release |
Prepare for deployment |
/handle-change |
Process mid-project changes |
| Skill | Purpose |
|---|---|
code-review |
Automated code quality analysis |
security-audit |
OWASP-based security scanning |
test-generator |
Generate test scaffolds |
doc-generator |
Auto-generate documentation |
architecture-planner |
Design system architecture |
deployment |
Deployment verification |
validator |
Artifact validation |
# Code quality
npm run typecheck # TypeScript compilation
npm run lint # ESLint checks
npm run format:check # Prettier formatting
# Testing
npm test # Run all tests
npm run test:coverage # Coverage report (>= 80%)
npm run test:e2e # E2E tests with Playwright
# Security
npm audit --audit-level=high # Dependency security
# Build
npm run build # Production buildnpm run typecheck && npm run lint && npm run format:check && npm test && npm audit --audit-level=high && npm run build| Variable | Description | Required |
|---|---|---|
NODE_ENV |
Environment (development/test/production) | Yes |
DATABASE_URL |
PostgreSQL connection string | Yes |
JWT_SECRET |
JWT signing secret (64+ chars) | Yes |
PORT |
Server port (default: 3000) | No |
CORS_ORIGIN |
Allowed CORS origins | No |
REDIS_URL |
Redis connection for BullMQ | No |
The template includes MCP server configuration in .mcp.json:
- Context7: Documentation and library references
- Sequential: Complex analysis workflows
- Playwright: E2E testing
React web application with:
- Component architecture
- State management patterns
- Responsive design
- Accessibility guidelines
React Native/Expo application with:
- Navigation patterns
- Platform-specific code
- Performance optimization
- App store guidelines
Express.js API with:
- RESTful patterns
- Prisma ORM integration
- Authentication middleware
- Background job processing
Command-line tools with:
- Commander.js patterns
- Interactive prompts
- Progress indicators
- Distribution setup
To pull updates from the template:
./scripts/setup/sync-template.shOptions:
skills- Sync AI skillscommands- Sync slash commandsrules- Sync development rulesdocs- Sync documentationall- Sync everything
See CONTRIBUTING.md for guidelines on:
- Reporting issues
- Suggesting improvements
- Contributing changes
- Code of conduct
MIT License - See LICENSE for details.