vibes-plug 2.14.1 → 3.9.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 (151) hide show
  1. package/.claude/rules/vibes-plug-core.md +5 -0
  2. package/.cursor/rules/vibes-plug-core.mdc +7 -2
  3. package/.cursorrules +8 -2
  4. package/AGENTS.md +23 -2
  5. package/CHANGELOG.md +114 -0
  6. package/CLAUDE.md +10 -3
  7. package/README.md +216 -611
  8. package/bin/vibes.mjs +1104 -0
  9. package/package.json +11 -3
  10. package/plugin.json +4 -3
  11. package/scripts/check-anti-slop.mjs +53 -0
  12. package/scripts/install.js +3 -1
  13. package/scripts/update_skills.js +1 -1
  14. package/scripts/update_skills.mjs +86 -0
  15. package/scripts/validate-skills.mjs +111 -0
  16. package/skills/accessibility-testing-expert/SKILL.md +117 -116
  17. package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
  18. package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
  19. package/skills/agentic-memory-architect/SKILL.md +52 -0
  20. package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
  21. package/skills/ai-llm-integration-expert/SKILL.md +330 -194
  22. package/skills/ai-media-generation-expert/SKILL.md +173 -172
  23. package/skills/ai-prompt-engineering-expert/SKILL.md +204 -134
  24. package/skills/ai-safety-governance-expert/SKILL.md +223 -0
  25. package/skills/angular-expert/SKILL.md +149 -148
  26. package/skills/anti-slop/SKILL.md +134 -133
  27. package/skills/api-design-expert/SKILL.md +4 -3
  28. package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
  29. package/skills/app-analyzer-optimizer/SKILL.md +4 -3
  30. package/skills/apple-ecosystem-expert/SKILL.md +6 -5
  31. package/skills/astro-framework-expert/SKILL.md +201 -200
  32. package/skills/async-queue-temporal-expert/SKILL.md +218 -217
  33. package/skills/authentication-identity-expert/SKILL.md +174 -173
  34. package/skills/autonomous-red-teamer/SKILL.md +338 -203
  35. package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
  36. package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
  37. package/skills/blockchain-web3-expert/SKILL.md +116 -115
  38. package/skills/brainstorming/SKILL.md +392 -377
  39. package/skills/browser-automation-expert/SKILL.md +260 -222
  40. package/skills/bun-runtime-expert/SKILL.md +5 -4
  41. package/skills/chatbot-messaging-expert/SKILL.md +115 -114
  42. package/skills/ci-cd-devops-architect/SKILL.md +3 -2
  43. package/skills/cloud-hosting-expert/SKILL.md +5 -4
  44. package/skills/coderabbit/SKILL.md +5 -4
  45. package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
  46. package/skills/composable-mach-architect/SKILL.md +338 -0
  47. package/skills/cron-scheduler-expert/SKILL.md +5 -4
  48. package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
  49. package/skills/data-telemetry-expert/SKILL.md +5 -4
  50. package/skills/data-visualization-expert/SKILL.md +155 -154
  51. package/skills/database-orm-expert/SKILL.md +166 -165
  52. package/skills/deep-research-analyst/SKILL.md +182 -136
  53. package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
  54. package/skills/design-system-architect/SKILL.md +4 -3
  55. package/skills/desktop-electron-expert/SKILL.md +129 -128
  56. package/skills/documentation-site-expert/SKILL.md +60 -59
  57. package/skills/doku-mcp-server/SKILL.md +5 -4
  58. package/skills/doku-payment-gateway/SKILL.md +250 -232
  59. package/skills/domain-driven-design-expert/SKILL.md +3 -2
  60. package/skills/e2e-testing-expert/SKILL.md +5 -4
  61. package/skills/ecommerce-expert/SKILL.md +88 -87
  62. package/skills/email-notification-expert/SKILL.md +5 -4
  63. package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
  64. package/skills/error-resilience-expert/SKILL.md +14 -13
  65. package/skills/event-driven-architect/SKILL.md +5 -4
  66. package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
  67. package/skills/file-upload-media-expert/SKILL.md +5 -4
  68. package/skills/firebase-security-expert/SKILL.md +5 -4
  69. package/skills/form-validation-expert/SKILL.md +7 -6
  70. package/skills/frontier-ai-models-expert/SKILL.md +116 -0
  71. package/skills/fullstack-expert/SKILL.md +185 -184
  72. package/skills/gemini-agent-booster/SKILL.md +248 -172
  73. package/skills/geospatial-maps-expert/SKILL.md +81 -80
  74. package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
  75. package/skills/glsl-shader-expert/SKILL.md +191 -190
  76. package/skills/go-programming-expert/SKILL.md +5 -4
  77. package/skills/graph-rag-knowledge-expert/SKILL.md +201 -200
  78. package/skills/graphql-apollo-expert/SKILL.md +5 -4
  79. package/skills/headless-cms-expert/SKILL.md +182 -181
  80. package/skills/hig/SKILL.md +5 -4
  81. package/skills/js-backend-expert/SKILL.md +219 -218
  82. package/skills/legacy-code-translator/SKILL.md +6 -5
  83. package/skills/llm-finops-router/SKILL.md +52 -0
  84. package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
  85. package/skills/logging-error-tracking-expert/SKILL.md +5 -4
  86. package/skills/mcp-server-architect/SKILL.md +315 -307
  87. package/skills/micro-frontend-architect/SKILL.md +5 -4
  88. package/skills/mobile-expo-expert/SKILL.md +5 -4
  89. package/skills/modern-css-native-expert/SKILL.md +190 -189
  90. package/skills/monorepo-architect/SKILL.md +5 -4
  91. package/skills/mpa-orchestrator/SKILL.md +41 -4
  92. package/skills/multi-agent-orchestration/SKILL.md +388 -254
  93. package/skills/mvc-expert/SKILL.md +5 -4
  94. package/skills/n8n-automation-expert/SKILL.md +90 -89
  95. package/skills/nextjs-app-router-expert/SKILL.md +3 -2
  96. package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
  97. package/skills/payment-gateway-expert/SKILL.md +131 -128
  98. package/skills/pdf-document-generation-expert/SKILL.md +92 -91
  99. package/skills/performance-web-vitals/SKILL.md +5 -4
  100. package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
  101. package/skills/prd-architect/SKILL.md +183 -182
  102. package/skills/proactive-background-watcher/SKILL.md +5 -4
  103. package/skills/production-ready-hardener/SKILL.md +10 -9
  104. package/skills/pwa-offline-first-expert/SKILL.md +227 -226
  105. package/skills/pydantic-ai-expert/SKILL.md +162 -161
  106. package/skills/python-programming-expert/SKILL.md +5 -4
  107. package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
  108. package/skills/realtime-collaboration-expert/SKILL.md +3 -2
  109. package/skills/rich-text-editor-expert/SKILL.md +178 -177
  110. package/skills/rust-programming-expert/SKILL.md +5 -4
  111. package/skills/saas-architect/SKILL.md +155 -154
  112. package/skills/saas-billing/SKILL.md +394 -382
  113. package/skills/saas-multi-tenant/SKILL.md +7 -6
  114. package/skills/scalability-clean-code/SKILL.md +5 -4
  115. package/skills/search-engine-expert/SKILL.md +90 -89
  116. package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
  117. package/skills/senior-frontend/SKILL.md +14 -9
  118. package/skills/seo/SKILL.md +4 -4
  119. package/skills/session-memory-manager/SKILL.md +129 -128
  120. package/skills/solidjs-expert/SKILL.md +81 -80
  121. package/skills/spa-orchestrator/SKILL.md +5 -4
  122. package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
  123. package/skills/state-management-expert/SKILL.md +5 -4
  124. package/skills/supabase-security-expert/SKILL.md +5 -4
  125. package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
  126. package/skills/svg-animation-motion-expert/SKILL.md +3 -2
  127. package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -155
  128. package/skills/tailwind-expert/SKILL.md +62 -5
  129. package/skills/tanstack-query-expert/SKILL.md +5 -4
  130. package/skills/tauri-expert/SKILL.md +5 -4
  131. package/skills/typescript-expert/SKILL.md +5 -4
  132. package/skills/ui-ux-pro-max/SKILL.md +7 -6
  133. package/skills/vector-db-rag-expert/SKILL.md +209 -208
  134. package/skills/vercel-ai-sdk-expert/SKILL.md +226 -181
  135. package/skills/voice-ai-realtime-agent/SKILL.md +243 -242
  136. package/skills/vue-frontend-expert/SKILL.md +5 -4
  137. package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
  138. package/skills/web-3d-graphics-expert/SKILL.md +314 -313
  139. package/skills/web-game-engine-expert/SKILL.md +330 -329
  140. package/skills/web-scraper/SKILL.md +158 -157
  141. package/skills/website-design-cloner/SKILL.md +5 -4
  142. package/skills/webxr-ar-vr-expert/SKILL.md +163 -162
  143. package/skills/wordpress-headless-expert/SKILL.md +145 -144
  144. package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
  145. package/skills/zero-to-prod-orchestrator/SKILL.md +281 -229
  146. package/skills/zero-trust-secret-vault/SKILL.md +3 -2
  147. package/BLUEPRINT.md +0 -319
  148. package/skills/bootstrap-to-modern/SKILL.md +0 -94
  149. package/skills/multiple-entry-points/SKILL.md +0 -91
  150. package/skills/secure-fuzz-testing/SKILL.md +0 -207
  151. package/skills/visual-qa-vision-agent/SKILL.md +0 -71
