SaaS Transformer

SkillDev tools

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.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the SaaS Transformer skill

What this skill tells your AI

The instructions your AI receives, as published by roedyrustam/vibes-plug in skills/saas-transformer/SKILL.md and read by ahel’s review.

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with relevant domain skills like brainstorming, zero-to-prod-orchestrator, and project-context-mapper to ensure cohesive execution.

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 ─────────────┐  │
│  │  • session-context-loader (Project context & blueprint)    │  │
│  │  • app-analyzer-optimizer (Codebase audit & bottlenecks)   │  │
│  │  • prd-architect (SaaS PRD & tier definitions)             │  │
│  │  • brainstorming (Architecture pivot ideation)            │  │
│  │  • mpa-orchestrator / spa-orchestrator (App architecture)  │  │
│  │  • bun-runtime-expert (Runtime performance evaluation)    │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 2: Multi-Tenancy Foundation ──────────────────────┐  │
│  │  • saas-multi-tenant (Data isolation & tenancy models)    │  │
│  │  • database-orm-expert (Schema migration & Prisma/Drizzle) │  │
│  │  • edge-serverless-db-expert (Neon/D1 connection pool)    │  │
│  │  • supabase-migration (Migrations & SQL policies)         │  │
│  │  • supabase-security-expert (Shared schema RLS policies)  │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 3: Authentication & Authorization ────────────────┐  │
│  │  • authentication-identity-expert (OAuth2, RBAC/ABAC)     │  │
│  │  • fullstack-expert (Custom claims & session validation)   │  │
│  │  • supabase-security-expert (JWT claims & RLS auth sync)  │  │
│  │  • firebase-security-expert (Rules & App Check setup)     │  │
│  │  • zero-trust-secret-vault (Secret management & rotation)  │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 4: Billing & Subscription ────────────────────────┐  │
│  │  • saas-billing (Subscription state machine & webhooks)    │  │
│  │  • payment-gateway-expert (Stripe, LemonSqueezy, Midtrans) │  │
│  │  • doku-payment-gateway (DOKU QRIS, VA & checkout APIs)    │  │
│  │  • saas-mvp-launcher (Pricing tier structure & checkout)   │  │
│  │  • email-notification-expert (Invoice & trial emails)      │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 5: Workspace & Team Management ───────────────────┐  │
│  │  • saas-multi-tenant (Workspace CRUD & membership models)  │  │
│  │  • form-validation-expert (Invite forms & validations)    │  │
│  │  • email-notification-expert (Transactional invite emails) │  │
│  │  • ui-components-expert (Workspace switcher & settings UI) │  │
│  │  • senior-frontend (App shell & settings layout)           │  │
│  │  • ui-ux-pro-max (Design system & accessible components)   │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 6: SaaS Frontend & Landing ───────────────────────┐  │
│  │  • modern-web-guidance (MANDATORY: Modern web standards)   │  │
│  │  • senior-frontend (App shell & responsive navigation)     │  │
│  │  • tanstack-query-expert (Async state & optimistic UI)     │  │
│  │  • multiple-entry-points (Separate app, landing & admin)   │  │
│  │  • tailwind-expert / design-system-architect (Tokens & UI) │  │
│  │  • seo-aeo-landing-page-writer (High-conversion landing)   │  │
│  │  • seo / seo-geo (SEO, AEO & AI search readiness)          │  │
│  │  • hig (Intuitive layout & visual consistency)             │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 7: API Layer, Workers & Feature Gating ───────────┐  │
│  │  • api-design-expert (REST, GraphQL, API versioning)       │  │
│  │  • rate-limit-abuse-prevention (Rate limiting & DDoS bot) │  │
│  │  • feature-flag-analytics-expert (Feature gating & flags)  │  │
│  │  • async-queue-temporal-expert (Background job queues)     │  │
│  │  • cron-scheduler-expert (Recurring cron metering tasks)   │  │
│  │  • js-backend-expert / go-programming-expert (APIs)        │  │
│  │  • mcp-server-architect (AI tool endpoints & schemas)      │  │
│  │  • multi-agent-orchestration (Autonomous agent workflows)  │  │
│  │  • scalability-clean-code (Clean architecture & SOLID)    │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 8: Testing, Security & Quality Assurance ─────────┐  │
│  │  • e2e-testing-expert (Playwright E2E & Vitest flows)      │  │
│  │  • browser-automation-expert (Visual regression testing)   │  │
│  │  • secure-fuzz-testing (Input & stream parser fuzzing)     │  │
│  │  • error-resilience-expert (Retry logic & circuit breakers)│  │
│  │  • logging-error-tracking-expert (Structured logs & Sentry)│  │
│  │  • coderabbit (AI code review & PR summarization)          │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
│  ┌─── PHASE 9: Production Hardening, Cloud & Handoff ─────────┐  │
│  │  • production-ready-hardener (Comprehensive production audit)│
│  │  • cloud-hosting-expert (Edge middleware & custom domains) │  │
│  │  • ci-cd-devops-architect (Deployment pipelines & IaC)     │  │
│  │  • data-telemetry-expert (Observability & PostHog metrics) │  │
│  │  • performance-web-vitals (Lighthouse & Core Web Vitals)   │  │
│  │  • session-handoff-resume (Save state checkpoint)          │  │
│  │  • auto-doc-updater (CHANGELOG & BLUEPRINT automation)     │  │
│  └────────────────────────────────────────────────────────────┘  │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘

