MakerKit NextJS Template Commands
Commercial License Required
MakerKit requires a commercial license. While Orchestre can help you build with it, you must obtain a valid license from MakerKit for commercial use.
Comprehensive commands for building production-ready SaaS applications with MakerKit.
Overview
The MakerKit template provides 30 prompts specifically designed for SaaS development, covering everything from authentication to billing, team management, deployment, and specialized recipe patterns.
Available Commands
Feature Development
add-feature- Add complete feature modules with UI, API, and databaseadd-api-endpoint- Create server actions and API routesadd-database-table- Extend Supabase schema with RLS policiesadd-webhook- Implement webhook handlers for external services
Team & Organizations
add-team-feature- Add team collaboration featuresmigrate-to-teams- Convert single-user to multi-tenant
Authentication & Security
setup-oauth- Add OAuth providers (Google, GitHub, etc.)setup-mfa- Enable multi-factor authenticationsecurity-audit- Comprehensive security analysisadd-enterprise-feature- Enterprise security features
Payments & Billing
setup-stripe- Complete Stripe integrationadd-subscription-plan- Add pricing tiers
Admin & Monitoring
add-admin-feature- Admin dashboard featuressetup-monitoring- Application monitoring and analytics
Development & Testing
setup-testing- Configure test infrastructureoptimize-performance- Performance optimizationvalidate-implementation- Validate against best practices
Communication
implement-email-template- Transactional email templates
Search & Discovery
implement-search- Full-text search functionality
Deployment
deploy-production- Production deployment pipeline
Analysis & Improvement
performance-check- Performance analysissuggest-improvements- AI-powered suggestions
Usage Examples
Building a Complete Feature
bash
# Plan the feature
/orchestrate "User dashboard with analytics"
# Implement components
/template add-feature user-dashboard
/template add-api-endpoint /api/analytics
/template add-database-table user_analytics
# Add authentication
/template setup-oauth google,github
/template setup-mfaSetting Up Payments
bash
/template setup-stripe
/template add-subscription-plan "Basic,$9,Pro,$29,Enterprise,$99"
/template add-webhook stripe-eventsTeam Collaboration
bash
/template add-team-feature invite-members
/template add-team-feature team-roles
/template add-team-feature team-billingProduction Deployment
bash
/template setup-testing
/template security-audit
/template optimize-performance
/template deploy-productionKey Features
Supabase Integration
All database commands include:
- Automatic RLS (Row Level Security) policies
- Type-safe database queries
- Migration files
- Seed data
Stripe Integration
Payment commands provide:
- Subscription management
- Customer portal
- Webhook handling
- Invoice management
- Usage-based billing
Multi-Tenancy
Team features include:
- Organization management
- Role-based access control
- Team invitations
- Billing per organization
Type Safety
- Full TypeScript coverage
- Generated types from Supabase
- Zod validation schemas
- Type-safe server actions
Best Practices
- Start with Core Features: Build auth and data model first
- Add Payments Early: Integrate Stripe before launch
- Test Everything: Use the testing infrastructure
- Security First: Run security audits regularly
- Monitor Performance: Set up monitoring early
Common Workflows
SaaS MVP
bash
# Core setup
/template add-feature authentication
/template setup-stripe
/template add-feature landing-page
# User features
/template add-feature user-profile
/template add-feature user-settings
# Deploy
/template deploy-productionEnterprise Features
bash
/template add-enterprise-feature sso
/template add-enterprise-feature audit-logs
/template add-enterprise-feature advanced-permissions
/template setup-mfaAdmin Dashboard
bash
/template add-admin-feature user-management
/template add-admin-feature subscription-management
/template add-admin-feature analytics-dashboard
/template add-admin-feature system-settingsIntegration with Core Prompts
MakerKit commands work seamlessly with Orchestre core prompts:
bash
# Research best practices
/research "SaaS billing models"
# Plan the implementation
/orchestrate "Implement usage-based billing"
# Execute with template commands
/template setup-stripe usage-based
/template add-webhook stripe-usage-events
# Document the feature
/document-feature "Usage-based billing implementation"MakerKit Patterns
The template includes established patterns for:
- Server actions with authentication
- RLS policies for multi-tenancy
- Form handling with react-hook-form
- Data fetching with React Query
- Email templates with React Email
Access patterns in .orchestre/patterns/makerkit-nextjs/
