vibes-plug 2.11.0 → 2.14.1

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 (69) hide show
  1. package/.cursor/rules/vibes-plug-core.mdc +3 -3
  2. package/.cursorrules +3 -3
  3. package/AGENTS.md +4 -4
  4. package/BLUEPRINT.md +16 -6
  5. package/CHANGELOG.md +37 -0
  6. package/CLAUDE.md +8 -8
  7. package/README.md +85 -115
  8. package/index.js +1 -1
  9. package/package.json +2 -2
  10. package/plugin.json +2 -2
  11. package/scripts/check-anti-slop.js +53 -0
  12. package/scripts/generate_swarm_gif.py +2 -2
  13. package/skills/ai-llm-integration-expert/SKILL.md +22 -15
  14. package/skills/ai-prompt-engineering-expert/SKILL.md +133 -83
  15. package/skills/anti-slop/SKILL.md +133 -0
  16. package/skills/async-queue-temporal-expert/SKILL.md +135 -158
  17. package/skills/authentication-identity-expert/SKILL.md +172 -278
  18. package/skills/brainstorming/SKILL.md +26 -26
  19. package/skills/database-orm-expert/SKILL.md +164 -303
  20. package/skills/deep-research-analyst/SKILL.md +136 -0
  21. package/skills/design-system-architect/SKILL.md +31 -1
  22. package/skills/email-notification-expert/SKILL.md +31 -4
  23. package/skills/error-resilience-expert/SKILL.md +21 -0
  24. package/skills/fullstack-expert/SKILL.md +183 -260
  25. package/skills/glsl-shader-expert/SKILL.md +190 -107
  26. package/skills/graph-rag-knowledge-expert/SKILL.md +42 -1
  27. package/skills/mcp-server-architect/SKILL.md +15 -1
  28. package/skills/prd-architect/SKILL.md +181 -206
  29. package/skills/production-ready-hardener/SKILL.md +16 -19
  30. package/skills/pwa-offline-first-expert/SKILL.md +42 -1
  31. package/skills/pydantic-ai-expert/SKILL.md +161 -0
  32. package/skills/saas-architect/SKILL.md +154 -0
  33. package/skills/senior-frontend/SKILL.md +9 -11
  34. package/skills/senior-frontend/scripts/frontend_scaffolder.py +1 -1
  35. package/skills/session-memory-manager/SKILL.md +128 -0
  36. package/skills/synthetic-data-finetuning-expert/SKILL.md +155 -0
  37. package/skills/ui-ux-pro-max/SKILL.md +4 -2
  38. package/skills/vercel-ai-sdk-expert/SKILL.md +181 -0
  39. package/skills/voice-ai-realtime-agent/SKILL.md +41 -1
  40. package/skills/web-3d-graphics-expert/SKILL.md +313 -137
  41. package/skills/web-game-engine-expert/SKILL.md +329 -102
  42. package/skills/webxr-ar-vr-expert/SKILL.md +162 -123
  43. package/skills/zero-to-prod-orchestrator/SKILL.md +26 -24
  44. package/skills/ai-cost-token-optimizer/SKILL.md +0 -82
  45. package/skills/ai-evals-benchmark-expert/SKILL.md +0 -188
  46. package/skills/asisten-ramah/SKILL.md +0 -47
  47. package/skills/auto-doc-updater/SKILL.md +0 -220
  48. package/skills/autonomous-chaos-monkey/SKILL.md +0 -63
  49. package/skills/background-jobs-queue-expert/SKILL.md +0 -235
  50. package/skills/database-migration-versioning-expert/SKILL.md +0 -90
  51. package/skills/edge-serverless-db-expert/SKILL.md +0 -99
  52. package/skills/mcp-client-orchestrator/SKILL.md +0 -76
  53. package/skills/mobile-push-notification-expert/SKILL.md +0 -71
  54. package/skills/monday-design-aesthetic/SKILL.md +0 -73
  55. package/skills/project-context-mapper/SKILL.md +0 -85
  56. package/skills/saas-mvp-launcher/SKILL.md +0 -260
  57. package/skills/saas-transformer/SKILL.md +0 -500
  58. package/skills/saas-transformer/references/billing_integration_guide.md +0 -401
  59. package/skills/self-evolving-memory-graph/SKILL.md +0 -91
  60. package/skills/session-context-loader/SKILL.md +0 -83
  61. package/skills/session-handoff-resume/SKILL.md +0 -164
  62. package/skills/skill-baru/SKILL.md +0 -178
  63. package/skills/supabase-migration/SKILL.md +0 -91
  64. package/skills/token-saver/SKILL.md +0 -119
  65. package/skills/ui-components-expert/SKILL.md +0 -166
  66. package/skills/vibe-code-gardener/SKILL.md +0 -181
  67. /package/skills/{saas-transformer → saas-architect}/references/feature_gating_patterns.md +0 -0
  68. /package/skills/{saas-transformer → saas-architect}/references/saas_transformation_checklist.md +0 -0
  69. /package/skills/{saas-transformer → saas-architect}/scripts/saas_transformation_scanner.py +0 -0
@@ -1,279 +1,173 @@
1
- ---
2
- name: authentication-identity-expert
3
- description: "Expert guide for implementing secure authentication, authorization (RBAC/ABAC), OAuth2, and identity management (Clerk, Auth.js, Supabase Auth) / Panduan ahli untuk autentikasi dan otorisasi."
1
+ ---
2
+ name: authentication-identity-expert
3
+ description: "Expert guide for implementing secure authentication, authorization (RBAC/ABAC), OAuth2, and identity management (Clerk, Auth.js, Supabase Auth) / Panduan ahli untuk autentikasi dan otorisasi."
4
4
  author: "Roedy Rustam"
