vibes-plug 1.0.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 (141) hide show
  1. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  2. package/BLUEPRINT.md +125 -0
  3. package/CHANGELOG.md +195 -0
  4. package/CONTRIBUTING.md +199 -0
  5. package/LICENSE +21 -0
  6. package/README.md +263 -0
  7. package/SECURITY.md +21 -0
  8. package/banner.png +0 -0
  9. package/package.json +25 -0
  10. package/plugin.json +8 -0
  11. package/scripts/update_skills.js +75 -0
  12. package/skills/ai-llm-integration-expert/SKILL.md +162 -0
  13. package/skills/api-design-expert/SKILL.md +310 -0
  14. package/skills/app-analyzer-optimizer/SKILL.md +189 -0
  15. package/skills/asisten_ramah/SKILL.md +41 -0
  16. package/skills/authentication-identity-expert/SKILL.md +45 -0
  17. package/skills/auto-doc-updater/SKILL.md +204 -0
  18. package/skills/bootstrap-to-modern/SKILL.md +87 -0
  19. package/skills/brainstorming/SKILL.md +353 -0
  20. package/skills/bun-runtime-expert/SKILL.md +211 -0
  21. package/skills/ci-cd-devops-architect/SKILL.md +45 -0
  22. package/skills/cloud-hosting-expert/SKILL.md +244 -0
  23. package/skills/coderabbit/SKILL.md +192 -0
  24. package/skills/data-telemetry-expert/SKILL.md +213 -0
  25. package/skills/database-orm-expert/SKILL.md +294 -0
  26. package/skills/design-system-architect/SKILL.md +243 -0
  27. package/skills/e2e-testing-expert/SKILL.md +315 -0
  28. package/skills/event-driven-architect/SKILL.md +81 -0
  29. package/skills/firebase-security-expert/SKILL.md +195 -0
  30. package/skills/fullstack-expert/SKILL.md +202 -0
  31. package/skills/fullstack-expert/references/api_design_guide.md +466 -0
  32. package/skills/fullstack-expert/references/devops_infrastructure.md +477 -0
  33. package/skills/fullstack-expert/references/multi_language_backend.md +528 -0
  34. package/skills/fullstack-expert/references/system_design_patterns.md +358 -0
  35. package/skills/fullstack-expert/scripts/api_contract_validator.py +253 -0
  36. package/skills/fullstack-expert/scripts/architecture_analyzer.py +326 -0
  37. package/skills/gemini-agent-booster/SKILL.md +135 -0
  38. package/skills/global-a11y-i18n-expert/SKILL.md +81 -0
  39. package/skills/go-programming-expert/SKILL.md +295 -0
  40. package/skills/hig/SKILL.md +188 -0
  41. package/skills/js-backend-expert/SKILL.md +192 -0
  42. package/skills/mcp-server-architect/SKILL.md +194 -0
  43. package/skills/mobile-expo-expert/SKILL.md +186 -0
  44. package/skills/monday-design-aesthetic/SKILL.md +67 -0
  45. package/skills/monorepo-architect/SKILL.md +227 -0
  46. package/skills/mpa-orchestrator/SKILL.md +101 -0
  47. package/skills/multi-agent-orchestration/SKILL.md +234 -0
  48. package/skills/multiple-entry-points/SKILL.md +55 -0
  49. package/skills/mvc-expert/SKILL.md +231 -0
  50. package/skills/payment-gateway-expert/SKILL.md +45 -0
  51. package/skills/performance-web-vitals/SKILL.md +332 -0
  52. package/skills/prd-architect/SKILL.md +191 -0
  53. package/skills/production-ready-hardener/SKILL.md +469 -0
  54. package/skills/production-ready-hardener/references/performance_optimization.md +441 -0
  55. package/skills/production-ready-hardener/references/production_checklist.md +161 -0
  56. package/skills/production-ready-hardener/references/security_hardening_guide.md +379 -0
  57. package/skills/production-ready-hardener/scripts/production_readiness_scanner.py +875 -0
  58. package/skills/python-programming-expert/SKILL.md +271 -0
  59. package/skills/realtime-collaboration-expert/SKILL.md +45 -0
  60. package/skills/rust-programming-expert/SKILL.md +235 -0
  61. package/skills/saas-billing/SKILL.md +377 -0
  62. package/skills/saas-multi-tenant/SKILL.md +237 -0
  63. package/skills/saas-mvp-launcher/SKILL.md +231 -0
  64. package/skills/saas-transformer/SKILL.md +446 -0
  65. package/skills/saas-transformer/references/billing_integration_guide.md +401 -0
  66. package/skills/saas-transformer/references/feature_gating_patterns.md +137 -0
  67. package/skills/saas-transformer/references/saas_transformation_checklist.md +121 -0
  68. package/skills/saas-transformer/scripts/saas_transformation_scanner.py +254 -0
  69. package/skills/scalability-clean-code/SKILL.md +229 -0
  70. package/skills/secure-fuzz-testing/SKILL.md +201 -0
  71. package/skills/senior-frontend/SKILL.md +161 -0
  72. package/skills/senior-frontend/references/frontend_best_practices.md +806 -0
  73. package/skills/senior-frontend/references/nextjs_optimization_guide.md +724 -0
  74. package/skills/senior-frontend/references/react_patterns.md +746 -0
  75. package/skills/senior-frontend/scripts/bundle_analyzer.py +407 -0
  76. package/skills/senior-frontend/scripts/component_generator.py +329 -0
  77. package/skills/senior-frontend/scripts/frontend_scaffolder.py +1005 -0
  78. package/skills/senior-fullstack/SKILL.md +167 -0
  79. package/skills/senior-fullstack/references/architecture_patterns.md +160 -0
  80. package/skills/senior-fullstack/references/development_workflows.md +222 -0
  81. package/skills/senior-fullstack/references/tech_stack_guide.md +190 -0
  82. package/skills/senior-fullstack/scripts/code_quality_analyzer.py +114 -0
  83. package/skills/senior-fullstack/scripts/fullstack_scaffolder.py +114 -0
  84. package/skills/senior-fullstack/scripts/project_scaffolder.py +114 -0
  85. package/skills/seo/SKILL.md +225 -0
  86. package/skills/seo/references/cwv-thresholds.md +108 -0
  87. package/skills/seo/references/eeat-framework.md +214 -0
  88. package/skills/seo/references/quality-gates.md +155 -0
  89. package/skills/seo/references/schema-types.md +118 -0
  90. package/skills/seo-aeo-landing-page-writer/SKILL.md +97 -0
  91. package/skills/seo-geo/SKILL.md +188 -0
  92. package/skills/session-handoff-resume/SKILL.md +158 -0
  93. package/skills/skill_baru/SKILL.md +147 -0
  94. package/skills/spa-orchestrator/SKILL.md +288 -0
  95. package/skills/state-management-expert/SKILL.md +272 -0
  96. package/skills/supabase-migration/SKILL.md +45 -0
  97. package/skills/supabase-security-expert/SKILL.md +243 -0
  98. package/skills/tailwind-expert/SKILL.md +188 -0
  99. package/skills/tanstack-query-expert/SKILL.md +199 -0
  100. package/skills/tauri-expert/SKILL.md +97 -0
  101. package/skills/token-saver/SKILL.md +111 -0
  102. package/skills/typescript-expert/SKILL.md +279 -0
  103. package/skills/ui-components-expert/SKILL.md +63 -0
  104. package/skills/ui-ux-pro-max/SKILL.md +201 -0
  105. package/skills/ui-ux-pro-max/data/charts.csv +26 -0
  106. package/skills/ui-ux-pro-max/data/colors.csv +97 -0
  107. package/skills/ui-ux-pro-max/data/icons.csv +101 -0
  108. package/skills/ui-ux-pro-max/data/landing.csv +31 -0
  109. package/skills/ui-ux-pro-max/data/products.csv +97 -0
  110. package/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  111. package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  112. package/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  113. package/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  114. package/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  115. package/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  116. package/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  117. package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  118. package/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  119. package/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  120. package/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  121. package/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  122. package/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  123. package/skills/ui-ux-pro-max/data/styles.csv +59 -0
  124. package/skills/ui-ux-pro-max/data/typography.csv +58 -0
  125. package/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  126. package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  127. package/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  128. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-310.pyc +0 -0
  129. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
  130. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-310.pyc +0 -0
  131. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-312.pyc +0 -0
  132. package/skills/ui-ux-pro-max/scripts/core.py +257 -0
  133. package/skills/ui-ux-pro-max/scripts/design_system.py +493 -0
  134. package/skills/ui-ux-pro-max/scripts/search.py +81 -0
  135. package/skills/ui_ux_expert/SKILL.md +114 -0
  136. package/skills/vibe-code-gardener/SKILL.md +173 -0
  137. package/skills/web-scraper/SKILL.md +205 -0
  138. package/skills/web-scraper/references/data-transforms.md +397 -0
  139. package/skills/web-scraper/references/extraction-patterns.md +475 -0
  140. package/skills/web-scraper/references/output-templates.md +481 -0
  141. package/skills/zero-to-prod-orchestrator/SKILL.md +180 -0
@@ -0,0 +1,469 @@
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
+ 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)