vibes-plug 2.5.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 (177) 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 +37 -7
  5. package/BLUEPRINT.md +309 -217
  6. package/CHANGELOG.md +133 -1
  7. package/CLAUDE.md +70 -0
  8. package/LICENSE +1 -1
  9. package/README.md +641 -415
  10. package/index.js +19 -0
  11. package/package.json +44 -8
  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 -52
  17. package/skills/ai-evals-benchmark-expert/SKILL.md +188 -0
  18. package/skills/ai-llm-integration-expert/SKILL.md +185 -178
  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 +6 -3
  23. package/skills/api-gateway-proxy-expert/SKILL.md +81 -0
  24. package/skills/app-analyzer-optimizer/SKILL.md +6 -3
  25. package/skills/apple-ecosystem-expert/SKILL.md +144 -141
  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 +210 -24
  29. package/skills/authentication-identity-expert/SKILL.md +278 -275
  30. package/skills/auto-doc-updater/SKILL.md +7 -1
  31. package/skills/autonomous-chaos-monkey/SKILL.md +63 -63
  32. package/skills/autonomous-red-teamer/SKILL.md +172 -28
  33. package/skills/autonomous-tdd-debugger/SKILL.md +70 -64
  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 +9 -6
  38. package/skills/brainstorming/SKILL.md +58 -50
  39. package/skills/browser-automation-expert/SKILL.md +197 -21
  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 +45 -36
  43. package/skills/cloud-hosting-expert/SKILL.md +7 -1
  44. package/skills/coderabbit/SKILL.md +7 -1
  45. package/skills/compliance-gdpr-privacy-expert/SKILL.md +85 -0
  46. package/skills/cron-scheduler-expert/SKILL.md +303 -297
  47. package/skills/data-pipeline-etl-expert/SKILL.md +84 -0
  48. package/skills/data-telemetry-expert/SKILL.md +7 -1
  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 +13 -3
  52. package/skills/dependency-upgrade-migrator/SKILL.md +300 -294
  53. package/skills/design-system-architect/SKILL.md +278 -259
  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 +7 -1
  57. package/skills/doku-payment-gateway/SKILL.md +7 -1
  58. package/skills/domain-driven-design-expert/SKILL.md +82 -0
  59. package/skills/e2e-testing-expert/SKILL.md +7 -1
  60. package/skills/ecommerce-expert/SKILL.md +87 -0
  61. package/skills/edge-serverless-db-expert/SKILL.md +98 -42
  62. package/skills/email-notification-expert/SKILL.md +367 -361
  63. package/skills/error-resilience-expert/SKILL.md +485 -479
  64. package/skills/event-driven-architect/SKILL.md +7 -1
  65. package/skills/feature-flag-analytics-expert/SKILL.md +65 -45
  66. package/skills/file-upload-media-expert/SKILL.md +436 -430
  67. package/skills/firebase-security-expert/SKILL.md +7 -1
  68. package/skills/form-validation-expert/SKILL.md +406 -400
  69. package/skills/fullstack-expert/SKILL.md +60 -1
  70. package/skills/gemini-agent-booster/SKILL.md +173 -135
  71. package/skills/geospatial-maps-expert/SKILL.md +80 -0
  72. package/skills/global-a11y-i18n-expert/SKILL.md +7 -1
  73. package/skills/glsl-shader-expert/SKILL.md +106 -100
  74. package/skills/go-programming-expert/SKILL.md +21 -15
  75. package/skills/graph-rag-knowledge-expert/SKILL.md +159 -0
  76. package/skills/graphql-apollo-expert/SKILL.md +113 -107
  77. package/skills/headless-cms-expert/SKILL.md +181 -0
  78. package/skills/hig/SKILL.md +7 -1
  79. package/skills/js-backend-expert/SKILL.md +218 -216
  80. package/skills/legacy-code-translator/SKILL.md +70 -64
  81. package/skills/local-slm-edge-ai-expert/SKILL.md +167 -0
  82. package/skills/logging-error-tracking-expert/SKILL.md +343 -337
  83. package/skills/mcp-client-orchestrator/SKILL.md +75 -69
  84. package/skills/mcp-server-architect/SKILL.md +294 -194
  85. package/skills/micro-frontend-architect/SKILL.md +111 -105
  86. package/skills/mobile-expo-expert/SKILL.md +8 -2
  87. package/skills/mobile-push-notification-expert/SKILL.md +70 -50
  88. package/skills/modern-css-native-expert/SKILL.md +189 -0
  89. package/skills/monday-design-aesthetic/SKILL.md +7 -1
  90. package/skills/monorepo-architect/SKILL.md +7 -1
  91. package/skills/mpa-orchestrator/SKILL.md +20 -1
  92. package/skills/multi-agent-orchestration/SKILL.md +254 -234
  93. package/skills/multiple-entry-points/SKILL.md +37 -1
  94. package/skills/mvc-expert/SKILL.md +7 -1
  95. package/skills/n8n-automation-expert/SKILL.md +89 -0
  96. package/skills/nextjs-app-router-expert/SKILL.md +148 -0
  97. package/skills/openapi-swagger-codegen-expert/SKILL.md +67 -0
  98. package/skills/payment-gateway-expert/SKILL.md +85 -1
  99. package/skills/pdf-document-generation-expert/SKILL.md +91 -0
  100. package/skills/performance-web-vitals/SKILL.md +7 -1
  101. package/skills/post-quantum-crypto-migrator/SKILL.md +57 -57
  102. package/skills/prd-architect/SKILL.md +7 -1
  103. package/skills/proactive-background-watcher/SKILL.md +67 -61
  104. package/skills/production-ready-hardener/SKILL.md +461 -455
  105. package/skills/project-context-mapper/SKILL.md +84 -78
  106. package/skills/pwa-offline-first-expert/SKILL.md +185 -0
  107. package/skills/python-programming-expert/SKILL.md +407 -401
  108. package/skills/rate-limit-abuse-prevention/SKILL.md +376 -370
  109. package/skills/realtime-collaboration-expert/SKILL.md +55 -1
  110. package/skills/rich-text-editor-expert/SKILL.md +177 -0
  111. package/skills/rust-programming-expert/SKILL.md +7 -1
  112. package/skills/saas-billing/SKILL.md +7 -1
  113. package/skills/saas-multi-tenant/SKILL.md +7 -1
  114. package/skills/saas-mvp-launcher/SKILL.md +20 -1
  115. package/skills/saas-transformer/SKILL.md +499 -488
  116. package/skills/scalability-clean-code/SKILL.md +7 -1
  117. package/skills/search-engine-expert/SKILL.md +89 -0
  118. package/skills/secure-fuzz-testing/SKILL.md +7 -1
  119. package/skills/self-evolving-memory-graph/SKILL.md +90 -74
  120. package/skills/self-healing-cloud-orchestrator/SKILL.md +57 -57
  121. package/skills/senior-frontend/SKILL.md +141 -161
  122. package/skills/seo/SKILL.md +41 -17
  123. package/skills/session-context-loader/SKILL.md +82 -76
  124. package/skills/session-handoff-resume/SKILL.md +7 -1
  125. package/skills/{skill_baru → skill-baru}/SKILL.md +8 -2
  126. package/skills/solidjs-expert/SKILL.md +80 -0
  127. package/skills/spa-orchestrator/SKILL.md +20 -1
  128. package/skills/sse-websocket-streaming-expert/SKILL.md +93 -0
  129. package/skills/state-management-expert/SKILL.md +7 -1
  130. package/skills/supabase-migration/SKILL.md +47 -1
  131. package/skills/supabase-security-expert/SKILL.md +7 -1
  132. package/skills/svelte-sveltekit-expert/SKILL.md +91 -0
  133. package/skills/svg-animation-motion-expert/SKILL.md +115 -0
  134. package/skills/tailwind-expert/SKILL.md +88 -136
  135. package/skills/tanstack-query-expert/SKILL.md +7 -1
  136. package/skills/tauri-expert/SKILL.md +7 -1
  137. package/skills/token-saver/SKILL.md +1 -1
  138. package/skills/typescript-expert/SKILL.md +12 -6
  139. package/skills/ui-components-expert/SKILL.md +165 -279
  140. package/skills/ui-ux-pro-max/SKILL.md +23 -3
  141. package/skills/vector-db-rag-expert/SKILL.md +175 -19
  142. package/skills/vibe-code-gardener/SKILL.md +1 -1
  143. package/skills/visual-qa-vision-agent/SKILL.md +70 -64
  144. package/skills/voice-ai-realtime-agent/SKILL.md +202 -0
  145. package/skills/vue-frontend-expert/SKILL.md +131 -125
  146. package/skills/wasm-edge-computing-expert/SKILL.md +97 -0
  147. package/skills/web-3d-graphics-expert/SKILL.md +136 -130
  148. package/skills/web-game-engine-expert/SKILL.md +101 -95
  149. package/skills/web-scraper/SKILL.md +157 -207
  150. package/skills/website-design-cloner/SKILL.md +179 -173
  151. package/skills/webxr-ar-vr-expert/SKILL.md +122 -116
  152. package/skills/wordpress-headless-expert/SKILL.md +144 -0
  153. package/skills/zero-to-prod-orchestrator/SKILL.md +52 -27
  154. package/skills/zero-trust-secret-vault/SKILL.md +87 -39
  155. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  156. package/.github/workflows/publish.yml +0 -20
  157. package/CONTRIBUTING.md +0 -199
  158. package/SECURITY.md +0 -21
  159. package/banner.png +0 -0
  160. package/skills/autonomous-swarm-director/SKILL.md +0 -69
  161. package/skills/hyper-context-synthesizer/SKILL.md +0 -55
  162. package/skills/llm-cost-arbitrage-router/SKILL.md +0 -59
  163. package/skills/senior-fullstack/SKILL.md +0 -167
  164. package/skills/senior-fullstack/references/architecture_patterns.md +0 -160
  165. package/skills/senior-fullstack/references/development_workflows.md +0 -222
  166. package/skills/senior-fullstack/references/tech_stack_guide.md +0 -190
  167. package/skills/senior-fullstack/scripts/code_quality_analyzer.py +0 -114
  168. package/skills/senior-fullstack/scripts/fullstack_scaffolder.py +0 -114
  169. package/skills/senior-fullstack/scripts/project_scaffolder.py +0 -114
  170. package/skills/seo-aeo-landing-page-writer/SKILL.md +0 -97
  171. package/skills/seo-geo/SKILL.md +0 -188
  172. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-310.pyc +0 -0
  173. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
  174. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-310.pyc +0 -0
  175. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-312.pyc +0 -0
  176. package/skills/ui_ux_expert/SKILL.md +0 -125
  177. package/vibes-swarm-demo.gif +0 -0