5
- ---
6
-
7
- # Authentication & Identity Expert (2026 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- Production-grade guide for implementing secure authentication, authorization, and identity management in modern web and mobile applications. Covers **Clerk**, **Supabase Auth**, **Auth.js v5**, **Better Auth**, JWT patterns, OAuth 2.1, PKCE flows, RBAC/ABAC, passkeys (WebAuthn), and MFA implementation for React 19 / Next.js 15 stacks.
18
-
19
- ### Trigger Conditions
20
- - Working on login/signup flows, session management, or OAuth integration.
21
- - Integrating **Clerk**, **Supabase Auth**, **Auth.js v5**, **Better Auth**, or **Auth0**.
22
- - Implementing **Role-Based Access Control (RBAC)** or **Attribute-Based Access Control (ABAC)**.
23
- - Setting up **WebAuthn/Passkeys**, **MFA/2FA**, or **SSO**.
24
- - Securing Next.js App Router routes with middleware-based auth guards.
25
- - Implementing **OAuth 2.1** flows with PKCE for SPAs or mobile apps.
26
-
27
- ---
28
-
29
- ### Identity Provider Selection Guide (2026)
30
-
31
- | Provider | Best For | Key Strength |
32
- |---|---|---|
33
- | **Clerk** | SaaS, B2B apps | Built-in organizations, roles, MFA, UI components |
34
- | **Supabase Auth** | Supabase-powered apps | RLS integration, social login, SSO |
35
- | **Auth.js v5** | Next.js self-hosted | Flexible adapters, edge-compatible |
36
- | **Better Auth** | TypeScript-first self-hosted | Modern DX, built-in 2FA, org management |
37
- | **Auth0** | Enterprise, compliance | Enterprise SSO, compliance (SOC2, HIPAA) |
38
-
39
- **Recommendation**: Use **Clerk** for most new SaaS apps (best DX). Use **Supabase Auth** if you're already using Supabase. Use **Better Auth** for full control without vendor lock-in.
40
-
41
- ---
42
-
43
- ### Core Security Principles
44
-
45
- #### 1. Never Roll Your Own Crypto
46
- - Use `argon2id` (preferred) or `bcrypt` for password hashing — **never MD5, SHA1, or plain SHA256**.
47
- - Use battle-tested libraries: `@node-rs/argon2`, `bcryptjs`.
48
- - Minimum: bcrypt cost factor ≥12, argon2id memory ≥64MB.
49
-
50
- #### 2. JWT Best Practices
51
- ```typescript
52
- // ✅ Short-lived access tokens + HttpOnly refresh tokens
53
- const ACCESS_TOKEN_EXPIRY = '15m'; // 15 minutes
54
- const REFRESH_TOKEN_EXPIRY = '7d'; // 7 days
55
-
56
- // ✅ Store refresh tokens in HttpOnly, Secure, SameSite=Strict cookies
57
- res.cookie('refresh_token', token, {
58
- httpOnly: true,
59
- secure: true,
60
- sameSite: 'strict',
61
- maxAge: 7 * 24 * 60 * 60 * 1000, // 7 days in ms
62
- });
63
-
64
- // ❌ Never store tokens in localStorage (XSS vulnerable)
65
- // ❌ Never put sensitive data in JWT payload (it's base64 decoded, not encrypted)
66
- ```
67
-
68
- #### 3. OAuth 2.1 + PKCE (For SPAs & Mobile)
69
- ```typescript
70
- // PKCE flow — required for public clients in OAuth 2.1
71
- import { generateCodeVerifier, generateCodeChallenge } from 'oslo/oauth2';
72
-
73
- const codeVerifier = generateCodeVerifier(); // 43-128 char random string
74
- const codeChallenge = await generateCodeChallenge(codeVerifier); // SHA-256 hash
75
-
76
- // Store codeVerifier in sessionStorage (NOT localStorage) during redirect
77
- sessionStorage.setItem('pkce_verifier', codeVerifier);
78
-
79
- // Auth URL includes challenge
80
- const authUrl = new URL('https://provider.com/oauth/authorize');
81
- authUrl.searchParams.set('code_challenge', codeChallenge);
82
- authUrl.searchParams.set('code_challenge_method', 'S256');
83
- authUrl.searchParams.set('state', cryptoRandomState); // CSRF protection
84
- ```
85
-
86
- #### 4. Clerk — Next.js 15 Integration
87
- ```typescript
88
- // middleware.ts — protect routes at the edge
89
- import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
90
-
91
- const isPublicRoute = createRouteMatcher([
92
- '/', '/sign-in(.*)', '/sign-up(.*)', '/api/webhooks(.*)',
93
- ]);
94
-
95
- export default clerkMiddleware(async (auth, req) => {
96
- if (!isPublicRoute(req)) {
97
- await auth.protect(); // Redirects to sign-in if unauthenticated
98
- }
99
- });
100
-
101
- export const config = {
102
- matcher: ['/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)', '/(api|trpc)(.*)'],
103
- };
104
- ```
105
-
106
- ```typescript
107
- // Server Component — get user on the server
108
- import { auth, currentUser } from '@clerk/nextjs/server';
109
-
110
- export default async function DashboardPage() {
111
- const { userId, orgId, orgRole } = await auth();
112
- if (!userId) redirect('/sign-in');
113
-
114
- const user = await currentUser();
115
- return <div>Welcome, {user?.firstName}!</div>;
116
- }
117
- ```
118
-
119
- #### 5. Supabase Auth — RLS Integration
120
- ```typescript
121
- // Create Supabase client with user session
122
- import { createServerClient } from '@supabase/ssr';
123
-
124
- export async function createSupabaseServerClient(cookieStore: ReadonlyRequestCookies) {
125
- return createServerClient(
126
- process.env.NEXT_PUBLIC_SUPABASE_URL!,
127
- process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
128
- {
129
- cookies: {
130
- getAll: () => cookieStore.getAll(),
131
- setAll: (cookies) => cookies.forEach(({ name, value, options }) =>
132
- cookieStore.set(name, value, options)
133
- ),
134
- },
135
- }
136
- );
137
- }
138
-
139
- // RLS in PostgreSQL — users can only access their own rows
140
- -- CREATE POLICY "Users can only see own data" ON profiles
141
- -- FOR ALL USING (auth.uid() = user_id);
142
- ```
143
-
144
- #### 6. Auth.js v5 (Next.js App Router)
145
- ```typescript
146
- // auth.ts
147
- import NextAuth from 'next-auth';
148
- import GitHub from 'next-auth/providers/github';
149
- import { DrizzleAdapter } from '@auth/drizzle-adapter';
150
- import { db } from '@/db';
151
-
152
- export const { handlers, auth, signIn, signOut } = NextAuth({
153
- adapter: DrizzleAdapter(db),
154
- providers: [
155
- GitHub,
156
- // Add more providers...
157
- ],
158
- session: { strategy: 'database' }, // or 'jwt'
159
- callbacks: {
160
- authorized({ auth, request: { nextUrl } }) {
161
- const isLoggedIn = !!auth?.user;
162
- const isProtected = nextUrl.pathname.startsWith('/dashboard');
163
- if (isProtected && !isLoggedIn) return false;
164
- return true;
165
- },
166
- },
167
- });
168
- ```
169
-
170
- #### 7. RBAC — Role-Based Access Control (Server-Side)
171
- ```typescript
172
- // ✅ Always enforce roles server-side — never rely on client UI alone
173
- type Role = 'viewer' | 'editor' | 'admin' | 'super_admin';
174
-
175
- const permissions: Record<Role, string[]> = {
176
- viewer: ['read:posts'],
177
- editor: ['read:posts', 'write:posts', 'delete:own_posts'],
178
- admin: ['read:posts', 'write:posts', 'delete:any_post', 'manage:users'],
179
- super_admin: ['*'], // All permissions
180
- };
181
-
182
- function hasPermission(userRole: Role, required: string): boolean {
183
- const allowed = permissions[userRole];
184
- return allowed.includes('*') || allowed.includes(required);
185
- }
186
-
187
- // In Server Action / API Route
188
- const { userId } = await auth();
189
- const user = await db.query.users.findFirst({ where: eq(users.id, userId) });
190
-
191
- if (!hasPermission(user.role, 'delete:any_post')) {
192
- throw new Error('Forbidden');
193
- }
194
- ```
195
-
196
- #### 8. WebAuthn / Passkeys (2026 Standard)
197
- ```typescript
198
- // Using SimpleWebAuthn library
199
- import { generateRegistrationOptions, verifyRegistrationResponse } from '@simplewebauthn/server';
200
-
201
- // Registration — generate challenge
202
- const options = await generateRegistrationOptions({
203
- rpName: 'My App',
204
- rpID: 'myapp.com',
205
- userName: user.email,
206
- attestationType: 'none',
207
- authenticatorSelection: {
208
- residentKey: 'preferred', // Enables passkeys
209
- userVerification: 'preferred',
210
- },
211
- });
212
-
213
- // Store challenge in session, send options to client
214
- await redis.setex(`webauthn:${userId}`, 60, JSON.stringify(options.challenge));
215
- ```
216
-
217
- ### Security Checklist
218
- - [ ] Passwords hashed with argon2id (cost ≥64MB) or bcrypt (cost ≥12).
219
- - [ ] JWT access tokens expire in ≤15 minutes; refresh in HttpOnly cookies.
220
- - [ ] OAuth state parameter validated on callback (CSRF protection).
221
- - [ ] PKCE enforced for all public OAuth clients.
222
- - [ ] All authorization checks enforced server-side (not UI-only).
223
- - [ ] Admin routes protected by both auth middleware AND role check.
224
- - [ ] MFA offered (TOTP/WebAuthn) for privileged accounts.
225
- - [ ] Refresh token rotation on every use (detect theft).
226
- - [ ] Rate limiting on login/signup endpoints (prevent brute force).
227
- - [ ] Account lockout after N failed attempts.
228
-
229
- ---
230
-
231
- <a name="bahasa-indonesia"></a>
232
- ## Bahasa Indonesia
233
-
234
- ### Integrasi Orkestrasi
235
- Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
236
-
237
- ### Deskripsi
238
- Panduan tingkat produksi untuk mengimplementasikan autentikasi, otorisasi, dan manajemen identitas yang aman pada aplikasi web dan mobile modern. Mencakup **Clerk**, **Supabase Auth**, **Auth.js v5**, **Better Auth**, pola JWT, OAuth 2.1, alur PKCE, RBAC/ABAC, passkey (WebAuthn), dan implementasi MFA untuk stack React 19 / Next.js 15.
239
-
240
- ### Kondisi Pemicu
241
- - Mengerjakan alur login/signup, manajemen sesi, atau integrasi OAuth.
242
- - Mengintegrasikan Clerk, Supabase Auth, Auth.js v5, Better Auth, atau Auth0.
243
- - Mengimplementasikan RBAC (Role-Based Access Control) atau ABAC.
244
- - Menyiapkan WebAuthn/Passkeys, MFA/2FA, atau SSO.
245
- - Mengamankan rute Next.js App Router dengan auth guard berbasis middleware.
246
-
247
- ### Panduan Teknis
248
-
249
- #### 1. Prinsip Keamanan Inti
250
- - **Jangan buat kriptografi sendiri**: Gunakan `argon2id` atau `bcrypt` untuk hashing password.
251
- - **JWT berumur pendek**: Access token ≤15 menit, refresh token di HttpOnly cookie.
252
- - **PKCE wajib** untuk semua public OAuth client (SPA, mobile).
253
- - **Validasi state OAuth** di callback untuk proteksi CSRF.
254
-
255
- #### 2. Pemilihan Identity Provider
256
- - **Clerk**: Terbaik untuk SaaS baru — DX terbaik, komponen UI siap pakai, manajemen organisasi.
257
- - **Supabase Auth**: Ideal jika sudah pakai Supabase — integrasi langsung dengan RLS.
258
- - **Auth.js v5**: Self-hosted, fleksibel, edge-compatible untuk Next.js.
259
- - **Better Auth**: TypeScript-first, kontrol penuh tanpa vendor lock-in.
260
-
261
- #### 3. RBAC di Sisi Server
262
- Selalu terapkan pengecekan role di server (Server Action, API route, middleware) — **jangan hanya di UI**. Gunakan tabel permission yang memetakan setiap role ke daftar aksi yang diizinkan.
263
-
264
- #### 4. WebAuthn / Passkeys
265
- Gunakan library `@simplewebauthn/server` untuk registrasi dan verifikasi passkey. Simpan challenge di Redis dengan TTL pendek (60 detik) untuk mencegah replay attack.
266
-
267
- #### 5. Checklist Keamanan
268
- - Password di-hash dengan argon2id atau bcrypt.
269
- - JWT access token expire ≤15 menit; refresh di HttpOnly cookie.
270
- - State OAuth divalidasi saat callback.
271
- - PKCE diterapkan untuk semua klien publik OAuth.
272
- - Pengecekan otorisasi dilakukan di server, bukan hanya UI.
273
- - MFA ditawarkan untuk akun privileged.
274
- - Rate limiting di endpoint login/signup.
275
- - Rotasi refresh token setiap kali digunakan.
276
-
277
-
278
- ## Orchestration & Integration
279
- - Connects to other backend skills as part of the orchestration flow.
5
+ ---
6
+
7
+ # Authentication & Identity Expert (2026 Edition)
8
+
9
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
+
11
+ ---
12
+
13
+ <a name="english"></a>
14
+ ## English
15
+
16
+ ### Description
17
+ Production-grade guide for implementing secure authentication, authorization, and identity management in modern web and mobile applications. Covers **Clerk**, **Supabase Auth**, **Auth.js v5**, **Better Auth**, JWT patterns, OAuth 2.1, PKCE flows, RBAC/ABAC, passkeys (WebAuthn), and MFA implementations for React 19 / Next.js 15 stacks.
18
+
19
+ ### Trigger Conditions
20
+ - Working on login/signup flows, session management, or OAuth integrations.
21
+ - Integrating Clerk, Supabase Auth, Auth.js v5, Better Auth, or Auth0.
22
+ - Implementing RBAC (Role-Based Access Control) or ABAC.
23
+ - Setting up WebAuthn/Passkeys, MFA/2FA, or SSO.
24
+ - Securing Next.js App Router routes with middleware-based auth guards.
25
+
26
+ ---
27
+
28
+ ### Identity Provider Selection Guide
29
+
30
+ | Provider | Best For | Key Strength | Pricing Model |
31
+ |---|---|---|---|
32
+ | **Clerk** | New SaaS products | Best developer DX, prebuilt UI components, orgs/teams out-of-the-box | Per MAU (free up to 10k) |
33
+ | **Supabase Auth** | Existing Supabase apps | Native RLS integration, multi-provider OAuth, generous free tier | Included with Supabase |
34
+ | **Auth.js v5** | Self-hosted control | Full data ownership, zero vendor lock-in, Edge-compatible | 100% Free / OSS |
35
+ | **Better Auth** | Modern TS-first apps | Comprehensive TypeScript plugin ecosystem, 2FA, passkeys | 100% Free / OSS |
36
+
37
+ ---
38
+
39
+ ### Technical Guidelines & Recipes
40
+
41
+ #### 1. Password Hashing Standards
42
+ ```typescript
43
+ import argon2 from 'argon2';
44
+
45
+ export async function hashPassword(password: string): Promise<string> {
46
+ return argon2.hash(password, {
47
+ type: argon2.argon2id,
48
+ memoryCost: 65536, // 64 MB
49
+ timeCost: 3,
50
+ parallelism: 4,
51
+ });
52
+ }
53
+ ```
54
+
55
+ #### 2. Short-Lived JWT + Refresh Token Rotation
56
+ ```typescript
57
+ // Access token: 15 minutes, in memory
58
+ // Refresh token: 7-30 days, HttpOnly, Secure, SameSite=Strict cookie
59
+ ```
60
+
61
+ #### 3. OAuth 2.1 + PKCE
62
+ ```typescript
63
+ import { generateCodeVerifier, generateCodeChallenge } from 'oslo/oauth2';
64
+
65
+ const codeVerifier = generateCodeVerifier();
66
+ const codeChallenge = await generateCodeChallenge(codeVerifier);
67
+ sessionStorage.setItem('pkce_verifier', codeVerifier);
68
+
69
+ const authUrl = new URL('https://provider.com/oauth/authorize');
70
+ authUrl.searchParams.set('code_challenge', codeChallenge);
71
+ authUrl.searchParams.set('code_challenge_method', 'S256');
72
+ authUrl.searchParams.set('state', cryptoRandomState);
73
+ ```
74
+
75
+ #### 4. Clerk — Next.js 15 Integration
76
+ ```typescript
77
+ // middleware.ts
78
+ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
79
+
80
+ const isPublicRoute = createRouteMatcher(['/', '/sign-in(.*)', '/sign-up(.*)', '/api/webhooks(.*)']);
81
+
82
+ export default clerkMiddleware(async (auth, req) => {
83
+ if (!isPublicRoute(req)) await auth.protect();
84
+ });
85
+
86
+ export const config = {
87
+ matcher: ['/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)', '/(api|trpc)(.*)'],
88
+ };
89
+ ```
90
+
91
+ #### 5. Supabase Auth — RLS Integration
92
+ > For detailed Supabase Auth SSR setup, PKCE session cookie handling, and PostgreSQL Row-Level Security (RLS) policies, delegate directly to `supabase-security-expert`.
93
+
94
+ #### 6. Auth.js v5 (Next.js App Router)
95
+ ```typescript
96
+ import NextAuth from 'next-auth';
97
+ import GitHub from 'next-auth/providers/github';
98
+ import { DrizzleAdapter } from '@auth/drizzle-adapter';
99
+ import { db } from '@/db';
100
+
101
+ export const { handlers, auth, signIn, signOut } = NextAuth({
102
+ adapter: DrizzleAdapter(db),
103
+ providers: [GitHub],
104
+ session: { strategy: 'database' },
105
+ });
106
+ ```
107
+
108
+ #### 7. RBAC — Role-Based Access Control (Server-Side)
109
+ ```typescript
110
+ type Role = 'viewer' | 'editor' | 'admin' | 'super_admin';
111
+
112
+ const permissions: Record<Role, string[]> = {
113
+ viewer: ['read:posts'],
114
+ editor: ['read:posts', 'write:posts', 'delete:own_posts'],
115
+ admin: ['read:posts', 'write:posts', 'delete:any_post', 'manage:users'],
116
+ super_admin: ['*'],
117
+ };
118
+
119
+ export function hasPermission(userRole: Role, required: string): boolean {
120
+ const allowed = permissions[userRole] || [];
121
+ return allowed.includes('*') || allowed.includes(required);
122
+ }
123
+ ```
124
+
125
+ #### 8. WebAuthn / Passkeys (2026 Standard)
126
+ ```typescript
127
+ import { generateRegistrationOptions, verifyRegistrationResponse } from '@simplewebauthn/server';
128
+
129
+ export async function getPasskeyRegistrationOptions(userId: string, userEmail: string) {
130
+ return generateRegistrationOptions({
131
+ rpName: 'My App',
132
+ rpID: 'myapp.com',
133
+ userID: new TextEncoder().encode(userId),
134
+ userName: userEmail,
135
+ attestationType: 'none',
136
+ authenticatorSelection: { residentKey: 'preferred', userVerification: 'preferred' },
137
+ });
138
+ }
139
+ ```
140
+
141
+ ### Production Security Checklist
142
+ - [ ] Passwords hashed with argon2id or bcrypt (cost >= 12).
143
+ - [ ] JWT access token expires in <= 15 minutes; refresh token in HttpOnly cookie.
144
+ - [ ] PKCE enforced for all public OAuth clients.
145
+ - [ ] Authorization enforced on server actions and API routes (never UI only).
146
+ - [ ] Rate limiting on login and signup endpoints.
147
+
148
+ ## Orchestration & Integration
149
+ - Connects with `supabase-security-expert`, `saas-architect`, `js-backend-expert`, `firebase-security-expert`, and `production-ready-hardener`.
150
+
151
+ ---
152
+
153
+ <a name="bahasa-indonesia"></a>
154
+ ## Bahasa Indonesia
155
+
156
+ ### Deskripsi
157
+ Panduan tingkat produksi untuk autentikasi, otorisasi, dan manajemen identitas modern (Clerk, Supabase Auth, Auth.js v5, Better Auth, OAuth 2.1 PKCE, RBAC, dan Passkeys).
158
+
159
+ ### Rekomendasi Identity Provider
160
+ - **Clerk**: Terbaik untuk SaaS baru (UI bawaan, manajemen tim/organisasi).
161
+ - **Supabase Auth**: Terbaik jika memakai database Supabase (integrasi native RLS).
162
+ - **Auth.js v5**: Self-hosted, kontrol penuh tanpa vendor lock-in.
163
+ - **Better Auth**: TypeScript-first, fitur 2FA dan passkey bawaan.
164
+
165
+ ### Poin Kunci Keamanan
166
+ 1. **Password Hashing**: Gunakan `argon2id` atau `bcrypt` (cost >= 12).
167
+ 2. **Token Berumur Pendek**: Access token <= 15 menit, refresh token di cookie HttpOnly dengan rotasi token.
168
+ 3. **PKCE Wajib**: Terapkan PKCE untuk semua klien publik OAuth.
169
+ 4. **Otorisasi Server-Side**: Wajibkan verifikasi hak akses di server (bukan hanya UI).
170
+ 5. **Supabase Auth**: Untuk setup SSR dan RLS mendalam, delegasikan ke `supabase-security-expert`.
171
+
172
+ ## Integrasi Orkestrasi
173
+ - Terhubung dengan `supabase-security-expert`, `saas-architect`, `js-backend-expert`, `firebase-security-expert`, dan `production-ready-hardener`.
@@ -38,24 +38,24 @@ During brainstorming, consult, reference, and orchestrate the following speciali
38
38
 
