vibes-plug 1.0.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/.claude/rules/vibes-plug-core.md +32 -0
  2. package/.cursor/rules/vibes-plug-core.mdc +51 -0
  3. package/.cursorrules +42 -0
  4. package/AGENTS.md +96 -0
  5. package/BLUEPRINT.md +309 -125
  6. package/CHANGELOG.md +183 -1
  7. package/CLAUDE.md +70 -0
  8. package/LICENSE +1 -1
  9. package/README.md +641 -263
  10. package/index.js +19 -0
  11. package/package.json +61 -25
  12. package/plugin.json +24 -7
  13. package/scripts/generate_swarm_gif.py +295 -0
  14. package/scripts/install.js +201 -0
  15. package/skills/accessibility-testing-expert/SKILL.md +116 -0
  16. package/skills/ai-cost-token-optimizer/SKILL.md +82 -0
  17. package/skills/ai-evals-benchmark-expert/SKILL.md +188 -0
  18. package/skills/ai-llm-integration-expert/SKILL.md +147 -122
  19. package/skills/ai-media-generation-expert/SKILL.md +172 -0
  20. package/skills/ai-prompt-engineering-expert/SKILL.md +84 -0
  21. package/skills/angular-expert/SKILL.md +148 -0
  22. package/skills/api-design-expert/SKILL.md +316 -309
  23. package/skills/api-gateway-proxy-expert/SKILL.md +81 -0
  24. package/skills/app-analyzer-optimizer/SKILL.md +195 -188
  25. package/skills/apple-ecosystem-expert/SKILL.md +145 -0
  26. package/skills/{asisten_ramah → asisten-ramah}/SKILL.md +7 -1
  27. package/skills/astro-framework-expert/SKILL.md +200 -0
  28. package/skills/async-queue-temporal-expert/SKILL.md +240 -0
  29. package/skills/authentication-identity-expert/SKILL.md +279 -45
  30. package/skills/auto-doc-updater/SKILL.md +219 -203
  31. package/skills/autonomous-chaos-monkey/SKILL.md +63 -0
  32. package/skills/autonomous-red-teamer/SKILL.md +203 -0
  33. package/skills/autonomous-tdd-debugger/SKILL.md +71 -0
  34. package/skills/background-jobs-queue-expert/SKILL.md +235 -0
  35. package/skills/biome-linter-formatter-expert/SKILL.md +89 -0
  36. package/skills/blockchain-web3-expert/SKILL.md +115 -0
  37. package/skills/bootstrap-to-modern/SKILL.md +93 -86
  38. package/skills/brainstorming/SKILL.md +381 -353
  39. package/skills/browser-automation-expert/SKILL.md +222 -0
  40. package/skills/bun-runtime-expert/SKILL.md +7 -1
  41. package/skills/chatbot-messaging-expert/SKILL.md +114 -0
  42. package/skills/ci-cd-devops-architect/SKILL.md +81 -45
  43. package/skills/cloud-hosting-expert/SKILL.md +249 -243
  44. package/skills/coderabbit/SKILL.md +197 -191
  45. package/skills/compliance-gdpr-privacy-expert/SKILL.md +85 -0
  46. package/skills/cron-scheduler-expert/SKILL.md +304 -0
  47. package/skills/data-pipeline-etl-expert/SKILL.md +84 -0
  48. package/skills/data-telemetry-expert/SKILL.md +218 -212
  49. package/skills/data-visualization-expert/SKILL.md +154 -0
  50. package/skills/database-migration-versioning-expert/SKILL.md +90 -0
  51. package/skills/database-orm-expert/SKILL.md +303 -293
  52. package/skills/dependency-upgrade-migrator/SKILL.md +301 -0
  53. package/skills/design-system-architect/SKILL.md +278 -242
  54. package/skills/desktop-electron-expert/SKILL.md +128 -0
  55. package/skills/documentation-site-expert/SKILL.md +59 -0
  56. package/skills/doku-mcp-server/SKILL.md +257 -0
  57. package/skills/doku-payment-gateway/SKILL.md +233 -0
  58. package/skills/domain-driven-design-expert/SKILL.md +82 -0
  59. package/skills/e2e-testing-expert/SKILL.md +320 -314
  60. package/skills/ecommerce-expert/SKILL.md +87 -0
  61. package/skills/edge-serverless-db-expert/SKILL.md +99 -0
  62. package/skills/email-notification-expert/SKILL.md +368 -0
  63. package/skills/error-resilience-expert/SKILL.md +486 -0
  64. package/skills/event-driven-architect/SKILL.md +86 -80
  65. package/skills/feature-flag-analytics-expert/SKILL.md +66 -0
  66. package/skills/file-upload-media-expert/SKILL.md +437 -0
  67. package/skills/firebase-security-expert/SKILL.md +7 -1
  68. package/skills/form-validation-expert/SKILL.md +407 -0
  69. package/skills/fullstack-expert/SKILL.md +260 -201
  70. package/skills/fullstack-expert/references/api_design_guide.md +466 -466
  71. package/skills/fullstack-expert/references/multi_language_backend.md +528 -528
  72. package/skills/fullstack-expert/scripts/api_contract_validator.py +253 -253
  73. package/skills/fullstack-expert/scripts/architecture_analyzer.py +326 -326
  74. package/skills/gemini-agent-booster/SKILL.md +142 -104
  75. package/skills/geospatial-maps-expert/SKILL.md +80 -0
  76. package/skills/global-a11y-i18n-expert/SKILL.md +86 -80
  77. package/skills/glsl-shader-expert/SKILL.md +107 -0
  78. package/skills/go-programming-expert/SKILL.md +300 -294
  79. package/skills/graph-rag-knowledge-expert/SKILL.md +159 -0
  80. package/skills/graphql-apollo-expert/SKILL.md +114 -0
  81. package/skills/headless-cms-expert/SKILL.md +181 -0
  82. package/skills/hig/SKILL.md +193 -187
  83. package/skills/js-backend-expert/SKILL.md +218 -191
  84. package/skills/legacy-code-translator/SKILL.md +71 -0
  85. package/skills/local-slm-edge-ai-expert/SKILL.md +167 -0
  86. package/skills/logging-error-tracking-expert/SKILL.md +344 -0
  87. package/skills/mcp-client-orchestrator/SKILL.md +76 -0
  88. package/skills/mcp-server-architect/SKILL.md +226 -126
  89. package/skills/micro-frontend-architect/SKILL.md +112 -0
  90. package/skills/mobile-expo-expert/SKILL.md +191 -185
  91. package/skills/mobile-push-notification-expert/SKILL.md +71 -0
  92. package/skills/modern-css-native-expert/SKILL.md +189 -0
  93. package/skills/monday-design-aesthetic/SKILL.md +72 -66
  94. package/skills/monorepo-architect/SKILL.md +232 -226
  95. package/skills/mpa-orchestrator/SKILL.md +120 -101
  96. package/skills/multi-agent-orchestration/SKILL.md +173 -153
  97. package/skills/multiple-entry-points/SKILL.md +91 -55
  98. package/skills/mvc-expert/SKILL.md +237 -231
  99. package/skills/n8n-automation-expert/SKILL.md +89 -0
  100. package/skills/nextjs-app-router-expert/SKILL.md +148 -0
  101. package/skills/openapi-swagger-codegen-expert/SKILL.md +67 -0
  102. package/skills/payment-gateway-expert/SKILL.md +129 -45
  103. package/skills/pdf-document-generation-expert/SKILL.md +91 -0
  104. package/skills/performance-web-vitals/SKILL.md +337 -331
  105. package/skills/post-quantum-crypto-migrator/SKILL.md +57 -0
  106. package/skills/prd-architect/SKILL.md +206 -190
  107. package/skills/proactive-background-watcher/SKILL.md +68 -0
  108. package/skills/production-ready-hardener/PRODUCTION_READINESS_REPORT.md +67 -0
  109. package/skills/production-ready-hardener/SKILL.md +461 -468
  110. package/skills/production-ready-hardener/references/production_checklist.md +161 -161
  111. package/skills/production-ready-hardener/scripts/production_readiness_scanner.py +881 -875
  112. package/skills/project-context-mapper/SKILL.md +85 -0
  113. package/skills/pwa-offline-first-expert/SKILL.md +185 -0
  114. package/skills/python-programming-expert/SKILL.md +407 -270
  115. package/skills/rate-limit-abuse-prevention/SKILL.md +377 -0
  116. package/skills/realtime-collaboration-expert/SKILL.md +99 -45
  117. package/skills/rich-text-editor-expert/SKILL.md +177 -0
  118. package/skills/rust-programming-expert/SKILL.md +240 -234
  119. package/skills/saas-billing/SKILL.md +382 -376
  120. package/skills/saas-multi-tenant/SKILL.md +256 -236
  121. package/skills/saas-mvp-launcher/SKILL.md +30 -1
  122. package/skills/saas-transformer/SKILL.md +499 -445
  123. package/skills/saas-transformer/references/billing_integration_guide.md +401 -401
  124. package/skills/saas-transformer/references/feature_gating_patterns.md +137 -137
  125. package/skills/saas-transformer/references/saas_transformation_checklist.md +121 -121
  126. package/skills/saas-transformer/scripts/saas_transformation_scanner.py +39 -29
  127. package/skills/scalability-clean-code/SKILL.md +234 -228
  128. package/skills/search-engine-expert/SKILL.md +89 -0
  129. package/skills/secure-fuzz-testing/SKILL.md +7 -1
  130. package/skills/self-evolving-memory-graph/SKILL.md +91 -0
  131. package/skills/self-healing-cloud-orchestrator/SKILL.md +57 -0
  132. package/skills/senior-frontend/SKILL.md +85 -105
  133. package/skills/seo/SKILL.md +258 -224
  134. package/skills/session-context-loader/SKILL.md +83 -0
  135. package/skills/session-handoff-resume/SKILL.md +163 -157
  136. package/skills/{skill_baru → skill-baru}/SKILL.md +177 -146
  137. package/skills/solidjs-expert/SKILL.md +80 -0
  138. package/skills/spa-orchestrator/SKILL.md +306 -287
  139. package/skills/sse-websocket-streaming-expert/SKILL.md +93 -0
  140. package/skills/state-management-expert/SKILL.md +277 -271
  141. package/skills/supabase-migration/SKILL.md +47 -1
  142. package/skills/supabase-security-expert/SKILL.md +248 -242
  143. package/skills/svelte-sveltekit-expert/SKILL.md +91 -0
  144. package/skills/svg-animation-motion-expert/SKILL.md +115 -0
  145. package/skills/tailwind-expert/SKILL.md +139 -187
  146. package/skills/tanstack-query-expert/SKILL.md +204 -198
  147. package/skills/tauri-expert/SKILL.md +7 -1
  148. package/skills/token-saver/SKILL.md +118 -110
  149. package/skills/typescript-expert/SKILL.md +329 -278
  150. package/skills/ui-components-expert/SKILL.md +166 -63
  151. package/skills/ui-ux-pro-max/SKILL.md +221 -200
  152. package/skills/vector-db-rag-expert/SKILL.md +208 -0
  153. package/skills/vibe-code-gardener/SKILL.md +180 -172
  154. package/skills/visual-qa-vision-agent/SKILL.md +71 -0
  155. package/skills/voice-ai-realtime-agent/SKILL.md +202 -0
  156. package/skills/vue-frontend-expert/SKILL.md +132 -0
  157. package/skills/wasm-edge-computing-expert/SKILL.md +97 -0
  158. package/skills/web-3d-graphics-expert/SKILL.md +137 -0
  159. package/skills/web-game-engine-expert/SKILL.md +102 -0
  160. package/skills/web-scraper/SKILL.md +98 -146
  161. package/skills/website-design-cloner/SKILL.md +180 -0
  162. package/skills/webxr-ar-vr-expert/SKILL.md +123 -0
  163. package/skills/wordpress-headless-expert/SKILL.md +144 -0
  164. package/skills/zero-to-prod-orchestrator/SKILL.md +231 -180
  165. package/skills/zero-trust-secret-vault/SKILL.md +88 -0
  166. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  167. package/CONTRIBUTING.md +0 -199
  168. package/SECURITY.md +0 -21
  169. package/banner.png +0 -0
  170. package/skills/senior-fullstack/SKILL.md +0 -167
  171. package/skills/senior-fullstack/references/architecture_patterns.md +0 -160
  172. package/skills/senior-fullstack/references/development_workflows.md +0 -222
  173. package/skills/senior-fullstack/references/tech_stack_guide.md +0 -190
  174. package/skills/senior-fullstack/scripts/code_quality_analyzer.py +0 -114
  175. package/skills/senior-fullstack/scripts/fullstack_scaffolder.py +0 -114
  176. package/skills/senior-fullstack/scripts/project_scaffolder.py +0 -114
  177. package/skills/seo-aeo-landing-page-writer/SKILL.md +0 -97
  178. package/skills/seo-geo/SKILL.md +0 -188
  179. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-310.pyc +0 -0
  180. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
  181. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-310.pyc +0 -0
  182. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-312.pyc +0 -0
  183. package/skills/ui_ux_expert/SKILL.md +0 -114