@@ -1,154 +1,155 @@
1
- ---
2
- name: saas-architect
3
- description: "Master SaaS orchestrator for greenfield MVP launch (0 to 1) and legacy application SaaS transformation (1 to N) / Master orkestrator SaaS untuk peluncuran MVP dari nol (0 ke 1) dan transformasi aplikasi menjadi SaaS (1 ke N)."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # SaaS Architect (MVP Launcher & Transformation Master)
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 domain skills like `brainstorming`, `zero-to-prod-orchestrator`, `saas-multi-tenant`, `saas-billing`, `session-memory-manager`, `prd-architect`, and `production-ready-hardener`.
18
- - **MANDATORY**: Execute `modern-web-guidance` FIRST for all frontend HTML/CSS/JS features to ensure compliance with modern standards.
19
-
20
- ### Description
21
- The **SaaS Architect** is the master lifecycle orchestrator for building commercial SaaS platforms. It operates in two specialized modes:
22
- - **Mode A (Greenfield MVP 0-to-1)**: Validating ideas, rapid stack selection, multi-entry points architecture, authentication, billing setup, and launch checklist.
23
- - **Mode B (App Modernization 1-to-N)**: Systematically converting existing single-tenant or internal applications into enterprise-grade multi-tenant SaaS platforms using a 9-phase transformation pipeline.
24
-
25
- ### Trigger Conditions
26
- - Planning or launching a brand-new SaaS product from scratch.
27
- - Modernizing or converting an existing web app into a commercial SaaS.
28
- - Setting up multi-tenancy, workspace isolation, team management, or feature gating.
29
- - Conducting a technical audit of an existing SaaS architecture.
30
-
31
- ---
32
-
33
- ### Mode A: Greenfield SaaS MVP (0 to 1)
34
-
35
- #### 1. Idea Validation & Scoping
36
- - Define the exact customer problem in one sentence.
37
- - Verify 3+ pre-commitments or letters of intent before deep coding.
38
- - Keep MVP scope tight (target 4-6 weeks to launch).
39
-
40
- #### 2. Modern SaaS Stack Blueprint (2026)
41
- - **Frontend & App**: Next.js 15 App Router + React 19 + TypeScript.
42
- - **Styling & UI**: Tailwind CSS v4 + Base UI / shadcn/ui primitives.
43
- - **Data Layer**: PostgreSQL (Neon Serverless / Supabase) via Drizzle ORM or Prisma 6.
44
- - **Auth**: Clerk, Auth.js v5, or Supabase Auth with OAuth2 PKCE.
45
- - **Billing**: Stripe / Midtrans / DOKU via webhook-driven synchronization.
46
- - **Email & Jobs**: Resend + React Email; BullMQ / Trigger.dev v3 for background jobs.
47
- - **Deployment**: Vercel / Cloudflare Edge with zero-config CI/CD.
48
-
49
- #### 3. Architecture & Entry Points Isolation
50
- Apply the `multiple-entry-points` pattern to segregate responsibilities:
51
- - **Public Entry (`app.example.com` or `example.com`)**: Marketing landing, pricing, documentation, and blog.
52
- - **Tenant Dashboard (`app.example.com/dashboard` or `[tenant].example.com`)**: Authenticated customer workspace.
53
- - **Super Admin Subdomain (`admin.example.com`)**: Dedicated subdomain strictly isolated from customer tenant routes for global metrics, tenant provisioning, user moderation, and feature override controls.
54
-
55
- #### 4. Pre-Launch Quality Gate
56
- - Authentication and session validation (Edge JWT + Redis caching).
57
- - Webhook signature validation active for all billing events.
58
- - Error tracking configured (Sentry) and rate limiting on API routes.
59
- - ToS, Privacy Policy, and 2-3 pricing tiers with trial workflows.
60
-
61
- ---
62
-
63
- ### Mode B: SaaS Transformation & Modernization (1 to N)
64
-
65
- For existing codebases, execute the structured 9-phase transformation pipeline:
66
-
67
- ```
68
- ┌──────────────────────────────────────────────────────────────────┐
69
- │ SAAS TRANSFORMATION PIPELINE │
70
- │ Phase 1: Discovery & Architecture Audit (Scanner script) │
71
- │ Phase 2: Multi-Tenancy & Data Isolation (saas-multi-tenant) │
72
- │ Phase 3: Identity & RBAC Management (authentication-identity) │
73
- │ Phase 4: Billing, Subscriptions & Webhooks (saas-billing) │
74
- │ Phase 5: Workspace & Team Collaboration (Invites, Roles) │
75
- │ Phase 6: Frontend App Shell & Multi-Entry Points │
76
- │ Phase 7: Feature Gating, Limits & Metering │
77
- │ Phase 8: Production Hardening, Testing & Security Audit │
78
- │ Phase 9: Deployment, Multi-Tenant Monitoring & Launch │
79
- └──────────────────────────────────────────────────────────────────┘
80
- ```
81
-
82
- #### Transformation Scanner
83
- Run `python scripts/saas_transformation_scanner.py` to inspect the legacy codebase. It scores readiness across:
84
- 1. Multi-Tenancy Readiness (Foreign keys, tenant isolation)
85
- 2. Auth & RBAC Maturity
86
- 3. Billing & Subscription hooks
87
- 4. Feature Gating presence
88
-
89
- #### Core Modernization Principles
90
- - **Data Isolation**: Refer to `saas-multi-tenant` for Shared Schema RLS or Schema-per-tenant patterns. Do not write raw duplicate schemas.
91
- - **Subscription State Machine**: Refer to `saas-billing` for webhook handling, invoice synchronization, and dunning cycles.
92
- - **Feature Gating**: Implement hierarchical checks (System Flag -> Plan Tier -> Tenant Addon -> User Role) as detailed in `references/feature_gating_patterns.md`.
93
-
94
- ---
95
-
96
- ### 🎨 Automatic Visual Assets Generation Mandate (CRITICAL)
97
- When initializing or scaffolding any new SaaS application:
98
- 1. Automatically invoke `generate_image` to create a production-quality application logo matching the brand identity.
99
- 2. Use this asset immediately as the navbar logo, browser favicon (`favicon.ico`), and Open Graph social banner (`og:image`). Never use placeholder icons.
100
-
101
- ### 📄 Standard Pages Mandate
102
- Every SaaS application must scaffold complete, functional implementations for:
103
- - Landing Page (Hero, Features, Social Proof, Pricing, FAQ)
104
- - Authentication (Sign In, Sign Up, Password Reset, Magic Link)
105
- - Onboarding Wizard (<5 minutes to first value)
106
- - Settings (Profile, Workspace, Team Members, Billing / Plans, API Keys)
107
- - Super Admin Panel on dedicated subdomain (`admin.example.com`)
108
-
109
- ---
110
-
111
- <a name="bahasa-indonesia"></a>
112
- ## Bahasa Indonesia
113
-
114
- ### Integrasi Orkestrasi
115
- Terhubung dan mengorkestrasi skill domain seperti `brainstorming`, `zero-to-prod-orchestrator`, `saas-multi-tenant`, `saas-billing`, `session-memory-manager`, `prd-architect`, dan `production-ready-hardener`.
116
- - **WAJIB**: Jalankan `modern-web-guidance` PERTAMA KALI untuk semua pengerjaan frontend web.
117
-
118
- ### Deskripsi
119
- **SaaS Architect** adalah orkestrator siklus hidup utama untuk membangun platform SaaS komersial. Beroperasi dalam dua mode:
120
- - **Mode A (Greenfield MVP 0 ke 1)**: Validasi ide, pemilihan tech stack kilat, arsitektur multi-entry points, autentikasi, billing, dan checklist peluncuran.
121
- - **Mode B (Modernisasi Aplikasi 1 ke N)**: Mentransformasi aplikasi single-tenant atau internal yang sudah ada menjadi SaaS multi-tenant enterprise menggunakan pipeline 9 fase terstruktur.
122
-
123
- ### Kondisi Pemicu
124
- - Membangun produk SaaS baru dari awal.
125
- - Memodernisasi atau mengubah aplikasi web biasa menjadi SaaS komersial.
126
- - Mengonfigurasi multi-tenancy, isolasi ruang kerja (workspace), manajemen tim, atau feature gating.
127
- - Melakukan audit arsitektur teknis SaaS.
128
-
129
- ---
130
-
131
- ### Mode A: SaaS MVP dari Nol (0 ke 1)
132
- 1. **Validasi Ide**: Rumuskan masalah dalam satu kalimat, validasi dengan 3+ komitmen bayar sebelum mulai coding.
133
- 2. **Tech Stack Modern (2026)**: Next.js 15 App Router, Tailwind CSS v4, PostgreSQL (Neon/Supabase) via Drizzle/Prisma, Clerk/Auth.js, Stripe/Midtrans/DOKU, Resend, Vercel.
134
- 3. **Isolasi Entry Point**: Pisahkan landing page publik, dashboard penyewa (tenant), dan **Dashboard Super Admin** pada subdomain terpisah (`admin.example.com`).
135
- 4. **Gerbang Kualitas Pra-Rilis**: Sesi login teroptimasi (JWT + Redis), webhook billing tervalidasi, Sentry aktif, rate limiting, halaman harga 2-3 tier.
136
-
137
- ---
138
-
139
- ### Mode B: Transformasi & Modernisasi SaaS (1 ke N)
140
- Gunakan pipeline 9 fase terstruktur:
141
- 1. Audit arsitektur & jalankan `python scripts/saas_transformation_scanner.py`.
142
- 2. Fondasi multi-tenancy (merujuk ke `saas-multi-tenant`).
143
- 3. Autentikasi terpusat & RBAC (merujuk ke `authentication-identity-expert`).
144
- 4. Mesin billing & siklus langganan (merujuk ke `saas-billing`).
145
- 5. Manajemen tim & undangan workspace.
146
- 6. Shell frontend & pemisahan entry point.
147
- 7. Feature gating berjenjang (`references/feature_gating_patterns.md`).
148
- 8. Pengujian E2E & hardening keamanan.
149
- 9. Rilis & pemantauan multi-tenant.
150
-
151
- ---
152
-
153
- ### 🎨 Mandat Pembuatan Aset Visual Otomatis (KRITIS)
154
- Gunakan tool `generate_image` secara otomatis untuk membuat logo aplikasi kustom saat inisialisasi aplikasi. Pasang logo tersebut sebagai logo navbar, favicon (`favicon.ico`), dan gambar Open Graph (`og:image`). Dilarang memakai placeholder.
1
+ ---
2
+ name: saas-architect
3
+ description: "Master SaaS orchestrator for greenfield MVP launch (0 to 1) and legacy application SaaS transformation (1 to N) / Master orkestrator SaaS untuk peluncuran MVP dari nol (0 ke 1) dan transformasi aplikasi menjadi SaaS (1 ke N)."
4
+ author: "Roedy Rustam"
5
+ version: "3.0.0"
6
+ ---
7
+
8
+ # SaaS Architect (MVP Launcher & Transformation Master)
9
+
10
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
11
+
12
+ ---
13
+
14
+ <a name="english"></a>
15
+ ## English
16
+
17
+ ### Orchestration & Integration
18
+ Connects and orchestrates with domain skills like `brainstorming`, `zero-to-prod-orchestrator`, `saas-multi-tenant`, `saas-billing`, `session-memory-manager`, `prd-architect`, and `production-ready-hardener`.
19
+ - **MANDATORY**: Execute `modern-web-guidance` FIRST for all frontend HTML/CSS/JS features to ensure compliance with modern standards.
20
+
21
+ ### Description
22
+ The **SaaS Architect** is the master lifecycle orchestrator for building commercial SaaS platforms. It operates in two specialized modes:
23
+ - **Mode A (Greenfield MVP 0-to-1)**: Validating ideas, rapid stack selection, multi-entry points architecture, authentication, billing setup, and launch checklist.
24
+ - **Mode B (App Modernization 1-to-N)**: Systematically converting existing single-tenant or internal applications into enterprise-grade multi-tenant SaaS platforms using a 9-phase transformation pipeline.
25
+
26
+ ### Trigger Conditions
27
+ - Planning or launching a brand-new SaaS product from scratch.
28
+ - Modernizing or converting an existing web app into a commercial SaaS.
29
+ - Setting up multi-tenancy, workspace isolation, team management, or feature gating.
30
+ - Conducting a technical audit of an existing SaaS architecture.
31
+
32
+ ---
33
+
34
+ ### Mode A: Greenfield SaaS MVP (0 to 1)
35
+
36
+ #### 1. Idea Validation & Scoping
37
+ - Define the exact customer problem in one sentence.
38
+ - Verify 3+ pre-commitments or letters of intent before deep coding.
39
+ - Keep MVP scope tight (target 4-6 weeks to launch).
40
+
41
+ #### 2. Modern SaaS Stack Blueprint (2026)
42
+ - **Frontend & App**: Next.js 15 App Router + React 19 + TypeScript.
43
+ - **Styling & UI**: Tailwind CSS v4 + Base UI / shadcn/ui primitives.
44
+ - **Data Layer**: PostgreSQL (Neon Serverless / Supabase) via Drizzle ORM or Prisma 6.
45
+ - **Auth**: Clerk, Auth.js v5, or Supabase Auth with OAuth2 PKCE.
46
+ - **Billing**: Stripe / Midtrans / DOKU via webhook-driven synchronization.
47
+ - **Email & Jobs**: Resend + React Email; BullMQ / Trigger.dev v3 for background jobs.
48
+ - **Deployment**: Vercel / Cloudflare Edge with zero-config CI/CD.
49
+
50
+ #### 3. Architecture & Entry Points Isolation
51
+ Apply the `multiple-entry-points` pattern to segregate responsibilities:
52
+ - **Public Entry (`app.example.com` or `example.com`)**: Marketing landing, pricing, documentation, and blog.
53
+ - **Tenant Dashboard (`app.example.com/dashboard` or `[tenant].example.com`)**: Authenticated customer workspace.
54
+ - **Super Admin Subdomain (`admin.example.com`)**: Dedicated subdomain strictly isolated from customer tenant routes for global metrics, tenant provisioning, user moderation, and feature override controls.
55
+
56
+ #### 4. Pre-Launch Quality Gate
57
+ - Authentication and session validation (Edge JWT + Redis caching).
58
+ - Webhook signature validation active for all billing events.
59
+ - Error tracking configured (Sentry) and rate limiting on API routes.
60
+ - ToS, Privacy Policy, and 2-3 pricing tiers with trial workflows.
61
+
62
+ ---
63
+
64
+ ### Mode B: SaaS Transformation & Modernization (1 to N)
65
+
66
+ For existing codebases, execute the structured 9-phase transformation pipeline:
67
+
68
+ ```
69
+ ┌──────────────────────────────────────────────────────────────────┐
70
+ │ SAAS TRANSFORMATION PIPELINE │
71
+ │ Phase 1: Discovery & Architecture Audit (Scanner script) │
72
+ │ Phase 2: Multi-Tenancy & Data Isolation (saas-multi-tenant) │
73
+ │ Phase 3: Identity & RBAC Management (authentication-identity) │
74
+ │ Phase 4: Billing, Subscriptions & Webhooks (saas-billing) │
75
+ │ Phase 5: Workspace & Team Collaboration (Invites, Roles) │
76
+ │ Phase 6: Frontend App Shell & Multi-Entry Points │
77
+ │ Phase 7: Feature Gating, Limits & Metering │
78
+ │ Phase 8: Production Hardening, Testing & Security Audit │
79
+ │ Phase 9: Deployment, Multi-Tenant Monitoring & Launch │
80
+ └──────────────────────────────────────────────────────────────────┘
81
+ ```
82
+
83
+ #### Transformation Scanner
84
+ Run `python scripts/saas_transformation_scanner.py` to inspect the legacy codebase. It scores readiness across:
85
+ 1. Multi-Tenancy Readiness (Foreign keys, tenant isolation)
86
+ 2. Auth & RBAC Maturity
87
+ 3. Billing & Subscription hooks
88
+ 4. Feature Gating presence
89
+
90
+ #### Core Modernization Principles
91
+ - **Data Isolation**: Refer to `saas-multi-tenant` for Shared Schema RLS or Schema-per-tenant patterns. Do not write raw duplicate schemas.
92
+ - **Subscription State Machine**: Refer to `saas-billing` for webhook handling, invoice synchronization, and dunning cycles.
93
+ - **Feature Gating**: Implement hierarchical checks (System Flag -> Plan Tier -> Tenant Addon -> User Role) as detailed in `references/feature_gating_patterns.md`.
94
+
95
+ ---
96
+
97
+ ### 🎨 Automatic Visual Assets Generation Mandate (CRITICAL)
98
+ When initializing or scaffolding any new SaaS application:
99
+ 1. Automatically invoke `generate_image` to create a production-quality application logo matching the brand identity.
100
+ 2. Use this asset immediately as the navbar logo, browser favicon (`favicon.ico`), and Open Graph social banner (`og:image`). Never use placeholder icons.
101
+
102
+ ### 📄 Standard Pages Mandate
103
+ Every SaaS application must scaffold complete, functional implementations for:
104
+ - Landing Page (Hero, Features, Social Proof, Pricing, FAQ)
105
+ - Authentication (Sign In, Sign Up, Password Reset, Magic Link)
106
+ - Onboarding Wizard (<5 minutes to first value)
107
+ - Settings (Profile, Workspace, Team Members, Billing / Plans, API Keys)
108
+ - Super Admin Panel on dedicated subdomain (`admin.example.com`)
109
+
110
+ ---
111
+
112
+ <a name="bahasa-indonesia"></a>
113
+ ## Bahasa Indonesia
114
+
115
+ ### Integrasi Orkestrasi
116
+ Terhubung dan mengorkestrasi skill domain seperti `brainstorming`, `zero-to-prod-orchestrator`, `saas-multi-tenant`, `saas-billing`, `session-memory-manager`, `prd-architect`, dan `production-ready-hardener`.
117
+ - **WAJIB**: Jalankan `modern-web-guidance` PERTAMA KALI untuk semua pengerjaan frontend web.
118
+
119
+ ### Deskripsi
120
+ **SaaS Architect** adalah orkestrator siklus hidup utama untuk membangun platform SaaS komersial. Beroperasi dalam dua mode:
121
+ - **Mode A (Greenfield MVP 0 ke 1)**: Validasi ide, pemilihan tech stack kilat, arsitektur multi-entry points, autentikasi, billing, dan checklist peluncuran.
122
+ - **Mode B (Modernisasi Aplikasi 1 ke N)**: Mentransformasi aplikasi single-tenant atau internal yang sudah ada menjadi SaaS multi-tenant enterprise menggunakan pipeline 9 fase terstruktur.
123
+
124
+ ### Kondisi Pemicu
125
+ - Membangun produk SaaS baru dari awal.
126
+ - Memodernisasi atau mengubah aplikasi web biasa menjadi SaaS komersial.
127
+ - Mengonfigurasi multi-tenancy, isolasi ruang kerja (workspace), manajemen tim, atau feature gating.
128
+ - Melakukan audit arsitektur teknis SaaS.
129
+
130
+ ---
131
+
132
+ ### Mode A: SaaS MVP dari Nol (0 ke 1)
133
+ 1. **Validasi Ide**: Rumuskan masalah dalam satu kalimat, validasi dengan 3+ komitmen bayar sebelum mulai coding.
134
+ 2. **Tech Stack Modern (2026)**: Next.js 15 App Router, Tailwind CSS v4, PostgreSQL (Neon/Supabase) via Drizzle/Prisma, Clerk/Auth.js, Stripe/Midtrans/DOKU, Resend, Vercel.
135
+ 3. **Isolasi Entry Point**: Pisahkan landing page publik, dashboard penyewa (tenant), dan **Dashboard Super Admin** pada subdomain terpisah (`admin.example.com`).
136
+ 4. **Gerbang Kualitas Pra-Rilis**: Sesi login teroptimasi (JWT + Redis), webhook billing tervalidasi, Sentry aktif, rate limiting, halaman harga 2-3 tier.
137
+
138
+ ---
139
+
140
+ ### Mode B: Transformasi & Modernisasi SaaS (1 ke N)
141
+ Gunakan pipeline 9 fase terstruktur:
142
+ 1. Audit arsitektur & jalankan `python scripts/saas_transformation_scanner.py`.
143
+ 2. Fondasi multi-tenancy (merujuk ke `saas-multi-tenant`).
144
+ 3. Autentikasi terpusat & RBAC (merujuk ke `authentication-identity-expert`).
145
+ 4. Mesin billing & siklus langganan (merujuk ke `saas-billing`).
146
+ 5. Manajemen tim & undangan workspace.
147
+ 6. Shell frontend & pemisahan entry point.
148
+ 7. Feature gating berjenjang (`references/feature_gating_patterns.md`).
149
+ 8. Pengujian E2E & hardening keamanan.
150
+ 9. Rilis & pemantauan multi-tenant.
151
+
152
+ ---
153
+
154
+ ### 🎨 Mandat Pembuatan Aset Visual Otomatis (KRITIS)
155
+ Gunakan tool `generate_image` secara otomatis untuk membuat logo aplikasi kustom saat inisialisasi aplikasi. Pasang logo tersebut sebagai logo navbar, favicon (`favicon.ico`), dan gambar Open Graph (`og:image`). Dilarang memakai placeholder.