39
39
  | Domain / Phase | Orchestrated Skills | Trigger & Delegation Context |
40
40
  | :--- | :--- | :--- |
41
- | **Discovery & Audit** | `prd-architect`, `app-analyzer-optimizer`, `web-scraper`, `website-design-cloner`, `browser-automation-expert`, `dependency-upgrade-migrator`, `project-context-mapper`, `proactive-background-watcher`, `self-evolving-memory-graph`, `documentation-site-expert`, `headless-cms-expert`, `wordpress-headless-expert` | Formulate formal PRD, ERD, and Documentation, audit existing codebases, cross-project episodic memory, reverse-engineer website URL designs 1:1, scrape reference products, headless CMS/WP architecture discovery, docs site setup, execute autonomous Playwright/Browser-Use web agents, or audit dependency health. |
42
- | **UI/UX & Design Systems** | `design-system-architect`, `website-design-cloner`, `hig`, `monday-design-aesthetic`, `ui-ux-pro-max`, `tailwind-expert`, `bootstrap-to-modern`, `ui-components-expert`, `svg-animation-motion-expert`, `web-3d-graphics-expert`, `glsl-shader-expert`, `webxr-ar-vr-expert`, `visual-qa-vision-agent`, `data-visualization-expert`, `rich-text-editor-expert`, `modern-css-native-expert` | Reverse-engineer website designs & templates directly from target URL, design tokens (OKLCH), Tailwind CSS v4, native CSS 2026 anchor positioning, Apple HIG principles, layout hierarchy, production-quality UI components, rich text editors (Tiptap/Lexical), data viz & charts (Recharts/Tremor/D3), modernizing legacy Bootstrap apps, WebGL 3D (Three.js/Babylon.js), custom GLSL shaders, WebXR AR/VR. |
43
- | **Frontend Frameworks** | `senior-frontend`, `vue-frontend-expert`, `astro-framework-expert`, `svelte-sveltekit-expert`, `solidjs-expert`, `angular-expert`, `tanstack-query-expert`, `global-a11y-i18n-expert`, `state-management-expert`, `form-validation-expert`, `apple-ecosystem-expert`, `blockchain-web3-expert`, `pwa-offline-first-expert` | React 19 / Next.js 15 App Router, Vue 3 / Nuxt 3, Astro 5+ Islands, Svelte 5 Runes / SvelteKit 2, SolidJS 2 / SolidStart, Angular 19+ Signals & Standalone, Web3 dApp integrations (wagmi/viem), async state management (Zustand/Jotai/Pinia), WCAG 2.2 a11y, multi-language i18n, complex forms with React Hook Form + Zod, Local-First offline architectures (RxDB/PowerSync). |
44
- | **Mobile & Desktop** | `mobile-expo-expert`, `apple-ecosystem-expert`, `tauri-expert`, `desktop-electron-expert`, `mobile-push-notification-expert`, `pwa-offline-first-expert` | Cross-platform React Native / Expo Router v4, Apple ecosystem (iOS PWA & Safari), iOS Live Activities, push notifications (FCM/APNs), Rust-powered Tauri v2, Electron 33+ desktop apps, or PWA app store distribution (PWABuilder). |
45
- | **Backend & Runtimes** | `nextjs-app-router-expert`, `database-migration-versioning-expert`, `js-backend-expert`, `python-programming-expert`, `go-programming-expert`, `rust-programming-expert`, `bun-runtime-expert`, `mvc-expert`, `domain-driven-design-expert`, `fullstack-expert`, `async-queue-temporal-expert`, `background-jobs-queue-expert`, `cron-scheduler-expert`, `legacy-code-translator`, `api-gateway-proxy-expert`, `wasm-edge-computing-expert`, `n8n-automation-expert`, `chatbot-messaging-expert`, `pdf-document-generation-expert` | API design, Node.js 24, Bun 1.2+, FastAPI, Go microservices, Rust Axum, API Gateways, Edge computing WASM, durable workflows (Temporal/Trigger.dev/BullMQ), dedicated background jobs queues, scheduled tasks, n8n workflow automation, WhatsApp/Telegram/Discord bots, PDF & document pipelines. |
41
+ | **Discovery & Audit** | `prd-architect`, `deep-research-analyst`, `app-analyzer-optimizer`, `web-scraper`, `website-design-cloner`, `browser-automation-expert`, `dependency-upgrade-migrator`, `session-memory-manager`, `proactive-background-watcher`, `documentation-site-expert`, `headless-cms-expert`, `wordpress-headless-expert` | Formulate formal PRD, ERD, and Documentation, autonomous deep web research & evidence triangulation, audit existing codebases, cross-project memory, reverse-engineer website URL designs 1:1, scrape reference products, headless CMS/WP architecture discovery, docs site setup, execute autonomous Playwright/Browser-Use web agents, or audit dependency health. |
42
+ | **UI/UX & Design Systems** | `design-system-architect`, `website-design-cloner`, `hig`, `ui-ux-pro-max`, `tailwind-expert`, `bootstrap-to-modern`, `svg-animation-motion-expert`, `web-3d-graphics-expert`, `glsl-shader-expert`, `webxr-ar-vr-expert`, `visual-qa-vision-agent`, `data-visualization-expert`, `rich-text-editor-expert`, `modern-css-native-expert` | Reverse-engineer website designs & templates directly from target URL, design tokens (OKLCH), Tailwind CSS v4, native CSS 2026 anchor positioning, Apple HIG principles, layout hierarchy, production-quality UI components, rich text editors (Tiptap/Lexical), data viz & charts (Recharts/Tremor/D3), modernizing legacy Bootstrap apps, WebGPU & WebGL 3D (Three.js WebGPU/TSL, Babylon.js, PlayCanvas), custom GLSL/WGSL shaders, WebXR AR/VR. |
43
+ | **Frontend Frameworks** | `senior-frontend`, `vercel-ai-sdk-expert`, `vue-frontend-expert`, `astro-framework-expert`, `svelte-sveltekit-expert`, `solidjs-expert`, `angular-expert`, `tanstack-query-expert`, `global-a11y-i18n-expert`, `state-management-expert`, `form-validation-expert`, `apple-ecosystem-expert`, `blockchain-web3-expert`, `pwa-offline-first-expert` | React 19 / Next.js 15 App Router, Vercel AI SDK Core/UI streaming, Vue 3 / Nuxt 3, Astro 5+ Islands, Svelte 5 Runes / SvelteKit 2, SolidJS 2 / SolidStart, Angular 19+ Signals & Standalone, Web3 dApp integrations (wagmi/viem), async state management (Zustand/Jotai/Pinia), WCAG 2.2 a11y, multi-language i18n, complex forms with React Hook Form + Zod, Local-First offline architectures (RxDB/PowerSync). |
44
+ | **Mobile & Desktop** | `mobile-expo-expert`, `apple-ecosystem-expert`, `tauri-expert`, `desktop-electron-expert`, `email-notification-expert`, `pwa-offline-first-expert` | Cross-platform React Native / Expo Router v4, Apple ecosystem (iOS PWA & Safari), iOS Live Activities, push notifications (FCM/APNs), Rust-powered Tauri v2, Electron 33+ desktop apps, or PWA app store distribution (PWABuilder). |
45
+ | **Backend & Runtimes** | `nextjs-app-router-expert`, `database-orm-expert`, `js-backend-expert`, `python-programming-expert`, `pydantic-ai-expert`, `go-programming-expert`, `rust-programming-expert`, `bun-runtime-expert`, `mvc-expert`, `domain-driven-design-expert`, `fullstack-expert`, `async-queue-temporal-expert`, `cron-scheduler-expert`, `legacy-code-translator`, `api-gateway-proxy-expert`, `wasm-edge-computing-expert`, `n8n-automation-expert`, `chatbot-messaging-expert`, `pdf-document-generation-expert` | API design, Node.js 24, Bun 1.2+, FastAPI, Pydantic AI type-safe agents, Go microservices, Rust Axum, API Gateways, Edge computing WASM, durable workflows (Temporal/Trigger.dev/BullMQ), scheduled tasks, n8n workflow automation, WhatsApp/Telegram/Discord bots, PDF & document pipelines. |
46
46
  | **API Design & Contracts** | `api-design-expert`, `openapi-swagger-codegen-expert`, `typescript-expert`, `rate-limit-abuse-prevention`, `graphql-apollo-expert` | REST best practices, GraphQL schema (Apollo/NestJS), gRPC/protobuf, tRPC end-to-end type safety, OpenAPI 3.1 documentation & codegen, rate limiting, API key management, idempotency, versioning strategy. |
