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,469 +1,462 @@
1
- ---
2
- name: production-ready-hardener
3
- description: "Ultimate production readiness skill that orchestrates all relevant skills (frontend, backend, security, performance, SEO, testing, DevOps) to harden applications before deployment / Skill kesiapan produksi utama yang mengorkestrasi semua skill relevan (frontend, backend, keamanan, performa, SEO, testing, DevOps) untuk mengeraskan aplikasi sebelum deployment."
1
+ ---
2
+ name: production-ready-hardener
3
+ description: "Ultimate production readiness skill that orchestrates all relevant skills (frontend, backend, security, performance, SEO, testing, DevOps) to harden applications before deployment / Skill kesiapan produksi utama yang mengorkestrasi semua skill relevan (frontend, backend, keamanan, performa, SEO, testing, DevOps) untuk mengeraskan aplikasi sebelum deployment."
4
4
  author: "Roedy Rustam"
5
- ---
6
-
7
- # Production-Ready Hardener
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- The **Production-Ready Hardener** is a master orchestrator skill that combines and delegates to all relevant vibes-plug skills to ensure your application is rock-solid, secure, performant, and production-grade before deployment. It acts as a comprehensive pre-production checklist that leaves no stone unturned — from frontend polish to backend resilience, from data security to observability.
18
-
19
- This skill does NOT replace individual skills — it **coordinates** them into a structured, phased audit-and-hardening workflow.
20
-
21
- ### Orchestrated Skills Map
22
-
23
- ```
24
- ┌─────────────────────────────────────────────────────────┐
25
- │ PRODUCTION-READY HARDENER │
26
- │ (Master Orchestrator) │ ┌─── PHASE 1: Architecture & Code Quality ──────────┐ │
27
- │ │ • scalability-clean-code (SOLID, DRY, Clean Arch) │ │
28
- │ │ • fullstack-expert (System Design, API Design) │ │
29
- │ │ • senior-fullstack (Tech Stack, Patterns) │ │
30
- │ │ • app-analyzer-optimizer (Deep Analysis) │ │
31
- │ │ • monorepo-architect (Turborepo & pnpm) │ │
32
- │ └────────────────────────────────────────────────────┘ │
33
- │ │
34
- │ ┌─── PHASE 2: Frontend & UI Design Systems ─────────┐ │
35
- │ │ • senior-frontend (React 19, Next.js 15, a11y) │ │
36
- │ │ • design-system-architect (Tokens, Radix, CVA) │ │
37
- │ │ • tailwind-expert (CSS-first, OKLCH, responsive) │ │
38
- │ │ • ui-ux-pro-max / hig (Design consistency) │ │
39
- │ │ • tanstack-query-expert (State & caching) │ │
40
- │ │ • mobile-expo-expert / tauri-expert (Mobile/App) │ │
41
- │ └────────────────────────────────────────────────────┘ │
42
- │ │
43
- │ ┌─── PHASE 3: Backend & AI Services ────────────────┐ │
44
- │ │ • js-backend-expert (Node 22, Bun, Fastify, Hono) │ │
45
- │ │ • go-programming-expert (Go 1.23+, sqlc, gRPC) │ │
46
- │ │ • python-programming-expert (Python 3.12+, uv) │ │
47
- │ │ • rust-programming-expert (Rust 2024, Axum) │ │
48
- │ │ • mcp-server-architect (MCP Server Tools, Zod) │ │
49
- │ │ • multi-agent-orchestration (LangGraph, Swarms) │ │
50
- │ └────────────────────────────────────────────────────┘ │
51
- │ │
52
- │ ┌─── PHASE 4: Security Hardening ───────────────────┐ │
53
- │ │ • supabase-security-expert (RLS, RBAC, secrets) │ │
54
- │ │ • firebase-security-expert (Rules, App Check) │ │
55
- │ │ • secure-fuzz-testing (Fuzzing, sanitizers) │ │
56
- │ │ • fullstack-expert (OWASP, defense-in-depth) │ │
57
- │ └────────────────────────────────────────────────────┘ │
58
- │ │
59
- │ ┌─── PHASE 5: Testing & Quality Assurance ──────────┐ │
60
- │ │ • e2e-testing-expert (Playwright, Vitest, CI/CD) │ │
61
- │ │ • coderabbit (Automated code review) │ │
62
- │ │ • secure-fuzz-testing (Security testing) │ │
63
- │ └────────────────────────────────────────────────────┘ │
64
- │ │
65
- │ ┌─── PHASE 6: Performance & GEO/SEO ────────────────┐ │
66
- │ │ • seo (Full SEO audit, Core Web Vitals) │ │
67
- │ │ • seo-geo (AI search readiness / GEO / llms.txt) │ │
68
- │ │ • app-analyzer-optimizer (Bundle & perf) │ │
69
- │ └────────────────────────────────────────────────────┘ │
70
- │ │
71
- │ ┌─── PHASE 7: DevOps & Session Protection ──────────┐ │
72
- │ │ • cloud-hosting-expert (Vercel, Cloudflare, AWS) │ │
73
- │ │ • session-handoff-resume (State Checkpoint) │ │
74
- │ │ • auto-doc-updater (CHANGELOG, BLUEPRINT) │ │
75
- │ └────────────────────────────────────────────────────┘ │��──┐ │
76
- │ │ • e2e-testing-expert (Playwright, Vitest, CI/CD) │ │
77
- │ │ • coderabbit (Automated code review) │ │
78
- │ │ • secure-fuzz-testing (Security testing) │ │
79
- │ │ • senior-frontend (Vitest, Playwright) │ │
80
- │ │ • senior-fullstack (CI/CD test matrix) │ │
81
- │ └────────────────────────────────────────────────────┘ │
82
-
83
- │ │
84
- │ ┌─── PHASE 6: Performance & SEO ────────────────────┐ │
85
- │ │ • seo (Full SEO audit, Core Web Vitals) │ │
86
- │ │ • seo-geo (AI search readiness / GEO) │ │
87
- │ │ • app-analyzer-optimizer (Bundle & perf) │ │
88
- │ └────────────────────────────────────────────────────┘ │
89
- │ │
90
- │ ┌─── PHASE 7: DevOps & Deployment ─────────────────┐ │
91
- │ │ • fullstack-expert (Docker, K8s, Terraform) │ │
92
- │ │ • senior-fullstack (CI/CD, Docker Compose) │ │
93
- │ │ • auto-doc-updater (CHANGELOG, BLUEPRINT) │ │
94
- │ └────────────────────────────────────────────────────┘ │
95
- │ │
96
- └─────────────────────────────────────────────────────────┘
97
- ```
98
-
99
- ### Execution Protocol
100
-
101
- When this skill is triggered, execute the following 7-phase hardening process **in order**. Each phase produces findings and recommendations. At the end, compile a **Production Readiness Report**.
102
-
103
- ---
104
-
105
- #### PHASE 1: Architecture & Code Quality Audit
106
- **Orchestrates:** `scalability-clean-code`, `fullstack-expert`, `senior-fullstack`, `app-analyzer-optimizer`
107
-
108
- **Checklist:**
109
- - [ ] **Project structure** follows clean architecture (Domain → Use Cases → Adapters → Infrastructure)
110
- - [ ] **SOLID principles** are applied consistently — no god classes, no leaky abstractions
111
- - [ ] **DRY violations** identified and refactored into shared utilities/services
112
- - [ ] **API contracts** are spec-first (OpenAPI/GraphQL schema) with proper versioning
113
- - [ ] **Error handling** is structured and consistent (RFC 7807 Problem Details or equivalent)
114
- - [ ] **TypeScript strict mode** enabled (`strict: true` in tsconfig), no `any` types
115
- - [ ] **Input validation** on all API boundaries (Zod, Pydantic, or equivalent)
116
- - [ ] **No hardcoded values** — all config via environment variables or config files
117
- - [ ] **Dead code eliminated** — no unused imports, functions, or dependencies
118
- - [ ] **Dependency audit** — all packages up-to-date, no known CVEs (`npm audit`, `pip audit`)
119
-
120
- ---
121
-
122
- #### PHASE 2: Frontend Hardening
123
- **Orchestrates:** `senior-frontend`, `tailwind-expert`, `ui-ux-pro-max`, `hig`, `tanstack-query-expert`
124
-
125
- **Checklist:**
126
- - [ ] **Server Components by default** — `'use client'` only when truly needed (state, events, browser APIs)
127
- - [ ] **Proper Suspense boundaries** with meaningful loading states (skeletons, not spinners)
128
- - [ ] **Error boundaries** on all page segments with user-friendly error UI
129
- - [ ] **React 19 patterns** properly used (`useActionState`, `useOptimistic`, `useFormStatus`)
130
- - [ ] **No hydration mismatches** — no client-only state (`localStorage`, `window`) in initial render
131
- - [ ] **Accessibility (a11y)** — semantic HTML, ARIA labels, keyboard navigation, focus management
132
- - [ ] **Responsive design** — works flawlessly on mobile (320px), tablet, and desktop
133
- - [ ] **Image optimization** — `next/image` with proper sizes, WebP/AVIF format, lazy loading
134
- - [ ] **Font optimization** — `next/font` with font-display: swap, preconnect to font CDN
135
- - [ ] **Bundle analysis** — no unnecessary large libraries, proper code splitting & lazy loading
136
- - [ ] **Meta tags** — proper title, description, OG tags, canonical URL on every page
137
- - [ ] **State management** — TanStack Query for server state, Zustand/Jotai for client state (no mixing)
138
- - [ ] **Caching strategy** — proper `staleTime`, `gcTime`, and query key factory patterns
139
- - [ ] **UI consistency** — design tokens applied consistently (colors, spacing, typography)
140
-
141
- ---
142
-
143
- #### PHASE 3: Backend Hardening
144
- **Orchestrates:** `fullstack-expert`, `senior-fullstack`, language-specific experts
145
-
146
- **Checklist:**
147
- - [ ] **Database migrations** — all schema changes via managed migrations (never manual ALTER in production)
148
- - [ ] **Connection pooling** configured (PgBouncer/Supavisor for PostgreSQL, HikariCP for Java)
149
- - [ ] **Proper indexes** on all frequently queried columns (`WHERE`, `JOIN`, `ORDER BY`)
150
- - [ ] **N+1 query prevention** — eager loading or DataLoader pattern for relational data
151
- - [ ] **Query profiling** — `EXPLAIN ANALYZE` run on critical queries, no Seq Scans on large tables
152
- - [ ] **Database backups** — automated backup strategy with tested restore procedures
153
- - [ ] **API rate limiting** — token bucket or sliding window on all public endpoints
154
- - [ ] **Idempotency keys** — all mutation endpoints handle retries safely
155
- - [ ] **Pagination** — cursor-based for large datasets, with consistent response format
156
- - [ ] **Background jobs** — heavy tasks (email, PDF, image processing) use job queues (BullMQ, Celery)
157
- - [ ] **Graceful shutdown** — proper SIGTERM handling, drain connections before exit
158
- - [ ] **Health check endpoints** — `/healthz` (liveness) and `/readyz` (readiness) implemented
159
- - [ ] **Request timeout** — all HTTP/database calls have explicit timeout values
160
- - [ ] **Error logging** — structured JSON logging with correlation IDs for request tracing
161
-
162
- ---
163
-
164
- #### PHASE 4: Security Hardening
165
- **Orchestrates:** `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `fullstack-expert`
166
-
167
- **Checklist:**
168
- - [ ] **Authentication** — OAuth 2.0 / OIDC implementation (Clerk, NextAuth, Lucia, Firebase Auth)
169
- - [ ] **Authorization** — RBAC/ABAC with proper middleware on all protected routes
170
- - [ ] **Row-Level Security (RLS)** — enabled on ALL public tables in Supabase/PostgreSQL
171
- - [ ] **Security Rules** — Firebase Firestore/Storage rules are strict (no `allow read, write: if true`)
172
- - [ ] **CORS configuration** — explicit allow-list of origins (never `*` in production)
173
- - [ ] **CSP headers** — Content-Security-Policy configured with strict directives
174
- - [ ] **HTTPS enforced** — HSTS header with `max-age=31536000; includeSubDomains; preload`
175
- - [ ] **Secrets management** — all secrets in environment variables or secret managers (never in code)
176
- - [ ] **`.gitignore` audit** — `.env`, `service-account.json`, private keys are excluded
177
- - [ ] **SQL injection prevention** — all queries use parameterized statements (never string concatenation)
178
- - [ ] **XSS prevention** — output encoding, CSP, no `dangerouslySetInnerHTML` without sanitization
179
- - [ ] **CSRF protection** — anti-CSRF tokens on state-changing forms and endpoints
180
- - [ ] **File upload validation** — content-type checking, size limits, no executable uploads
181
- - [ ] **Webhook signature verification** — all incoming webhooks (Stripe, etc.) validate signatures
182
- - [ ] **Audit logging** — sensitive operations logged (login, data export, permission changes, admin actions)
183
- - [ ] **API key rotation** — strategy in place for rotating secrets without downtime
184
- - [ ] **Dependency vulnerability scan** — `npm audit`, `pip audit`, `cargo audit`, `govulncheck`
185
- - [ ] **App Check / reCAPTCHA** — bot protection on public forms and API endpoints
186
-
187
- ---
188
-
189
- #### PHASE 5: Testing & Quality Assurance
190
- **Orchestrates:** `e2e-testing-expert`, `coderabbit`, `secure-fuzz-testing`, `senior-frontend`, `senior-fullstack`
191
-
192
-
193
- **Checklist:**
194
- - [ ] **Unit tests** — Vitest/Jest for frontend logic, pytest/go test for backend (≥80% coverage target)
195
- - [ ] **Integration tests** — API endpoint tests with real database (test containers)
196
- - [ ] **E2E tests** — Playwright for critical user flows (signup, login, payment, core features)
197
- - [ ] **Fuzz testing** — coverage-guided fuzzing on parsers, validators, and input processors
198
- - [ ] **Visual regression tests** — screenshot comparisons for UI-critical pages
199
- - [ ] **Accessibility tests** — axe-core or pa11y in CI pipeline
200
- - [ ] **Performance tests** — Lighthouse CI with score thresholds (Performance ≥90, A11y ≥90)
201
- - [ ] **Load testing** — k6 or Artillery for API stress testing (define SLOs: p99 < 500ms)
202
- - [ ] **Code review automation** — CodeRabbit or equivalent configured on all PRs
203
- - [ ] **Type checking** — `tsc --noEmit` passes with zero errors in CI
204
- - [ ] **Linting** — ESLint/Ruff/clippy runs in CI with zero warnings policy
205
- - [ ] **Pre-commit hooks** — lint-staged + husky for local quality checks
206
-
207
- ---
208
-
209
- #### PHASE 6: Performance & SEO Optimization
210
- **Orchestrates:** `seo`, `seo-geo`, `app-analyzer-optimizer`
211
-
212
- **Checklist:**
213
- - [ ] **Core Web Vitals** — LCP < 2.5s, INP < 200ms, CLS < 0.1 (measured with real user data)
214
- - [ ] **Bundle size** — analyzed and optimized (tree-shaking, dynamic imports, no duplicate deps)
215
- - [ ] **CDN** — static assets served via CDN (Cloudflare, CloudFront, Vercel Edge)
216
- - [ ] **Caching headers** — proper `Cache-Control` on static assets (immutable, max-age=31536000)
217
- - [ ] **Database read replicas** — configured for read-heavy workloads
218
- - [ ] **Multi-tier caching** — Browser → CDN → Application (Redis) → Database
219
- - [ ] **SEO meta tags** — title, description, canonical URL, OG/Twitter cards on every page
220
- - [ ] **Structured data** — Schema.org markup for relevant content (Product, Article, FAQ, etc.)
221
- - [ ] **Sitemap** — XML sitemap generated and submitted to Google Search Console
222
- - [ ] **robots.txt** — properly configured (no accidental disallow of important pages)
223
- - [ ] **AI search readiness** — `llms.txt`, semantic HTML, clean extractable content
224
- - [ ] **Page speed** — Lighthouse score ≥ 90 on all key pages
225
-
226
- ---
227
-
228
- #### PHASE 7: DevOps & Deployment Readiness
229
- **Orchestrates:** `fullstack-expert`, `senior-fullstack`, `auto-doc-updater`
230
-
231
- **Checklist:**
232
- - [ ] **Docker** — multi-stage builds, non-root user, HEALTHCHECK, `.dockerignore` configured
233
- - [ ] **CI/CD pipeline** — automated lint → test → build → deploy on every push/PR
234
- - [ ] **Environment parity** — dev/staging/production use identical Docker images
235
- - [ ] **Database migrations** — run automatically in CI/CD before deployment
236
- - [ ] **Zero-downtime deployment** — rolling updates or blue-green deployment strategy
237
- - [ ] **Rollback strategy** — ability to revert to previous version within minutes
238
- - [ ] **Monitoring & alerting** — Sentry (errors), Prometheus/Grafana (metrics), OpenTelemetry (traces)
239
- - [ ] **Structured logging** — JSON format with `timestamp`, `level`, `message`, `correlationId`
240
- - [ ] **SLIs/SLOs defined** — error rate < 0.1%, p99 latency < 500ms, uptime > 99.9%
241
- - [ ] **Incident response** — documented runbook for common failure scenarios
242
- - [ ] **Backup & disaster recovery** — automated database backups, tested restore procedure
243
- - [ ] **Environment variables** — all secrets stored in secure secrets manager (Vault, AWS SSM, etc.)
244
- - [ ] **SSL/TLS certificates** — auto-renewal configured (Let's Encrypt / cloud provider)
245
- - [ ] **Documentation** — CHANGELOG.md and BLUEPRINT.md up-to-date via `auto-doc-updater`
246
- - [ ] **README** — clear setup instructions, architecture diagram, and deployment guide
247
-
248
- ---
249
-
250
- ### Automated Readiness Scanner
251
- An automated Python scanner script is included at [production_readiness_scanner.py](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/scripts/production_readiness_scanner.py) to perform all check phases automatically. It automatically detects technology stacks (Vite, React 19, Supabase, Vitest, Playwright, ESLint) and parses local developer logs (`tsc_errors.txt`, `eslint_output.txt`, etc.) to calculate a live readiness score and compile an interactive, clickable markdown report (`PRODUCTION_READINESS_REPORT.md`).
252
-
253
- **Usage:**
254
- ```bash
255
- # Run basic static checklist checks on a project
256
- python scripts/production_readiness_scanner.py /path/to/project
257
-
258
- # Run active compilation, linting, and test execution diagnostics
259
- python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
260
- ```
261
-
262
- ---
263
-
264
- ### Production Readiness Report Format
265
-
266
- After completing all 7 phases, compile a **Production Readiness Report** with:
267
-
268
- ```markdown
269
- # Production Readiness Report
270
-
271
- ## Executive Summary
272
- Overall readiness score (0-100) with letter grade (A/B/C/D/F).
273
-
274
- ## Phase Scores
275
- | Phase | Score | Critical Issues | Warnings |
276
- |-------|-------|-----------------|----------|
277
- | 1. Architecture & Code Quality | XX/100 | N | N |
278
- | 2. Frontend Hardening | XX/100 | N | N |
279
- | 3. Backend Hardening | XX/100 | N | N |
280
- | 4. Security Hardening | XX/100 | N | N |
281
- | 5. Testing & QA | XX/100 | N | N |
282
- | 6. Performance & SEO | XX/100 | N | N |
283
- | 7. DevOps & Deployment | XX/100 | N | N |
284
-
285
- ## 🔴 Critical Issues (Must Fix Before Production)
286
- List of blockers that MUST be resolved.
287
-
288
- ## 🟡 Warnings (Should Fix)
289
- List of important improvements.
290
-
291
- ## 🔵 Recommendations (Nice to Have)
292
- List of enhancements for future iterations.
293
-
294
- ## Remediation Plan
295
- Step-by-step action items ordered by priority.
296
- ```
297
-
298
- ### Scoring Methodology
299
-
300
- Each phase is scored 0-100 based on checklist completion:
301
- - **95-100**: Production-ready ✅
302
- - **80-94**: Needs minor fixes ⚠️
303
- - **60-79**: Significant issues 🟡
304
- - **Below 60**: Not production-ready 🔴
305
-
306
- **Overall Score** = Weighted average:
307
- - Architecture (10%) + Frontend (15%) + Backend (15%) + **Security (25%)** + Testing (15%) + Performance (10%) + DevOps (10%)
308
-
309
- > **Note:** Security is weighted highest because data breaches and vulnerabilities are the most damaging production issues.
310
-
311
- ### Trigger Conditions
312
- Active whenever the user asks to:
313
- 1. Prepare an application for production deployment.
314
- 2. Run a production readiness review, pre-launch checklist, or hardening audit.
315
- 3. Ensure an application is secure, performant, and robust before going live.
316
- 4. Perform a comprehensive quality audit across frontend, backend, and infrastructure.
317
-
318
- ---
319
-
320
- <a name="bahasa-indonesia"></a>
321
- ## Bahasa Indonesia
322
-
323
- ### Deskripsi
324
- **Production-Ready Hardener** adalah skill orkestrator utama yang menggabungkan dan mendelegasikan ke semua skill vibes-plug yang relevan untuk memastikan aplikasi Anda kokoh, aman, berperforma tinggi, dan siap produksi sebelum deployment. Skill ini berfungsi sebagai checklist pra-produksi komprehensif yang tidak meninggalkan celah — dari polish frontend hingga ketahanan backend, dari keamanan data hingga observability.
325
-
326
- Skill ini TIDAK menggantikan skill individual — ia **mengoordinasikan** mereka ke dalam alur kerja audit-dan-pengerasan yang terstruktur dan bertahap.
327
-
328
- ### Peta Skill yang Diorkestrasi
329
-
330
- | Fase | Skill yang Digunakan | Fokus |
331
- |------|---------------------|-------|
332
- | 1. Arsitektur & Kualitas Kode | `scalability-clean-code`, `fullstack-expert`, `senior-fullstack`, `app-analyzer-optimizer` | SOLID, DRY, Clean Architecture, API Design |
333
- | 2. Pengerasan Frontend | `senior-frontend`, `tailwind-expert`, `ui-ux-pro-max`, `hig`, `tanstack-query-expert` | React 19, a11y, responsif, state management |
334
- | 3. Pengerasan Backend | `fullstack-expert`, `senior-fullstack`, expert bahasa spesifik | Database, pooling, rate limiting, job queues |
335
- | 4. Pengerasan Keamanan | `supabase-security-expert`, `firebase-security-expert`, `secure-fuzz-testing`, `fullstack-expert` | RLS, RBAC, OWASP, secrets, XSS/CSRF |
336
- | 5. Testing & QA | `e2e-testing-expert`, `coderabbit`, `secure-fuzz-testing`, `senior-frontend`, `senior-fullstack` | E2E (Playwright), Unit (Vitest), fuzz, CI/CD pipelines |
337
- | 6. Performa & SEO | `seo`, `seo-geo`, `app-analyzer-optimizer` | Core Web Vitals, bundle, CDN, sitemap |
338
- | 7. DevOps & Deployment | `fullstack-expert`, `senior-fullstack`, `auto-doc-updater` | Docker, CI/CD, monitoring, rollback |
339
-
340
- ### Protokol Eksekusi
341
-
342
- Ketika skill ini dipicu, jalankan **7 fase pengerasan berurutan**. Setiap fase menghasilkan temuan dan rekomendasi. Di akhir, compile sebuah **Laporan Kesiapan Produksi**.
343
-
344
- ---
345
-
346
- #### FASE 1: Audit Arsitektur & Kualitas Kode
347
- - [ ] Struktur proyek mengikuti clean architecture
348
- - [ ] Prinsip SOLID diterapkan konsisten
349
- - [ ] Pelanggaran DRY diidentifikasi dan di-refactor
350
- - [ ] Kontrak API menggunakan desain spec-first (OpenAPI/GraphQL)
351
- - [ ] Error handling terstruktur dan konsisten
352
- - [ ] TypeScript strict mode aktif, tanpa tipe `any`
353
- - [ ] Validasi input di semua batas API (Zod, Pydantic)
354
- - [ ] Tidak ada hardcoded value — semua konfigurasi via environment variable
355
- - [ ] Dead code dieliminasi
356
- - [ ] Audit dependensi — semua paket up-to-date, tanpa CVE
357
-
358
- #### FASE 2: Pengerasan Frontend
359
- - [ ] Server Components secara default
360
- - [ ] Suspense boundary dengan loading state bermakna
361
- - [ ] Error boundary di setiap segmen halaman
362
- - [ ] Pattern React 19 digunakan dengan benar
363
- - [ ] Tidak ada hydration mismatch
364
- - [ ] Aksesibilitas (a11y) — HTML semantik, ARIA, navigasi keyboard
365
- - [ ] Desain responsif — berfungsi sempurna di mobile, tablet, desktop
366
- - [ ] Optimasi gambar dengan `next/image`, WebP/AVIF, lazy loading
367
- - [ ] Analisis bundle — tanpa library besar yang tidak perlu
368
- - [ ] Meta tags lengkap di setiap halaman
369
- - [ ] Strategi state management dan caching yang tepat
370
-
371
- #### FASE 3: Pengerasan Backend
372
- - [ ] Semua perubahan schema via database migration
373
- - [ ] Connection pooling dikonfigurasi
374
- - [ ] Index yang tepat pada kolom yang sering di-query
375
- - [ ] Pencegahan N+1 query
376
- - [ ] API rate limiting aktif
377
- - [ ] Idempotency key untuk mutation endpoint
378
- - [ ] Background job queue untuk tugas berat
379
- - [ ] Graceful shutdown dengan penanganan SIGTERM
380
- - [ ] Health check endpoint (`/healthz`, `/readyz`)
381
- - [ ] Structured logging dengan correlation ID
382
-
383
- #### FASE 4: Pengerasan Keamanan
384
- - [ ] Autentikasi OAuth 2.0 / OIDC
385
- - [ ] Otorisasi RBAC/ABAC pada semua route dilindungi
386
- - [ ] RLS aktif di SEMUA tabel publik (Supabase/PostgreSQL)
387
- - [ ] Firebase Security Rules ketat
388
- - [ ] CORS dengan allow-list eksplisit (bukan `*`)
389
- - [ ] CSP headers dikonfigurasi
390
- - [ ] HTTPS dipaksakan dengan HSTS
391
- - [ ] Semua secret di environment variable / secret manager
392
- - [ ] `.gitignore` mencakup `.env` dan file sensitif
393
- - [ ] Pencegahan SQL injection, XSS, CSRF
394
- - [ ] Validasi file upload (content-type, size limit)
395
- - [ ] Verifikasi tanda tangan webhook
396
- - [ ] Audit logging untuk operasi sensitif
397
- - [ ] Scan kerentanan dependensi
398
-
399
- #### FASE 5: Testing & Quality Assurance
400
- - [ ] Unit test (≥80% coverage)
401
- - [ ] Integration test dengan database real
402
- - [ ] E2E test untuk alur kritis (Playwright)
403
- - [ ] Fuzz testing pada parser dan validator
404
- - [ ] Accessibility test dalam CI pipeline
405
- - [ ] Performance test (Lighthouse CI ≥90)
406
- - [ ] Code review automation (CodeRabbit)
407
- - [ ] Type checking dan linting di CI tanpa error
408
-
409
- #### FASE 6: Optimasi Performa & SEO
410
- - [ ] Core Web Vitals memenuhi target (LCP < 2.5s, INP < 200ms, CLS < 0.1)
411
- - [ ] Bundle size dioptimasi
412
- - [ ] CDN untuk aset statis
413
- - [ ] Caching multi-tier (Browser → CDN → Redis → Database)
414
- - [ ] SEO meta tags lengkap
415
- - [ ] Structured data (Schema.org)
416
- - [ ] XML Sitemap
417
- - [ ] Kesiapan AI search (llms.txt, HTML semantik)
418
-
419
- #### FASE 7: DevOps & Kesiapan Deployment
420
- - [ ] Docker multi-stage build, non-root user, HEALTHCHECK
421
- - [ ] CI/CD pipeline otomatis (lint → test → build → deploy)
422
- - [ ] Zero-downtime deployment (rolling update / blue-green)
423
- - [ ] Strategi rollback yang teruji
424
- - [ ] Monitoring & alerting (Sentry, Prometheus/Grafana, OpenTelemetry)
425
- - [ ] Structured logging format JSON
426
- - [ ] SLI/SLO terdefinisi
427
- - [ ] Backup database otomatis dengan prosedur restore yang teruji
428
- - [ ] Dokumentasi terkini (CHANGELOG.md, BLUEPRINT.md, README)
429
-
430
- ---
431
-
432
- ### Scanner Kesiapan Otomatis
433
- Script scanner Python otomatis tersedia di [production_readiness_scanner.py](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/scripts/production_readiness_scanner.py) untuk menjalankan seluruh fase pemeriksaan secara otomatis. Scanner ini mendeteksi stack teknologi (Vite, React 19, Supabase, Vitest, Playwright, ESLint) serta mem-parsing file log error lokal (`tsc_errors.txt`, `eslint_output.txt`, dll) untuk mengkalkulasi skor kesiapan rilis dan menyusun laporan markdown interaktif (`PRODUCTION_READINESS_REPORT.md`).
434
-
435
- **Cara Penggunaan:**
436
- ```bash
437
- # Jalankan pemeriksaan checklist statis dasar pada proyek
438
- python scripts/production_readiness_scanner.py /path/to/project
439
-
440
- # Jalankan diagnostik aktif termasuk typecheck tsc, linter eslint, unit test, dan bundle build
441
- python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
442
- ```
443
-
444
- ---
445
-
446
- ### Metodologi Penilaian
447
-
448
- Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
449
- - **95-100**: Siap produksi ✅
450
- - **80-94**: Perlu perbaikan minor ⚠️
451
- - **60-79**: Ada masalah signifikan 🟡
452
- - **Di bawah 60**: Belum siap produksi 🔴
453
-
454
- **Skor Keseluruhan** = Rata-rata berbobot:
455
- - Arsitektur (10%) + Frontend (15%) + Backend (15%) + **Keamanan (25%)** + Testing (15%) + Performa (10%) + DevOps (10%)
456
-
457
- > **Catatan:** Keamanan diberi bobot tertinggi karena pelanggaran data dan kerentanan adalah masalah produksi yang paling merusak.
458
-
459
- ### Kondisi Pemicu
460
- Aktif setiap kali pengguna meminta untuk:
461
- 1. Mempersiapkan aplikasi untuk deployment produksi.
462
- 2. Menjalankan review kesiapan produksi, checklist pra-peluncuran, atau audit pengerasan.
463
- 3. Memastikan aplikasi aman, berperforma tinggi, dan kokoh sebelum go-live.
464
- 4. Melakukan audit kualitas komprehensif di seluruh frontend, backend, dan infrastruktur.
465
-
466
- ### Referensi Dokumentasi
467
- - [Production Readiness Checklist](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/production_checklist.md)
468
- - [Security Hardening Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/security_hardening_guide.md)
469
- - [Performance Optimization Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/performance_optimization.md)
5
+ ---
6
+
7
+ # Production-Ready Hardener
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 **Production-Ready Hardener** is a master orchestrator skill that combines and delegates to all relevant vibes-plug skills to ensure your application is rock-solid, secure, performant, and production-grade before deployment. It acts as a comprehensive pre-production checklist that leaves no stone unturned — from frontend polish to backend resilience, from data security to observability.
21
+
22
+ This skill does NOT replace individual skills — it **coordinates** them into a structured, phased audit-and-hardening workflow.
23
+
24
+ ### Orchestrated Skills Map
25
+
26
+ ```
27
+ ┌──────────────────────────────────────────────────────────────────┐
28
+ │ PRODUCTION-READY HARDENER │
29
+ │ (Master Orchestrator — 7 Phases) │
30
+ ├──────────────────────────────────────────────────────────────────┤
31
+ │ │
32
+ │ ┌─── PHASE 1: Architecture & Code Quality ───────────────────┐ │
33
+ │ │ • scalability-clean-code (SOLID, DRY, Clean Architecture) │ │
34
+ │ │ • fullstack-expert / senior-fullstack (Design & patterns) │ │
35
+ │ │ • app-analyzer-optimizer (Deep codebase & bottleneck audit)│ │
36
+ │ │ • monorepo-architect (Turborepo & pnpm workspace structure)│ │
37
+ │ │ • dependency-upgrade-migrator (Codemod & package audits) │ │
38
+ │ │ • vibe-code-gardener (Purge AI slop & context drift) │ │
39
+ │ │ • typescript-expert (Strict mode & type-safe patterns) │ │
40
+ │ └────────────────────────────────────────────────────────────┘ │
41
+ │ │
42
+ │ ┌─── PHASE 2: Frontend Hardening ────────────────────────────┐ │
43
+ │ │ • senior-frontend (React 19, Next.js 15 App Router) │ │
44
+ │ │ • design-system-architect (Tokens, Radix, CVA, WCAG 2.2) │ │
45
+ │ │ • tailwind-expert (CSS-first config, OKLCH, responsive) │ │
46
+ │ │ • form-validation-expert (React Hook Form, Zod validation)│ │
47
+ │ │ • state-management-expert (Zustand, Jotai, TanStack Store)│ │
48
+ │ │ • ui-components-expert (Input, nav, container primitives) │ │
49
+ │ │ • ui-ux-pro-max / hig (HIG principles & design system) │ │
50
+ │ │ • global-a11y-i18n-expert (Web accessibility & i18n) │ │
51
+ │ │ • mobile-expo-expert / tauri-expert (Mobile & Desktop) │ │
52
+ │ └────────────────────────────────────────────────────────────┘ │
53
+ │ │
54
+ │ ┌─── PHASE 3: Backend & AI Services ─────────────────────────┐ │
55
+ │ │ • js-backend-expert (Node 24, Bun 1.2, Fastify, Hono) │ │
56
+ │ │ • go-programming-expert (Go 1.24+, microservices, gRPC) │ │
57
+ │ │ • python-programming-expert (Python 3.13+, FastAPI, uv) │ │
58
+ │ │ • rust-programming-expert (Rust 2024, Axum, async) │ │
59
+ │ │ • database-orm-expert (Prisma 6, Drizzle, migrations) │ │
60
+ │ │ • edge-serverless-db-expert (Neon, Cloudflare D1, Turso) │ │
61
+ │ │ • cron-scheduler-expert / async-queue-temporal-expert │ │
62
+ │ │ • email-notification-expert (Transactional emails) │ │
63
+ │ │ • file-upload-media-expert (S3, Presigned URLs, CDN) │ │
64
+ │ │ • mcp-server-architect (MCP Server Tools & Zod schemas) │ │
65
+ │ │ • multi-agent-orchestration / ai-llm-integration-expert │ │
66
+ │ │ • ai-cost-token-optimizer (Prompt caching & token budget) │ │
67
+ │ └────────────────────────────────────────────────────────────┘ │
68
+ │ │
69
+ │ ┌─── PHASE 4: Security Hardening ────────────────────────────┐ │
70
+ │ │ • supabase-security-expert (RLS policies, Supabase Linter)│ │
71
+ │ │ • firebase-security-expert (Rules, App Check, data leak) │ │
72
+ │ │ • authentication-identity-expert (OAuth2, RBAC/ABAC) │ │
73
+ │ │ • zero-trust-secret-vault (Vault, Infisical, key rotation)│ │
74
+ │ │ • rate-limit-abuse-prevention (Rate limit & bot protection)│ │
75
+ │ │ • secure-fuzz-testing (Coverage-guided fuzzing) │ │
76
+ │ │ • fullstack-expert (OWASP Top 10 & defense-in-depth) │ │
77
+ │ └────────────────────────────────────────────────────────────┘ │
78
+ │ │
79
+ │ ┌─── PHASE 5: Testing & Quality Assurance ───────────────────┐ │
80
+ │ │ • e2e-testing-expert (Playwright E2E & Vitest integration)│ │
81
+ │ │ • browser-automation-expert (Visual regression testing) │ │
82
+ │ │ • secure-fuzz-testing (Security fuzz testing) │ │
83
+ │ │ • error-resilience-expert (Retry logic & circuit breakers)│ │
84
+ │ │ • logging-error-tracking-expert (Pino, Sentry correlation)│ │
85
+ │ │ • coderabbit (AI code review & PR summarization) │ │
86
+ │ └────────────────────────────────────────────────────────────┘ │
87
+ │ │
88
+ │ ┌─── PHASE 6: Performance & GEO/SEO ─────────────────────────┐ │
89
+ │ │ • seo (Technical SEO, Schema, Sitemap, E-E-A-T audit) │ │
90
+ │ │ • seo-geo (Generative Engine Optimization & llms.txt) │ │
91
+ │ │ • seo-aeo-landing-page-writer (AEO conversion landing) │ │
92
+ │ │ • performance-web-vitals (CWV: LCP, INP, CLS optimization)│ │
93
+ │ │ • app-analyzer-optimizer (Bundle analysis & dynamic loading)│
94
+ │ └────────────────────────────────────────────────────────────┘ │
95
+ │ │
96
+ │ ┌─── PHASE 7: DevOps & Deployment ───────────────────────────┐ │
97
+ │ │ • ci-cd-devops-architect (GitHub Actions, Docker, IaC) │ │
98
+ │ │ • cloud-hosting-expert (Vercel, Cloudflare Workers, AWS) │ │
99
+ │ │ • data-telemetry-expert (OpenTelemetry, PostHog metrics) │ │
100
+ │ │ • session-handoff-resume (Save state checkpoint) │ │
101
+ │ │ • auto-doc-updater (CHANGELOG & BLUEPRINT automation) │ │
102
+ │ └────────────────────────────────────────────────────────────┘ │
103
+ │ │
104
+ └──────────────────────────────────────────────────────────────────┘
105
+ ```
106
+
107
+ ### Execution Protocol
108
+
109
+ When this skill is triggered, execute the following 7-phase hardening process **in order**. Each phase produces findings and recommendations. At the end, compile a **Production Readiness Report**.
110
+
111
+ ---
112
+
113
+ #### PHASE 1: Architecture & Code Quality Audit
114
+ **Orchestrates:** `scalability-clean-code`, `fullstack-expert`, `senior-fullstack`, `app-analyzer-optimizer`, `monorepo-architect`, `dependency-upgrade-migrator`, `vibe-code-gardener`, `typescript-expert`
115
+
116
+ **Checklist:**
117
+ - [ ] **Project structure** follows clean architecture (Domain → Use Cases → Adapters → Infrastructure)
118
+ - [ ] **SOLID principles** are applied consistently — no god classes, no leaky abstractions
119
+ - [ ] **DRY violations** identified and refactored into shared utilities/services
120
+ - [ ] **API contracts** are spec-first (OpenAPI/GraphQL schema) with proper versioning
121
+ - [ ] **Error handling** is structured and consistent (RFC 9457 Problem Details or equivalent)
122
+ - [ ] **TypeScript strict mode** enabled (`strict: true` in tsconfig), no `any` types (`typescript-expert`)
123
+ - [ ] **Input validation** on all API boundaries (Zod, Pydantic, or equivalent)
124
+ - [ ] **No hardcoded values** — all config via environment variables or config files
125
+ - [ ] **Dead code & AI slop eliminated** — unneeded boilerplate cleaned via `vibe-code-gardener`
126
+ - [ ] **Dependency audit** — all packages up-to-date, no known CVEs (`dependency-upgrade-migrator`, `npm audit`)
127
+
128
+ ---
129
+
130
+ #### PHASE 2: Frontend Hardening
131
+ **Orchestrates:** `senior-frontend`, `design-system-architect`, `tailwind-expert`, `form-validation-expert`, `state-management-expert`, `ui-components-expert`, `ui-ux-pro-max`, `hig`, `tanstack-query-expert`, `global-a11y-i18n-expert`
132
+
133
+ **Checklist:**
134
+ - [ ] **Server Components by default** — `'use client'` only when truly needed (state, events, browser APIs)
135
+ - [ ] **Proper Suspense boundaries** with meaningful loading states (skeletons, not spinners)
136
+ - [ ] **Error boundaries** on all page segments with user-friendly error UI
137
+ - [ ] **Form validation** — robust validation with React Hook Form + Zod (`form-validation-expert`)
138
+ - [ ] **No hydration mismatches** — no client-only state (`localStorage`, `window`) in initial render
139
+ - [ ] **Accessibility (a11y) & i18n** — WCAG 2.2 compliance, ARIA, keyboard nav (`global-a11y-i18n-expert`)
140
+ - [ ] **Responsive design** — works flawlessly on mobile (320px), tablet, and desktop (`tailwind-expert`)
141
+ - [ ] **Image optimization** — `next/image` with proper sizes, WebP/AVIF format, lazy loading
142
+ - [ ] **Font optimization** — `next/font` with font-display: swap, preconnect to font CDN
143
+ - [ ] **Bundle analysis** — no unnecessary large libraries, proper code splitting & lazy loading
144
+ - [ ] **Meta tags** — proper title, description, OG tags, canonical URL on every page
145
+ - [ ] **State management** — TanStack Query for server state, Zustand/Jotai for client state (`state-management-expert`)
146
+ - [ ] **Caching strategy** — proper `staleTime`, `gcTime`, and query key factory patterns
147
+ - [ ] **UI consistency** — design tokens applied consistently (`design-system-architect`)
148
+
149
+ ---
150
+
151
+ #### PHASE 3: Backend & AI Services Hardening
152
+ **Orchestrates:** `js-backend-expert`, `go-programming-expert`, `python-programming-expert`, `rust-programming-expert`, `database-orm-expert`, `edge-serverless-db-expert`, `cron-scheduler-expert`, `async-queue-temporal-expert`, `email-notification-expert`, `file-upload-media-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `ai-cost-token-optimizer`
153
+
154
+ **Checklist:**
155
+ - [ ] **Database migrations** — schema changes via managed migrations (Prisma 6 / Drizzle ORM)
156
+ - [ ] **Connection pooling** configured (PgBouncer/Supavisor, edge poolers via `edge-serverless-db-expert`)
157
+ - [ ] **Proper indexes** on all frequently queried columns (`WHERE`, `JOIN`, `ORDER BY`)
158
+ - [ ] **N+1 query prevention** — eager loading or DataLoader pattern for relational data
159
+ - [ ] **Query profiling** — `EXPLAIN ANALYZE` run on critical queries, no Seq Scans on large tables
160
+ - [ ] **Database backups** — automated backup strategy with tested restore procedures
161
+ - [ ] **API rate limiting** — token bucket or sliding window on all public endpoints
162
+ - [ ] **Idempotency keys** — all mutation endpoints handle retries safely
163
+ - [ ] **Pagination** — cursor-based for large datasets, with consistent response format
164
+ - [ ] **Background jobs & cron** — durable workflows (Temporal, BullMQ, Inngest) via `async-queue-temporal-expert`
165
+ - [ ] **Transactional Email & Media** — Resend/SES setup (`email-notification-expert`) & Presigned URLs (`file-upload-media-expert`)
166
+ - [ ] **MCP & AI Cost Optimization** — MCP schemas guarded (`mcp-server-architect`) & prompt caching active (`ai-cost-token-optimizer`)
167
+ - [ ] **Graceful shutdown** — proper SIGTERM handling, drain connections before exit
168
+ - [ ] **Health check endpoints** — `/healthz` (liveness) and `/readyz` (readiness) implemented
169
+
170
+ ---
171
+
172
+ #### PHASE 4: Security Hardening
173
+ **Orchestrates:** `supabase-security-expert`, `firebase-security-expert`, `authentication-identity-expert`, `zero-trust-secret-vault`, `rate-limit-abuse-prevention`, `secure-fuzz-testing`, `fullstack-expert`
174
+
175
+ **Checklist:**
176
+ - [ ] **Authentication** — OAuth 2.0 / OIDC implementation (`authentication-identity-expert`)
177
+ - [ ] **Authorization** — RBAC/ABAC with proper middleware on all protected routes
178
+ - [ ] **Row-Level Security (RLS)** — enabled on ALL public tables in Supabase/PostgreSQL (`supabase-security-expert`)
179
+ - [ ] **Security Rules** — Firebase Firestore/Storage rules are strict (no `allow read, write: if true`)
180
+ - [ ] **CORS configuration** — explicit allow-list of origins (never `*` in production)
181
+ - [ ] **CSP headers** — Content-Security-Policy configured with strict directives
182
+ - [ ] **HTTPS enforced** — HSTS header with `max-age=31536000; includeSubDomains; preload`
183
+ - [ ] **Secrets management** — zero-trust secret management via `zero-trust-secret-vault`
184
+ - [ ] **Rate Limiting & Abuse Prevention** — DDoS, bot protection, Cloudflare Turnstile (`rate-limit-abuse-prevention`)
185
+ - [ ] **`.gitignore` audit** — `.env`, `service-account.json`, private keys are excluded
186
+ - [ ] **SQL injection prevention** — all queries use parameterized statements
187
+ - [ ] **XSS & CSRF prevention** — output encoding, CSP, anti-CSRF tokens on state-changing endpoints
188
+ - [ ] **File upload validation** — content-type checking, size limits, no executable uploads
189
+ - [ ] **Webhook signature verification** — all incoming webhooks validate signatures
190
+ - [ ] **Audit logging** — sensitive operations logged (login, data export, permission changes, admin actions)
191
+
192
+ ---
193
+
194
+ #### PHASE 5: Testing & Quality Assurance
195
+ **Orchestrates:** `e2e-testing-expert`, `browser-automation-expert`, `coderabbit`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert`
196
+
197
+ **Checklist:**
198
+ - [ ] **Unit tests** — Vitest/Jest for frontend, pytest/go test for backend (≥80% coverage target)
199
+ - [ ] **Integration tests** — API endpoint tests with real database (test containers)
200
+ - [ ] **E2E tests** — Playwright for critical user flows (`e2e-testing-expert`)
201
+ - [ ] **Visual E2E testing** — screenshot comparison and UI regression via `browser-automation-expert`
202
+ - [ ] **Fuzz testing** — coverage-guided fuzzing on parsers, validators, and streams (`secure-fuzz-testing`)
203
+ - [ ] **Error resilience** — retry strategies, circuit breakers, and fallback UI via `error-resilience-expert`
204
+ - [ ] **Logging & Error Tracking** — structured JSON logging (Pino/Winston) & Sentry via `logging-error-tracking-expert`
205
+ - [ ] **Code review automation** — CodeRabbit configured on all PRs (`coderabbit`)
206
+ - [ ] **Type checking & linting** — `tsc --noEmit` and linter pass with zero errors in CI
207
+
208
+ ---
209
+
210
+ #### PHASE 6: Performance & GEO/SEO Optimization
211
+ **Orchestrates:** `seo`, `seo-geo`, `seo-aeo-landing-page-writer`, `performance-web-vitals`, `app-analyzer-optimizer`
212
+
213
+ **Checklist:**
214
+ - [ ] **Core Web Vitals** — LCP < 2.5s, INP < 200ms, CLS < 0.1 (`performance-web-vitals`)
215
+ - [ ] **Bundle size** — analyzed and optimized (tree-shaking, dynamic imports, no duplicate deps)
216
+ - [ ] **CDN & Caching** — static assets served via CDN with multi-tier caching (Browser → CDN → Redis → DB)
217
+ - [ ] **SEO meta tags** — title, description, canonical URL, OG/Twitter cards on every page (`seo`)
218
+ - [ ] **Structured data & Sitemap** — Schema.org markup and XML sitemap generated
219
+ - [ ] **robots.txt** — properly configured (no accidental disallow of important pages)
220
+ - [ ] **AI search readiness (GEO)** — `llms.txt`, semantic HTML, AEO optimization (`seo-geo`, `seo-aeo-landing-page-writer`)
221
+ - [ ] **Lighthouse score** — Lighthouse score ≥ 90 on all key pages
222
+
223
+ ---
224
+
225
+ #### PHASE 7: DevOps & Deployment Readiness
226
+ **Orchestrates:** `ci-cd-devops-architect`, `cloud-hosting-expert`, `data-telemetry-expert`, `session-handoff-resume`, `auto-doc-updater`
227
+
228
+ **Checklist:**
229
+ - [ ] **Docker** — multi-stage builds, non-root user, HEALTHCHECK, `.dockerignore` configured
230
+ - [ ] **CI/CD pipeline** — automated lint → test → build → deploy on push/PR (`ci-cd-devops-architect`)
231
+ - [ ] **Edge & Cloud Deployment** — Vercel / Cloudflare Workers / AWS Edge setup (`cloud-hosting-expert`)
232
+ - [ ] **Zero-downtime deployment & Rollback** — rolling updates or blue-green strategy with tested rollback
233
+ - [ ] **Telemetry & Observability** — OpenTelemetry, PostHog, Prometheus/Grafana (`data-telemetry-expert`)
234
+ - [ ] **SLIs/SLOs defined** — error rate < 0.1%, p99 latency < 500ms, uptime > 99.9%
235
+ - [ ] **Incident response & Runbooks** — documented runbooks for common failure scenarios
236
+ - [ ] **Backup & disaster recovery** — automated database backups, tested restore procedure
237
+ - [ ] **Session Checkpoint & Docs** — `session-handoff-resume` checkpoint saved, `CHANGELOG.md` & `BLUEPRINT.md` updated (`auto-doc-updater`)
238
+
239
+ ---
240
+
241
+ ### Automated Readiness Scanner
242
+ An automated Python scanner script is included at [production_readiness_scanner.py](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/scripts/production_readiness_scanner.py) to perform all check phases automatically. It automatically detects technology stacks (Vite, React 19, Supabase, Vitest, Playwright, ESLint) and parses local developer logs (`tsc_errors.txt`, `eslint_output.txt`, etc.) to calculate a live readiness score and compile an interactive, clickable markdown report (`PRODUCTION_READINESS_REPORT.md`).
243
+
244
+ **Usage:**
245
+ ```bash
246
+ # Run basic static checklist checks on a project
247
+ python scripts/production_readiness_scanner.py /path/to/project
248
+
249
+ # Run active compilation, linting, and test execution diagnostics
250
+ python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
251
+ ```
252
+
253
+ ---
254
+
255
+ ### Production Readiness Report Format
256
+
257
+ After completing all 7 phases, compile a **Production Readiness Report** with:
258
+
259
+ ```markdown
260
+ # Production Readiness Report
261
+
262
+ ## Executive Summary
263
+ Overall readiness score (0-100) with letter grade (A/B/C/D/F).
264
+
265
+ ## Phase Scores
266
+ | Phase | Score | Critical Issues | Warnings |
267
+ |-------|-------|-----------------|----------|
268
+ | 1. Architecture & Code Quality | XX/100 | N | N |
269
+ | 2. Frontend Hardening | XX/100 | N | N |
270
+ | 3. Backend Hardening | XX/100 | N | N |
271
+ | 4. Security Hardening | XX/100 | N | N |
272
+ | 5. Testing & QA | XX/100 | N | N |
273
+ | 6. Performance & SEO | XX/100 | N | N |
274
+ | 7. DevOps & Deployment | XX/100 | N | N |
275
+
276
+ ## 🔴 Critical Issues (Must Fix Before Production)
277
+ List of blockers that MUST be resolved.
278
+
279
+ ## 🟡 Warnings (Should Fix)
280
+ List of important improvements.
281
+
282
+ ## 🔵 Recommendations (Nice to Have)
283
+ List of enhancements for future iterations.
284
+
285
+ ## Remediation Plan
286
+ Step-by-step action items ordered by priority.
287
+ ```
288
+
289
+ ### Scoring Methodology
290
+
291
+ Each phase is scored 0-100 based on checklist completion:
292
+ - **95-100**: Production-ready ✅
293
+ - **80-94**: Needs minor fixes ⚠️
294
+ - **60-79**: Significant issues 🟡
295
+ - **Below 60**: Not production-ready 🔴
296
+
297
+ **Overall Score** = Weighted average:
298
+ - Architecture (10%) + Frontend (15%) + Backend (15%) + **Security (25%)** + Testing (15%) + Performance (10%) + DevOps (10%)
299
+
300
+ > **Note:** Security is weighted highest because data breaches and vulnerabilities are the most damaging production issues.
301
+
302
+ ### Trigger Conditions
303
+ Active whenever the user asks to:
304
+ 1. Prepare an application for production deployment.
305
+ 2. Run a production readiness review, pre-launch checklist, or hardening audit.
306
+ 3. Ensure an application is secure, performant, and robust before going live.
307
+ 4. Perform a comprehensive quality audit across frontend, backend, and infrastructure.
308
+
309
+ ---
310
+
311
+ <a name="bahasa-indonesia"></a>
312
+ ## Bahasa Indonesia
313
+
314
+ ### Integrasi Orkestrasi
315
+ Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
316
+
317
+ ### Deskripsi
318
+ **Production-Ready Hardener** adalah skill orkestrator utama yang menggabungkan dan mendelegasikan ke semua skill vibes-plug yang relevan untuk memastikan aplikasi Anda kokoh, aman, berperforma tinggi, dan siap produksi sebelum deployment. Skill ini berfungsi sebagai checklist pra-produksi komprehensif yang tidak meninggalkan celah — dari polish frontend hingga ketahanan backend, dari keamanan data hingga observability.
319
+
320
+ Skill ini TIDAK menggantikan skill individual — ia **mengoordinasikan** mereka ke dalam alur kerja audit-dan-pengerasan yang terstruktur dan bertahap.
321
+
322
+ ### Peta Skill yang Diorkestrasi
323
+
324
+ | Fase | Skill yang Digunakan | Fokus Utama |
325
+ |------|---------------------|-------------|
326
+ | 1. Arsitektur & Kualitas Kode | `scalability-clean-code`, `fullstack-expert`, `senior-fullstack`, `app-analyzer-optimizer`, `monorepo-architect`, `dependency-upgrade-migrator`, `vibe-code-gardener`, `typescript-expert` | SOLID, DRY, Clean Architecture, RFC 9457 errors, pembersihan AI slop, strict TS |
327
+ | 2. Pengerasan Frontend | `senior-frontend`, `design-system-architect`, `tailwind-expert`, `form-validation-expert`, `state-management-expert`, `ui-components-expert`, `ui-ux-pro-max`, `hig`, `tanstack-query-expert`, `global-a11y-i18n-expert` | React 19, Error Boundaries, validasi Zod + RHF, a11y, state management, UI primitives |
328
+ | 3. Pengerasan Backend | `js-backend-expert`, `go-programming-expert`, `python-programming-expert`, `rust-programming-expert`, `database-orm-expert`, `edge-serverless-db-expert`, `cron-scheduler-expert`, `async-queue-temporal-expert`, `email-notification-expert`, `file-upload-media-expert`, `mcp-server-architect`, `multi-agent-orchestration`, `ai-cost-token-optimizer` | Database migration, ORM, connection pooling, durable background jobs, transactional email, MCP tools, token budget |
329
+ | 4. Pengerasan Keamanan | `supabase-security-expert`, `firebase-security-expert`, `authentication-identity-expert`, `zero-trust-secret-vault`, `rate-limit-abuse-prevention`, `secure-fuzz-testing`, `fullstack-expert` | RLS, RBAC, OAuth2, Turnstile bot protection, Upstash rate limit, secret vault, fuzzing, XSS/CSRF |
330
+ | 5. Testing & QA | `e2e-testing-expert`, `browser-automation-expert`, `coderabbit`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert` | E2E (Playwright), visual testing, Unit (Vitest), circuit breaker, Sentry & Pino logging |
331
+ | 6. Performa & SEO | `seo`, `seo-geo`, `seo-aeo-landing-page-writer`, `performance-web-vitals`, `app-analyzer-optimizer` | Core Web Vitals (LCP, INP, CLS), bundle, CDN, sitemap, llms.txt & AEO |
332
+ | 7. DevOps & Observability | `ci-cd-devops-architect`, `cloud-hosting-expert`, `data-telemetry-expert`, `session-handoff-resume`, `auto-doc-updater` | Docker, CI/CD pipeline, OpenTelemetry, PostHog, Vercel/Cloudflare, state checkpoint & CHANGELOG |
333
+
334
+ ### Protokol Eksekusi
335
+
336
+ Ketika skill ini dipicu, jalankan **7 fase pengerasan berurutan**. Setiap fase menghasilkan temuan dan rekomendasi. Di akhir, compile sebuah **Laporan Kesiapan Produksi**.
337
+
338
+ ---
339
+
340
+ #### FASE 1: Audit Arsitektur & Kualitas Kode
341
+ - [ ] Struktur proyek mengikuti clean architecture
342
+ - [ ] Prinsip SOLID diterapkan konsisten
343
+ - [ ] Pelanggaran DRY diidentifikasi dan di-refactor
344
+ - [ ] Kontrak API menggunakan desain spec-first (OpenAPI/GraphQL)
345
+ - [ ] Error handling terstruktur dan konsisten (RFC 9457)
346
+ - [ ] TypeScript strict mode aktif (`strict: true`), tanpa tipe `any` (`typescript-expert`)
347
+ - [ ] Validasi input di semua batas API (Zod, Pydantic)
348
+ - [ ] Tidak ada hardcoded value — semua konfigurasi via environment variable
349
+ - [ ] Dead code & AI slop dieliminasi via `vibe-code-gardener`
350
+ - [ ] Audit dependensi — semua paket up-to-date, tanpa CVE (`dependency-upgrade-migrator`)
351
+
352
+ #### FASE 2: Pengerasan Frontend
353
+ - [ ] Server Components secara default
354
+ - [ ] Suspense boundary dengan loading state bermakna
355
+ - [ ] Error boundary di setiap segmen halaman
356
+ - [ ] Validasi formulir ketat dengan React Hook Form + Zod (`form-validation-expert`)
357
+ - [ ] Tidak ada hydration mismatch
358
+ - [ ] Aksesibilitas (a11y) & i18n — WCAG 2.2, ARIA, navigasi keyboard (`global-a11y-i18n-expert`)
359
+ - [ ] Desain responsif — berfungsi sempurna di mobile, tablet, desktop (`tailwind-expert`)
360
+ - [ ] Optimasi gambar dengan `next/image`, WebP/AVIF, lazy loading
361
+ - [ ] Analisis bundle — tanpa library besar yang tidak perlu
362
+ - [ ] Meta tags lengkap di setiap halaman
363
+ - [ ] Strategi state management (`state-management-expert`) dan caching yang tepat
364
+
365
+ #### FASE 3: Pengerasan Backend
366
+ - [ ] Semua perubahan schema via database migration (Prisma 6 / Drizzle ORM)
367
+ - [ ] Connection pooling dikonfigurasi (`edge-serverless-db-expert`)
368
+ - [ ] Index yang tepat pada kolom yang sering di-query
369
+ - [ ] Pencegahan N+1 query
370
+ - [ ] API rate limiting & idempotency keys aktif
371
+ - [ ] Durable background jobs & cron queues (`async-queue-temporal-expert`)
372
+ - [ ] Email transaksional & upload media presigned (`email-notification-expert`, `file-upload-media-expert`)
373
+ - [ ] Skema MCP Server guarded & optimasi prompt caching (`ai-cost-token-optimizer`)
374
+ - [ ] Graceful shutdown dengan penanganan SIGTERM
375
+ - [ ] Health check endpoint (`/healthz`, `/readyz`)
376
+
377
+ #### FASE 4: Pengerasan Keamanan
378
+ - [ ] Autentikasi OAuth 2.0 / OIDC (`authentication-identity-expert`)
379
+ - [ ] Otorisasi RBAC/ABAC pada semua route dilindungi
380
+ - [ ] RLS aktif di SEMUA tabel publik (Supabase/PostgreSQL) (`supabase-security-expert`)
381
+ - [ ] Firebase Security Rules ketat
382
+ - [ ] CORS dengan allow-list eksplisit (bukan `*`)
383
+ - [ ] CSP headers dikonfigurasi
384
+ - [ ] HTTPS dipaksakan dengan HSTS
385
+ - [ ] Semua secret di environment variable / secret manager (`zero-trust-secret-vault`)
386
+ - [ ] Rate limiting & proteksi bot Turnstile (`rate-limit-abuse-prevention`)
387
+ - [ ] `.gitignore` mencakup `.env` dan file sensitif
388
+ - [ ] Pencegahan SQL injection, XSS, CSRF
389
+ - [ ] Validasi file upload (content-type, size limit)
390
+ - [ ] Verifikasi tanda tangan webhook & audit logging
391
+
392
+ #### FASE 5: Testing & Quality Assurance
393
+ - [ ] Unit test (≥80% coverage)
394
+ - [ ] Integration test dengan database real
395
+ - [ ] E2E test untuk alur kritis (Playwright) (`e2e-testing-expert`)
396
+ - [ ] Visual regression testing (`browser-automation-expert`)
397
+ - [ ] Fuzz testing pada parser dan validator (`secure-fuzz-testing`)
398
+ - [ ] Error resilience (circuit breaker & retry logic) (`error-resilience-expert`)
399
+ - [ ] Structured logging (Pino) & error tracking (Sentry) (`logging-error-tracking-expert`)
400
+ - [ ] Code review automation (CodeRabbit) (`coderabbit`)
401
+ - [ ] Type checking dan linting di CI tanpa error
402
+
403
+ #### FASE 6: Optimasi Performa & SEO
404
+ - [ ] Core Web Vitals memenuhi target (LCP < 2.5s, INP < 200ms, CLS < 0.1) (`performance-web-vitals`)
405
+ - [ ] Bundle size dioptimasi
406
+ - [ ] CDN untuk aset statis
407
+ - [ ] Caching multi-tier (Browser → CDN → Redis → Database)
408
+ - [ ] SEO meta tags lengkap (`seo`)
409
+ - [ ] Structured data (Schema.org) & XML Sitemap
410
+ - [ ] Kesiapan AI search & AEO (`seo-geo`, `seo-aeo-landing-page-writer`, `llms.txt`)
411
+
412
+ #### FASE 7: DevOps & Kesiapan Deployment
413
+ - [ ] Docker multi-stage build, non-root user, HEALTHCHECK
414
+ - [ ] CI/CD pipeline otomatis (lint → test → build → deploy) (`ci-cd-devops-architect`)
415
+ - [ ] Edge & Cloud Deployment (Vercel/Cloudflare Workers) (`cloud-hosting-expert`)
416
+ - [ ] Zero-downtime deployment & strategi rollback yang teruji
417
+ - [ ] Telemetri & observability (OpenTelemetry, PostHog, Sentry) (`data-telemetry-expert`)
418
+ - [ ] Structured logging format JSON
419
+ - [ ] SLI/SLO terdefinisi & backup database otomatis
420
+ - [ ] Session state checkpoint disimpan (`session-handoff-resume`)
421
+ - [ ] Dokumentasi terkini (`CHANGELOG.md`, `BLUEPRINT.md`, `README`) (`auto-doc-updater`)
422
+
423
+ ---
424
+
425
+ ### Scanner Kesiapan Otomatis
426
+ Script scanner Python otomatis tersedia di [production_readiness_scanner.py](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/scripts/production_readiness_scanner.py) untuk menjalankan seluruh fase pemeriksaan secara otomatis. Scanner ini mendeteksi stack teknologi (Vite, React 19, Supabase, Vitest, Playwright, ESLint) serta mem-parsing file log error lokal (`tsc_errors.txt`, `eslint_output.txt`, dll) untuk mengkalkulasi skor kesiapan rilis dan menyusun laporan markdown interaktif (`PRODUCTION_READINESS_REPORT.md`).
427
+
428
+ **Cara Penggunaan:**
429
+ ```bash
430
+ # Jalankan pemeriksaan checklist statis dasar pada proyek
431
+ python scripts/production_readiness_scanner.py /path/to/project
432
+
433
+ # Jalankan diagnostik aktif termasuk typecheck tsc, linter eslint, unit test, dan bundle build
434
+ python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
435
+ ```
436
+
437
+ ---
438
+
439
+ ### Metodologi Penilaian
440
+
441
+ Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
442
+ - **95-100**: Siap produksi ✅
443
+ - **80-94**: Perlu perbaikan minor ⚠️
444
+ - **60-79**: Ada masalah signifikan 🟡
445
+ - **Di bawah 60**: Belum siap produksi 🔴
446
+
447
+ **Skor Keseluruhan** = Rata-rata berbobot:
448
+ - Arsitektur (10%) + Frontend (15%) + Backend (15%) + **Keamanan (25%)** + Testing (15%) + Performa (10%) + DevOps (10%)
449
+
450
+ > **Catatan:** Keamanan diberi bobot tertinggi karena pelanggaran data dan kerentanan adalah masalah produksi yang paling merusak.
451
+
452
+ ### Kondisi Pemicu
453
+ Aktif setiap kali pengguna meminta untuk:
454
+ 1. Mempersiapkan aplikasi untuk deployment produksi.
455
+ 2. Menjalankan review kesiapan produksi, checklist pra-peluncuran, atau audit pengerasan.
456
+ 3. Memastikan aplikasi aman, berperforma tinggi, dan kokoh sebelum go-live.
457
+ 4. Melakukan audit kualitas komprehensif di seluruh frontend, backend, dan infrastruktur.
458
+
459
+ ### Referensi Dokumentasi
460
+ - [Production Readiness Checklist](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/production_checklist.md)
461
+ - [Security Hardening Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/security_hardening_guide.md)
462
+ - [Performance Optimization Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/performance_optimization.md)