vibes-plug 2.11.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/vibes-plug-core.md +5 -0
- package/.cursor/rules/vibes-plug-core.mdc +8 -3
- package/.cursorrules +9 -3
- package/AGENTS.md +25 -4
- package/CHANGELOG.md +151 -0
- package/CLAUDE.md +15 -8
- package/README.md +216 -641
- package/bin/vibes.mjs +1104 -0
- package/index.js +1 -1
- package/package.json +11 -3
- package/plugin.json +4 -3
- package/scripts/check-anti-slop.js +53 -0
- package/scripts/check-anti-slop.mjs +53 -0
- package/scripts/generate_swarm_gif.py +2 -2
- package/scripts/install.js +3 -1
- package/scripts/update_skills.js +1 -1
- package/scripts/update_skills.mjs +86 -0
- package/scripts/validate-skills.mjs +111 -0
- package/skills/accessibility-testing-expert/SKILL.md +117 -116
- package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
- package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
- package/skills/agentic-memory-architect/SKILL.md +52 -0
- package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
- package/skills/ai-llm-integration-expert/SKILL.md +330 -187
- package/skills/ai-media-generation-expert/SKILL.md +173 -172
- package/skills/ai-prompt-engineering-expert/SKILL.md +170 -50
- package/skills/ai-safety-governance-expert/SKILL.md +223 -0
- package/skills/angular-expert/SKILL.md +149 -148
- package/skills/anti-slop/SKILL.md +134 -0
- package/skills/api-design-expert/SKILL.md +4 -3
- package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
- package/skills/app-analyzer-optimizer/SKILL.md +4 -3
- package/skills/apple-ecosystem-expert/SKILL.md +6 -5
- package/skills/astro-framework-expert/SKILL.md +201 -200
- package/skills/async-queue-temporal-expert/SKILL.md +218 -240
- package/skills/authentication-identity-expert/SKILL.md +79 -184
- package/skills/autonomous-red-teamer/SKILL.md +338 -203
- package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
- package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
- package/skills/blockchain-web3-expert/SKILL.md +116 -115
- package/skills/brainstorming/SKILL.md +392 -377
- package/skills/browser-automation-expert/SKILL.md +260 -222
- package/skills/bun-runtime-expert/SKILL.md +5 -4
- package/skills/chatbot-messaging-expert/SKILL.md +115 -114
- package/skills/ci-cd-devops-architect/SKILL.md +3 -2
- package/skills/cloud-hosting-expert/SKILL.md +5 -4
- package/skills/coderabbit/SKILL.md +5 -4
- package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
- package/skills/composable-mach-architect/SKILL.md +338 -0
- package/skills/cron-scheduler-expert/SKILL.md +5 -4
- package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
- package/skills/data-telemetry-expert/SKILL.md +5 -4
- package/skills/data-visualization-expert/SKILL.md +155 -154
- package/skills/database-orm-expert/SKILL.md +102 -240
- package/skills/deep-research-analyst/SKILL.md +182 -0
- package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
- package/skills/design-system-architect/SKILL.md +34 -3
- package/skills/desktop-electron-expert/SKILL.md +129 -128
- package/skills/documentation-site-expert/SKILL.md +60 -59
- package/skills/doku-mcp-server/SKILL.md +5 -4
- package/skills/doku-payment-gateway/SKILL.md +250 -232
- package/skills/domain-driven-design-expert/SKILL.md +3 -2
- package/skills/e2e-testing-expert/SKILL.md +5 -4
- package/skills/ecommerce-expert/SKILL.md +88 -87
- package/skills/email-notification-expert/SKILL.md +35 -7
- package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
- package/skills/error-resilience-expert/SKILL.md +26 -4
- package/skills/event-driven-architect/SKILL.md +5 -4
- package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
- package/skills/file-upload-media-expert/SKILL.md +5 -4
- package/skills/firebase-security-expert/SKILL.md +5 -4
- package/skills/form-validation-expert/SKILL.md +7 -6
- package/skills/frontier-ai-models-expert/SKILL.md +116 -0
- package/skills/fullstack-expert/SKILL.md +68 -144
- package/skills/gemini-agent-booster/SKILL.md +248 -172
- package/skills/geospatial-maps-expert/SKILL.md +81 -80
- package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
- package/skills/glsl-shader-expert/SKILL.md +155 -71
- package/skills/go-programming-expert/SKILL.md +5 -4
- package/skills/graph-rag-knowledge-expert/SKILL.md +201 -159
- package/skills/graphql-apollo-expert/SKILL.md +5 -4
- package/skills/headless-cms-expert/SKILL.md +182 -181
- package/skills/hig/SKILL.md +5 -4
- package/skills/js-backend-expert/SKILL.md +219 -218
- package/skills/legacy-code-translator/SKILL.md +6 -5
- package/skills/llm-finops-router/SKILL.md +52 -0
- package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
- package/skills/logging-error-tracking-expert/SKILL.md +5 -4
- package/skills/mcp-server-architect/SKILL.md +316 -294
- package/skills/micro-frontend-architect/SKILL.md +5 -4
- package/skills/mobile-expo-expert/SKILL.md +5 -4
- package/skills/modern-css-native-expert/SKILL.md +190 -189
- package/skills/monorepo-architect/SKILL.md +5 -4
- package/skills/mpa-orchestrator/SKILL.md +41 -4
- package/skills/multi-agent-orchestration/SKILL.md +388 -254
- package/skills/mvc-expert/SKILL.md +5 -4
- package/skills/n8n-automation-expert/SKILL.md +90 -89
- package/skills/nextjs-app-router-expert/SKILL.md +3 -2
- package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
- package/skills/payment-gateway-expert/SKILL.md +131 -128
- package/skills/pdf-document-generation-expert/SKILL.md +92 -91
- package/skills/performance-web-vitals/SKILL.md +5 -4
- package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
- package/skills/prd-architect/SKILL.md +85 -109
- package/skills/proactive-background-watcher/SKILL.md +5 -4
- package/skills/production-ready-hardener/SKILL.md +25 -27
- package/skills/pwa-offline-first-expert/SKILL.md +227 -185
- package/skills/pydantic-ai-expert/SKILL.md +162 -0
- package/skills/python-programming-expert/SKILL.md +5 -4
- package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
- package/skills/realtime-collaboration-expert/SKILL.md +3 -2
- package/skills/rich-text-editor-expert/SKILL.md +178 -177
- package/skills/rust-programming-expert/SKILL.md +5 -4
- package/skills/saas-architect/SKILL.md +155 -0
- package/skills/saas-billing/SKILL.md +394 -382
- package/skills/saas-multi-tenant/SKILL.md +7 -6
- package/skills/scalability-clean-code/SKILL.md +5 -4
- package/skills/search-engine-expert/SKILL.md +90 -89
- package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
- package/skills/senior-frontend/SKILL.md +21 -18
- package/skills/senior-frontend/scripts/frontend_scaffolder.py +1 -1
- package/skills/seo/SKILL.md +4 -4
- package/skills/session-memory-manager/SKILL.md +129 -0
- package/skills/solidjs-expert/SKILL.md +81 -80
- package/skills/spa-orchestrator/SKILL.md +5 -4
- package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
- package/skills/state-management-expert/SKILL.md +5 -4
- package/skills/supabase-security-expert/SKILL.md +5 -4
- package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
- package/skills/svg-animation-motion-expert/SKILL.md +3 -2
- package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -0
- package/skills/tailwind-expert/SKILL.md +62 -5
- package/skills/tanstack-query-expert/SKILL.md +5 -4
- package/skills/tauri-expert/SKILL.md +5 -4
- package/skills/typescript-expert/SKILL.md +5 -4
- package/skills/ui-ux-pro-max/SKILL.md +7 -4
- package/skills/vector-db-rag-expert/SKILL.md +209 -208
- package/skills/vercel-ai-sdk-expert/SKILL.md +226 -0
- package/skills/voice-ai-realtime-agent/SKILL.md +243 -202
- package/skills/vue-frontend-expert/SKILL.md +5 -4
- package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
- package/skills/web-3d-graphics-expert/SKILL.md +259 -82
- package/skills/web-game-engine-expert/SKILL.md +278 -50
- package/skills/web-scraper/SKILL.md +158 -157
- package/skills/website-design-cloner/SKILL.md +5 -4
- package/skills/webxr-ar-vr-expert/SKILL.md +105 -65
- package/skills/wordpress-headless-expert/SKILL.md +145 -144
- package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
- package/skills/zero-to-prod-orchestrator/SKILL.md +281 -227
- package/skills/zero-trust-secret-vault/SKILL.md +3 -2
- package/BLUEPRINT.md +0 -309
- package/skills/ai-cost-token-optimizer/SKILL.md +0 -82
- package/skills/ai-evals-benchmark-expert/SKILL.md +0 -188
- package/skills/asisten-ramah/SKILL.md +0 -47
- package/skills/auto-doc-updater/SKILL.md +0 -220
- package/skills/autonomous-chaos-monkey/SKILL.md +0 -63
- package/skills/background-jobs-queue-expert/SKILL.md +0 -235
- package/skills/bootstrap-to-modern/SKILL.md +0 -94
- package/skills/database-migration-versioning-expert/SKILL.md +0 -90
- package/skills/edge-serverless-db-expert/SKILL.md +0 -99
- package/skills/mcp-client-orchestrator/SKILL.md +0 -76
- package/skills/mobile-push-notification-expert/SKILL.md +0 -71
- package/skills/monday-design-aesthetic/SKILL.md +0 -73
- package/skills/multiple-entry-points/SKILL.md +0 -91
- package/skills/project-context-mapper/SKILL.md +0 -85
- package/skills/saas-mvp-launcher/SKILL.md +0 -260
- package/skills/saas-transformer/SKILL.md +0 -500
- package/skills/saas-transformer/references/billing_integration_guide.md +0 -401
- package/skills/secure-fuzz-testing/SKILL.md +0 -207
- package/skills/self-evolving-memory-graph/SKILL.md +0 -91
- package/skills/session-context-loader/SKILL.md +0 -83
- package/skills/session-handoff-resume/SKILL.md +0 -164
- package/skills/skill-baru/SKILL.md +0 -178
- package/skills/supabase-migration/SKILL.md +0 -91
- package/skills/token-saver/SKILL.md +0 -119
- package/skills/ui-components-expert/SKILL.md +0 -166
- package/skills/vibe-code-gardener/SKILL.md +0 -181
- package/skills/visual-qa-vision-agent/SKILL.md +0 -71
- /package/skills/{saas-transformer → saas-architect}/references/feature_gating_patterns.md +0 -0
- /package/skills/{saas-transformer → saas-architect}/references/saas_transformation_checklist.md +0 -0
- /package/skills/{saas-transformer → saas-architect}/scripts/saas_transformation_scanner.py +0 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: composable-mach-architect
|
|
3
|
+
description: "Expert guide for Composable MACH Architecture (Microservices, API-first, Cloud-native, Headless) — dynamic UI composition, federated API mesh, Backend-for-Frontend patterns, plugin/extension architectures, event-driven composition, and composable AI routing / Panduan ahli Arsitektur MACH Komposabel — komposisi UI dinamis, API mesh federasi, pola Backend-for-Frontend, arsitektur plugin/ekstensi, komposisi event-driven, dan routing AI komposabel."
|
|
4
|
+
author: "vibes-plug-swarm"
|
|
5
|
+
version: "3.0.0"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Composable MACH Architecture / Arsitektur MACH Komposabel
|
|
9
|
+
|
|
10
|
+
## 1. MACH Alliance Principles / Prinsip-prinsip Aliansi MACH
|
|
11
|
+
|
|
12
|
+
### English
|
|
13
|
+
MACH architecture is a set of technology principles emphasizing best-of-breed, composable enterprise technology ecosystems.
|
|
14
|
+
- **Microservices**: Independently deployable, single-responsibility services. Decoupled and scalable.
|
|
15
|
+
- **API-first**: Every capability is exposed via versioned APIs (REST/GraphQL/gRPC). The API is the primary interface, not an afterthought.
|
|
16
|
+
- **Cloud-native**: SaaS-first, leveraging auto-scaling, multi-region deployment, and edge computing for resilience and global performance.
|
|
17
|
+
- **Headless**: Total separation of the presentation layer (frontend) from the business logic layer (backend).
|
|
18
|
+
- **Decision Matrix**:
|
|
19
|
+
- *MACH*: Large scale, highly customizable, best-of-breed requirement, multiple frontends.
|
|
20
|
+
- *Modular Monolith*: Medium scale, unified team, standard requirements, lower operational complexity.
|
|
21
|
+
- *Monolith*: Small scale, rapid MVP, single deployment unit.
|
|
22
|
+
|
|
23
|
+
### Indonesian (Bahasa Indonesia)
|
|
24
|
+
Arsitektur MACH adalah seperangkat prinsip teknologi yang menekankan ekosistem teknologi enterprise yang komposabel dan best-of-breed.
|
|
25
|
+
- **Microservices**: Layanan dengan tanggung jawab tunggal yang dapat di-deploy secara independen. Terdekopel dan dapat diskalakan.
|
|
26
|
+
- **API-first**: Setiap kemampuan diekspos melalui API berversi (REST/GraphQL/gRPC). API adalah antarmuka utama, bukan tambahan.
|
|
27
|
+
- **Cloud-native**: Mengutamakan SaaS, memanfaatkan auto-scaling, deployment multi-region, dan komputasi edge.
|
|
28
|
+
- **Headless**: Pemisahan total lapisan presentasi (frontend) dari lapisan logika bisnis (backend).
|
|
29
|
+
- **Matriks Keputusan**:
|
|
30
|
+
- *MACH*: Skala besar, sangat dapat dikustomisasi, butuh best-of-breed, banyak frontend.
|
|
31
|
+
- *Monolit Modular*: Skala menengah, tim terpadu, standar.
|
|
32
|
+
- *Monolit*: Skala kecil, MVP cepat.
|
|
33
|
+
|
|
34
|
+
## 2. Dynamic UI Composition / Komposisi UI Dinamis
|
|
35
|
+
|
|
36
|
+
### English
|
|
37
|
+
Dynamic UI composition allows building runtime-composed dashboards and applications from independent micro-frontends. Use Module Federation v2 (Webpack/Vite) for dynamic remote loading and Server-Driven UI (SDUI) where the backend defines the layout payload. The Shell application acts as the host for remote modules.
|
|
38
|
+
|
|
39
|
+
### Indonesian (Bahasa Indonesia)
|
|
40
|
+
Komposisi UI dinamis memungkinkan pembuatan dashboard dan aplikasi yang dikomposisi saat runtime dari micro-frontend independen. Gunakan Module Federation v2 untuk pemuatan remote dinamis dan Server-Driven UI di mana backend menentukan payload layout. Aplikasi Shell bertindak sebagai host.
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
// Vite Module Federation dynamic import setup (vite.config.js - Host App)
|
|
44
|
+
import { defineConfig } from 'vite';
|
|
45
|
+
import react from '@vitejs/plugin-react';
|
|
46
|
+
import federation from '@originjs/vite-plugin-federation';
|
|
47
|
+
|
|
48
|
+
export default defineConfig({
|
|
49
|
+
plugins: [
|
|
50
|
+
react(),
|
|
51
|
+
federation({
|
|
52
|
+
name: 'host-app',
|
|
53
|
+
remotes: {
|
|
54
|
+
// Dynamic loading syntax for Vite federation
|
|
55
|
+
inventory_app: 'http://localhost:5001/assets/remoteEntry.js',
|
|
56
|
+
analytics_app: 'http://localhost:5002/assets/remoteEntry.js'
|
|
57
|
+
},
|
|
58
|
+
shared: ['react', 'react-dom']
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// React Component importing remote dynamically
|
|
64
|
+
import React, { Suspense } from 'react';
|
|
65
|
+
const InventoryWidget = React.lazy(() => import('inventory_app/Widget'));
|
|
66
|
+
|
|
67
|
+
export const Dashboard = () => (
|
|
68
|
+
<div>
|
|
69
|
+
<h1>Composable Dashboard</h1>
|
|
70
|
+
<Suspense fallback={<div>Loading Widget...</div>}>
|
|
71
|
+
<InventoryWidget />
|
|
72
|
+
</Suspense>
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 3. Federated API Layer / Lapisan API Federasi
|
|
78
|
+
|
|
79
|
+
### English
|
|
80
|
+
Apollo Federation v2 allows composing distributed GraphQL schemas into a single unified supergraph. This creates an API mesh for service-to-service communication. Gateways (e.g., Kong, Traefik, Cloudflare) manage routing. Federation differs from schema stitching by pushing composition logic to the subgraphs via directives.
|
|
81
|
+
|
|
82
|
+
### Indonesian (Bahasa Indonesia)
|
|
83
|
+
Apollo Federation v2 memungkinkan komposisi skema GraphQL terdistribusi menjadi satu supergraph terpadu. Ini menciptakan API mesh. Gateway mengatur routing. Federasi berbeda dari schema stitching dengan mendorong logika komposisi ke subgraph melalui direktif.
|
|
84
|
+
|
|
85
|
+
```javascript
|
|
86
|
+
// Apollo Federation v2 Subgraph setup (Node.js)
|
|
87
|
+
import { ApolloServer } from '@apollo/server';
|
|
88
|
+
import { buildSubgraphSchema } from '@apollo/subgraph';
|
|
89
|
+
import { gql } from 'graphql-tag';
|
|
90
|
+
|
|
91
|
+
const typeDefs = gql`
|
|
92
|
+
extend schema
|
|
93
|
+
@link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key", "@shareable"])
|
|
94
|
+
|
|
95
|
+
type User @key(fields: "id") {
|
|
96
|
+
id: ID!
|
|
97
|
+
purchaseHistory: [Product]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type Product @key(fields: "upc") {
|
|
101
|
+
upc: String!
|
|
102
|
+
name: String! @shareable
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
105
|
+
|
|
106
|
+
const resolvers = {
|
|
107
|
+
User: {
|
|
108
|
+
__resolveReference(userRepresentation) {
|
|
109
|
+
return fetchUserById(userRepresentation.id);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const server = new ApolloServer({
|
|
115
|
+
schema: buildSubgraphSchema({ typeDefs, resolvers })
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## 4. Backend-for-Frontend (BFF) Pattern / Pola Backend-for-Frontend
|
|
120
|
+
|
|
121
|
+
### English
|
|
122
|
+
BFFs aggregate, transform, and optimize data for specific client types (Web, Mobile, Admin). This reduces payload size and over-fetching. Deploy Edge BFFs using Cloudflare Workers or Vercel Edge Middleware for lowest latency.
|
|
123
|
+
|
|
124
|
+
### Indonesian (Bahasa Indonesia)
|
|
125
|
+
BFF mengagregasi, mentransformasi, dan mengoptimalkan data untuk jenis klien tertentu. Ini mengurangi ukuran payload dan over-fetching. Deploy Edge BFF menggunakan Cloudflare Workers atau Vercel Edge Middleware.
|
|
126
|
+
|
|
127
|
+
```javascript
|
|
128
|
+
// Edge BFF using Cloudflare Workers aggregating microservices
|
|
129
|
+
export default {
|
|
130
|
+
async fetch(request, env) {
|
|
131
|
+
const url = new URL(request.url);
|
|
132
|
+
if (url.pathname === '/api/mobile-dashboard') {
|
|
133
|
+
// Parallel requests to internal microservices
|
|
134
|
+
const [userResponse, productsResponse] = await Promise.all([
|
|
135
|
+
fetch('https://api.internal.com/users/me', { headers: request.headers }),
|
|
136
|
+
fetch('https://api.internal.com/products/featured')
|
|
137
|
+
]);
|
|
138
|
+
|
|
139
|
+
const user = await userResponse.json();
|
|
140
|
+
const products = await productsResponse.json();
|
|
141
|
+
|
|
142
|
+
// Transform and subset data for mobile client
|
|
143
|
+
const bffResponse = {
|
|
144
|
+
greeting: `Hello, ${user.firstName}`,
|
|
145
|
+
quickBuy: products.map(p => ({ id: p.id, name: p.name, price: p.price })) // Strip heavy descriptions
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
return new Response(JSON.stringify(bffResponse), {
|
|
149
|
+
headers: { 'Content-Type': 'application/json' }
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return new Response('Not Found', { status: 404 });
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## 5. Headless Commerce & CMS Stack / Stack Headless Commerce & CMS
|
|
158
|
+
|
|
159
|
+
### English
|
|
160
|
+
Leverage platforms like commercetools, Medusa.js, or Saleor for headless commerce. Combine with composable content platforms (Sanity, Contentful). Orchestrate integrations using webhooks, event buses, and CDC to maintain synchronization across best-of-breed tools.
|
|
161
|
+
|
|
162
|
+
### Indonesian (Bahasa Indonesia)
|
|
163
|
+
Manfaatkan platform seperti commercetools, Medusa.js, atau Saleor. Kombinasikan dengan platform konten (Sanity, Contentful). Orkestrasi integrasi menggunakan webhook, event bus, dan CDC.
|
|
164
|
+
|
|
165
|
+
```javascript
|
|
166
|
+
// Composable product page fetching from Commerce and CMS
|
|
167
|
+
async function getProductPageData(productSlug) {
|
|
168
|
+
// 1. Fetch CMS content (Rich text, marketing imagery) from Sanity
|
|
169
|
+
const cmsQuery = `*[_type == "product" && slug.current == $slug][0]{ title, marketingCopy, gallery }`;
|
|
170
|
+
const cmsPromise = sanityClient.fetch(cmsQuery, { slug: productSlug });
|
|
171
|
+
|
|
172
|
+
// 2. Fetch Commerce data (Pricing, availability) from Medusa.js / commercetools
|
|
173
|
+
const commercePromise = fetch(`https://api.commerce.com/store/products?handle=${productSlug}`)
|
|
174
|
+
.then(res => res.json());
|
|
175
|
+
|
|
176
|
+
const [cmsData, commerceData] = await Promise.all([cmsPromise, commercePromise]);
|
|
177
|
+
const product = commerceData.products[0];
|
|
178
|
+
|
|
179
|
+
// 3. Compose response
|
|
180
|
+
return {
|
|
181
|
+
id: product.id,
|
|
182
|
+
title: cmsData.title || product.title,
|
|
183
|
+
description: cmsData.marketingCopy,
|
|
184
|
+
images: cmsData.gallery,
|
|
185
|
+
price: product.variants[0].prices[0].amount,
|
|
186
|
+
inStock: product.variants[0].inventory_quantity > 0
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## 6. Plugin & Extension Architecture / Arsitektur Plugin & Ekstensi
|
|
192
|
+
|
|
193
|
+
### English
|
|
194
|
+
Design extensible systems using plugin registries. The lifecycle involves discover → load → initialize → execute → teardown. Secure execution by sandboxing (iframe or Web Worker). Provide hook/event systems for integration points.
|
|
195
|
+
|
|
196
|
+
### Indonesian (Bahasa Indonesia)
|
|
197
|
+
Desain sistem ekstensibel menggunakan registri plugin. Siklus hidup: temukan → muat → inisialisasi → eksekusi → teardown. Amankan eksekusi dengan sandboxing. Sediakan sistem hook/event.
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
// Plugin registry with lifecycle management
|
|
201
|
+
interface Plugin {
|
|
202
|
+
name: string;
|
|
203
|
+
init: (context: PluginContext) => Promise<void>;
|
|
204
|
+
execute: (payload: any) => Promise<any>;
|
|
205
|
+
teardown: () => Promise<void>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
class PluginRegistry {
|
|
209
|
+
private plugins: Map<string, Plugin> = new Map();
|
|
210
|
+
|
|
211
|
+
async register(plugin: Plugin) {
|
|
212
|
+
if (this.plugins.has(plugin.name)) throw new Error("Plugin exists");
|
|
213
|
+
|
|
214
|
+
// Sandbox or pass restricted context
|
|
215
|
+
const context = { logger: console, api: restrictedApiObject };
|
|
216
|
+
await plugin.init(context);
|
|
217
|
+
|
|
218
|
+
this.plugins.set(plugin.name, plugin);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
async runHook(hookName: string, payload: any) {
|
|
222
|
+
const results = [];
|
|
223
|
+
for (const plugin of this.plugins.values()) {
|
|
224
|
+
// Execute plugins in parallel or sequentially based on hook semantics
|
|
225
|
+
results.push(await plugin.execute({ hook: hookName, data: payload }));
|
|
226
|
+
}
|
|
227
|
+
return results;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## 7. Event-Driven Composition / Komposisi Event-Driven
|
|
233
|
+
|
|
234
|
+
### English
|
|
235
|
+
Achieve loose coupling via async event buses (Redis Streams, Kafka). Use Change Data Capture (CDC) like Debezium for real-time data sync. Understand choreography (decentralized) vs orchestration (centralized) and employ eventual consistency and saga patterns for distributed transactions.
|
|
236
|
+
|
|
237
|
+
### Indonesian (Bahasa Indonesia)
|
|
238
|
+
Capai loose coupling melalui event bus asinkron. Gunakan CDC (Debezium) untuk sinkronisasi data real-time. Pahami koreografi vs orkestrasi dan terapkan eventual consistency serta saga pattern untuk transaksi terdistribusi.
|
|
239
|
+
|
|
240
|
+
```javascript
|
|
241
|
+
// Event-driven service composition with Redis Streams (Node.js)
|
|
242
|
+
import { createClient } from 'redis';
|
|
243
|
+
|
|
244
|
+
const redis = createClient();
|
|
245
|
+
await redis.connect();
|
|
246
|
+
|
|
247
|
+
// Service A: Producer (e.g., Order Service)
|
|
248
|
+
async function placeOrder(orderData) {
|
|
249
|
+
const orderId = generateId();
|
|
250
|
+
// Save to local DB first...
|
|
251
|
+
|
|
252
|
+
// Emit event to stream
|
|
253
|
+
await redis.xAdd('events:orders', '*', {
|
|
254
|
+
eventType: 'OrderCreated',
|
|
255
|
+
orderId: orderId,
|
|
256
|
+
payload: JSON.stringify(orderData)
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Service B: Consumer (e.g., Inventory Service)
|
|
261
|
+
async function listenForOrders() {
|
|
262
|
+
let lastId = '$'; // Listen for new messages
|
|
263
|
+
while (true) {
|
|
264
|
+
const response = await redis.xRead(
|
|
265
|
+
{ key: 'events:orders', id: lastId },
|
|
266
|
+
{ BLOCK: 5000, COUNT: 1 }
|
|
267
|
+
);
|
|
268
|
+
if (response) {
|
|
269
|
+
const stream = response[0];
|
|
270
|
+
const message = stream.messages[0];
|
|
271
|
+
lastId = message.id;
|
|
272
|
+
|
|
273
|
+
const event = message.message;
|
|
274
|
+
if (event.eventType === 'OrderCreated') {
|
|
275
|
+
const order = JSON.parse(event.payload);
|
|
276
|
+
// Reserve inventory based on order...
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## 8. Composable AI Routing / Routing AI Komposabel
|
|
284
|
+
|
|
285
|
+
### English
|
|
286
|
+
Implement dynamic AI model routing based on request context (complexity, cost, latency). Chain specialized models for complex tasks. Build fallback chains (Primary → Secondary → Local SLM) for resilience. Manage model rollouts with feature flags.
|
|
287
|
+
|
|
288
|
+
### Indonesian (Bahasa Indonesia)
|
|
289
|
+
Terapkan routing model AI dinamis berdasarkan konteks permintaan (kompleksitas, biaya, latensi). Rangkai model spesialis untuk tugas kompleks. Buat rantai fallback (Primer → Sekunder → SLM Lokal). Kelola peluncuran model dengan feature flag.
|
|
290
|
+
|
|
291
|
+
```javascript
|
|
292
|
+
// Dynamic AI model router with cost and latency optimization
|
|
293
|
+
async function routePrompt(prompt, context) {
|
|
294
|
+
const complexityScore = evaluateComplexity(prompt); // Fast heuristic check
|
|
295
|
+
|
|
296
|
+
if (complexityScore < 0.3) {
|
|
297
|
+
// Simple task: Route to fast, cheap model (e.g., Claude 3 Haiku / GPT-4o-mini)
|
|
298
|
+
return await callModel('fast-cheap-model', prompt);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (context.requiresReasoning) {
|
|
302
|
+
// Complex reasoning: Route to advanced model (e.g., Claude 3.5 Sonnet / GPT-4o)
|
|
303
|
+
try {
|
|
304
|
+
return await callModel('advanced-reasoning-model', prompt);
|
|
305
|
+
} catch (error) {
|
|
306
|
+
// Fallback chain implementation
|
|
307
|
+
console.warn("Primary model failed, falling back to secondary...");
|
|
308
|
+
return await callModel('secondary-fallback-model', prompt);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Feature-flag controlled routing for A/B testing new models
|
|
313
|
+
if (featureFlags.get('use_experimental_model_v2')) {
|
|
314
|
+
return await callModel('experimental-model', prompt);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return await callModel('default-balanced-model', prompt);
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
## 9. Orchestration & Integration / Orkestrasi & Integrasi
|
|
322
|
+
|
|
323
|
+
### Connected Skills / Skill Terhubung:
|
|
324
|
+
Integrate this architectural pattern with the following skills:
|
|
325
|
+
- `micro-frontend-architect`
|
|
326
|
+
- `event-driven-architect`
|
|
327
|
+
- `api-design-expert`
|
|
328
|
+
- `headless-cms-expert`
|
|
329
|
+
- `ecommerce-expert`
|
|
330
|
+
- `saas-architect`
|
|
331
|
+
- `api-gateway-proxy-expert`
|
|
332
|
+
- `cloud-hosting-expert`
|
|
333
|
+
- `brainstorming`
|
|
334
|
+
- `zero-to-prod-orchestrator`
|
|
335
|
+
|
|
336
|
+
## Orchestration & Integration
|
|
337
|
+
- Connects to `zero-to-prod-orchestrator`
|
|
338
|
+
- Connects to `brainstorming`
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cron-scheduler-expert
|
|
3
3
|
description: "Expert guide for scheduled tasks, cron jobs, recurring background work (Vercel Cron, Cloudflare Workers Cron, Inngest, node-cron), and distributed scheduling / Panduan ahli untuk tugas terjadwal, cron job, pekerjaan latar belakang berulang, dan penjadwalan terdistribusi."
|
|
4
|
-
author: "Roedy Rustam"
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Cron & Scheduler Expert (2026 Edition)
|
|
@@ -14,7 +15,7 @@ author: "Roedy Rustam"
|
|
|
14
15
|
## English
|
|
15
16
|
|
|
16
17
|
### Orchestration & Integration
|
|
17
|
-
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `
|
|
18
|
+
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `session-memory-manager` to ensure cohesive execution.
|
|
18
19
|
|
|
19
20
|
### Description
|
|
20
21
|
Production-grade guide for implementing scheduled tasks, cron jobs, and recurring background work in modern web applications. Covers **Vercel Cron Jobs**, **Cloudflare Workers Cron Triggers**, **Inngest scheduled functions**, **node-cron**, **BullMQ repeatable jobs**, **distributed cron locking** (Redis-based), **timezone-aware scheduling**, and common use cases (cleanup jobs, report generation, health checks, subscription renewals).
|
|
@@ -282,7 +283,7 @@ export async function GET(request: Request) {
|
|
|
282
283
|
## Bahasa Indonesia
|
|
283
284
|
|
|
284
285
|
### Integrasi Orkestrasi
|
|
285
|
-
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `
|
|
286
|
+
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `session-memory-manager` untuk memastikan eksekusi yang kohesif.
|
|
286
287
|
|
|
287
288
|
### Deskripsi
|
|
288
289
|
Panduan tingkat produksi untuk mengimplementasikan tugas terjadwal, cron job, dan pekerjaan latar belakang berulang di aplikasi web modern. Mencakup **Vercel Cron Jobs**, **Cloudflare Workers Cron Triggers**, **Inngest scheduled functions**, **node-cron**, **BullMQ repeatable jobs**, **distributed cron locking** (berbasis Redis), **penjadwalan sadar zona waktu**, dan kasus penggunaan umum (pembersihan data, pembuatan laporan, health check, perpanjangan langganan).
|
|
@@ -301,4 +302,4 @@ Aktifkan skill ini ketika:
|
|
|
301
302
|
- `cloud-hosting-expert` — Konfigurasi Vercel Cron, Cloudflare Workers Cron
|
|
302
303
|
- `saas-billing` — Pemeriksaan perpanjangan langganan, siklus billing
|
|
303
304
|
- `email-notification-expert` — Digest email terjadwal, ringkasan harian
|
|
304
|
-
- `data-telemetry-expert` — Agregasi metrik terjadwal dan pelaporan
|
|
305
|
+
- `data-telemetry-expert` — Agregasi metrik terjadwal dan pelaporan
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data-pipeline-etl-expert
|
|
3
3
|
description: "Expert guide for Data Pipelines, ETL/ELT, and Analytics Engineering. Covers dbt, Apache Airflow, Dagster, BigQuery, ClickHouse, and DuckDB / Panduan ahli untuk Data Pipelines, ETL/ELT. Mencakup dbt, Airflow, Dagster, BigQuery, ClickHouse, dan DuckDB."
|
|
4
|
-
author: "Roedy Rustam"
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Data Pipeline & ETL Expert
|
|
@@ -81,4 +82,4 @@ Gunakan Apache Airflow atau Dagster untuk menjadwalkan dan memonitor alur kerja
|
|
|
81
82
|
|
|
82
83
|
## Integrasi Orkestrasi
|
|
83
84
|
- Bekerja sama dengan `data-telemetry-expert` untuk memproses data mentah yang dikumpulkan.
|
|
84
|
-
- Melengkapi `python-programming-expert` dalam menulis skrip orkestrasi Airflow/Dagster.
|
|
85
|
+
- Melengkapi `python-programming-expert` dalam menulis skrip orkestrasi Airflow/Dagster.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data-telemetry-expert
|
|
3
3
|
description: "Expert guide for observability, analytics, telemetry, and data pipelines (OpenTelemetry, PostHog, Mixpanel) / Panduan ahli untuk observabilitas, telemetri, dan analitik."
|
|
4
|
-
author: "Roedy Rustam"
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Data & Telemetry Expert (OpenTelemetry 1.x / ClickHouse Edition)
|
|
@@ -14,7 +15,7 @@ author: "Roedy Rustam"
|
|
|
14
15
|
## English
|
|
15
16
|
|
|
16
17
|
### Orchestration & Integration
|
|
17
|
-
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `
|
|
18
|
+
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `session-memory-manager` to ensure cohesive execution.
|
|
18
19
|
|
|
19
20
|
### Description
|
|
20
21
|
Expert guide for production observability, product analytics, and data pipelines. Covers **OpenTelemetry 1.x** (stable, vendor-neutral traces/metrics/logs), **PostHog** (open-source product analytics), **ClickHouse** (OLAP analytics database), Grafana stack, and AI agent observability patterns.
|
|
@@ -188,7 +189,7 @@ Backend tracing tools for LLM: **LangSmith** (LangChain/LangGraph), **OpenAI Tra
|
|
|
188
189
|
## Bahasa Indonesia
|
|
189
190
|
|
|
190
191
|
### Integrasi Orkestrasi
|
|
191
|
-
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `
|
|
192
|
+
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `session-memory-manager` untuk memastikan eksekusi yang kohesif.
|
|
192
193
|
|
|
193
194
|
### Deskripsi
|
|
194
195
|
Panduan ahli untuk observabilitas produksi, analitik produk, dan pipeline data. Mencakup **OpenTelemetry 1.x** (stabil, vendor-neutral traces/metrics/logs), **PostHog** (analitik produk open-source), **ClickHouse** (database analitik OLAP), dan pola observabilitas agen AI.
|
|
@@ -216,4 +217,4 @@ ClickHouse adalah standar 2026 untuk workload analitik — menyerap miliaran eve
|
|
|
216
217
|
PostHog menyediakan analisis funnel, feature flags, session replay, dan A/B testing dalam satu platform yang dapat di-self-host. Integrasikan dengan Next.js App Router menggunakan `posthog-js`.
|
|
217
218
|
|
|
218
219
|
### Observabilitas Agen AI
|
|
219
|
-
Lacak biaya LLM, latensi, dan kualitas untuk aplikasi AI produksi menggunakan custom OTel attributes. Gunakan LangSmith, OpenAI Tracing, atau Langfuse (open-source) sebagai backend tracing LLM.
|
|
220
|
+
Lacak biaya LLM, latensi, dan kualitas untuk aplikasi AI produksi menggunakan custom OTel attributes. Gunakan LangSmith, OpenAI Tracing, atau Langfuse (open-source) sebagai backend tracing LLM.
|