47
- | **Database, ORM & Data** | `database-orm-expert`, `supabase-migration`, `vector-db-rag-expert`, `edge-serverless-db-expert`, `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `data-pipeline-etl-expert`, `search-engine-expert`, `geospatial-maps-expert`, `graph-rag-knowledge-expert` | Prisma 6 / Drizzle ORM, Data pipelines (dbt/Dagster), pgvector HNSW RAG indexing, Knowledge Graphs (Neo4j/Microsoft GraphRAG), full-text search (Typesense/Meilisearch/Elasticsearch), geospatial queries (PostGIS/GeoJSON/Mapbox), serverless DBs (Neon/D1/Turso), Supabase RLS, Firebase security rules. |
48
- | **Architecture & Scale** | `monorepo-architect`, `event-driven-architect`, `multiple-entry-points`, `mpa-orchestrator`, `spa-orchestrator`, `scalability-clean-code`, `micro-frontend-architect`, `web-game-engine-expert`, `biome-linter-formatter-expert` | Monorepos (Turborepo/pnpm), Biome v2 linter/formatter, microservices, event queues, multi-entry apps, MPA & SPA setups, clean code principles, micro-frontends (Webpack/Vite Federation), WebGL ECS & Physics engines. |
49
- | **AI & LLM Integration** | `ai-llm-integration-expert`, `ai-prompt-engineering-expert`, `ai-media-generation-expert`, `vector-db-rag-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `gemini-agent-booster`, `ai-cost-token-optimizer`, `mcp-client-orchestrator`, `doku-mcp-server`, `local-slm-edge-ai-expert`, `ai-evals-benchmark-expert`, `voice-ai-realtime-agent`, `graph-rag-knowledge-expert` | RAG pipelines, GraphRAG & Knowledge Graphs, real-time conversational voice AI (<300ms WebRTC/WebSocket), MCP Server v1.x (FastMCP/Streamable HTTP), AI media generation, LangGraph multi-agent workflows, Gemini Agent long-context reasoning, local SLMs in-browser (WebGPU/WebLLM), automated AI evals & benchmarks (Promptfoo/DeepEval), LLM FinOps. |
50
- | **SaaS & Multi-Tenancy** | `saas-mvp-launcher`, `saas-transformer`, `saas-multi-tenant`, `saas-billing`, `feature-flag-analytics-expert`, `payment-gateway-expert`, `ecommerce-expert`, `doku-payment-gateway`, `email-notification-expert` | SaaS MVP roadmap, e-commerce architectures (Shopify/Medusa/Saleor), RLS tenant isolation, Stripe/DOKU billing, feature flags (PostHog/LaunchDarkly), progressive rollout, transactional email & notification pipelines. |
51
- | **Testing & Security** | `e2e-testing-expert`, `accessibility-testing-expert`, `browser-automation-expert`, `zero-trust-secret-vault`, `vibe-code-gardener`, `coderabbit`, `authentication-identity-expert`, `rate-limit-abuse-prevention`, `autonomous-tdd-debugger`, `autonomous-red-teamer`, `post-quantum-crypto-migrator`, `compliance-gdpr-privacy-expert`, `ai-evals-benchmark-expert` | Playwright E2E suites, automated WCAG 2.2 accessibility testing (axe-core/Pa11y), dynamic security fuzzing & adversarial attacks, automated AI evals & benchmarks (Promptfoo/DeepEval/Ragas), GDPR/PDPA compliance, post-quantum crypto migration, Zero-Trust secrets, automated code review, auth, brute-force & DDoS prevention, autonomous TDD debugging. |
52
- | **Error Handling & Resilience** | `error-resilience-expert`, `logging-error-tracking-expert`, `autonomous-chaos-monkey` | Chaos engineering, React Error Boundaries, API error standards (RFC 9457), retry patterns, circuit breakers, graceful degradation, structured logging (Pino), Sentry integration. |
53
- | **Communication & Notifications** | `email-notification-expert`, `mobile-push-notification-expert`, `realtime-collaboration-expert`, `sse-websocket-streaming-expert`, `chatbot-messaging-expert`, `voice-ai-realtime-agent` | Transactional email (Resend/Postmark), conversational voice agents (OpenAI Realtime/Gemini Live), React Email templates, in-app notifications, messaging bots (WhatsApp/Telegram/Discord/Slack), push notifications, streaming responses (SSE/WebSocket), real-time collaboration. |
47
+ | **Database, ORM & Data** | `database-orm-expert`, `vector-db-rag-expert`, `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `data-pipeline-etl-expert`, `search-engine-expert`, `geospatial-maps-expert`, `graph-rag-knowledge-expert` | Prisma 6 / Drizzle ORM, zero-downtime migrations, serverless DBs (Neon/D1/Turso), Data pipelines (dbt/Dagster), pgvector HNSW RAG indexing, Knowledge Graphs (Neo4j/Microsoft GraphRAG), full-text search (Typesense/Meilisearch/Elasticsearch), geospatial queries (PostGIS/GeoJSON/Mapbox), Supabase RLS, Firebase security rules. |
48
+ | **Architecture & Scale** | `monorepo-architect`, `event-driven-architect`, `multiple-entry-points`, `mpa-orchestrator`, `spa-orchestrator`, `scalability-clean-code`, `micro-frontend-architect`, `web-game-engine-expert`, `biome-linter-formatter-expert` | Monorepos (Turborepo/pnpm), Biome v2 linter/formatter, microservices, event queues, multi-entry apps, MPA & SPA setups, clean code principles, micro-frontends (Webpack/Vite Federation), Web game engines (PlayCanvas, Havok/Jolt/Rapier WASM physics, Fixed-Timestep ECS loops, WebTransport netcode). |
49
+ | **AI & LLM Integration** | `ai-llm-integration-expert`, `deep-research-analyst`, `vercel-ai-sdk-expert`, `pydantic-ai-expert`, `synthetic-data-finetuning-expert`, `ai-prompt-engineering-expert`, `ai-media-generation-expert`, `vector-db-rag-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `gemini-agent-booster`, `doku-mcp-server`, `local-slm-edge-ai-expert`, `voice-ai-realtime-agent`, `graph-rag-knowledge-expert` | Autonomous deep research & citation verification, Vercel AI SDK Core/UI streaming, Pydantic AI type-safe agents, synthetic data generation & QLoRA fine-tuning (Unsloth), RAG pipelines, GraphRAG & Knowledge Graphs, real-time conversational voice AI (<300ms WebRTC/WebSocket), MCP Server v1.x (FastMCP/Streamable HTTP/Client tool discovery), AI media generation, LangGraph multi-agent workflows, Gemini Agent long-context reasoning, local SLMs in-browser (WebGPU/WebLLM), automated AI evals & benchmarks (Promptfoo/DeepEval), LLM FinOps. |
50
+ | **SaaS & Multi-Tenancy** | `saas-architect`, `saas-multi-tenant`, `saas-billing`, `feature-flag-analytics-expert`, `payment-gateway-expert`, `ecommerce-expert`, `doku-payment-gateway`, `email-notification-expert` | Master SaaS lifecycle (MVP launch 0-to-1 & transformation 1-to-N), e-commerce architectures (Shopify/Medusa/Saleor), RLS tenant isolation, Stripe/DOKU billing, feature flags (PostHog/LaunchDarkly), progressive rollout, transactional email & notification pipelines. |
51
+ | **Testing & Security** | `e2e-testing-expert`, `accessibility-testing-expert`, `browser-automation-expert`, `zero-trust-secret-vault`, `anti-slop`, `coderabbit`, `authentication-identity-expert`, `rate-limit-abuse-prevention`, `autonomous-tdd-debugger`, `autonomous-red-teamer`, `post-quantum-crypto-migrator`, `compliance-gdpr-privacy-expert`, `ai-prompt-engineering-expert` | Playwright E2E suites, automated WCAG 2.2 accessibility testing (axe-core/Pa11y), dynamic security fuzzing & adversarial attacks, automated AI evals & benchmarks (Promptfoo/DeepEval/Ragas), GDPR/PDPA compliance, post-quantum crypto migration, Zero-Trust secrets, automated code review, zero-slop code quality gates, auth, brute-force & DDoS prevention, autonomous TDD debugging. |
52
+ | **Error Handling & Resilience** | `error-resilience-expert`, `logging-error-tracking-expert` | Chaos engineering, automated failure injection, React Error Boundaries, API error standards (RFC 9457), retry patterns, circuit breakers, graceful degradation, structured logging (Pino), Sentry integration. |
53
+ | **Communication & Notifications** | `email-notification-expert`, `realtime-collaboration-expert`, `sse-websocket-streaming-expert`, `chatbot-messaging-expert`, `voice-ai-realtime-agent` | Transactional email (Resend/Postmark), push notifications (Expo Push/FCM/APNs), conversational voice agents (OpenAI Realtime/Gemini Live), React Email templates, in-app notifications, messaging bots (WhatsApp/Telegram/Discord/Slack), streaming responses (SSE/WebSocket), real-time collaboration. |
54
54
  | **File & Media** | `file-upload-media-expert`, `ai-media-generation-expert`, `pdf-document-generation-expert` | Presigned URL uploads (S3/R2), image optimization (Sharp), video transcoding (Mux), AI media generation, PDF generation (React PDF/Puppeteer), CDN configuration, drag-and-drop UI, file validation & security. |