@@ -1,456 +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 — 7 Phases) │
27
- ├──────────────────────────────────────────────────────────────────┤
28
-
29
- ┌─── PHASE 1: Architecture & Code Quality ───────────────────┐
30
- │ │ • scalability-clean-code (SOLID, DRY, Clean Architecture) │ │
31
- • fullstack-expert / senior-fullstack (Design & patterns) │ │
32
- │ • app-analyzer-optimizer (Deep codebase & bottleneck audit)│
33
- │ │ • monorepo-architect (Turborepo & pnpm workspace structure)│ │
34
- │ │ • dependency-upgrade-migrator (Codemod & package audits) │ │
35
- │ │ • vibe-code-gardener (Purge AI slop & context drift)
36
- │ │ • typescript-expert (Strict mode & type-safe patterns) │ │
37
- └────────────────────────────────────────────────────────────┘
38
-
39
- ┌─── PHASE 2: Frontend Hardening ────────────────────────────┐
40
- • senior-frontend (React 19, Next.js 15 App Router)
41
- • design-system-architect (Tokens, Radix, CVA, WCAG 2.2) │ │
42
- │ • tailwind-expert (CSS-first config, OKLCH, responsive) │
43
- │ │ • form-validation-expert (React Hook Form, Zod validation)│ │
44
- │ │ • state-management-expert (Zustand, Jotai, TanStack Store)│ │
45
- │ │ • ui-components-expert (Input, nav, container primitives) │ │
46
- │ │ • ui-ux-pro-max / hig (HIG principles & design system) │ │
47
- │ │ • global-a11y-i18n-expert (Web accessibility & i18n) │ │
48
- │ │ • mobile-expo-expert / tauri-expert (Mobile & Desktop) │ │
49
- └────────────────────────────────────────────────────────────┘
50
-
51
- ┌─── PHASE 3: Backend & AI Services ─────────────────────────┐
52
- • js-backend-expert (Node 24, Bun 1.2, Fastify, Hono)
53
- • go-programming-expert (Go 1.24+, microservices, gRPC) │ │
54
- │ • python-programming-expert (Python 3.13+, FastAPI, uv) │
55
- │ │ • rust-programming-expert (Rust 2024, Axum, async) │ │
56
- │ │ • database-orm-expert (Prisma 6, Drizzle, migrations) │ │
57
- │ │ • edge-serverless-db-expert (Neon, Cloudflare D1, Turso) │ │
58
- │ │ • cron-scheduler-expert / async-queue-temporal-expert │ │
59
- │ │ • email-notification-expert (Transactional emails) │ │
60
- │ │ • file-upload-media-expert (S3, Presigned URLs, CDN) │ │
61
- │ │ • mcp-server-architect (MCP Server Tools & Zod schemas) │ │
62
- │ │ • multi-agent-orchestration / ai-llm-integration-expert │ │
63
- │ │ • ai-cost-token-optimizer (Prompt caching & token budget) │ │
64
- └────────────────────────────────────────────────────────────┘
65
-
66
- ┌─── PHASE 4: Security Hardening ────────────────────────────┐
67
- • supabase-security-expert (RLS policies, Supabase Linter)
68
- • firebase-security-expert (Rules, App Check, data leak) │ │
69
- │ • authentication-identity-expert (OAuth2, RBAC/ABAC) │
70
- │ │ • zero-trust-secret-vault (Vault, Infisical, key rotation)│ │
71
- │ │ • rate-limit-abuse-prevention (Rate limit & bot protection)│
72
- │ │ • secure-fuzz-testing (Coverage-guided fuzzing) │ │
73
- │ │ • fullstack-expert (OWASP Top 10 & defense-in-depth) │ │
74
- └────────────────────────────────────────────────────────────┘
75
-
76
- ┌─── PHASE 5: Testing & Quality Assurance ───────────────────┐
77
- • e2e-testing-expert (Playwright E2E & Vitest integration)
78
- • browser-automation-expert (Visual regression testing) │ │
79
- │ • secure-fuzz-testing (Security fuzz testing) │
80
- │ │ • error-resilience-expert (Retry logic & circuit breakers)│ │
81
- │ │ • logging-error-tracking-expert (Pino, Sentry correlation)│ │
82
- │ │ • coderabbit (AI code review & PR summarization) │ │
83
- └────────────────────────────────────────────────────────────┘
84
-
85
- ┌─── PHASE 6: Performance & GEO/SEO ─────────────────────────┐
86
- • seo (Technical SEO, Schema, Sitemap, E-E-A-T audit)
87
- • seo-geo (Generative Engine Optimization & llms.txt) │ │
88
- │ • seo-aeo-landing-page-writer (AEO conversion landing) │
89
- │ │ • performance-web-vitals (CWV: LCP, INP, CLS optimization)│ │
90
- │ │ • app-analyzer-optimizer (Bundle analysis & dynamic loading)│
91
- └────────────────────────────────────────────────────────────┘
92
-
93
- ┌─── PHASE 7: DevOps & Deployment ───────────────────────────┐
94
- • ci-cd-devops-architect (GitHub Actions, Docker, IaC)
95
- • cloud-hosting-expert (Vercel, Cloudflare Workers, AWS) │ │
96
- │ • data-telemetry-expert (OpenTelemetry, PostHog metrics)
97
- │ │ • session-handoff-resume (Save state checkpoint) │ │
98
- │ │ • auto-doc-updater (CHANGELOG & BLUEPRINT automation) │ │
99
- └────────────────────────────────────────────────────────────┘
100
-
101
- └──────────────────────────────────────────────────────────────────┘
102
- ```
103
-
104
- ### Execution Protocol
105
-
106
- 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**.
107
-
108
- ---
109
-
110
- #### PHASE 1: Architecture & Code Quality Audit
111
- **Orchestrates:** `scalability-clean-code`, `fullstack-expert`, `senior-fullstack`, `app-analyzer-optimizer`, `monorepo-architect`, `dependency-upgrade-migrator`, `vibe-code-gardener`, `typescript-expert`
112
-
113
- **Checklist:**
114
- - [ ] **Project structure** follows clean architecture (Domain Use Cases Adapters → Infrastructure)
115
- - [ ] **SOLID principles** are applied consistently — no god classes, no leaky abstractions
116
- - [ ] **DRY violations** identified and refactored into shared utilities/services
117
- - [ ] **API contracts** are spec-first (OpenAPI/GraphQL schema) with proper versioning
118
- - [ ] **Error handling** is structured and consistent (RFC 9457 Problem Details or equivalent)
119
- - [ ] **TypeScript strict mode** enabled (`strict: true` in tsconfig), no `any` types (`typescript-expert`)
120
- - [ ] **Input validation** on all API boundaries (Zod, Pydantic, or equivalent)
121
- - [ ] **No hardcoded values** all config via environment variables or config files
122
- - [ ] **Dead code & AI slop eliminated** unneeded boilerplate cleaned via `vibe-code-gardener`
123
- - [ ] **Dependency audit** all packages up-to-date, no known CVEs (`dependency-upgrade-migrator`, `npm audit`)
124
-
125
- ---
126
-
127
- #### PHASE 2: Frontend Hardening
128
- **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`
129
-
130
- **Checklist:**
131
- - [ ] **Server Components by default** `'use client'` only when truly needed (state, events, browser APIs)
132
- - [ ] **Proper Suspense boundaries** with meaningful loading states (skeletons, not spinners)
133
- - [ ] **Error boundaries** on all page segments with user-friendly error UI
134
- - [ ] **Form validation** — robust validation with React Hook Form + Zod (`form-validation-expert`)
135
- - [ ] **No hydration mismatches** no client-only state (`localStorage`, `window`) in initial render
136
- - [ ] **Accessibility (a11y) & i18n** WCAG 2.2 compliance, ARIA, keyboard nav (`global-a11y-i18n-expert`)
137
- - [ ] **Responsive design** — works flawlessly on mobile (320px), tablet, and desktop (`tailwind-expert`)
138
- - [ ] **Image optimization** — `next/image` with proper sizes, WebP/AVIF format, lazy loading
139
- - [ ] **Font optimization** — `next/font` with font-display: swap, preconnect to font CDN
140
- - [ ] **Bundle analysis** — no unnecessary large libraries, proper code splitting & lazy loading
141
- - [ ] **Meta tags** — proper title, description, OG tags, canonical URL on every page
142
- - [ ] **State management** — TanStack Query for server state, Zustand/Jotai for client state (`state-management-expert`)
143
- - [ ] **Caching strategy** — proper `staleTime`, `gcTime`, and query key factory patterns
144
- - [ ] **UI consistency** — design tokens applied consistently (`design-system-architect`)
145
-
146
- ---
147
-
148
- #### PHASE 3: Backend & AI Services Hardening
149
- **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`
150
-
151
- **Checklist:**
152
- - [ ] **Database migrations** schema changes via managed migrations (Prisma 6 / Drizzle ORM)
153
- - [ ] **Connection pooling** configured (PgBouncer/Supavisor, edge poolers via `edge-serverless-db-expert`)
154
- - [ ] **Proper indexes** on all frequently queried columns (`WHERE`, `JOIN`, `ORDER BY`)
155
- - [ ] **N+1 query prevention** — eager loading or DataLoader pattern for relational data
156
- - [ ] **Query profiling** `EXPLAIN ANALYZE` run on critical queries, no Seq Scans on large tables
157
- - [ ] **Database backups** automated backup strategy with tested restore procedures
158
- - [ ] **API rate limiting** — token bucket or sliding window on all public endpoints
159
- - [ ] **Idempotency keys** — all mutation endpoints handle retries safely
160
- - [ ] **Pagination** — cursor-based for large datasets, with consistent response format
161
- - [ ] **Background jobs & cron** — durable workflows (Temporal, BullMQ, Inngest) via `async-queue-temporal-expert`
162
- - [ ] **Transactional Email & Media** — Resend/SES setup (`email-notification-expert`) & Presigned URLs (`file-upload-media-expert`)
163
- - [ ] **MCP & AI Cost Optimization** — MCP schemas guarded (`mcp-server-architect`) & prompt caching active (`ai-cost-token-optimizer`)
164
- - [ ] **Graceful shutdown** — proper SIGTERM handling, drain connections before exit
165
- - [ ] **Health check endpoints** — `/healthz` (liveness) and `/readyz` (readiness) implemented
166
-
167
- ---
168
-
169
- #### PHASE 4: Security Hardening
170
- **Orchestrates:** `supabase-security-expert`, `firebase-security-expert`, `authentication-identity-expert`, `zero-trust-secret-vault`, `rate-limit-abuse-prevention`, `secure-fuzz-testing`, `fullstack-expert`
171
-
172
- **Checklist:**
173
- - [ ] **Authentication** OAuth 2.0 / OIDC implementation (`authentication-identity-expert`)
174
- - [ ] **Authorization** — RBAC/ABAC with proper middleware on all protected routes
175
- - [ ] **Row-Level Security (RLS)** — enabled on ALL public tables in Supabase/PostgreSQL (`supabase-security-expert`)
176
- - [ ] **Security Rules** — Firebase Firestore/Storage rules are strict (no `allow read, write: if true`)
177
- - [ ] **CORS configuration** — explicit allow-list of origins (never `*` in production)
178
- - [ ] **CSP headers** — Content-Security-Policy configured with strict directives
179
- - [ ] **HTTPS enforced** — HSTS header with `max-age=31536000; includeSubDomains; preload`
180
- - [ ] **Secrets management** — zero-trust secret management via `zero-trust-secret-vault`
181
- - [ ] **Rate Limiting & Abuse Prevention** — DDoS, bot protection, Cloudflare Turnstile (`rate-limit-abuse-prevention`)
182
- - [ ] **`.gitignore` audit** — `.env`, `service-account.json`, private keys are excluded
183
- - [ ] **SQL injection prevention** — all queries use parameterized statements
184
- - [ ] **XSS & CSRF prevention** — output encoding, CSP, anti-CSRF tokens on state-changing endpoints
185
- - [ ] **File upload validation** — content-type checking, size limits, no executable uploads
186
- - [ ] **Webhook signature verification** — all incoming webhooks validate signatures
187
- - [ ] **Audit logging** — sensitive operations logged (login, data export, permission changes, admin actions)
188
-
189
- ---
190
-
191
- #### PHASE 5: Testing & Quality Assurance
192
- **Orchestrates:** `e2e-testing-expert`, `browser-automation-expert`, `coderabbit`, `secure-fuzz-testing`, `error-resilience-expert`, `logging-error-tracking-expert`
193
-
194
- **Checklist:**
195
- - [ ] **Unit tests** Vitest/Jest for frontend, pytest/go test for backend (≥80% coverage target)
196
- - [ ] **Integration tests** — API endpoint tests with real database (test containers)
197
- - [ ] **E2E tests** — Playwright for critical user flows (`e2e-testing-expert`)
198
- - [ ] **Visual E2E testing** — screenshot comparison and UI regression via `browser-automation-expert`
199
- - [ ] **Fuzz testing** — coverage-guided fuzzing on parsers, validators, and streams (`secure-fuzz-testing`)
200
- - [ ] **Error resilience** — retry strategies, circuit breakers, and fallback UI via `error-resilience-expert`
201
- - [ ] **Logging & Error Tracking** — structured JSON logging (Pino/Winston) & Sentry via `logging-error-tracking-expert`
202
- - [ ] **Code review automation** — CodeRabbit configured on all PRs (`coderabbit`)
203
- - [ ] **Type checking & linting** — `tsc --noEmit` and linter pass with zero errors in CI
204
-
205
- ---
206
-
207
- #### PHASE 6: Performance & GEO/SEO Optimization
208
- **Orchestrates:** `seo`, `seo-geo`, `seo-aeo-landing-page-writer`, `performance-web-vitals`, `app-analyzer-optimizer`
209
-
210
- **Checklist:**
211
- - [ ] **Core Web Vitals** LCP < 2.5s, INP < 200ms, CLS < 0.1 (`performance-web-vitals`)
212
- - [ ] **Bundle size** — analyzed and optimized (tree-shaking, dynamic imports, no duplicate deps)
213
- - [ ] **CDN & Caching** — static assets served via CDN with multi-tier caching (Browser → CDN → Redis → DB)
214
- - [ ] **SEO meta tags** — title, description, canonical URL, OG/Twitter cards on every page (`seo`)
215
- - [ ] **Structured data & Sitemap** — Schema.org markup and XML sitemap generated
216
- - [ ] **robots.txt** — properly configured (no accidental disallow of important pages)
217
- - [ ] **AI search readiness (GEO)** — `llms.txt`, semantic HTML, AEO optimization (`seo-geo`, `seo-aeo-landing-page-writer`)
218
- - [ ] **Lighthouse score** — Lighthouse score 90 on all key pages
219
-
220
- ---
221
-
222
- #### PHASE 7: DevOps & Deployment Readiness
223
- **Orchestrates:** `ci-cd-devops-architect`, `cloud-hosting-expert`, `data-telemetry-expert`, `session-handoff-resume`, `auto-doc-updater`
224
-
225
- **Checklist:**
226
- - [ ] **Docker** multi-stage builds, non-root user, HEALTHCHECK, `.dockerignore` configured
227
- - [ ] **CI/CD pipeline** — automated lint → test → build → deploy on push/PR (`ci-cd-devops-architect`)
228
- - [ ] **Edge & Cloud Deployment** — Vercel / Cloudflare Workers / AWS Edge setup (`cloud-hosting-expert`)
229
- - [ ] **Zero-downtime deployment & Rollback** — rolling updates or blue-green strategy with tested rollback
230
- - [ ] **Telemetry & Observability** — OpenTelemetry, PostHog, Prometheus/Grafana (`data-telemetry-expert`)
231
- - [ ] **SLIs/SLOs defined** — error rate < 0.1%, p99 latency < 500ms, uptime > 99.9%
232
- - [ ] **Incident response & Runbooks** — documented runbooks for common failure scenarios
233
- - [ ] **Backup & disaster recovery** — automated database backups, tested restore procedure
234
- - [ ] **Session Checkpoint & Docs** — `session-handoff-resume` checkpoint saved, `CHANGELOG.md` & `BLUEPRINT.md` updated (`auto-doc-updater`)
235
-
236
- ---
237
-
238
- ### Automated Readiness Scanner
239
- 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`).
240
-
241
- **Usage:**
242
- ```bash
243
- # Run basic static checklist checks on a project
244
- python scripts/production_readiness_scanner.py /path/to/project
245
-
246
- # Run active compilation, linting, and test execution diagnostics
247
- python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
248
- ```
249
-
250
- ---
251
-
252
- ### Production Readiness Report Format
253
-
254
- After completing all 7 phases, compile a **Production Readiness Report** with:
255
-
256
- ```markdown
257
- # Production Readiness Report
258
-
259
- ## Executive Summary
260
- Overall readiness score (0-100) with letter grade (A/B/C/D/F).
261
-
262
- ## Phase Scores
263
- | Phase | Score | Critical Issues | Warnings |
264
- |-------|-------|-----------------|----------|
265
- | 1. Architecture & Code Quality | XX/100 | N | N |
266
- | 2. Frontend Hardening | XX/100 | N | N |
267
- | 3. Backend Hardening | XX/100 | N | N |
268
- | 4. Security Hardening | XX/100 | N | N |
269
- | 5. Testing & QA | XX/100 | N | N |
270
- | 6. Performance & SEO | XX/100 | N | N |
271
- | 7. DevOps & Deployment | XX/100 | N | N |
272
-
273
- ## 🔴 Critical Issues (Must Fix Before Production)
274
- List of blockers that MUST be resolved.
275
-
276
- ## 🟡 Warnings (Should Fix)
277
- List of important improvements.
278
-
279
- ## 🔵 Recommendations (Nice to Have)
280
- List of enhancements for future iterations.
281
-
282
- ## Remediation Plan
283
- Step-by-step action items ordered by priority.
284
- ```
285
-
286
- ### Scoring Methodology
287
-
288
- Each phase is scored 0-100 based on checklist completion:
289
- - **95-100**: Production-ready ✅
290
- - **80-94**: Needs minor fixes ⚠️
291
- - **60-79**: Significant issues 🟡
292
- - **Below 60**: Not production-ready 🔴
293
-
294
- **Overall Score** = Weighted average:
295
- - Architecture (10%) + Frontend (15%) + Backend (15%) + **Security (25%)** + Testing (15%) + Performance (10%) + DevOps (10%)
296
-
297
- > **Note:** Security is weighted highest because data breaches and vulnerabilities are the most damaging production issues.
298
-
299
- ### Trigger Conditions
300
- Active whenever the user asks to:
301
- 1. Prepare an application for production deployment.
302
- 2. Run a production readiness review, pre-launch checklist, or hardening audit.
303
- 3. Ensure an application is secure, performant, and robust before going live.
304
- 4. Perform a comprehensive quality audit across frontend, backend, and infrastructure.
305
-
306
- ---
307
-
308
- <a name="bahasa-indonesia"></a>
309
- ## Bahasa Indonesia
310
-
311
- ### Deskripsi
312
- **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.
313
-
314
- Skill ini TIDAK menggantikan skill individual — ia **mengoordinasikan** mereka ke dalam alur kerja audit-dan-pengerasan yang terstruktur dan bertahap.
315
-
316
- ### Peta Skill yang Diorkestrasi
317
-
318
- | Fase | Skill yang Digunakan | Fokus Utama |
319
- |------|---------------------|-------------|
320
- | 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 |
321
- | 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 |
322
- | 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 |
323
- | 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 |
324
- | 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 |
325
- | 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 |
326
- | 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 |
327
-
328
- ### Protokol Eksekusi
329
-
330
- Ketika skill ini dipicu, jalankan **7 fase pengerasan berurutan**. Setiap fase menghasilkan temuan dan rekomendasi. Di akhir, compile sebuah **Laporan Kesiapan Produksi**.
331
-
332
- ---
333
-
334
- #### FASE 1: Audit Arsitektur & Kualitas Kode
335
- - [ ] Struktur proyek mengikuti clean architecture
336
- - [ ] Prinsip SOLID diterapkan konsisten
337
- - [ ] Pelanggaran DRY diidentifikasi dan di-refactor
338
- - [ ] Kontrak API menggunakan desain spec-first (OpenAPI/GraphQL)
339
- - [ ] Error handling terstruktur dan konsisten (RFC 9457)
340
- - [ ] TypeScript strict mode aktif (`strict: true`), tanpa tipe `any` (`typescript-expert`)
341
- - [ ] Validasi input di semua batas API (Zod, Pydantic)
342
- - [ ] Tidak ada hardcoded value — semua konfigurasi via environment variable
343
- - [ ] Dead code & AI slop dieliminasi via `vibe-code-gardener`
344
- - [ ] Audit dependensi semua paket up-to-date, tanpa CVE (`dependency-upgrade-migrator`)
345
-
346
- #### FASE 2: Pengerasan Frontend
347
- - [ ] Server Components secara default
348
- - [ ] Suspense boundary dengan loading state bermakna
349
- - [ ] Error boundary di setiap segmen halaman
350
- - [ ] Validasi formulir ketat dengan React Hook Form + Zod (`form-validation-expert`)
351
- - [ ] Tidak ada hydration mismatch
352
- - [ ] Aksesibilitas (a11y) & i18n — WCAG 2.2, ARIA, navigasi keyboard (`global-a11y-i18n-expert`)
353
- - [ ] Desain responsif berfungsi sempurna di mobile, tablet, desktop (`tailwind-expert`)
354
- - [ ] Optimasi gambar dengan `next/image`, WebP/AVIF, lazy loading
355
- - [ ] Analisis bundle tanpa library besar yang tidak perlu
356
- - [ ] Meta tags lengkap di setiap halaman
357
- - [ ] Strategi state management (`state-management-expert`) dan caching yang tepat
358
-
359
- #### FASE 3: Pengerasan Backend
360
- - [ ] Semua perubahan schema via database migration (Prisma 6 / Drizzle ORM)
361
- - [ ] Connection pooling dikonfigurasi (`edge-serverless-db-expert`)
362
- - [ ] Index yang tepat pada kolom yang sering di-query
363
- - [ ] Pencegahan N+1 query
364
- - [ ] API rate limiting & idempotency keys aktif
365
- - [ ] Durable background jobs & cron queues (`async-queue-temporal-expert`)
366
- - [ ] Email transaksional & upload media presigned (`email-notification-expert`, `file-upload-media-expert`)
367
- - [ ] Skema MCP Server guarded & optimasi prompt caching (`ai-cost-token-optimizer`)
368
- - [ ] Graceful shutdown dengan penanganan SIGTERM
369
- - [ ] Health check endpoint (`/healthz`, `/readyz`)
370
-
371
- #### FASE 4: Pengerasan Keamanan
372
- - [ ] Autentikasi OAuth 2.0 / OIDC (`authentication-identity-expert`)
373
- - [ ] Otorisasi RBAC/ABAC pada semua route dilindungi
374
- - [ ] RLS aktif di SEMUA tabel publik (Supabase/PostgreSQL) (`supabase-security-expert`)
375
- - [ ] Firebase Security Rules ketat
376
- - [ ] CORS dengan allow-list eksplisit (bukan `*`)
377
- - [ ] CSP headers dikonfigurasi
378
- - [ ] HTTPS dipaksakan dengan HSTS
379
- - [ ] Semua secret di environment variable / secret manager (`zero-trust-secret-vault`)
380
- - [ ] Rate limiting & proteksi bot Turnstile (`rate-limit-abuse-prevention`)
381
- - [ ] `.gitignore` mencakup `.env` dan file sensitif
382
- - [ ] Pencegahan SQL injection, XSS, CSRF
383
- - [ ] Validasi file upload (content-type, size limit)
384
- - [ ] Verifikasi tanda tangan webhook & audit logging
385
-
386
- #### FASE 5: Testing & Quality Assurance
387
- - [ ] Unit test (≥80% coverage)
388
- - [ ] Integration test dengan database real
389
- - [ ] E2E test untuk alur kritis (Playwright) (`e2e-testing-expert`)
390
- - [ ] Visual regression testing (`browser-automation-expert`)
391
- - [ ] Fuzz testing pada parser dan validator (`secure-fuzz-testing`)
392
- - [ ] Error resilience (circuit breaker & retry logic) (`error-resilience-expert`)
393
- - [ ] Structured logging (Pino) & error tracking (Sentry) (`logging-error-tracking-expert`)
394
- - [ ] Code review automation (CodeRabbit) (`coderabbit`)
395
- - [ ] Type checking dan linting di CI tanpa error
396
-
397
- #### FASE 6: Optimasi Performa & SEO
398
- - [ ] Core Web Vitals memenuhi target (LCP < 2.5s, INP < 200ms, CLS < 0.1) (`performance-web-vitals`)
399
- - [ ] Bundle size dioptimasi
400
- - [ ] CDN untuk aset statis
401
- - [ ] Caching multi-tier (Browser CDN Redis → Database)
402
- - [ ] SEO meta tags lengkap (`seo`)
403
- - [ ] Structured data (Schema.org) & XML Sitemap
404
- - [ ] Kesiapan AI search & AEO (`seo-geo`, `seo-aeo-landing-page-writer`, `llms.txt`)
405
-
406
- #### FASE 7: DevOps & Kesiapan Deployment
407
- - [ ] Docker multi-stage build, non-root user, HEALTHCHECK
408
- - [ ] CI/CD pipeline otomatis (lint → test → build → deploy) (`ci-cd-devops-architect`)
409
- - [ ] Edge & Cloud Deployment (Vercel/Cloudflare Workers) (`cloud-hosting-expert`)
410
- - [ ] Zero-downtime deployment & strategi rollback yang teruji
411
- - [ ] Telemetri & observability (OpenTelemetry, PostHog, Sentry) (`data-telemetry-expert`)
412
- - [ ] Structured logging format JSON
413
- - [ ] SLI/SLO terdefinisi & backup database otomatis
414
- - [ ] Session state checkpoint disimpan (`session-handoff-resume`)
415
- - [ ] Dokumentasi terkini (`CHANGELOG.md`, `BLUEPRINT.md`, `README`) (`auto-doc-updater`)
416
-
417
- ---
418
-
419
- ### Scanner Kesiapan Otomatis
420
- 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`).
421
-
422
- **Cara Penggunaan:**
423
- ```bash
424
- # Jalankan pemeriksaan checklist statis dasar pada proyek
425
- python scripts/production_readiness_scanner.py /path/to/project
426
-
427
- # Jalankan diagnostik aktif termasuk typecheck tsc, linter eslint, unit test, dan bundle build
428
- python scripts/production_readiness_scanner.py /path/to/project --run-tsc --run-lint --run-tests --run-build
429
- ```
430
-
431
- ---
432
-
433
- ### Metodologi Penilaian
434
-
435
- Setiap fase dinilai 0-100 berdasarkan penyelesaian checklist:
436
- - **95-100**: Siap produksi ✅
437
- - **80-94**: Perlu perbaikan minor ⚠️
438
- - **60-79**: Ada masalah signifikan 🟡
439
- - **Di bawah 60**: Belum siap produksi 🔴
440
-
441
- **Skor Keseluruhan** = Rata-rata berbobot:
442
- - Arsitektur (10%) + Frontend (15%) + Backend (15%) + **Keamanan (25%)** + Testing (15%) + Performa (10%) + DevOps (10%)
443
-
444
- > **Catatan:** Keamanan diberi bobot tertinggi karena pelanggaran data dan kerentanan adalah masalah produksi yang paling merusak.
445
-
446
- ### Kondisi Pemicu
447
- Aktif setiap kali pengguna meminta untuk:
448
- 1. Mempersiapkan aplikasi untuk deployment produksi.
449
- 2. Menjalankan review kesiapan produksi, checklist pra-peluncuran, atau audit pengerasan.
450
- 3. Memastikan aplikasi aman, berperforma tinggi, dan kokoh sebelum go-live.
451
- 4. Melakukan audit kualitas komprehensif di seluruh frontend, backend, dan infrastruktur.
452
-
453
- ### Referensi Dokumentasi
454
- - [Production Readiness Checklist](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/production_checklist.md)
455
- - [Security Hardening Guide](file:///c:/Users/roedy/.gemini/config/plugins/vibes-plug/skills/production-ready-hardener/references/security_hardening_guide.md)
456
- - [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)