| name | saas-transformer |
| description | Transforms regular applications into complete SaaS platforms with multi-tenancy, billing, team management, and feature gating — orchestrating all relevant vibes-plug skills / Mentransformasi aplikasi biasa menjadi platform SaaS lengkap dengan multi-tenancy, billing, manajemen tim, dan feature gating — mengorkestrasi semua skill vibes-plug yang relevan. |
| author | Roedy Rustam |
SaaS Transformer
English | Bahasa Indonesia
English
Description
The SaaS Transformer is a master orchestrator skill that guides the complete transformation of an existing regular application into a fully-featured SaaS platform. Unlike saas-mvp-launcher (which builds from scratch) or saas-multi-tenant (which only handles data isolation), this skill takes an already working application and systematically adds every layer needed to make it a commercial SaaS product.
This skill does NOT replace individual skills — it coordinates them into a structured, 9-phase transformation workflow.
Orchestrated Skills Map
┌──────────────────────────────────────────────────────────────────┐
│ SAAS-TRANSFORMER │
│ (Master Orchestrator — 9 Phases) │
├──────────────────────────────────────────────────────────────────┤
│ │
│ ┌─── PHASE 1: Discovery & Architecture Analysis ─────────────┐ │
│ │ • app-analyzer-optimizer (Audit architecture & codebase) │ │
│ │ • prd-architect (Generate PRD for SaaS features) │ │
│ │ • brainstorming (Validate transformation strategy) │ │
│ │ • mpa-orchestrator (Evaluate MPA vs SPA architecture) │ │
│ │ • bun-runtime-expert (Evaluate runtime migration) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 2: Multi-Tenancy Foundation ──────────────────────┐ │
│ │ • saas-multi-tenant (Shared/Isolated Schema, data isolation) │ │
│ │ • supabase-migration (Database migrations) │ │
│ │ • supabase-security-expert (Audit RLS & RBAC) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 3: Authentication & Authorization ────────────────┐ │
│ │ • fullstack-expert (OAuth 2.0 / OIDC setup) │ │
│ │ • supabase-security-expert (RBAC, Custom Claims) │ │
│ │ • firebase-security-expert (if Firebase Auth) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 4: Billing & Subscription ────────────────────────┐ │
│ │ • saas-billing (Gateway integration, webhooks, dunning) │ │
│ │ • saas-mvp-launcher (Stripe integration, pricing tiers) │ │
│ │ • fullstack-expert (Webhook handling, idempotency) │ │
│ │ • senior-frontend (Pricing page, customer portal UI) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 5: Workspace & Team Management ───────────────────┐ │
│ │ • saas-multi-tenant (Workspace model, member roles) │ │
│ │ • senior-frontend (Invite flow, settings UI) │ │
│ │ • ui-ux-pro-max (Dashboard, onboarding UX) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 6: SaaS Frontend & Landing ───────────────────────┐ │
│ │ • senior-frontend (App shell, dashboard, settings) │ │
│ │ • tanstack-query-expert (State & optimistic updates) │ │
│ │ • multiple-entry-points (Separate app vs landing page) │ │
│ │ • tailwind-expert (Design system, responsive) │ │
│ │ • seo-aeo-landing-page-writer (Conversion landing page) │ │
│ │ • seo / seo-geo (SEO & AI search readiness) │ │
│ │ • hig (Human Interface Guidelines consistency) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 7: API Layer & Feature Gating ────────────────────┐ │
│ │ • fullstack-expert (API versioning, rate limiting) │ │
│ │ • scalability-clean-code (Clean arch, SOLID) │ │
│ │ • senior-fullstack (Usage metering, feature flags) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 8: Testing, Security & Quality Assurance ─────────┐ │
│ │ • e2e-testing-expert (Playwright/Vitest coverage) │ │
│ │ • secure-fuzz-testing (Validate parsers & data streams) │ │
│ │ • coderabbit (AI PR summarization & code review) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─── PHASE 9: Production Hardening & Cloud Deployment ───────┐ │
│ │ • production-ready-hardener (Full 7-phase hardening) │ │
│ │ • cloud-hosting-expert (Edge middleware & custom domains)│ │
│ │ • auto-doc-updater (CHANGELOG, BLUEPRINT) │ │
│ │ • saas-mvp-launcher (Pre-launch checklist) │ │
│ └────────────────────────────────────────────────────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────┘
Trigger Conditions
Activate this skill when the user:
- Has an existing application and wants to convert it into a SaaS product.
- Asks to "add multi-tenancy", "add billing/subscriptions", "make this a SaaS", "add team management", or similar requests that imply SaaS transformation.
- Wants to add workspace/organization-based isolation to an existing app.
- Needs to add pricing tiers, usage limits, or feature gating to an existing product.
- Asks for a "SaaS audit" or "SaaS readiness check" on an existing application.
Execution Protocol
When this skill is triggered, execute the following 9-phase transformation process in order. Each phase produces findings and code changes. At the end, compile a SaaS Transformation Report.
Important: Before starting, run the saas_transformation_scanner.py script to assess the current state of the application and determine which phases need the most work.
PHASE 1: Discovery & Architecture Analysis
Orchestrates: app-analyzer-optimizer, prd-architect, brainstorming, mpa-orchestrator, bun-runtime-expert
Goal: Understand the existing application and plan the transformation, including architectural pivots.
Steps:
-
Audit the existing codebase using app-analyzer-optimizer:
- Map all database tables/models and their relationships
- Identify authentication mechanism (if any)
- List all API endpoints and their access patterns
- Assess frontend architecture
-
Evaluate Core Architecture Shifts:
- Consider
mpa-orchestrator: Should we consolidate into a Single Repo MPA or split into SPA micro-apps?
- Consider
bun-runtime-expert: Is extreme performance required? Should we migrate to the Bun runtime?
-
Generate a SaaS PRD using prd-architect:
- Define target customer segments and pricing tiers (Free, Pro, Enterprise)
- Establish usage limits per plan
Deliverable: SaaS Transformation Plan document.
Checklist:
PHASE 2: Multi-Tenancy Foundation
Orchestrates: saas-multi-tenant, supabase-migration, supabase-security-expert (for Shared Schema RLS)
Goal: Add tenant isolation to the database layer.
Checklist:
PHASE 3: Authentication & Authorization
Orchestrates: fullstack-expert, supabase-security-expert, firebase-security-expert
Goal: Implement production-grade auth with role-based access.
Checklist:
PHASE 4: Billing & Subscription
Orchestrates: saas-billing, saas-mvp-launcher, fullstack-expert, senior-frontend
Goal: Integrate payment processing and subscription management.
Checklist:
PHASE 5: Workspace & Team Management
Orchestrates: saas-multi-tenant, senior-frontend, ui-ux-pro-max
Goal: Build workspace creation, team invitations, and settings management.
Checklist:
PHASE 6: SaaS Frontend & Landing
Orchestrates: senior-frontend, tanstack-query-expert, multiple-entry-points, tailwind-expert, seo-aeo-landing-page-writer, seo, seo-geo, hig
Goal: Build the SaaS frontend: app shell, dashboard, and marketing pages.
Steps:
- Architecture Separation (
multiple-entry-points): Separate authenticated SaaS application from marketing pages.
- State Management (
tanstack-query-expert): Implement robust asynchronous state handling, ensuring optimistic UI updates (e.g., when a user updates their profile, the UI reflects it instantly while the server syncs).
- App shell / Layout: Authenticated layout with sidebar navigation, breadcrumbs, and workspace context.
- Marketing / Landing page: Convert users with a highly optimized, SEO/GEO friendly landing page.
Checklist:
PHASE 7: API Layer & Feature Gating
Orchestrates: fullstack-expert, scalability-clean-code, senior-fullstack
Goal: Add API versioning, rate limiting, and plan-based feature restrictions.
Checklist:
PHASE 8: Testing, Security & Quality Assurance
Orchestrates: e2e-testing-expert, secure-fuzz-testing, coderabbit
Goal: Validate core business logic and guarantee security before deployment.
Steps:
- End-to-End Testing (
e2e-testing-expert): Write Playwright tests for critical paths: Signup, Login, Stripe Checkout, and Workspace Invitation.
- Security & Fuzzing (
secure-fuzz-testing): Write coverage-guided fuzz tests for any custom data parsers, file uploads, or binary data streams to prevent memory leaks and unexpected crashes.
- Automated Review (
coderabbit): Configure CodeRabbit to automatically review all PRs going into main, ensuring code quality and summarizing architectural changes.
Checklist:
PHASE 9: Production Hardening & Cloud Deployment
Orchestrates: production-ready-hardener, cloud-hosting-expert, auto-doc-updater, saas-mvp-launcher
Goal: Harden the application and deploy to Edge/Cloud architecture.
Steps:
- Hardening: Run the full
production-ready-hardener audit.
- Edge Deployment (
cloud-hosting-expert):
- Deploy to Vercel/Cloudflare.
- Configure Edge Middleware for tenant identification (e.g., rewriting
tenant1.myapp.com).
- Implement custom domains using Cloudflare for SaaS.
- Pre-launch: Update
CHANGELOG.md and complete the launch checklist.
Checklist:
SaaS Transformation Report Format
After completing all 9 phases, compile a SaaS Transformation Report:
# SaaS Transformation Report
## Executive Summary
Overall transformation completeness (0-100%) with readiness grade (A/B/C/D/F).
## Phase Scores
| Phase | Score | Status |
|-------|-------|--------|
| 1. Discovery & Architecture Analysis | XX/100 | ✅/⚠️/🔴 |
| 2. Multi-Tenancy Foundation | XX/100 | ✅/⚠️/🔴 |
| 3. Authentication & Authorization | XX/100 | ✅/⚠️/🔴 |
| 4. Billing & Subscription | XX/100 | ✅/⚠️/🔴 |
| 5. Workspace & Team Management | XX/100 | ✅/⚠️/🔴 |
| 6. SaaS Frontend & Landing | XX/100 | ✅/⚠️/🔴 |
| 7. API Layer & Feature Gating | XX/100 | ✅/⚠️/🔴 |
| 8. Testing, Security & QA | XX/100 | ✅/⚠️/🔴 |
| 9. Production Hardening & Cloud | XX/100 | ✅/⚠️/🔴 |
## 📋 Recommended Next Steps
Prioritized action items for post-launch iteration.
Scoring Methodology
Each phase is scored 0-100 based on checklist completion.
Overall Score = Weighted average:
- Discovery (5%) + Multi-Tenancy (20%) + Auth (10%) + Billing (20%) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Testing (5%) + Production (10%)
Bahasa Indonesia
Deskripsi
SaaS Transformer adalah skill orkestrator utama yang memandu transformasi lengkap aplikasi biasa menjadi platform SaaS berfitur lengkap. Berbeda dengan saas-mvp-launcher (yang membangun dari nol) atau saas-multi-tenant (yang hanya menangani isolasi data), skill ini mengambil aplikasi yang sudah berjalan dan secara sistematis menambahkan setiap lapisan yang diperlukan untuk menjadikannya produk SaaS komersial.
Skill ini TIDAK menggantikan skill individual — ia mengoordinasikan mereka ke dalam alur kerja transformasi terstruktur 9 fase.
Peta Skill yang Diorkestrasi
| Fase | Skill yang Digunakan | Fokus |
|---|
| 1. Discovery & Arsitektur | app-analyzer-optimizer, prd-architect, mpa-orchestrator, bun-runtime-expert | Audit codebase, MPA vs SPA, evaluasi Bun |
| 2. Fondasi Multi-Tenancy | saas-multi-tenant, supabase-migration, supabase-security-expert | Shared/Isolated Schema, RLS, isolasi data |
| 3. Autentikasi & Otorisasi | fullstack-expert, supabase-security-expert, firebase-security-expert | OAuth/OIDC, RBAC, JWT claims |
| 4. Billing & Langganan | saas-billing, saas-mvp-launcher, fullstack-expert, senior-frontend | Stripe/Midtrans, webhook, dunning |
| 5. Workspace & Tim | saas-multi-tenant, senior-frontend, ui-ux-pro-max | Invite, roles, onboarding |
| 6. Frontend SaaS & Landing | senior-frontend, tanstack-query-expert, multiple-entry-points, tailwind-expert, seo-aeo-landing-page-writer, seo | App shell, TanStack Query state, marketing |
| 7. API & Feature Gating | fullstack-expert, scalability-clean-code, senior-fullstack | Versioning, rate limit, usage metering |
| 8. Pengujian, Keamanan & QA | e2e-testing-expert, secure-fuzz-testing, coderabbit | Playwright E2E, Fuzz testing, AI Code Review |
| 9. Pengerasan Produksi & Cloud | production-ready-hardener, cloud-hosting-expert, auto-doc-updater | Edge middleware, Vercel/Cloudflare, dokumentasi |
Kondisi Pemicu
Aktifkan skill ini ketika pengguna:
- Memiliki aplikasi yang sudah ada dan ingin mengkonversinya menjadi produk SaaS.
- Meminta untuk "menambahkan multi-tenancy", "menambahkan billing/langganan", "jadikan ini SaaS", "tambahkan manajemen tim", atau permintaan serupa.
- Ingin menambahkan isolasi berbasis workspace/organisasi ke aplikasi yang sudah ada.
- Perlu menambahkan tier harga, batas penggunaan, atau pembatasan fitur ke produk yang sudah ada.
- Meminta "audit SaaS" atau "pemeriksaan kesiapan SaaS" pada aplikasi yang sudah ada.
Protokol Eksekusi
Ketika skill ini dipicu, jalankan 9 fase transformasi secara berurutan. Setiap fase menghasilkan temuan dan perubahan kode. Di akhir, compile sebuah Laporan Transformasi SaaS.
Penting: Sebelum memulai, jalankan script saas_transformation_scanner.py untuk menilai kondisi aplikasi saat ini dan menentukan fase mana yang membutuhkan paling banyak pekerjaan.
FASE 1: Discovery & Analisis Arsitektur
Mengorkestrasi: app-analyzer-optimizer, prd-architect, brainstorming, mpa-orchestrator, bun-runtime-expert
FASE 2: Fondasi Multi-Tenancy
Mengorkestrasi: saas-multi-tenant, supabase-migration, supabase-security-expert (untuk RLS Shared Schema)
FASE 3: Autentikasi & Otorisasi
Mengorkestrasi: fullstack-expert, supabase-security-expert, firebase-security-expert
FASE 4: Billing & Langganan
Mengorkestrasi: saas-mvp-launcher, fullstack-expert, senior-frontend
FASE 5: Workspace & Manajemen Tim
Mengorkestrasi: saas-multi-tenant, senior-frontend, ui-ux-pro-max
FASE 6: Frontend SaaS & Landing
Mengorkestrasi: senior-frontend, tanstack-query-expert, multiple-entry-points, tailwind-expert, seo-aeo-landing-page-writer, seo, hig
FASE 7: API & Feature Gating
Mengorkestrasi: fullstack-expert, scalability-clean-code, senior-fullstack
FASE 8: Pengujian, Keamanan & QA
Mengorkestrasi: e2e-testing-expert, secure-fuzz-testing, coderabbit
FASE 9: Pengerasan Produksi & Deployment Cloud
Mengorkestrasi: production-ready-hardener, cloud-hosting-expert, auto-doc-updater, saas-mvp-launcher
Metodologi Penilaian
Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
- 95-100: Selesai ✅
- 80-94: Hampir selesai, gap minor ⚠️
- 60-79: Item signifikan hilang 🟡
- Di bawah 60: Fase belum diimplementasikan 🔴
Skor Keseluruhan = Rata-rata berbobot:
- Discovery (5%) + Multi-Tenancy (20%) + Auth (10%) + Billing (20%) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Pengujian (5%) + Produksi (10%)
Referensi Dokumentasi