55
55
  | **Performance** | `performance-web-vitals`, `app-analyzer-optimizer` | Core Web Vitals (LCP, INP, CLS), bundle optimization, image/font loading, React concurrent features, Lighthouse score improvement, deep architecture analysis. |
56
56
  | **SEO, GEO & Telemetry** | `seo`, `data-telemetry-expert` | Technical SEO audits, Generative Engine Optimization (AI Overviews, `/llms.txt`), AEO landing pages, OpenTelemetry/PostHog analytics. |
57
57
  | **DevOps & CI/CD** | `ci-cd-devops-architect`, `cloud-hosting-expert`, `dependency-upgrade-migrator`, `self-healing-cloud-orchestrator`, `biome-linter-formatter-expert` | GitHub Actions, Biome lint/format checks, Docker, Kubernetes, Terraform, Vercel/Cloudflare deployment, self-healing cloud operations, Renovate Bot, dependency health. |
58
- | **Execution Handoff** | `zero-to-prod-orchestrator`, `production-ready-hardener`, `auto-doc-updater`, `session-handoff-resume`, `session-context-loader`, `token-saver`, `asisten-ramah`, `skill-baru` | Handing off validated designs to 8-phase production pipeline, pre-launch hardening, continuous docs logging (`CHANGELOG.md`), loading context on new sessions, token efficiency, friendly conversational persona, and new skill scaffolding template. |
58
+ | **Execution Handoff** | `zero-to-prod-orchestrator`, `production-ready-hardener`, `prd-architect`, `session-memory-manager`, `anti-slop` | Handing off validated designs to 8-phase production pipeline, pre-launch hardening, continuous docs logging (`CHANGELOG.md`), loading context on new sessions, ultra-compact handoff checkpoints, token efficiency, zero AI slop enforcement. |
59
59
 