Trigger Conditions

Activate this skill when the user:

  1. Has an existing application and wants to convert it into a SaaS product.
  2. Asks to "add multi-tenancy", "add billing/subscriptions", "make this a SaaS", "add team management", or similar requests that imply SaaS transformation.
  3. Wants to add workspace/organization-based isolation to an existing app.
  4. Needs to add pricing tiers, usage limits, or feature gating to an existing product.
  5. 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: session-context-loader, app-analyzer-optimizer, prd-architect, brainstorming, mpa-orchestrator, spa-orchestrator, bun-runtime-expert

Goal: Understand the existing application and plan the transformation, including architectural pivots.

Steps:

  1. 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
  2. Evaluate Core Architecture Shifts:
    • Consider mpa-orchestrator / spa-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?
  3. 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:

  • All existing database tables mapped
  • Architecture pivot decisions finalized (MPA vs SPA, Node vs Bun)
  • Target pricing tiers defined (at least Free + 1 paid tier)
  • Tenancy model decided (shared-schema / schema-per-tenant)
  • Auth & Billing providers selected

PHASE 2: Multi-Tenancy Foundation

Orchestrates: saas-multi-tenant, database-orm-expert, edge-serverless-db-expert, supabase-migration, supabase-security-expert (for Shared Schema RLS)

Goal: Add tenant isolation to the database layer.

Checklist:

  • Core SaaS tables created (workspaces, workspace_members, workspace_invitations)
  • Decide on Tenancy Model (Shared Schema vs Isolated Schema)
  • Add tenant_id / workspace_id to all scoped tables (if Shared Schema) or configure dynamic routing (if Isolated Schema) using database-orm-expert
  • Apply RLS policies to restrict data access by tenant (if Shared Schema) via supabase-security-expert
  • Edge database pooling and serverless connection management configured via edge-serverless-db-expert
  • Tenant-aware middleware implemented
  • Existing data backfilled with default tenant

PHASE 3: Authentication & Authorization

Orchestrates: authentication-identity-expert, fullstack-expert, supabase-security-expert, firebase-security-expert, zero-trust-secret-vault

Goal: Implement production-grade auth with role-based access control and zero-trust secret management.

Checklist:

  • Auth provider configured with email + at least 1 OAuth provider using authentication-identity-expert
  • RBAC roles defined (owner, admin, member, viewer)
  • Authorization middleware protects all routes/endpoints
  • JWT custom claims include workspace_id and role
  • Session Management Optimization: Implement Edge-ready session validation (e.g., Redis or JWT) to minimize database lookups
  • API keys and secrets stored and rotated securely via zero-trust-secret-vault

PHASE 4: Billing & Subscription

Orchestrates: saas-billing, payment-gateway-expert, doku-payment-gateway, saas-mvp-launcher, fullstack-expert, senior-frontend, email-notification-expert

Goal: Integrate payment processing, local billing sync, and automated transactional communications.

Checklist:

  • Pricing tiers defined with Stripe / LemonSqueezy / DOKU products & prices
  • Subscription table created with proper multi-gateway schema via saas-billing
  • Payment gateway Checkout integration working (subscribe & upgrade flows) via payment-gateway-expert or doku-payment-gateway
  • All critical webhooks handled with idempotency (payment succeeded, subscription updated, cancelled)
  • Customer portal accessible (manage subscription, payment methods, invoices)
  • Trial period implemented with expiry notifications sent via email-notification-expert

PHASE 5: Workspace & Team Management

Orchestrates: saas-multi-tenant, form-validation-expert, email-notification-expert, ui-components-expert, senior-frontend, ui-ux-pro-max

