/compose-saas-mvp
Compose a complete SaaS MVP development workflow with all essential features and best practices.
Overview
- Purpose: Rapid SaaS MVP development orchestration
- Category: Meta Commands
- Type: Dynamic prompt
- MCP Tools: Multiple (orchestration)
Syntax
bash
/compose-saas-mvp [type] [requirements]Usage Examples
bash
# B2B SaaS
/compose-saas-mvp b2b "Project management tool"
# B2C SaaS
/compose-saas-mvp b2c "Personal finance tracker"
# Marketplace
/compose-saas-mvp marketplace "Freelancer platform"
# Enterprise
/compose-saas-mvp enterprise "HR management system"SaaS Components
Core Features
- User authentication
- Team/organization management
- Subscription billing
- Admin dashboard
- API access
Business Features
- Onboarding flow
- User dashboards
- Settings management
- Notifications
- Analytics
Technical Features
- Multi-tenancy
- Role-based access
- Data isolation
- Audit logging
- Webhooks
Output Example
🚀 Composing SaaS MVP Workflow
Project: B2B Project Management SaaS
Timeline: 4-6 weeks
Complexity: Medium-High
## Phase 1: Foundation (Week 1)
### Setup & Architecture
```bash
/create makerkit saas-pm-tool
/orchestrate "B2B SaaS with team collaboration"
/setup-parallel "frontend,backend,infrastructure"Core Infrastructure
bash
# Backend team
/execute-task "Set up multi-tenant database schema"
/execute-task "Implement organization/team models"
/execute-task "Create authentication system with JWT"
# Frontend team
/execute-task "Set up Next.js with TypeScript"
/execute-task "Implement design system with shadcn/ui"
/execute-task "Create authentication UI flows"
# Infrastructure team
/execute-task "Configure Supabase project"
/execute-task "Set up CI/CD pipeline"
/execute-task "Configure development environments"Phase 2: Core Features (Week 2-3)
Team Management
bash
/execute-task "Implement team invitation system"
/execute-task "Add role-based permissions (Owner, Admin, Member)"
/execute-task "Create team switching UI"Project Features
bash
/execute-task "Create project CRUD operations"
/execute-task "Implement task management system"
/execute-task "Add real-time collaboration with WebSockets"Billing Integration
bash
/setup-stripe
/execute-task "Implement subscription plans"
/execute-task "Create billing portal integration"
/execute-task "Add usage-based limits"Phase 3: Essential Features (Week 4)
Admin Dashboard
bash
/add-admin-feature
/execute-task "User management interface"
/execute-task "Subscription monitoring"
/execute-task "System health dashboard"API & Integrations
bash
/add-api-endpoint "projects"
/add-api-endpoint "tasks"
/add-webhook "project.created"
/execute-task "Add API key management"Notifications
bash
/implement-email-template "welcome"
/implement-email-template "team-invitation"
/execute-task "In-app notifications"
/execute-task "Email notification preferences"Phase 4: Polish & Launch (Week 5-6)
Performance & Security
bash
/performance-check
/security-audit
/execute-task "Implement caching strategy"
/execute-task "Add rate limiting"Testing & Documentation
bash
/setup-testing
/execute-task "Write integration tests"
/document-feature "API documentation"
/execute-task "Create user onboarding"Deployment
bash
/deploy-production
/execute-task "Set up monitoring"
/execute-task "Configure backups"
/validate-implementationSuccess Metrics
- ✅ Multi-tenant architecture
- ✅ Team collaboration
- ✅ Subscription billing
- ✅ Admin capabilities
- ✅ API access
- ✅ Production ready
Ready to start? This workflow will create a production-ready SaaS MVP.
## Workflow Components
### Authentication Flow
```bash
- Email/password signup
- OAuth providers
- Email verification
- Password reset
- Session managementBilling Flow
bash
- Plan selection
- Payment processing
- Subscription management
- Invoice generation
- Usage trackingTeam Flow
bash
- Organization creation
- Member invitation
- Role assignment
- Permission checking
- Team switchingBest Practices
1. Start with MakerKit
bash
/compose-saas-mvp --template makerkitProvides proven SaaS foundation
2. Focus on Core Value
bash
/compose-saas-mvp b2b "SPECIFIC core feature description"Build differentiator first
3. Iterate Quickly
bash
/compose-saas-mvp --phases "mvp,beta,launch"Progressive enhancement approach
Integration
With Planning
bash
/compose-saas-mvp "SaaS idea"
/orchestrate "Detailed requirements from composition"With Execution
bash
/compose-saas-mvp
# Execute each phase systematically
/execute-task "Phase 1 tasks"With Validation
bash
/compose-saas-mvp
# After implementation
/validate-implementation --saas-checklistSaaS Patterns
Multi-tenancy
- Database isolation
- Row-level security
- Tenant identification
- Data segregation
Subscription Management
- Plan definitions
- Feature flags
- Usage limits
- Upgrade flows
Team Collaboration
- Invitation system
- Permission matrix
- Activity feeds
- Audit trails
Prompt Adaptation
This prompt dynamically adapts based on:
Context Discovery
- SaaS Type: Adapts workflow for B2B, B2C, marketplace, or enterprise
- Industry Requirements: Adjusts for compliance needs (HIPAA, PCI, etc.)
- Scale Expectations: Optimizes for startup MVP vs enterprise-ready
- Technical Stack: Leverages detected frameworks and services
Intelligence Patterns
- Prioritizes features based on SaaS type
- Includes industry-specific compliance steps
- Adjusts timeline based on complexity
- Suggests parallel work streams
- Learns from successful SaaS patterns
Workflow Composition
- Assembles optimal command sequences
- Identifies parallelizable development streams
- Injects validation checkpoints
- Builds in scalability from start
Memory Integration
This prompt actively uses and updates distributed memory:
Reads From
CLAUDE.md- Project vision and constraints.orchestre/patterns/saas-*.md- SaaS patternstemplates/makerkit-nextjs/CLAUDE.md- Template capabilities.orchestre/workflows/saas-mvp.md- Previous workflows
Creates/Updates
.orchestre/mvp-plan.md- Complete MVP roadmap.orchestre/workflows/[type]-saas.md- Type-specific workflowdocs/architecture/CLAUDE.md- SaaS architecture decisionsCLAUDE.md- Updates with SaaS philosophy
Memory Evolution
- Each MVP adds to SaaS pattern library
- Successful workflows become templates
- Industry requirements accumulate
- Performance optimizations documented
Advanced Options
Industry-Specific
bash
# Healthcare SaaS
/compose-saas-mvp healthcare "Patient management" --compliant HIPAA
# Financial SaaS
/compose-saas-mvp fintech "Expense tracking" --compliant PCI
# Education SaaS
/compose-saas-mvp edtech "Learning platform" --compliant FERPAScale Considerations
bash
# Start small
/compose-saas-mvp --scale startup
# Enterprise ready
/compose-saas-mvp --scale enterprise --sso --auditDirect Invocation
This is a dynamic prompt that Claude executes directly:
bash
# Simply type the command
/compose-saas-mvp b2b "Project management tool"
# Claude will:
# 1. Analyze SaaS requirements and type
# 2. Discover available SaaS patterns
# 3. Compose optimal development workflow
# 4. Present phased implementation plan
# 5. Guide execution with checkpointsRelated
- /create makerkit - SaaS template
- /setup-stripe - Billing setup
- /add-team-feature - Team features
- MakerKit Guide - Template details