60
60
  ---
61
61
 
@@ -219,24 +219,24 @@ Selama proses brainstorming, konsultasikan, rujuk, dan orkestrasikan skill-skill
219
219
 
220
220
  | Domain / Fase | Skill yang Diorkestrasikan | Konteks Pemicu & Delegasi |
221
221
  | :--- | :--- | :--- |
222
- | **Penemuan & Audit** | `prd-architect`, `app-analyzer-optimizer`, `web-scraper`, `website-design-cloner`, `browser-automation-expert`, `dependency-upgrade-migrator`, `project-context-mapper`, `proactive-background-watcher`, `self-evolving-memory-graph`, `documentation-site-expert`, `headless-cms-expert`, `wordpress-headless-expert` | Menyusun PRD, ERD, dan Dokumentasi formal, memori episodik lintas proyek, mengaudit codebase yang ada, mendokumentasikan fitur kompetitor, reverse-engineer desain website, arsitektur headless CMS/WP, atau audit kesehatan dependensi. |
223
- | **UI/UX & Design System** | `design-system-architect`, `website-design-cloner`, `hig`, `monday-design-aesthetic`, `ui-ux-pro-max`, `tailwind-expert`, `bootstrap-to-modern`, `ui-components-expert`, `svg-animation-motion-expert`, `web-3d-graphics-expert`, `glsl-shader-expert`, `webxr-ar-vr-expert`, `visual-qa-vision-agent`, `data-visualization-expert`, `rich-text-editor-expert`, `modern-css-native-expert` | Token desain (OKLCH), Tailwind CSS v4, fitur native CSS 2026 (Anchor Positioning, @starting-style), prinsip Apple HIG, tata letak antarmuka, komponen UI berkualitas produksi, editor rich text (Tiptap/Lexical), visualisasi data & chart (Recharts/Tremor/D3), migrasi aplikasi Bootstrap lama, WebGL 3D, kustomisasi shader GLSL, dan WebXR AR/VR. |
224
- | **Framework Frontend** | `senior-frontend`, `vue-frontend-expert`, `astro-framework-expert`, `svelte-sveltekit-expert`, `solidjs-expert`, `angular-expert`, `tanstack-query-expert`, `global-a11y-i18n-expert`, `state-management-expert`, `form-validation-expert`, `apple-ecosystem-expert`, `blockchain-web3-expert`, `pwa-offline-first-expert` | React 19 / Next.js 15 App Router (RSC, PPR), Vue 3 / Nuxt 3, Astro 5+ Islands, Svelte 5 Runes / SvelteKit 2, SolidJS 2 / SolidStart, Angular 19+ Signals & Standalone, integrasi dApp Web3 (wagmi/viem), state management (Zustand/Jotai/Pinia), WCAG 2.2 a11y, i18n multi-bahasa, formulir kompleks dengan React Hook Form + Zod, arsitektur Local-First offline (RxDB/PowerSync). |
225
- | **Mobile & Desktop** | `mobile-expo-expert`, `apple-ecosystem-expert`, `tauri-expert`, `desktop-electron-expert`, `mobile-push-notification-expert`, `pwa-offline-first-expert` | Aplikasi mobile cross-platform React Native / Expo Router v4, Apple ecosystem (iOS PWA & Safari), iOS Live Activities, push notification (FCM/APNs), aplikasi desktop Tauri v2 berbasis Rust, Electron 33+, atau distribusi app store PWA (PWABuilder). |
226
- | **Backend & Runtime** | `nextjs-app-router-expert`, `database-migration-versioning-expert`, `js-backend-expert`, `python-programming-expert`, `go-programming-expert`, `rust-programming-expert`, `bun-runtime-expert`, `mvc-expert`, `domain-driven-design-expert`, `fullstack-expert`, `async-queue-temporal-expert`, `background-jobs-queue-expert`, `cron-scheduler-expert`, `legacy-code-translator`, `api-gateway-proxy-expert`, `wasm-edge-computing-expert`, `n8n-automation-expert`, `chatbot-messaging-expert`, `pdf-document-generation-expert` | Desain API, Node.js 24, Bun 1.2+, FastAPI 0.115+, microservices Go 1.25+, Rust Axum, API Gateways, Edge computing WASM, otomasi alur kerja n8n, bot WhatsApp/Telegram/Discord, pipeline dokumen PDF, antrean background jobs khusus, tugas terjadwal & cron job. |
222
+ | **Penemuan & Audit** | `prd-architect`, `deep-research-analyst`, `app-analyzer-optimizer`, `web-scraper`, `website-design-cloner`, `browser-automation-expert`, `dependency-upgrade-migrator`, `session-memory-manager`, `proactive-background-watcher`, `documentation-site-expert`, `headless-cms-expert`, `wordpress-headless-expert` | Menyusun PRD, ERD, dan Dokumentasi formal, memori episodik lintas proyek, mengaudit codebase yang ada, mendokumentasikan fitur kompetitor, reverse-engineer desain website, arsitektur headless CMS/WP, atau audit kesehatan dependensi. |
223
+ | **UI/UX & Design System** | `design-system-architect`, `website-design-cloner`, `hig`, `ui-ux-pro-max`, `tailwind-expert`, `bootstrap-to-modern`, `svg-animation-motion-expert`, `web-3d-graphics-expert`, `glsl-shader-expert`, `webxr-ar-vr-expert`, `visual-qa-vision-agent`, `data-visualization-expert`, `rich-text-editor-expert`, `modern-css-native-expert` | Token desain (OKLCH), Tailwind CSS v4, fitur native CSS 2026 (Anchor Positioning, @starting-style), prinsip Apple HIG, tata letak antarmuka, komponen UI berkualitas produksi, editor rich text (Tiptap/Lexical), visualisasi data & chart (Recharts/Tremor/D3), migrasi aplikasi Bootstrap lama, WebGPU & WebGL 3D (Three.js WebGPU/TSL, Babylon.js, PlayCanvas), kustomisasi shader GLSL/WGSL, dan WebXR AR/VR. |
224
+ | **Framework Frontend** | `senior-frontend`, `vercel-ai-sdk-expert`, `vue-frontend-expert`, `astro-framework-expert`, `svelte-sveltekit-expert`, `solidjs-expert`, `angular-expert`, `tanstack-query-expert`, `global-a11y-i18n-expert`, `state-management-expert`, `form-validation-expert`, `apple-ecosystem-expert`, `blockchain-web3-expert`, `pwa-offline-first-expert` | React 19 / Next.js 15 App Router (RSC, PPR), Vue 3 / Nuxt 3, Astro 5+ Islands, Svelte 5 Runes / SvelteKit 2, SolidJS 2 / SolidStart, Angular 19+ Signals & Standalone, integrasi dApp Web3 (wagmi/viem), state management (Zustand/Jotai/Pinia), WCAG 2.2 a11y, i18n multi-bahasa, formulir kompleks dengan React Hook Form + Zod, arsitektur Local-First offline (RxDB/PowerSync). |
225
+ | **Mobile & Desktop** | `mobile-expo-expert`, `apple-ecosystem-expert`, `tauri-expert`, `desktop-electron-expert`, `email-notification-expert`, `pwa-offline-first-expert` | Aplikasi mobile cross-platform React Native / Expo Router v4, Apple ecosystem (iOS PWA & Safari), iOS Live Activities, push notification (FCM/APNs), aplikasi desktop Tauri v2 berbasis Rust, Electron 33+, atau distribusi app store PWA (PWABuilder). |
226
+ | **Backend & Runtime** | `nextjs-app-router-expert`, `database-orm-expert`, `js-backend-expert`, `python-programming-expert`, `pydantic-ai-expert`, `go-programming-expert`, `rust-programming-expert`, `bun-runtime-expert`, `mvc-expert`, `domain-driven-design-expert`, `fullstack-expert`, `async-queue-temporal-expert`, `cron-scheduler-expert`, `legacy-code-translator`, `api-gateway-proxy-expert`, `wasm-edge-computing-expert`, `n8n-automation-expert`, `chatbot-messaging-expert`, `pdf-document-generation-expert` | Desain API, Node.js 24, Bun 1.2+, FastAPI 0.115+, agen type-safe Pydantic AI, microservices Go 1.25+, Rust Axum, API Gateways, Edge computing WASM, alur tahan-gagal (Temporal/Trigger.dev/BullMQ), otomasi alur kerja n8n, bot WhatsApp/Telegram/Discord, pipeline dokumen PDF, tugas terjadwal & cron job. |
227
227
  | **Desain API & Kontrak** | `api-design-expert`, `openapi-swagger-codegen-expert`, `typescript-expert`, `rate-limit-abuse-prevention`, `graphql-apollo-expert` | Praktik terbaik REST, skema GraphQL (Apollo/NestJS), gRPC/protobuf, tRPC end-to-end type safety, dokumentasi OpenAPI 3.1 & codegen, rate limiting, manajemen API key, idempotency, strategi versioning. |