Goal: Build workspace creation, team invitations, role management, and settings UI.

Checklist:

  • Workspace CRUD operations working with strict validation (form-validation-expert)
  • Workspace switching UI in navbar (ui-components-expert)
  • Email invitation flow with secure token link sent via email-notification-expert
  • Member role management (view, change, remove)
  • Team size limits enforced by plan

PHASE 6: SaaS Frontend & Landing

Orchestrates: modern-web-guidance, senior-frontend, tanstack-query-expert, multiple-entry-points, tailwind-expert, design-system-architect, seo-aeo-landing-page-writer, seo, seo-geo, hig

Goal: Build the SaaS frontend: app shell, dashboard, marketing pages, and super admin panel.

Steps:

  1. Modern Web Standards (modern-web-guidance): MANDATORY - Always consult Google's modern web guidance before building frontend features to ensure the use of modern APIs, performance standards, and up-to-date best practices.
  2. Architecture Separation (multiple-entry-points): Separate authenticated SaaS application from marketing pages and the Super Admin dashboard (which MUST be deployed on a separate subdomain like admin.example.com for application management).
  3. 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).
  4. App shell / Layout: Authenticated layout with sidebar navigation, breadcrumbs, and workspace context.
  5. Marketing / Landing page: Convert users with a highly optimized, SEO/GEO friendly landing page created with seo-aeo-landing-page-writer.

Checklist:

  • App shell with sidebar, header, workspace switcher
  • Advanced data fetching with TanStack Query (no raw useEffects)
  • Design system tokens configured with design-system-architect / tailwind-expert
  • Settings pages (account, workspace, team, billing)
  • Landing page with pricing and social proof
  • MANDATORY: Automatically scaffold standard pages (About, Profile, Contact, Terms of Reference/Service, Privacy Policy).
  • Super Admin dashboard deployed on a separate subdomain
  • SEO meta tags and Structured data on all public pages (seo / seo-geo)

PHASE 7: API Layer, Background Workers & Feature Gating

Orchestrates: api-design-expert, rate-limit-abuse-prevention, feature-flag-analytics-expert, async-queue-temporal-expert, cron-scheduler-expert, js-backend-expert, go-programming-expert, mcp-server-architect, multi-agent-orchestration, scalability-clean-code

Goal: Add API versioning, rate limiting, background job queues, and plan-based feature gating.

Checklist:

  • API versioning implemented (/api/v1/) with OpenAPI specs (api-design-expert)
  • Rate limiting and bot protection configured per plan via rate-limit-abuse-prevention
  • Feature flag & gating middleware configured per subscription tier via feature-flag-analytics-expert
  • Usage metering tracking API calls, storage, members, and background jobs
  • Durable workflow background jobs configured via async-queue-temporal-expert / cron-scheduler-expert
  • MCP Server endpoints exposed for AI agents via mcp-server-architect

PHASE 8: Testing, Security & Quality Assurance

Orchestrates: e2e-testing-expert, browser-automation-expert, secure-fuzz-testing, error-resilience-expert, logging-error-tracking-expert, coderabbit

Goal: Validate core business logic, ensure fault tolerance, and guarantee security before deployment.

Steps:

  1. End-to-End Testing (e2e-testing-expert): Write Playwright tests for critical paths: Signup, Login, Stripe Checkout, and Workspace Invitation.
  2. Visual & Automation Audit (browser-automation-expert): Validate responsive UI workflows and visual regression.
  3. Security & Fuzzing (secure-fuzz-testing): Write coverage-guided fuzz tests for custom data parsers, file uploads, or binary data streams to prevent memory leaks and unexpected crashes.
  4. Resilience & Observability (error-resilience-expert, logging-error-tracking-expert): Configure circuit breakers, retry strategies, structured logging, and Sentry error tracking.
  5. Automated Review (coderabbit): Configure CodeRabbit to automatically review all PRs going into main, ensuring code quality and summarizing architectural changes.

Checklist:

  • Playwright E2E tests passing for authentication & billing flows
  • Fuzz tests implemented for critical parsers/endpoints
  • Circuit breakers and retries configured for third-party API dependencies
  • Structured logging and error tracking (Sentry) active
  • .coderabbit.yaml configured for automated PR reviews
  • All unit/integration tests (Vitest) passing in CI

PHASE 9: Production Hardening, Cloud Deployment & Handoff

Orchestrates: production-ready-hardener, cloud-hosting-expert, ci-cd-devops-architect, data-telemetry-expert, performance-web-vitals, session-handoff-resume, auto-doc-updater