@@ -1,446 +1,500 @@
1
- ---
2
- name: saas-transformer
3
- 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."
1
+ ---
2
+ name: saas-transformer
3
+ 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."
4
4
  author: "Roedy Rustam"
5
- ---
6
-
7
- # SaaS Transformer
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- 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.
18
-
19
- This skill does NOT replace individual skills — it **coordinates** them into a structured, **9-phase** transformation workflow.
20
-
21
- ### Orchestrated Skills Map
22
-
23
- ```
24
- ┌──────────────────────────────────────────────────────────────────┐
25
- │ SAAS-TRANSFORMER │
26
- │ (Master Orchestrator — 9 Phases) │
27
- ├──────────────────────────────────────────────────────────────────┤
28
-
29
- ┌─── PHASE 1: Discovery & Architecture Analysis ─────────────┐
30
- │ │ • app-analyzer-optimizer (Audit architecture & codebase) │ │
31
- • prd-architect (Generate PRD for SaaS features) │ │
32
- │ • brainstorming (Validate transformation strategy) │
33
- │ │ • mpa-orchestrator (Evaluate MPA vs SPA architecture) │ │
34
- │ │ • bun-runtime-expert / go-programming-expert │ │
35
- └────────────────────────────────────────────────────────────┘
36
-
37
- ┌─── PHASE 2: Multi-Tenancy Foundation ──────────────────────┐
38
- │ │ • saas-multi-tenant (Shared/Isolated Schema, data isolation) │ │
39
- • supabase-migration (Database migrations)
40
- • supabase-security-expert (Audit RLS & RBAC) │ │
41
- └────────────────────────────────────────────────────────────┘
42
-
43
- ┌─── PHASE 3: Authentication & Authorization ────────────────┐
44
- │ │ • fullstack-expert (OAuth 2.0 / OIDC setup) │ │
45
- │ │ • js-backend-expert / go-programming-expert (Auth RBAC) │ │
46
- │ │ • supabase-security-expert (RBAC, Custom Claims) │ │
47
- │ └────────────────────────────────────────────────────────────┘ │
48
-
49
- │ ┌─── PHASE 4: Billing & Subscription ────────────────────────┐
50
- │ │ • saas-billing (Gateway integration, webhooks, dunning) │ │
51
- │ │ • saas-mvp-launcher (Stripe integration, pricing tiers) │ │
52
- │ │ • fullstack-expert (Webhook handling, idempotency) │ │
53
- │ │ • senior-frontend (Pricing page, customer portal UI) │ │
54
- └────────────────────────────────────────────────────────────┘
55
-
56
- ┌─── PHASE 5: Workspace & Team Management ───────────────────┐
57
- │ • saas-multi-tenant (Workspace model, member roles) │
58
- │ │ • design-system-architect (Radix/Base UI components) │ │
59
- │ │ • senior-frontend (Invite flow, settings UI) │ │
60
- │ │ • ui-ux-pro-max (Dashboard, onboarding UX) │ │
61
- └────────────────────────────────────────────────────────────┘
62
-
63
- ┌─── PHASE 6: SaaS Frontend & Marketing ─────────────────────┐
64
- • senior-frontend (App shell, dashboard, settings) │ │
65
- │ • design-system-architect (Tokens, Radix, CVA) │
66
- │ │ • tanstack-query-expert (State & optimistic updates) │ │
67
- │ │ • multiple-entry-points (Separate app vs landing page) │ │
68
- │ │ • tailwind-expert (Design system, responsive) │ │
69
- │ │ • seo-aeo-landing-page-writer (Conversion landing page) │ │
70
- │ │ • seo / seo-geo (SEO & AI search readiness, llms.txt) │ │
71
- └────────────────────────────────────────────────────────────┘
72
-
73
- ┌─── PHASE 7: API Layer, AI Tools & Feature Gating ──────────┐
74
- │ • js-backend-expert (Node 22, Bun, Fastify 5, Hono) │
75
- │ │ • go-programming-expert (Go 1.23+ microservices, gRPC) │ │
76
- │ │ • mcp-server-architect (MCP Server tools & Zod schemas) │ │
77
- │ │ • multi-agent-orchestration (LangGraph multi-agent teams)│ │
78
- │ │ • scalability-clean-code (Clean arch, SOLID) │ │
79
- └────────────────────────────────────────────────────────────┘
80
-
81
- ┌─── PHASE 8: Testing, Security & Quality Assurance ─────────┐
82
- │ │ • e2e-testing-expert (Playwright/Vitest coverage) │ │
83
- • secure-fuzz-testing (Validate parsers & data streams)
84
- • coderabbit (AI PR summarization & code review) │ │
85
- └────────────────────────────────────────────────────────────┘
86
-
87
- ┌─── PHASE 9: Production Hardening, Cloud & Handoff ─────────┐
88
- │ │ • production-ready-hardener (Full 7-phase hardening) │ │
89
- │ │ • cloud-hosting-expert (Edge middleware & custom domains)│ │
90
- │ │ • session-handoff-resume (Save state checkpoint) │ │
91
- │ │ • auto-doc-updater (CHANGELOG, BLUEPRINT) │ │
92
- └────────────────────────────────────────────────────────────┘
93
-
94
- └──────────────────────────────────────────────────────────────────┘
95
- ```
96
-
97
- ### Trigger Conditions
98
- Activate this skill when the user:
99
- 1. Has an existing application and wants to convert it into a SaaS product.
100
- 2. Asks to "add multi-tenancy", "add billing/subscriptions", "make this a SaaS", "add team management", or similar requests that imply SaaS transformation.
101
- 3. Wants to add workspace/organization-based isolation to an existing app.
102
- 4. Needs to add pricing tiers, usage limits, or feature gating to an existing product.
103
- 5. Asks for a "SaaS audit" or "SaaS readiness check" on an existing application.
104
-
105
- ### Execution Protocol
106
-
107
- 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**.
108
-
109
- > **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.
110
-
111
- ---
112
-
113
- #### PHASE 1: Discovery & Architecture Analysis
114
- **Orchestrates:** `app-analyzer-optimizer`, `prd-architect`, `brainstorming`, `mpa-orchestrator`, `bun-runtime-expert`
115
-
116
- **Goal:** Understand the existing application and plan the transformation, including architectural pivots.
117
-
118
- **Steps:**
119
- 1. **Audit the existing codebase** using `app-analyzer-optimizer`:
120
- - Map all database tables/models and their relationships
121
- - Identify authentication mechanism (if any)
122
- - List all API endpoints and their access patterns
123
- - Assess frontend architecture
124
-
125
- 2. **Evaluate Core Architecture Shifts**:
126
- - Consider `mpa-orchestrator`: Should we consolidate into a Single Repo MPA or split into SPA micro-apps?
127
- - Consider `bun-runtime-expert`: Is extreme performance required? Should we migrate to the Bun runtime?
128
-
129
- 3. **Generate a SaaS PRD** using `prd-architect`:
130
- - Define target customer segments and pricing tiers (Free, Pro, Enterprise)
131
- - Establish usage limits per plan
132
-
133
- **Deliverable:** SaaS Transformation Plan document.
134
-
135
- **Checklist:**
136
- - [ ] All existing database tables mapped
137
- - [ ] Architecture pivot decisions finalized (MPA vs SPA, Node vs Bun)
138
- - [ ] Target pricing tiers defined (at least Free + 1 paid tier)
139
- - [ ] Tenancy model decided (shared-schema / schema-per-tenant)
140
- - [ ] Auth & Billing providers selected
141
-
142
- ---
143
-
144
- #### PHASE 2: Multi-Tenancy Foundation
145
- **Orchestrates:** `saas-multi-tenant`, `supabase-migration`, `supabase-security-expert` (for Shared Schema RLS)
146
-
147
- **Goal:** Add tenant isolation to the database layer.
148
-
149
- **Checklist:**
150
- - [ ] Core SaaS tables created (workspaces, workspace_members, workspace_invitations)
151
- - [ ] Decide on Tenancy Model (Shared Schema vs Isolated Schema)
152
- - [ ] Add `tenant_id` to all scoped tables (if Shared Schema) or configure dynamic routing (if Isolated Schema)
153
- - [ ] Apply RLS policies to restrict data access by tenant (if Shared Schema)
154
- - [ ] Tenant-aware middleware implemented
155
- - [ ] Existing data backfilled with default tenant
156
-
157
- ---
158
-
159
- #### PHASE 3: Authentication & Authorization
160
- **Orchestrates:** `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert`
161
-
162
- **Goal:** Implement production-grade auth with role-based access.
163
-
164
- **Checklist:**
165
- - [ ] Auth provider configured with email + at least 1 OAuth provider
166
- - [ ] RBAC roles defined (owner, admin, member, viewer)
167
- - [ ] Authorization middleware protects all routes/endpoints
168
- - [ ] JWT custom claims include workspace_id and role
169
- - [ ] Session Management Optimization: Implement Edge-ready session validation (e.g., Redis or JWT) to minimize database lookups
170
-
171
- ---
172
-
173
- #### PHASE 4: Billing & Subscription
174
- **Orchestrates:** `saas-billing`, `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend`
175
-
176
- **Goal:** Integrate payment processing and subscription management.
177
-
178
- **Checklist:**
179
- - [ ] Pricing tiers defined with Stripe products/prices
180
- - [ ] Subscription table created with proper schema
181
- - [ ] Stripe Checkout integration working (subscribe flow)
182
- - [ ] All critical webhooks handled with idempotency
183
- - [ ] Customer portal accessible (manage subscription, invoices)
184
- - [ ] Trial period implemented with expiry notifications
185
-
186
- ---
187
-
188
- #### PHASE 5: Workspace & Team Management
189
- **Orchestrates:** `saas-multi-tenant`, `senior-frontend`, `ui-ux-pro-max`
190
-
191
- **Goal:** Build workspace creation, team invitations, and settings management.
192
-
193
- **Checklist:**
194
- - [ ] Workspace CRUD operations working
195
- - [ ] Workspace switching UI in navbar
196
- - [ ] Email invitation with unique token link
197
- - [ ] Member role management (view, change, remove)
198
- - [ ] Team size limits enforced by plan
199
-
200
- ---
201
-
202
- #### PHASE 6: SaaS Frontend & Landing
203
- **Orchestrates:** `senior-frontend`, `tanstack-query-expert`, `multiple-entry-points`, `tailwind-expert`, `seo-aeo-landing-page-writer`, `seo`, `seo-geo`, `hig`
204
-
205
- **Goal:** Build the SaaS frontend: app shell, dashboard, marketing pages, and super admin panel.
206
-
207
- **Steps:**
208
- 1. **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).
209
- 2. **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).
210
- 3. **App shell / Layout**: Authenticated layout with sidebar navigation, breadcrumbs, and workspace context.
211
- 4. **Marketing / Landing page**: Convert users with a highly optimized, SEO/GEO friendly landing page.
212
-
213
- **Checklist:**
214
- - [ ] App shell with sidebar, header, workspace switcher
215
- - [ ] Advanced data fetching with TanStack Query (no raw useEffects)
216
- - [ ] Settings pages (account, workspace, team, billing)
217
- - [ ] Landing page with pricing and social proof
218
- - [ ] Super Admin dashboard deployed on a separate subdomain
219
- - [ ] SEO meta tags and Structured data on all public pages
220
- - [ ] Consistent design system (colors, typography, spacing)
221
-
222
- ---
223
-
224
- #### PHASE 7: API Layer & Feature Gating
225
- **Orchestrates:** `fullstack-expert`, `scalability-clean-code`, `senior-fullstack`
226
-
227
- **Goal:** Add API versioning, rate limiting, and plan-based feature restrictions.
228
-
229
- **Checklist:**
230
- - [ ] API versioning implemented (/api/v1/)
231
- - [ ] Rate limiting configured per plan
232
- - [ ] Feature-check middleware on gated routes
233
- - [ ] Usage metering tracking API calls, storage, members
234
- - [ ] Warning notifications at 80% and 100% usage
235
-
236
- ---
237
-
238
- #### PHASE 8: Testing, Security & Quality Assurance
239
- **Orchestrates:** `e2e-testing-expert`, `secure-fuzz-testing`, `coderabbit`
240
-
241
- **Goal:** Validate core business logic and guarantee security before deployment.
242
-
243
- **Steps:**
244
- 1. **End-to-End Testing (`e2e-testing-expert`)**: Write Playwright tests for critical paths: Signup, Login, Stripe Checkout, and Workspace Invitation.
245
- 2. **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.
246
- 3. **Automated Review (`coderabbit`)**: Configure CodeRabbit to automatically review all PRs going into main, ensuring code quality and summarizing architectural changes.
247
-
248
- **Checklist:**
249
- - [ ] Playwright E2E tests passing for authentication & billing flows
250
- - [ ] Fuzz tests implemented for critical parsers/endpoints
251
- - [ ] `.coderabbit.yaml` configured for automated PR reviews
252
- - [ ] All unit/integration tests (Vitest) passing in CI
253
-
254
- ---
255
-
256
- #### PHASE 9: Production Hardening & Cloud Deployment
257
- **Orchestrates:** `production-ready-hardener`, `cloud-hosting-expert`, `auto-doc-updater`, `saas-mvp-launcher`
258
-
259
- **Goal:** Harden the application and deploy to Edge/Cloud architecture.
260
-
261
- **Steps:**
262
- 1. **Hardening**: Run the full `production-ready-hardener` audit.
263
- 2. **Edge Deployment (`cloud-hosting-expert`)**:
264
- - Deploy to Vercel/Cloudflare.
265
- - Configure Edge Middleware for tenant identification (e.g., rewriting `tenant1.myapp.com`).
266
- - Implement custom domains using Cloudflare for SaaS.
267
- 3. **Pre-launch**: Update `CHANGELOG.md` and complete the launch checklist.
268
-
269
- **Checklist:**
270
- - [ ] Production-ready-hardener audit score 85
271
- - [ ] Edge Middleware configured for tenant routing
272
- - [ ] Stripe live mode configured and tested
273
- - [ ] Error monitoring and analytics active
274
- - [ ] Documentation updated (CHANGELOG, BLUEPRINT, README)
275
- - [ ] Pre-launch checklist 100% complete
276
-
277
- ---
278
-
279
- ### SaaS Transformation Report Format
280
-
281
- After completing all 9 phases, compile a **SaaS Transformation Report**:
282
-
283
- ```markdown
284
- # SaaS Transformation Report
285
-
286
- ## Executive Summary
287
- Overall transformation completeness (0-100%) with readiness grade (A/B/C/D/F).
288
-
289
- ## Phase Scores
290
- | Phase | Score | Status |
291
- |-------|-------|--------|
292
- | 1. Discovery & Architecture Analysis | XX/100 | ✅/⚠️/🔴 |
293
- | 2. Multi-Tenancy Foundation | XX/100 | ✅/⚠️/🔴 |
294
- | 3. Authentication & Authorization | XX/100 | ✅/⚠️/🔴 |
295
- | 4. Billing & Subscription | XX/100 | ✅/⚠️/🔴 |
296
- | 5. Workspace & Team Management | XX/100 | ✅/⚠️/🔴 |
297
- | 6. SaaS Frontend & Landing | XX/100 | ✅/⚠️/🔴 |
298
- | 7. API Layer & Feature Gating | XX/100 | ✅/⚠️/🔴 |
299
- | 8. Testing, Security & QA | XX/100 | ✅/⚠️/🔴 |
300
- | 9. Production Hardening & Cloud | XX/100 | ✅/⚠️/🔴 |
301
-
302
- ## 📋 Recommended Next Steps
303
- Prioritized action items for post-launch iteration.
304
- ```
305
-
306
- ### Scoring Methodology
307
-
308
- Each phase is scored 0-100 based on checklist completion.
309
-
310
- **Overall Score** = Weighted average:
311
- - Discovery (5%) + Multi-Tenancy (**20%**) + Auth (10%) + Billing (**20%**) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Testing (5%) + Production (10%)
312
-
313
- ---
314
-
315
- <a name="bahasa-indonesia"></a>
316
- ## Bahasa Indonesia
317
-
318
- ### Deskripsi
319
- **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.
320
-
321
- Skill ini TIDAK menggantikan skill individual — ia **mengoordinasikan** mereka ke dalam alur kerja transformasi terstruktur **9 fase**.
322
-
323
- ### Peta Skill yang Diorkestrasi
324
-
325
- | Fase | Skill yang Digunakan | Fokus |
326
- |------|---------------------|-------|
327
- | 1. Discovery & Arsitektur | `app-analyzer-optimizer`, `prd-architect`, `mpa-orchestrator`, `bun-runtime-expert` | Audit codebase, MPA vs SPA, evaluasi Bun |
328
- | 2. Fondasi Multi-Tenancy | `saas-multi-tenant`, `supabase-migration`, `supabase-security-expert` | Shared/Isolated Schema, RLS, isolasi data |
329
- | 3. Autentikasi & Otorisasi | `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert` | OAuth/OIDC, RBAC, JWT claims |
330
- | 4. Billing & Langganan | `saas-billing`, `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend` | Stripe/Midtrans, webhook, dunning |
331
- | 5. Workspace & Tim | `saas-multi-tenant`, `senior-frontend`, `ui-ux-pro-max` | Invite, roles, onboarding |
332
- | 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 |
333
- | 7. API & Feature Gating | `fullstack-expert`, `scalability-clean-code`, `senior-fullstack` | Versioning, rate limit, usage metering |
334
- | 8. Pengujian, Keamanan & QA | `e2e-testing-expert`, `secure-fuzz-testing`, `coderabbit` | Playwright E2E, Fuzz testing, AI Code Review |
335
- | 9. Pengerasan Produksi & Cloud | `production-ready-hardener`, `cloud-hosting-expert`, `auto-doc-updater` | Edge middleware, Vercel/Cloudflare, dokumentasi |
336
-
337
- ### Kondisi Pemicu
338
- Aktifkan skill ini ketika pengguna:
339
- 1. Memiliki aplikasi yang sudah ada dan ingin mengkonversinya menjadi produk SaaS.
340
- 2. Meminta untuk "menambahkan multi-tenancy", "menambahkan billing/langganan", "jadikan ini SaaS", "tambahkan manajemen tim", atau permintaan serupa.
341
- 3. Ingin menambahkan isolasi berbasis workspace/organisasi ke aplikasi yang sudah ada.
342
- 4. Perlu menambahkan tier harga, batas penggunaan, atau pembatasan fitur ke produk yang sudah ada.
343
- 5. Meminta "audit SaaS" atau "pemeriksaan kesiapan SaaS" pada aplikasi yang sudah ada.
344
-
345
- ### Protokol Eksekusi
346
-
347
- Ketika skill ini dipicu, jalankan **9 fase transformasi secara berurutan**. Setiap fase menghasilkan temuan dan perubahan kode. Di akhir, compile sebuah **Laporan Transformasi SaaS**.
348
-
349
- > **Penting:** Sebelum memulai, jalankan script `saas_transformation_scanner.py` untuk menilai kondisi aplikasi saat ini dan menentukan fase mana yang membutuhkan paling banyak pekerjaan.
350
-
351
- ---
352
-
353
- #### FASE 1: Discovery & Analisis Arsitektur
354
- **Mengorkestrasi:** `app-analyzer-optimizer`, `prd-architect`, `brainstorming`, `mpa-orchestrator`, `bun-runtime-expert`
355
-
356
- - [ ] Semua tabel/model database dipetakan
357
- - [ ] Keputusan arsitektur (MPA vs SPA, Node vs Bun) dievaluasi
358
- - [ ] Mekanisme autentikasi diidentifikasi
359
- - [ ] Tier harga target ditentukan (minimal Free + 1 berbayar)
360
- - [ ] Model tenancy diputuskan
361
-
362
- #### FASE 2: Fondasi Multi-Tenancy
363
- **Mengorkestrasi:** `saas-multi-tenant`, `supabase-migration`, `supabase-security-expert` (untuk RLS Shared Schema)
364
-
365
- - [ ] Tentukan Model Tenancy (Shared Schema vs Isolated Schema)
366
- - [ ] Tambahkan `tenant_id` ke semua tabel terkait (jika Shared Schema) atau konfigurasi routing dinamis (jika Isolated Schema)
367
- - [ ] Terapkan kebijakan RLS untuk membatasi akses data per tenant (jika Shared Schema)
368
- - [ ] Middleware tenant-aware diimplementasikan
369
- - [ ] Data existing di-backfill dengan tenant default
370
-
371
- #### FASE 3: Autentikasi & Otorisasi
372
- **Mengorkestrasi:** `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert`
373
-
374
- - [ ] Provider auth dikonfigurasi (email + minimal 1 OAuth)
375
- - [ ] Role RBAC didefinisikan (owner, admin, member, viewer)
376
- - [ ] Middleware otorisasi melindungi semua route/endpoint
377
- - [ ] Optimasi Session Management: Implementasikan validasi sesi Edge-ready (contoh: Redis atau JWT custom claims) untuk meminimalkan beban query ke database
378
-
379
- #### FASE 4: Billing & Langganan
380
- **Mengorkestrasi:** `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend`
381
-
382
- - [ ] Tabel subscription dibuat dengan schema multi-gateway
383
- - [ ] Integrasi Checkout (hosted session/widget) berfungsi
384
- - [ ] Semua webhook kritis ditangani dengan idempotency
385
- - [ ] Penanganan pembayaran gagal (dunning management) dikonfigurasi
386
-
387
- #### FASE 5: Workspace & Manajemen Tim
388
- **Mengorkestrasi:** `saas-multi-tenant`, `senior-frontend`, `ui-ux-pro-max`
389
-
390
- - [ ] UI workspace switching di navbar
391
- - [ ] Flow terima/tolak undangan dengan link token unik
392
- - [ ] Manajemen role anggota (lihat, ubah, hapus)
393
- - [ ] Batas ukuran tim berdasarkan plan
394
-
395
- #### FASE 6: Frontend SaaS & Landing
396
- **Mengorkestrasi:** `senior-frontend`, `tanstack-query-expert`, `multiple-entry-points`, `tailwind-expert`, `seo-aeo-landing-page-writer`, `seo`, `hig`
397
-
398
- - [ ] Arsitektur dipisah antara aplikasi SaaS, landing page, dan Super Admin (`multiple-entry-points`)
399
- - [ ] Dashboard Super Admin untuk manajemen aplikasi (wajib di-deploy pada subdomain terpisah seperti `admin.domain.com`)
400
- - [ ] App shell dengan sidebar, header, workspace switcher
401
- - [ ] Pengambilan data (data fetching) modern dengan TanStack Query
402
- - [ ] Dashboard dengan metrik dan grafik penggunaan
403
- - [ ] Landing page teroptimasi SEO dengan pricing dan social proof
404
-
405
- #### FASE 7: API & Feature Gating
406
- **Mengorkestrasi:** `fullstack-expert`, `scalability-clean-code`, `senior-fullstack`
407
-
408
- - [ ] API versioning diimplementasikan (/api/v1/)
409
- - [ ] Rate limiting dikonfigurasi per plan
410
- - [ ] Sistem feature flags/gating operasional
411
- - [ ] Usage metering melacak API calls, storage, members
412
-
413
- #### FASE 8: Pengujian, Keamanan & QA
414
- **Mengorkestrasi:** `e2e-testing-expert`, `secure-fuzz-testing`, `coderabbit`
415
-
416
- - [ ] Playwright E2E test disiapkan untuk alur penting (login, checkout)
417
- - [ ] Fuzz testing diimplementasikan untuk keamanan parser data
418
- - [ ] CodeRabbit dikonfigurasi (`.coderabbit.yaml`) untuk AI code review di CI/CD
419
- - [ ] Unit test dan integration test (Vitest) lulus di CI
420
-
421
- #### FASE 9: Pengerasan Produksi & Deployment Cloud
422
- **Mengorkestrasi:** `production-ready-hardener`, `cloud-hosting-expert`, `auto-doc-updater`, `saas-mvp-launcher`
423
-
424
- - [ ] Skor audit production-ready-hardener ≥ 85
425
- - [ ] Middleware Edge (Vercel/Cloudflare) dikonfigurasi untuk routing multi-tenant
426
- - [ ] Mode Stripe Live dikonfigurasi
427
- - [ ] Monitoring error dan analytics aktif
428
- - [ ] Dokumentasi diperbarui (CHANGELOG, BLUEPRINT, README)
429
-
430
- ---
431
-
432
- ### Metodologi Penilaian
433
-
434
- Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
435
- - **95-100**: Selesai
436
- - **80-94**: Hampir selesai, gap minor ⚠️
437
- - **60-79**: Item signifikan hilang 🟡
438
- - **Di bawah 60**: Fase belum diimplementasikan 🔴
439
-
440
- **Skor Keseluruhan** = Rata-rata berbobot:
441
- - Discovery (5%) + Multi-Tenancy (**20%**) + Auth (10%) + Billing (**20%**) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Pengujian (5%) + Produksi (10%)
442
-
443
- ### Referensi Dokumentasi
444
- - [SaaS Transformation Checklist](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/saas_transformation_checklist.md)
445
- - [Billing Integration Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/billing_integration_guide.md)
446
- - [Feature Gating Patterns](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/feature_gating_patterns.md)
5
+ ---
6
+
7
+ # SaaS Transformer
8
+
9
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
+
11
+ ---
12
+
13
+ <a name="english"></a>
14
+ ## English
15
+
16
+ ### Orchestration & Integration
17
+ Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `project-context-mapper` to ensure cohesive execution.
18
+
19
+ ### Description
20
+ 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.
21
+
22
+ This skill does NOT replace individual skills — it **coordinates** them into a structured, **9-phase** transformation workflow.
23
+
24
+ ### Orchestrated Skills Map
25
+
26
+ ```
27
+ ┌──────────────────────────────────────────────────────────────────┐
28
+ SAAS-TRANSFORMER
29
+ (Master Orchestrator 9 Phases)
30
+ ├──────────────────────────────────────────────────────────────────┤
31
+
32
+ ┌─── PHASE 1: Discovery & Architecture Analysis ─────────────┐
33
+ │ │ • session-context-loader (Project context & blueprint) │ │
34
+ │ │ • app-analyzer-optimizer (Codebase audit & bottlenecks) │ │
35
+ • prd-architect (SaaS PRD & tier definitions)
36
+ • brainstorming (Architecture pivot ideation) │ │
37
+ │ • mpa-orchestrator / spa-orchestrator (App architecture)
38
+ │ │ • bun-runtime-expert (Runtime performance evaluation) │ │
39
+ └────────────────────────────────────────────────────────────┘
40
+
41
+ ┌─── PHASE 2: Multi-Tenancy Foundation ──────────────────────┐
42
+ • saas-multi-tenant (Data isolation & tenancy models) │ │
43
+ │ • database-orm-expert (Schema migration & Prisma/Drizzle)
44
+ │ │ • edge-serverless-db-expert (Neon/D1 connection pool) │ │
45
+ │ │ • supabase-migration (Migrations & SQL policies) │ │
46
+ │ │ • supabase-security-expert (Shared schema RLS policies) │ │
47
+ │ └────────────────────────────────────────────────────────────┘ │
48
+
49
+ │ ┌─── PHASE 3: Authentication & Authorization ────────────────┐
50
+ │ │ • authentication-identity-expert (OAuth2, RBAC/ABAC) │ │
51
+ │ │ • fullstack-expert (Custom claims & session validation) │ │
52
+ │ │ • supabase-security-expert (JWT claims & RLS auth sync) │ │
53
+ │ │ • firebase-security-expert (Rules & App Check setup) │ │
54
+ • zero-trust-secret-vault (Secret management & rotation)
55
+ └────────────────────────────────────────────────────────────┘
56
+
57
+ ┌─── PHASE 4: Billing & Subscription ────────────────────────┐
58
+ │ │ • saas-billing (Subscription state machine & webhooks) │ │
59
+ │ │ • payment-gateway-expert (Stripe, LemonSqueezy, Midtrans) │ │
60
+ │ │ • doku-payment-gateway (DOKU QRIS, VA & checkout APIs) │ │
61
+ • saas-mvp-launcher (Pricing tier structure & checkout)
62
+ • email-notification-expert (Invoice & trial emails) │ │
63
+ └────────────────────────────────────────────────────────────┘
64
+
65
+ ┌─── PHASE 5: Workspace & Team Management ───────────────────┐
66
+ │ │ • saas-multi-tenant (Workspace CRUD & membership models) │ │
67
+ │ │ • form-validation-expert (Invite forms & validations) │ │
68
+ │ │ • email-notification-expert (Transactional invite emails) │ │
69
+ │ │ • ui-components-expert (Workspace switcher & settings UI) │ │
70
+ │ │ • senior-frontend (App shell & settings layout) │ │
71
+ • ui-ux-pro-max (Design system & accessible components)
72
+ └────────────────────────────────────────────────────────────┘
73
+
74
+ ┌─── PHASE 6: SaaS Frontend & Landing ───────────────────────┐
75
+ │ │ • modern-web-guidance (MANDATORY: Modern web standards) │ │
76
+ │ │ • senior-frontend (App shell & responsive navigation) │ │
77
+ │ │ • tanstack-query-expert (Async state & optimistic UI) │ │
78
+ │ │ • multiple-entry-points (Separate app, landing & admin) │ │
79
+ • tailwind-expert / design-system-architect (Tokens & UI)
80
+ • seo-aeo-landing-page-writer (High-conversion landing) │ │
81
+ │ • seo / seo-geo (SEO, AEO & AI search readiness) │
82
+ │ │ • hig (Intuitive layout & visual consistency) │ │
83
+ └────────────────────────────────────────────────────────────┘
84
+
85
+ ┌─── PHASE 7: API Layer, Workers & Feature Gating ───────────┐
86
+ • api-design-expert (REST, GraphQL, API versioning) │ │
87
+ │ • rate-limit-abuse-prevention (Rate limiting & DDoS bot)
88
+ │ │ • feature-flag-analytics-expert (Feature gating & flags) │ │
89
+ │ │ • async-queue-temporal-expert (Background job queues) │ │
90
+ │ │ • cron-scheduler-expert (Recurring cron metering tasks) │ │
91
+ │ │ • js-backend-expert / go-programming-expert (APIs) │ │
92
+ • mcp-server-architect (AI tool endpoints & schemas)
93
+ • multi-agent-orchestration (Autonomous agent workflows) │ │
94
+ │ │ • scalability-clean-code (Clean architecture & SOLID) │ │
95
+ │ └────────────────────────────────────────────────────────────┘ │
96
+ │ │
97
+ │ ┌─── PHASE 8: Testing, Security & Quality Assurance ─────────┐ │
98
+ │ │ • e2e-testing-expert (Playwright E2E & Vitest flows) │ │
99
+ │ │ • browser-automation-expert (Visual regression testing) │ │
100
+ │ │ • secure-fuzz-testing (Input & stream parser fuzzing) │ │
101
+ │ │ • error-resilience-expert (Retry logic & circuit breakers)│ │
102
+ │ │ • logging-error-tracking-expert (Structured logs & Sentry)│ │
103
+ │ │ • coderabbit (AI code review & PR summarization) │ │
104
+ │ └────────────────────────────────────────────────────────────┘ │
105
+ │ │
106
+ │ ┌─── PHASE 9: Production Hardening, Cloud & Handoff ─────────┐ │
107
+ │ │ • production-ready-hardener (Comprehensive production audit)│
108
+ │ │ • cloud-hosting-expert (Edge middleware & custom domains) │ │
109
+ │ │ • ci-cd-devops-architect (Deployment pipelines & IaC) │ │
110
+ │ │ • data-telemetry-expert (Observability & PostHog metrics) │ │
111
+ │ │ • performance-web-vitals (Lighthouse & Core Web Vitals) │ │
112
+ │ │ • session-handoff-resume (Save state checkpoint) │ │
113
+ │ │ • auto-doc-updater (CHANGELOG & BLUEPRINT automation) │ │
114
+ │ └────────────────────────────────────────────────────────────┘ │
115
+ │ │
116
+ └──────────────────────────────────────────────────────────────────┘
117
+ ```
118
+
119
+ ### Trigger Conditions
120
+ Activate this skill when the user:
121
+ 1. Has an existing application and wants to convert it into a SaaS product.
122
+ 2. Asks to "add multi-tenancy", "add billing/subscriptions", "make this a SaaS", "add team management", or similar requests that imply SaaS transformation.
123
+ 3. Wants to add workspace/organization-based isolation to an existing app.
124
+ 4. Needs to add pricing tiers, usage limits, or feature gating to an existing product.
125
+ 5. Asks for a "SaaS audit" or "SaaS readiness check" on an existing application.
126
+
127
+ ### Execution Protocol
128
+
129
+ 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**.
130
+
131
+ > **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.
132
+
133
+ ---
134
+
135
+ #### PHASE 1: Discovery & Architecture Analysis
136
+ **Orchestrates:** `session-context-loader`, `app-analyzer-optimizer`, `prd-architect`, `brainstorming`, `mpa-orchestrator`, `spa-orchestrator`, `bun-runtime-expert`
137
+
138
+ **Goal:** Understand the existing application and plan the transformation, including architectural pivots.
139
+
140
+ **Steps:**
141
+ 1. **Audit the existing codebase** using `app-analyzer-optimizer`:
142
+ - Map all database tables/models and their relationships
143
+ - Identify authentication mechanism (if any)
144
+ - List all API endpoints and their access patterns
145
+ - Assess frontend architecture
146
+ 2. **Evaluate Core Architecture Shifts**:
147
+ - Consider `mpa-orchestrator` / `spa-orchestrator`: Should we consolidate into a Single Repo MPA or split into SPA micro-apps?
148
+ - Consider `bun-runtime-expert`: Is extreme performance required? Should we migrate to the Bun runtime?
149
+ 3. **Generate a SaaS PRD** using `prd-architect`:
150
+ - Define target customer segments and pricing tiers (Free, Pro, Enterprise)
151
+ - Establish usage limits per plan
152
+
153
+ **Deliverable:** SaaS Transformation Plan document.
154
+
155
+ **Checklist:**
156
+ - [ ] All existing database tables mapped
157
+ - [ ] Architecture pivot decisions finalized (MPA vs SPA, Node vs Bun)
158
+ - [ ] Target pricing tiers defined (at least Free + 1 paid tier)
159
+ - [ ] Tenancy model decided (shared-schema / schema-per-tenant)
160
+ - [ ] Auth & Billing providers selected
161
+
162
+ ---
163
+
164
+ #### PHASE 2: Multi-Tenancy Foundation
165
+ **Orchestrates:** `saas-multi-tenant`, `database-orm-expert`, `edge-serverless-db-expert`, `supabase-migration`, `supabase-security-expert` (for Shared Schema RLS)
166
+
167
+ **Goal:** Add tenant isolation to the database layer.
168
+
169
+ **Checklist:**
170
+ - [ ] Core SaaS tables created (`workspaces`, `workspace_members`, `workspace_invitations`)
171
+ - [ ] Decide on Tenancy Model (Shared Schema vs Isolated Schema)
172
+ - [ ] Add `tenant_id` / `workspace_id` to all scoped tables (if Shared Schema) or configure dynamic routing (if Isolated Schema) using `database-orm-expert`
173
+ - [ ] Apply RLS policies to restrict data access by tenant (if Shared Schema) via `supabase-security-expert`
174
+ - [ ] Edge database pooling and serverless connection management configured via `edge-serverless-db-expert`
175
+ - [ ] Tenant-aware middleware implemented
176
+ - [ ] Existing data backfilled with default tenant
177
+
178
+ ---
179
+
180
+ #### PHASE 3: Authentication & Authorization
181
+ **Orchestrates:** `authentication-identity-expert`, `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert`, `zero-trust-secret-vault`
182
+
183
+ **Goal:** Implement production-grade auth with role-based access control and zero-trust secret management.
184
+
185
+ **Checklist:**
186
+ - [ ] Auth provider configured with email + at least 1 OAuth provider using `authentication-identity-expert`
187
+ - [ ] RBAC roles defined (owner, admin, member, viewer)
188
+ - [ ] Authorization middleware protects all routes/endpoints
189
+ - [ ] JWT custom claims include `workspace_id` and `role`
190
+ - [ ] Session Management Optimization: Implement Edge-ready session validation (e.g., Redis or JWT) to minimize database lookups
191
+ - [ ] API keys and secrets stored and rotated securely via `zero-trust-secret-vault`
192
+
193
+ ---
194
+
195
+ #### PHASE 4: Billing & Subscription
196
+ **Orchestrates:** `saas-billing`, `payment-gateway-expert`, `doku-payment-gateway`, `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend`, `email-notification-expert`
197
+
198
+ **Goal:** Integrate payment processing, local billing sync, and automated transactional communications.
199
+
200
+ **Checklist:**
201
+ - [ ] Pricing tiers defined with Stripe / LemonSqueezy / DOKU products & prices
202
+ - [ ] Subscription table created with proper multi-gateway schema via `saas-billing`
203
+ - [ ] Payment gateway Checkout integration working (subscribe & upgrade flows) via `payment-gateway-expert` or `doku-payment-gateway`
204
+ - [ ] All critical webhooks handled with idempotency (payment succeeded, subscription updated, cancelled)
205
+ - [ ] Customer portal accessible (manage subscription, payment methods, invoices)
206
+ - [ ] Trial period implemented with expiry notifications sent via `email-notification-expert`
207
+
208
+ ---
209
+
210
+ #### PHASE 5: Workspace & Team Management
211
+ **Orchestrates:** `saas-multi-tenant`, `form-validation-expert`, `email-notification-expert`, `ui-components-expert`, `senior-frontend`, `ui-ux-pro-max`
212
+
213
+ **Goal:** Build workspace creation, team invitations, role management, and settings UI.
214
+
215
+ **Checklist:**
216
+ - [ ] Workspace CRUD operations working with strict validation (`form-validation-expert`)
217
+ - [ ] Workspace switching UI in navbar (`ui-components-expert`)
218
+ - [ ] Email invitation flow with secure token link sent via `email-notification-expert`
219
+ - [ ] Member role management (view, change, remove)
220
+ - [ ] Team size limits enforced by plan
221
+
222
+ ---
223
+
224
+ #### PHASE 6: SaaS Frontend & Landing
225
+ **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`
226
+
227
+ **Goal:** Build the SaaS frontend: app shell, dashboard, marketing pages, and super admin panel.
228
+
229
+ **Steps:**
230
+ 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.
231
+ 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).
232
+ 2. **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).
233
+ 3. **App shell / Layout**: Authenticated layout with sidebar navigation, breadcrumbs, and workspace context.
234
+ 4. **Marketing / Landing page**: Convert users with a highly optimized, SEO/GEO friendly landing page created with `seo-aeo-landing-page-writer`.
235
+
236
+ **Checklist:**
237
+ - [ ] App shell with sidebar, header, workspace switcher
238
+ - [ ] Advanced data fetching with TanStack Query (no raw useEffects)
239
+ - [ ] Design system tokens configured with `design-system-architect` / `tailwind-expert`
240
+ - [ ] Settings pages (account, workspace, team, billing)
241
+ - [ ] Landing page with pricing and social proof
242
+ - [ ] **MANDATORY**: Automatically scaffold standard pages (About, Profile, Contact, Terms of Reference/Service, Privacy Policy).
243
+ - [ ] Super Admin dashboard deployed on a separate subdomain
244
+ - [ ] SEO meta tags and Structured data on all public pages (`seo` / `seo-geo`)
245
+
246
+ ---
247
+
248
+ #### PHASE 7: API Layer, Background Workers & Feature Gating
249
+ **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`
250
+
251
+ **Goal:** Add API versioning, rate limiting, background job queues, and plan-based feature gating.
252
+
253
+ **Checklist:**
254
+ - [ ] API versioning implemented (`/api/v1/`) with OpenAPI specs (`api-design-expert`)
255
+ - [ ] Rate limiting and bot protection configured per plan via `rate-limit-abuse-prevention`
256
+ - [ ] Feature flag & gating middleware configured per subscription tier via `feature-flag-analytics-expert`
257
+ - [ ] Usage metering tracking API calls, storage, members, and background jobs
258
+ - [ ] Durable workflow background jobs configured via `async-queue-temporal-expert` / `cron-scheduler-expert`
259
+ - [ ] MCP Server endpoints exposed for AI agents via `mcp-server-architect`
260
+
261
+ ---
262
+
263
+ #### PHASE 8: Testing, Security & Quality Assurance
264
+ **Orchestrates:** `e2e-testing-expert`, `browser-automation-expert`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert`, `coderabbit`
265
+
266
+ **Goal:** Validate core business logic, ensure fault tolerance, and guarantee security before deployment.
267
+
268
+ **Steps:**
269
+ 1. **End-to-End Testing (`e2e-testing-expert`)**: Write Playwright tests for critical paths: Signup, Login, Stripe Checkout, and Workspace Invitation.
270
+ 2. **Visual & Automation Audit (`browser-automation-expert`)**: Validate responsive UI workflows and visual regression.
271
+ 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.
272
+ 4. **Resilience & Observability (`error-resilience-expert`, `logging-error-tracking-expert`)**: Configure circuit breakers, retry strategies, structured logging, and Sentry error tracking.
273
+ 5. **Automated Review (`coderabbit`)**: Configure CodeRabbit to automatically review all PRs going into main, ensuring code quality and summarizing architectural changes.
274
+
275
+ **Checklist:**
276
+ - [ ] Playwright E2E tests passing for authentication & billing flows
277
+ - [ ] Fuzz tests implemented for critical parsers/endpoints
278
+ - [ ] Circuit breakers and retries configured for third-party API dependencies
279
+ - [ ] Structured logging and error tracking (Sentry) active
280
+ - [ ] `.coderabbit.yaml` configured for automated PR reviews
281
+ - [ ] All unit/integration tests (Vitest) passing in CI
282
+
283
+ ---
284
+
285
+ #### PHASE 9: Production Hardening, Cloud Deployment & Handoff
286
+ **Orchestrates:** `production-ready-hardener`, `cloud-hosting-expert`, `ci-cd-devops-architect`, `data-telemetry-expert`, `performance-web-vitals`, `session-handoff-resume`, `auto-doc-updater`
287
+
288
+ **Goal:** Harden the application, deploy to Edge/Cloud architecture, establish CI/CD pipelines, and document state.
289
+
290
+ **Steps:**
291
+ 1. **Hardening**: Run the full `production-ready-hardener` audit.
292
+ 2. **Edge & Cloud Deployment (`cloud-hosting-expert`, `ci-cd-devops-architect`)**:
293
+ - Deploy to Vercel/Cloudflare with CI/CD GitHub Actions pipelines.
294
+ - Configure Edge Middleware for tenant identification (e.g., rewriting `tenant1.myapp.com`).
295
+ - Implement custom domains using Cloudflare for SaaS.
296
+ 3. **Performance & Telemetry (`performance-web-vitals`, `data-telemetry-expert`)**: Ensure Core Web Vitals optimization and active telemetry tracking (OpenTelemetry / PostHog).
297
+ 4. **State Checkpoint & Documentation (`session-handoff-resume`, `auto-doc-updater`)**: Save ultra-compact state checkpoint and update `CHANGELOG.md` and `BLUEPRINT.md`.
298
+
299
+ **Checklist:**
300
+ - [ ] Production-ready-hardener audit score 85
301
+ - [ ] Edge Middleware configured for tenant routing
302
+ - [ ] Payment gateway live mode configured and tested
303
+ - [ ] Observability, telemetry, and error monitoring active
304
+ - [ ] Core Web Vitals pass Performance benchmarks (LCP < 2.5s, INP < 200ms)
305
+ - [ ] Documentation updated (CHANGELOG, BLUEPRINT, README)
306
+ - [ ] Session state checkpoint saved via `session-handoff-resume`
307
+
308
+ ---
309
+
310
+ ### SaaS Transformation Report Format
311
+
312
+ After completing all 9 phases, compile a **SaaS Transformation Report**:
313
+
314
+ ```markdown
315
+ # SaaS Transformation Report
316
+
317
+ ## Executive Summary
318
+ Overall transformation completeness (0-100%) with readiness grade (A/B/C/D/F).
319
+
320
+ ## Phase Scores
321
+ | Phase | Score | Status |
322
+ |-------|-------|--------|
323
+ | 1. Discovery & Architecture Analysis | XX/100 | ✅/⚠️/🔴 |
324
+ | 2. Multi-Tenancy Foundation | XX/100 | ✅/⚠️/🔴 |
325
+ | 3. Authentication & Authorization | XX/100 | ✅/⚠️/🔴 |
326
+ | 4. Billing & Subscription | XX/100 | ✅/⚠️/🔴 |
327
+ | 5. Workspace & Team Management | XX/100 | ✅/⚠️/🔴 |
328
+ | 6. SaaS Frontend & Landing | XX/100 | ✅/⚠️/🔴 |
329
+ | 7. API Layer & Feature Gating | XX/100 | ✅/⚠️/🔴 |
330
+ | 8. Testing, Security & QA | XX/100 | ✅/⚠️/🔴 |
331
+ | 9. Production Hardening & Cloud | XX/100 | ✅/⚠️/🔴 |
332
+
333
+ ## 📋 Recommended Next Steps
334
+ Prioritized action items for post-launch iteration.
335
+ ```
336
+
337
+ ### Scoring Methodology
338
+
339
+ Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
340
+ - **95-100**: Complete
341
+ - **80-94**: Almost complete, minor gaps ⚠️
342
+ - **60-79**: Significant items missing 🟡
343
+ - **Below 60**: Phase not implemented 🔴
344
+
345
+ **Overall Score** = Weighted average:
346
+ - Discovery (5%) + Multi-Tenancy (**20%**) + Auth (10%) + Billing (**20%**) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Testing (5%) + Production (10%)
347
+
348
+ ---
349
+
350
+ <a name="bahasa-indonesia"></a>
351
+ ## Bahasa Indonesia
352
+
353
+ ### Integrasi Orkestrasi
354
+ Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
355
+
356
+ ### Deskripsi
357
+ **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.
358
+
359
+ Skill ini TIDAK menggantikan skill individual ia **mengoordinasikan** mereka ke dalam alur kerja transformasi terstruktur **9 fase**.
360
+
361
+ ### Peta Skill yang Diorkestrasi
362
+
363
+ | Fase | Skill yang Digunakan | Fokus Utama |
364
+ |------|---------------------|-------------|
365
+ | 1. Discovery & Arsitektur | `session-context-loader`, `app-analyzer-optimizer`, `prd-architect`, `brainstorming`, `mpa-orchestrator`, `spa-orchestrator`, `bun-runtime-expert` | Muat konteks, audit codebase, evaluasi MPA vs SPA & Bun runtime |
366
+ | 2. Fondasi Multi-Tenancy | `saas-multi-tenant`, `database-orm-expert`, `edge-serverless-db-expert`, `supabase-migration`, `supabase-security-expert` | Model Shared/Isolated Schema, RLS, ORM schema & edge database pooling |
367
+ | 3. Autentikasi & Otorisasi | `authentication-identity-expert`, `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert`, `zero-trust-secret-vault` | OAuth2/OIDC, RBAC/ABAC, JWT custom claims, session Edge & secret vault |
368
+ | 4. Billing & Langganan | `saas-billing`, `payment-gateway-expert`, `doku-payment-gateway`, `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend`, `email-notification-expert` | Stripe/Midtrans/DOKU, webhook idempotency, sync billing & notifikasi email |
369
+ | 5. Workspace & Tim | `saas-multi-tenant`, `form-validation-expert`, `email-notification-expert`, `ui-components-expert`, `senior-frontend`, `ui-ux-pro-max` | Invite flow, token link, manajemen role, UI workspace switcher |
370
+ | 6. Frontend SaaS & Landing | `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` | Standar web modern, Separation (App/Landing/Admin), TanStack Query state, landing page SEO |
371
+ | 7. API & Feature Gating | `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` | REST/OpenAPI, rate limiting, feature gating, background jobs & MCP tools |
372
+ | 8. Pengujian, Keamanan & QA | `e2e-testing-expert`, `browser-automation-expert`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert`, `coderabbit` | Playwright E2E, fuzz testing, error resilience (retry/circuit breaker) & CodeRabbit |
373
+ | 9. Pengerasan Produksi & Cloud | `production-ready-hardener`, `cloud-hosting-expert`, `ci-cd-devops-architect`, `data-telemetry-expert`, `performance-web-vitals`, `session-handoff-resume`, `auto-doc-updater` | Edge middleware, CI/CD pipeline, Core Web Vitals, checkpoint & auto-doc |
374
+
375
+ ### Kondisi Pemicu
376
+ Aktifkan skill ini ketika pengguna:
377
+ 1. Memiliki aplikasi yang sudah ada dan ingin mengkonversinya menjadi produk SaaS.
378
+ 2. Meminta untuk "menambahkan multi-tenancy", "menambahkan billing/langganan", "jadikan ini SaaS", "tambahkan manajemen tim", atau permintaan serupa.
379
+ 3. Ingin menambahkan isolasi berbasis workspace/organisasi ke aplikasi yang sudah ada.
380
+ 4. Perlu menambahkan tier harga, batas penggunaan, atau pembatasan fitur ke produk yang sudah ada.
381
+ 5. Meminta "audit SaaS" atau "pemeriksaan kesiapan SaaS" pada aplikasi yang sudah ada.
382
+
383
+ ### Protokol Eksekusi
384
+
385
+ Ketika skill ini dipicu, jalankan **9 fase transformasi secara berurutan**. Setiap fase menghasilkan temuan dan perubahan kode. Di akhir, compile sebuah **Laporan Transformasi SaaS**.
386
+
387
+ > **Penting:** Sebelum memulai, jalankan script `saas_transformation_scanner.py` untuk menilai kondisi aplikasi saat ini dan menentukan fase mana yang membutuhkan paling banyak pekerjaan.
388
+
389
+ ---
390
+
391
+ #### FASE 1: Discovery & Analisis Arsitektur
392
+ **Mengorkestrasi:** `session-context-loader`, `app-analyzer-optimizer`, `prd-architect`, `brainstorming`, `mpa-orchestrator`, `spa-orchestrator`, `bun-runtime-expert`
393
+
394
+ - [ ] Semua tabel/model database dipetakan
395
+ - [ ] Keputusan arsitektur (MPA vs SPA, Node vs Bun) dievaluasi
396
+ - [ ] Mekanisme autentikasi diidentifikasi
397
+ - [ ] Tier harga target ditentukan (minimal Free + 1 berbayar)
398
+ - [ ] Model tenancy diputuskan (Shared Schema vs Isolated Schema)
399
+ - [ ] Provider Auth & Billing dipilih
400
+
401
+ #### FASE 2: Fondasi Multi-Tenancy
402
+ **Mengorkestrasi:** `saas-multi-tenant`, `database-orm-expert`, `edge-serverless-db-expert`, `supabase-migration`, `supabase-security-expert` (untuk RLS Shared Schema)
403
+
404
+ - [ ] Tabel inti SaaS dibuat (`workspaces`, `workspace_members`, `workspace_invitations`)
405
+ - [ ] Tentukan Model Tenancy (Shared Schema vs Isolated Schema)
406
+ - [ ] Tambahkan `tenant_id` / `workspace_id` ke semua tabel terkait via `database-orm-expert`
407
+ - [ ] Terapkan kebijakan RLS untuk membatasi akses data per tenant via `supabase-security-expert`
408
+ - [ ] Konfigurasi edge database pooling dan connection management via `edge-serverless-db-expert`
409
+ - [ ] Middleware tenant-aware diimplementasikan
410
+ - [ ] Data existing di-backfill dengan tenant default
411
+
412
+ #### FASE 3: Autentikasi & Otorisasi
413
+ **Mengorkestrasi:** `authentication-identity-expert`, `fullstack-expert`, `supabase-security-expert`, `firebase-security-expert`, `zero-trust-secret-vault`
414
+
415
+ - [ ] Provider auth dikonfigurasi (email + minimal 1 OAuth) menggunakan `authentication-identity-expert`
416
+ - [ ] Role RBAC didefinisikan (owner, admin, member, viewer)
417
+ - [ ] Middleware otorisasi melindungi semua route/endpoint
418
+ - [ ] JWT custom claims mencakup `workspace_id` dan `role`
419
+ - [ ] Optimasi Session Management: Implementasikan validasi sesi Edge-ready (contoh: Redis atau JWT) untuk meminimalkan beban query ke database
420
+ - [ ] API keys dan rahasia disimpan & dirotasi aman via `zero-trust-secret-vault`
421
+
422
+ #### FASE 4: Billing & Langganan
423
+ **Mengorkestrasi:** `saas-billing`, `payment-gateway-expert`, `doku-payment-gateway`, `saas-mvp-launcher`, `fullstack-expert`, `senior-frontend`, `email-notification-expert`
424
+
425
+ - [ ] Tier harga didefinisikan pada Stripe / LemonSqueezy / DOKU
426
+ - [ ] Tabel subscription dibuat dengan schema multi-gateway via `saas-billing`
427
+ - [ ] Integrasi Checkout (subscribe & upgrade) berfungsi via `payment-gateway-expert` atau `doku-payment-gateway`
428
+ - [ ] Semua webhook kritis ditangani dengan idempotency (pembayaran berhasil, langganan berubah, pembatalan)
429
+ - [ ] Portal pelanggan diakses (manajemen langganan, metode pembayaran, invoice)
430
+ - [ ] Penanganan periode trial dan notifikasi email via `email-notification-expert`
431
+
432
+ #### FASE 5: Workspace & Manajemen Tim
433
+ **Mengorkestrasi:** `saas-multi-tenant`, `form-validation-expert`, `email-notification-expert`, `ui-components-expert`, `senior-frontend`, `ui-ux-pro-max`
434
+
435
+ - [ ] CRUD workspace berfungsi dengan validasi ketat (`form-validation-expert`)
436
+ - [ ] UI workspace switching di navbar (`ui-components-expert`)
437
+ - [ ] Flow terima/tolak undangan dengan link token unik dikirim via `email-notification-expert`
438
+ - [ ] Manajemen role anggota (lihat, ubah, hapus)
439
+ - [ ] Batas ukuran tim berdasarkan plan
440
+
441
+ #### FASE 6: Frontend SaaS & Landing
442
+ **Mengorkestrasi:** `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`
443
+
444
+ - [ ] **MANDATORY**: Konsultasikan panduan web modern Google (`modern-web-guidance`) terlebih dahulu sebelum membangun fitur frontend.
445
+ - [ ] Arsitektur dipisah antara aplikasi SaaS, landing page, dan Super Admin (`multiple-entry-points`)
446
+ - [ ] Dashboard Super Admin untuk manajemen aplikasi (wajib di-deploy pada subdomain terpisah seperti `admin.domain.com`)
447
+ - [ ] App shell dengan sidebar, header, workspace switcher
448
+ - [ ] Pengambilan data (data fetching) modern dengan TanStack Query
449
+ - [ ] Design system tokens dikonfigurasi via `design-system-architect` / `tailwind-expert`
450
+ - [ ] Landing page teroptimasi SEO dengan pricing dan social proof (`seo-aeo-landing-page-writer`)
451
+ - [ ] **MANDATORY**: Otomatis buat halaman standar (About, Profile, Contact, Terms of Reference/Service, Privacy Policy).
452
+
453
+ #### FASE 7: API & Feature Gating
454
+ **Mengorkestrasi:** `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`
455
+
456
+ - [ ] API versioning diimplementasikan (`/api/v1/`) dengan dokumentasi OpenAPI (`api-design-expert`)
457
+ - [ ] Rate limiting dan proteksi bot dikonfigurasi per plan via `rate-limit-abuse-prevention`
458
+ - [ ] Sistem feature flags / gating operasional per plan tier via `feature-flag-analytics-expert`
459
+ - [ ] Usage metering melacak API calls, storage, members, dan background jobs
460
+ - [ ] Background job queues berdurabilitas tinggi via `async-queue-temporal-expert` / `cron-scheduler-expert`
461
+ - [ ] Endpoint MCP Server terekspos untuk agen AI via `mcp-server-architect`
462
+
463
+ #### FASE 8: Pengujian, Keamanan & QA
464
+ **Mengorkestrasi:** `e2e-testing-expert`, `browser-automation-expert`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert`, `coderabbit`
465
+
466
+ - [ ] Playwright E2E test disiapkan untuk alur penting (login, checkout, undangan team)
467
+ - [ ] Fuzz testing diimplementasikan untuk keamanan parser data (`secure-fuzz-testing`)
468
+ - [ ] Ketahanan error (circuit breaker & retry logic) dan logging terstruktur (Sentry) aktif
469
+ - [ ] CodeRabbit dikonfigurasi (`.coderabbit.yaml`) untuk AI code review di CI/CD
470
+ - [ ] Unit test dan integration test (Vitest) lulus di CI
471
+
472
+ #### FASE 9: Pengerasan Produksi & Deployment Cloud
473
+ **Mengorkestrasi:** `production-ready-hardener`, `cloud-hosting-expert`, `ci-cd-devops-architect`, `data-telemetry-expert`, `performance-web-vitals`, `session-handoff-resume`, `auto-doc-updater`
474
+
475
+ - [ ] Skor audit production-ready-hardener ≥ 85
476
+ - [ ] Middleware Edge (Vercel/Cloudflare) dikonfigurasi untuk routing multi-tenant
477
+ - [ ] Pipeline CI/CD dikonfigurasi dengan GitHub Actions (`ci-cd-devops-architect`)
478
+ - [ ] Mode Payment Gateway Live dikonfigurasi & diuji
479
+ - [ ] Monitoring error, analitik, dan telemetri aktif (`data-telemetry-expert`)
480
+ - [ ] Optimasi Core Web Vitals lulus (LCP < 2.5s, INP < 200ms)
481
+ - [ ] Dokumentasi diperbarui (CHANGELOG, BLUEPRINT, README)
482
+ - [ ] Session state checkpoint disimpan via `session-handoff-resume`
483
+
484
+ ---
485
+
486
+ ### Metodologi Penilaian
487
+
488
+ Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
489
+ - **95-100**: Selesai ✅
490
+ - **80-94**: Hampir selesai, gap minor ⚠️
491
+ - **60-79**: Item signifikan hilang 🟡
492
+ - **Di bawah 60**: Fase belum diimplementasikan 🔴
493
+
494
+ **Skor Keseluruhan** = Rata-rata berbobot:
495
+ - Discovery (5%) + Multi-Tenancy (**20%**) + Auth (10%) + Billing (**20%**) + Teams (10%) + Frontend (10%) + API & Gating (10%) + Pengujian (5%) + Produksi (10%)
496
+
497
+ ### Referensi Dokumentasi
498
+ - [SaaS Transformation Checklist](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/saas_transformation_checklist.md)
499
+ - [Billing Integration Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/billing_integration_guide.md)
500
+ - [Feature Gating Patterns](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/saas-transformer/references/feature_gating_patterns.md)