228
- | **Database, ORM & Data** | `database-orm-expert`, `supabase-migration`, `vector-db-rag-expert`, `edge-serverless-db-expert`, `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `data-pipeline-etl-expert`, `search-engine-expert`, `geospatial-maps-expert`, `graph-rag-knowledge-expert` | Desain skema Prisma 6 / Drizzle ORM, Data pipelines (dbt/Dagster), pgvector HNSW RAG, Knowledge Graph (Neo4j/Microsoft GraphRAG), mesin pencari full-text (Typesense/Meilisearch/Elasticsearch), data geospasial & peta (PostGIS/Mapbox/Leaflet), database serverless (Neon/D1/Turso), Supabase RLS, Firebase security rules. |
229
- | **Arsitektur & Skala** | `monorepo-architect`, `event-driven-architect`, `multiple-entry-points`, `mpa-orchestrator`, `spa-orchestrator`, `scalability-clean-code`, `micro-frontend-architect`, `web-game-engine-expert`, `biome-linter-formatter-expert` | Monorepo (Turborepo/pnpm), Biome v2 linter/formatter, microservices, antrean pesan, aplikasi multi-entry, skema MPA & SPA, prinsip clean code, micro-frontends (Webpack/Vite Federation), arsitektur ECS & Physics WebGL. |
230
- | **Integrasi AI & LLM** | `ai-llm-integration-expert`, `ai-prompt-engineering-expert`, `ai-media-generation-expert`, `vector-db-rag-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `gemini-agent-booster`, `ai-cost-token-optimizer`, `mcp-client-orchestrator`, `doku-mcp-server`, `local-slm-edge-ai-expert`, `ai-evals-benchmark-expert`, `voice-ai-realtime-agent`, `graph-rag-knowledge-expert` | Alur RAG, GraphRAG & Knowledge Graph, conversational voice AI real-time (<300ms WebRTC/WebSocket), MCP Server v1.x (FastMCP/Streamable HTTP), generasi AI gambar/suara/video (Flux/ElevenLabs/Whisper/Sora), workflow multi-agent LangGraph, eksekusi SLM lokal di browser (WebGPU/WebLLM), evaluasi otomatis & benchmark AI (Promptfoo/DeepEval), pemikiran long-context Gemini, FinOps LLM. |
231
- | **SaaS & Multi-Tenancy** | `saas-mvp-launcher`, `saas-transformer`, `saas-multi-tenant`, `saas-billing`, `feature-flag-analytics-expert`, `payment-gateway-expert`, `ecommerce-expert`, `doku-payment-gateway`, `email-notification-expert` | Roadmap SaaS MVP, arsitektur e-commerce (Shopify/Medusa/Saleor), isolasi tenant RLS, billing Stripe/DOKU, feature flags, progressive rollout, email transaksional & pipeline notifikasi. |
232
- | **Testing & Keamanan** | `e2e-testing-expert`, `accessibility-testing-expert`, `browser-automation-expert`, `zero-trust-secret-vault`, `vibe-code-gardener`, `coderabbit`, `authentication-identity-expert`, `rate-limit-abuse-prevention`, `autonomous-tdd-debugger`, `autonomous-red-teamer`, `post-quantum-crypto-migrator`, `compliance-gdpr-privacy-expert`, `ai-evals-benchmark-expert` | Testing E2E Playwright, evaluasi otomatis & benchmark AI (Promptfoo/DeepEval/Ragas), pengujian aksesibilitas otomatis WCAG 2.2 (axe-core/Pa11y), dynamic security fuzzing & serangan adversarial, kepatuhan GDPR/PDPA, migrasi post-quantum crypto, rahasia Zero-Trust, code review otomatis, pencegahan brute-force & DDoS, debugging TDD otonom. |
233
- | **Penanganan Error & Ketahanan** | `error-resilience-expert`, `logging-error-tracking-expert`, `autonomous-chaos-monkey` | Chaos engineering, React Error Boundaries, standar error API (RFC 9457), pola retry, circuit breaker, degradasi anggun, logging terstruktur (Pino), Sentry integrasi. |
234
- | **Komunikasi & Notifikasi** | `email-notification-expert`, `mobile-push-notification-expert`, `realtime-collaboration-expert`, `sse-websocket-streaming-expert`, `chatbot-messaging-expert`, `voice-ai-realtime-agent` | Email transaksional (Resend/Postmark), agen percakapan suara real-time (OpenAI Realtime/Gemini Live), template React Email, notifikasi in-app, bot perpesanan (WhatsApp/Telegram/Discord/Slack), push notification, streaming respons (SSE/WebSocket), kolaborasi real-time. |
228
+ | **Database, ORM & Data** | `database-orm-expert`, `vector-db-rag-expert`, `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `data-pipeline-etl-expert`, `search-engine-expert`, `geospatial-maps-expert`, `graph-rag-knowledge-expert` | Desain skema Prisma 6 / Drizzle ORM, migrasi tanpa downtime, database serverless (Neon/D1/Turso), Data pipelines (dbt/Dagster), pgvector HNSW RAG, Knowledge Graph (Neo4j/Microsoft GraphRAG), mesin pencari full-text (Typesense/Meilisearch/Elasticsearch), data geospasial & peta (PostGIS/Mapbox/Leaflet), Supabase RLS, Firebase security rules. |
229
+ | **Arsitektur & Skala** | `monorepo-architect`, `event-driven-architect`, `multiple-entry-points`, `mpa-orchestrator`, `spa-orchestrator`, `scalability-clean-code`, `micro-frontend-architect`, `web-game-engine-expert`, `biome-linter-formatter-expert` | Monorepo (Turborepo/pnpm), Biome v2 linter/formatter, microservices, antrean pesan, aplikasi multi-entry, skema MPA & SPA, prinsip clean code, micro-frontends (Webpack/Vite Federation), Web game engine (PlayCanvas, fisika WASM Havok/Jolt/Rapier, loop ECS Fixed-Timestep, netcode WebTransport). |
230
+ | **Integrasi AI & LLM** | `ai-llm-integration-expert`, `deep-research-analyst`, `vercel-ai-sdk-expert`, `pydantic-ai-expert`, `synthetic-data-finetuning-expert`, `ai-prompt-engineering-expert`, `ai-media-generation-expert`, `vector-db-rag-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `gemini-agent-booster`, `doku-mcp-server`, `local-slm-edge-ai-expert`, `voice-ai-realtime-agent`, `graph-rag-knowledge-expert` | Alur RAG, GraphRAG & Knowledge Graph, conversational voice AI real-time (<300ms WebRTC/WebSocket), MCP Server v1.x (FastMCP/Streamable HTTP/Client discovery), generasi AI gambar/suara/video (Flux/ElevenLabs/Whisper/Sora), workflow multi-agent LangGraph, eksekusi SLM lokal di browser (WebGPU/WebLLM), evaluasi otomatis & benchmark AI (Promptfoo/DeepEval), pemikiran long-context Gemini, FinOps LLM. |
231
+ | **SaaS & Multi-Tenancy** | `saas-architect`, `saas-multi-tenant`, `saas-billing`, `feature-flag-analytics-expert`, `payment-gateway-expert`, `ecommerce-expert`, `doku-payment-gateway`, `email-notification-expert` | Master siklus hidup SaaS (peluncuran MVP 0 ke 1 & transformasi 1 ke N), arsitektur e-commerce (Shopify/Medusa/Saleor), isolasi tenant RLS, billing Stripe/DOKU, feature flags, progressive rollout, email transaksional & pipeline notifikasi. |
232
+ | **Testing & Keamanan** | `e2e-testing-expert`, `accessibility-testing-expert`, `browser-automation-expert`, `zero-trust-secret-vault`, `anti-slop`, `coderabbit`, `authentication-identity-expert`, `rate-limit-abuse-prevention`, `autonomous-tdd-debugger`, `autonomous-red-teamer`, `post-quantum-crypto-migrator`, `compliance-gdpr-privacy-expert`, `ai-prompt-engineering-expert` | Testing E2E Playwright, evaluasi otomatis & benchmark AI (Promptfoo/DeepEval/Ragas), pengujian aksesibilitas otomatis WCAG 2.2 (axe-core/Pa11y), dynamic security fuzzing & serangan adversarial, kepatuhan GDPR/PDPA, migrasi post-quantum crypto, rahasia Zero-Trust, code review otomatis, penegakan zero-slop tanpa placeholder, pencegahan brute-force & DDoS, debugging TDD otonom. |
233
+ | **Penanganan Error & Ketahanan** | `error-resilience-expert`, `logging-error-tracking-expert` | Chaos engineering, simulasi kegagalan otomatis, React Error Boundaries, standar error API (RFC 9457), pola retry, circuit breaker, degradasi anggun, logging terstruktur (Pino), Sentry integrasi. |
234
+ | **Komunikasi & Notifikasi** | `email-notification-expert`, `realtime-collaboration-expert`, `sse-websocket-streaming-expert`, `chatbot-messaging-expert`, `voice-ai-realtime-agent` | Email transaksional (Resend/Postmark), notifikasi push (Expo Push/FCM/APNs), agen percakapan suara real-time (OpenAI Realtime/Gemini Live), template React Email, notifikasi in-app, bot perpesanan (WhatsApp/Telegram/Discord/Slack), streaming respons (SSE/WebSocket), kolaborasi real-time. |
235
235
  | **File & Media** | `file-upload-media-expert`, `ai-media-generation-expert`, `pdf-document-generation-expert` | Upload presigned URL (S3/R2), optimasi gambar (Sharp), transcoding video (Mux), generasi media AI, pembuatan dokumen PDF (React PDF/Puppeteer), konfigurasi CDN, UI drag-and-drop, validasi & keamanan file. |