Goal: Harden the application, deploy to Edge/Cloud architecture, establish CI/CD pipelines, and document state.

Steps:

  1. Hardening: Run the full production-ready-hardener audit.
  2. Edge & Cloud Deployment (cloud-hosting-expert, ci-cd-devops-architect):
    • Deploy to Vercel/Cloudflare with CI/CD GitHub Actions pipelines.
    • Configure Edge Middleware for tenant identification (e.g., rewriting tenant1.myapp.com).
    • Implement custom domains using Cloudflare for SaaS.
  3. Performance & Telemetry (performance-web-vitals, data-telemetry-expert): Ensure Core Web Vitals optimization and active telemetry tracking (OpenTelemetry / PostHog).
  4. State Checkpoint & Documentation (session-handoff-resume, auto-doc-updater): Save ultra-compact state checkpoint and update CHANGELOG.md and BLUEPRINT.md.

Checklist:

  • Production-ready-hardener audit score ≥ 85
  • Edge Middleware configured for tenant routing
  • Payment gateway live mode configured and tested
  • Observability, telemetry, and error monitoring active
  • Core Web Vitals pass Performance benchmarks (LCP < 2.5s, INP < 200ms)
  • Documentation updated (CHANGELOG, BLUEPRINT, README)
  • Session state checkpoint saved via session-handoff-resume

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

Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:

  • 95-100: Complete ✅
  • 80-94: Almost complete, minor gaps ⚠️
  • 60-79: Significant items missing 🟡
  • Below 60: Phase not implemented 🔴

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

Integrasi Orkestrasi

Terhubung dan mengorkestrasi skill domain yang relevan seperti brainstorming, zero-to-prod-orchestrator, dan project-context-mapper untuk memastikan eksekusi yang kohesif.

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

FaseSkill yang DigunakanFokus Utama
1. Discovery & Arsitektursession-context-loader, app-analyzer-optimizer, prd-architect, brainstorming, mpa-orchestrator, spa-orchestrator, bun-runtime-expertMuat konteks, audit codebase, evaluasi MPA vs SPA & Bun runtime
2. Fondasi Multi-Tenancysaas-multi-tenant, database-orm-expert, edge-serverless-db-expert, supabase-migration, supabase-security-expertModel Shared/Isolated Schema, RLS, ORM schema & edge database pooling
3. Autentikasi & Otorisasiauthentication-identity-expert, fullstack-expert, supabase-security-expert, firebase-security-expert, zero-trust-secret-vaultOAuth2/OIDC, RBAC/ABAC, JWT custom claims, session Edge & secret vault
4. Billing & Langganansaas-billing, payment-gateway-expert, doku-payment-gateway, saas-mvp-launcher, fullstack-expert, senior-frontend, email-notification-expertStripe/Midtrans/DOKU, webhook idempotency, sync billing & notifikasi email
5. Workspace & Timsaas-multi-tenant, form-validation-expert, email-notification-expert, ui-components-expert, senior-frontend, ui-ux-pro-maxInvite flow, token link, manajemen role, UI workspace switcher
6. Frontend SaaS & Landingmodern-web-guidance, senior-frontend, tanstack-query-expert, multiple-entry-points, tailwind-expert, design-system-architect, seo-aeo-landing-page-writer, seo, seo-geo, higStandar web modern, Separation (App/Landing/Admin), TanStack Query state, landing page SEO
7. API & Feature Gatingapi-design-expert, rate-limit-abuse-prevention, feature-flag-analytics-expert, async-queue-temporal-expert, cron-scheduler-expert, js-backend-expert, go-programming-expert, mcp-server-architect, multi-agent-orchestration, scalability-clean-codeREST/OpenAPI, rate limiting, feature gating, background jobs & MCP tools
8. Pengujian, Keamanan & QAe2e-testing-expert, browser-automation-expert, secure-fuzz-testing, error-resilience-expert, logging-error-tracking-expert, coderabbitPlaywright E2E, fuzz testing, error resilience (retry/circuit breaker) & CodeRabbit
9. Pengerasan Produksi & Cloudproduction-ready-hardener, cloud-hosting-expert, ci-cd-devops-architect, data-telemetry-expert, performance-web-vitals, session-handoff-resume, auto-doc-updaterEdge middleware, CI/CD pipeline, Core Web Vitals, checkpoint & auto-doc

Shortened here. Read the whole file on GitHub.

Signals

GitHub stars
50
Forks
10
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
saas-transformer
Source
github.com/roedyrustam/vibes-plug