236
236
  | **Performa** | `performance-web-vitals`, `app-analyzer-optimizer` | Core Web Vitals (LCP, INP, CLS), optimasi bundle, loading gambar/font, React concurrent features, peningkatan skor Lighthouse, analisis arsitektur mendalam. |
237
237
  | **SEO, GEO & Telemetri** | `seo`, `data-telemetry-expert` | Audit SEO teknikal, Generative Engine Optimization (AI Overviews, `/llms.txt`), landing page AEO, analitik OpenTelemetry/PostHog. |
238
238
  | **DevOps & CI/CD** | `ci-cd-devops-architect`, `cloud-hosting-expert`, `dependency-upgrade-migrator`, `self-healing-cloud-orchestrator`, `biome-linter-formatter-expert` | GitHub Actions, Biome linter/formatter, Docker, Kubernetes, Terraform, deployment Vercel/Cloudflare, self-healing cloud operations, Renovate Bot, kesehatan dependensi. |
239
- | **Serah Terima Eksekusi** | `zero-to-prod-orchestrator`, `production-ready-hardener`, `auto-doc-updater`, `session-handoff-resume`, `session-context-loader`, `token-saver`, `asisten-ramah`, `skill-baru` | Serah terima desain tervalidasi ke pipeline produksi 8-fase, pengerasan pra-rilis, pembaruan dokumentasi otomatis (`CHANGELOG.md`), pemuatan konteks otomatis, efisiensi token, manajemen gaya ramah asisten, dan pembuatan perancah skill baru. |
239
+ | **Serah Terima Eksekusi** | `zero-to-prod-orchestrator`, `production-ready-hardener`, `prd-architect`, `session-memory-manager`, `anti-slop` | Serah terima desain tervalidasi ke pipeline produksi 8-fase, pengerasan pra-rilis, pembaruan dokumentasi otomatis (`CHANGELOG.md`), pemuatan konteks otomatis, checkpoint ringkas, efisiensi token, eliminasi AI slop. |
240
240
 
241
241
  ---
242
242