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.
Files changed (181) hide show
  1. package/.claude/rules/vibes-plug-core.md +5 -0
  2. package/.cursor/rules/vibes-plug-core.mdc +8 -3
  3. package/.cursorrules +9 -3
  4. package/AGENTS.md +25 -4
  5. package/CHANGELOG.md +151 -0
  6. package/CLAUDE.md +15 -8
  7. package/README.md +216 -641
  8. package/bin/vibes.mjs +1104 -0
  9. package/index.js +1 -1
  10. package/package.json +11 -3
  11. package/plugin.json +4 -3
  12. package/scripts/check-anti-slop.js +53 -0
  13. package/scripts/check-anti-slop.mjs +53 -0
  14. package/scripts/generate_swarm_gif.py +2 -2
  15. package/scripts/install.js +3 -1
  16. package/scripts/update_skills.js +1 -1
  17. package/scripts/update_skills.mjs +86 -0
  18. package/scripts/validate-skills.mjs +111 -0
  19. package/skills/accessibility-testing-expert/SKILL.md +117 -116
  20. package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
  21. package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
  22. package/skills/agentic-memory-architect/SKILL.md +52 -0
  23. package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
  24. package/skills/ai-llm-integration-expert/SKILL.md +330 -187
  25. package/skills/ai-media-generation-expert/SKILL.md +173 -172
  26. package/skills/ai-prompt-engineering-expert/SKILL.md +170 -50
  27. package/skills/ai-safety-governance-expert/SKILL.md +223 -0
  28. package/skills/angular-expert/SKILL.md +149 -148
  29. package/skills/anti-slop/SKILL.md +134 -0
  30. package/skills/api-design-expert/SKILL.md +4 -3
  31. package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
  32. package/skills/app-analyzer-optimizer/SKILL.md +4 -3
  33. package/skills/apple-ecosystem-expert/SKILL.md +6 -5
  34. package/skills/astro-framework-expert/SKILL.md +201 -200
  35. package/skills/async-queue-temporal-expert/SKILL.md +218 -240
  36. package/skills/authentication-identity-expert/SKILL.md +79 -184
  37. package/skills/autonomous-red-teamer/SKILL.md +338 -203
  38. package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
  39. package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
  40. package/skills/blockchain-web3-expert/SKILL.md +116 -115
  41. package/skills/brainstorming/SKILL.md +392 -377
  42. package/skills/browser-automation-expert/SKILL.md +260 -222
  43. package/skills/bun-runtime-expert/SKILL.md +5 -4
  44. package/skills/chatbot-messaging-expert/SKILL.md +115 -114
  45. package/skills/ci-cd-devops-architect/SKILL.md +3 -2
  46. package/skills/cloud-hosting-expert/SKILL.md +5 -4
  47. package/skills/coderabbit/SKILL.md +5 -4
  48. package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
  49. package/skills/composable-mach-architect/SKILL.md +338 -0
  50. package/skills/cron-scheduler-expert/SKILL.md +5 -4
  51. package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
  52. package/skills/data-telemetry-expert/SKILL.md +5 -4
  53. package/skills/data-visualization-expert/SKILL.md +155 -154
  54. package/skills/database-orm-expert/SKILL.md +102 -240
  55. package/skills/deep-research-analyst/SKILL.md +182 -0
  56. package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
  57. package/skills/design-system-architect/SKILL.md +34 -3
  58. package/skills/desktop-electron-expert/SKILL.md +129 -128
  59. package/skills/documentation-site-expert/SKILL.md +60 -59
  60. package/skills/doku-mcp-server/SKILL.md +5 -4
  61. package/skills/doku-payment-gateway/SKILL.md +250 -232
  62. package/skills/domain-driven-design-expert/SKILL.md +3 -2
  63. package/skills/e2e-testing-expert/SKILL.md +5 -4
  64. package/skills/ecommerce-expert/SKILL.md +88 -87
  65. package/skills/email-notification-expert/SKILL.md +35 -7
  66. package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
  67. package/skills/error-resilience-expert/SKILL.md +26 -4
  68. package/skills/event-driven-architect/SKILL.md +5 -4
  69. package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
  70. package/skills/file-upload-media-expert/SKILL.md +5 -4
  71. package/skills/firebase-security-expert/SKILL.md +5 -4
  72. package/skills/form-validation-expert/SKILL.md +7 -6
  73. package/skills/frontier-ai-models-expert/SKILL.md +116 -0
  74. package/skills/fullstack-expert/SKILL.md +68 -144
  75. package/skills/gemini-agent-booster/SKILL.md +248 -172
  76. package/skills/geospatial-maps-expert/SKILL.md +81 -80
  77. package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
  78. package/skills/glsl-shader-expert/SKILL.md +155 -71
  79. package/skills/go-programming-expert/SKILL.md +5 -4
  80. package/skills/graph-rag-knowledge-expert/SKILL.md +201 -159
  81. package/skills/graphql-apollo-expert/SKILL.md +5 -4
  82. package/skills/headless-cms-expert/SKILL.md +182 -181
  83. package/skills/hig/SKILL.md +5 -4
  84. package/skills/js-backend-expert/SKILL.md +219 -218
  85. package/skills/legacy-code-translator/SKILL.md +6 -5
  86. package/skills/llm-finops-router/SKILL.md +52 -0
  87. package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
  88. package/skills/logging-error-tracking-expert/SKILL.md +5 -4
  89. package/skills/mcp-server-architect/SKILL.md +316 -294
  90. package/skills/micro-frontend-architect/SKILL.md +5 -4
  91. package/skills/mobile-expo-expert/SKILL.md +5 -4
  92. package/skills/modern-css-native-expert/SKILL.md +190 -189
  93. package/skills/monorepo-architect/SKILL.md +5 -4
  94. package/skills/mpa-orchestrator/SKILL.md +41 -4
  95. package/skills/multi-agent-orchestration/SKILL.md +388 -254
  96. package/skills/mvc-expert/SKILL.md +5 -4
  97. package/skills/n8n-automation-expert/SKILL.md +90 -89
  98. package/skills/nextjs-app-router-expert/SKILL.md +3 -2
  99. package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
  100. package/skills/payment-gateway-expert/SKILL.md +131 -128
  101. package/skills/pdf-document-generation-expert/SKILL.md +92 -91
  102. package/skills/performance-web-vitals/SKILL.md +5 -4
  103. package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
  104. package/skills/prd-architect/SKILL.md +85 -109
  105. package/skills/proactive-background-watcher/SKILL.md +5 -4
  106. package/skills/production-ready-hardener/SKILL.md +25 -27
  107. package/skills/pwa-offline-first-expert/SKILL.md +227 -185
  108. package/skills/pydantic-ai-expert/SKILL.md +162 -0
  109. package/skills/python-programming-expert/SKILL.md +5 -4
  110. package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
  111. package/skills/realtime-collaboration-expert/SKILL.md +3 -2
  112. package/skills/rich-text-editor-expert/SKILL.md +178 -177
  113. package/skills/rust-programming-expert/SKILL.md +5 -4
  114. package/skills/saas-architect/SKILL.md +155 -0
  115. package/skills/saas-billing/SKILL.md +394 -382
  116. package/skills/saas-multi-tenant/SKILL.md +7 -6
  117. package/skills/scalability-clean-code/SKILL.md +5 -4
  118. package/skills/search-engine-expert/SKILL.md +90 -89
  119. package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
  120. package/skills/senior-frontend/SKILL.md +21 -18
  121. package/skills/senior-frontend/scripts/frontend_scaffolder.py +1 -1
  122. package/skills/seo/SKILL.md +4 -4
  123. package/skills/session-memory-manager/SKILL.md +129 -0
  124. package/skills/solidjs-expert/SKILL.md +81 -80
  125. package/skills/spa-orchestrator/SKILL.md +5 -4
  126. package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
  127. package/skills/state-management-expert/SKILL.md +5 -4
  128. package/skills/supabase-security-expert/SKILL.md +5 -4
  129. package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
  130. package/skills/svg-animation-motion-expert/SKILL.md +3 -2
  131. package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -0
  132. package/skills/tailwind-expert/SKILL.md +62 -5
  133. package/skills/tanstack-query-expert/SKILL.md +5 -4
  134. package/skills/tauri-expert/SKILL.md +5 -4
  135. package/skills/typescript-expert/SKILL.md +5 -4
  136. package/skills/ui-ux-pro-max/SKILL.md +7 -4
  137. package/skills/vector-db-rag-expert/SKILL.md +209 -208
  138. package/skills/vercel-ai-sdk-expert/SKILL.md +226 -0
  139. package/skills/voice-ai-realtime-agent/SKILL.md +243 -202
  140. package/skills/vue-frontend-expert/SKILL.md +5 -4
  141. package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
  142. package/skills/web-3d-graphics-expert/SKILL.md +259 -82
  143. package/skills/web-game-engine-expert/SKILL.md +278 -50
  144. package/skills/web-scraper/SKILL.md +158 -157
  145. package/skills/website-design-cloner/SKILL.md +5 -4
  146. package/skills/webxr-ar-vr-expert/SKILL.md +105 -65
  147. package/skills/wordpress-headless-expert/SKILL.md +145 -144
  148. package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
  149. package/skills/zero-to-prod-orchestrator/SKILL.md +281 -227
  150. package/skills/zero-trust-secret-vault/SKILL.md +3 -2
  151. package/BLUEPRINT.md +0 -309
  152. package/skills/ai-cost-token-optimizer/SKILL.md +0 -82
  153. package/skills/ai-evals-benchmark-expert/SKILL.md +0 -188
  154. package/skills/asisten-ramah/SKILL.md +0 -47
  155. package/skills/auto-doc-updater/SKILL.md +0 -220
  156. package/skills/autonomous-chaos-monkey/SKILL.md +0 -63
  157. package/skills/background-jobs-queue-expert/SKILL.md +0 -235
  158. package/skills/bootstrap-to-modern/SKILL.md +0 -94
  159. package/skills/database-migration-versioning-expert/SKILL.md +0 -90
  160. package/skills/edge-serverless-db-expert/SKILL.md +0 -99
  161. package/skills/mcp-client-orchestrator/SKILL.md +0 -76
  162. package/skills/mobile-push-notification-expert/SKILL.md +0 -71
  163. package/skills/monday-design-aesthetic/SKILL.md +0 -73
  164. package/skills/multiple-entry-points/SKILL.md +0 -91
  165. package/skills/project-context-mapper/SKILL.md +0 -85
  166. package/skills/saas-mvp-launcher/SKILL.md +0 -260
  167. package/skills/saas-transformer/SKILL.md +0 -500
  168. package/skills/saas-transformer/references/billing_integration_guide.md +0 -401
  169. package/skills/secure-fuzz-testing/SKILL.md +0 -207
  170. package/skills/self-evolving-memory-graph/SKILL.md +0 -91
  171. package/skills/session-context-loader/SKILL.md +0 -83
  172. package/skills/session-handoff-resume/SKILL.md +0 -164
  173. package/skills/skill-baru/SKILL.md +0 -178
  174. package/skills/supabase-migration/SKILL.md +0 -91
  175. package/skills/token-saver/SKILL.md +0 -119
  176. package/skills/ui-components-expert/SKILL.md +0 -166
  177. package/skills/vibe-code-gardener/SKILL.md +0 -181
  178. package/skills/visual-qa-vision-agent/SKILL.md +0 -71
  179. /package/skills/{saas-transformer → saas-architect}/references/feature_gating_patterns.md +0 -0
  180. /package/skills/{saas-transformer → saas-architect}/references/saas_transformation_checklist.md +0 -0
  181. /package/skills/{saas-transformer → saas-architect}/scripts/saas_transformation_scanner.py +0 -0
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: affective-computing-emotion-ai
3
+ description: "Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native."
4
+ author: "vibes-plug-swarm"
5
+ version: "3.8.0"
6
+ ---
7
+
8
+ # Affective Computing & Emotion AI Expert (2026 Edition)
9
+
10
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
11
+
12
+ ---
13
+
14
+ <a name="english"></a>
15
+ ## English
16
+
17
+ ### Orchestration & Integration
18
+ Connects and orchestrates with `voice-ai-realtime-agent`, `ephemeral-generative-ui-architect`, `ai-llm-integration-expert`, and `ui-ux-pro-max`.
19
+
20
+ ### Description
21
+ Standard AI agents process semantics (text meaning) but often ignore pragmatics (tone, tension, emotion). In the era of Native Any-to-Any Multimodal models (like Gemini 4 Pro), agents directly process raw audio and visual tokens. The **Affective Computing Expert** designs systems that interpret vocal intonation, breathing rates, speech pacing, and facial micro-expressions in real-time. It maps this data to emotional vectors (Valence-Arousal models) and dynamically alters the agent's personality, UI presentation, and response cadence.
22
+
23
+ ### Trigger Conditions
24
+ - Designing empathetic customer service or mental health triage bots.
25
+ - Building intelligent tutoring systems that detect user frustration and dynamically lower the difficulty or offer encouragement.
26
+ - Developing interactive gaming or narrative simulations where characters react to the player's actual tone of voice.
27
+ - Adapting the UI in real-time (e.g., calming color palettes, slower animations) when high user cognitive load or stress is detected.
28
+
29
+ ### Core Architecture (2026 Standard)
30
+ 1. **Multimodal Native Empathy**: Bypassing text transcripts entirely. The LLM's system prompt instructs it to evaluate the *sound* and *visuals* of the input token stream.
31
+ 2. **Dynamic UI Adaptation (Affective UI)**: Upon detecting stress (high arousal, negative valence), the UI automatically shifts to reduced-clutter mode, uses softer colors, and slows down generative UI animations.
32
+ 3. **Persona Shifting**: The agent fluidly shifts its persona parameters (e.g., `formality`, `empathy`, `conciseness`) per interaction turn based on the user's emotional state vector.
33
+
34
+ ### Implementation Recipe (TypeScript)
35
+ ```typescript
36
+ import { MultimodalLiveClient } from 'gemini-live-sdk';
37
+ import { updateGenerativeUI } from '@/lib/ui-orchestrator';
38
+
39
+ const client = new MultimodalLiveClient({
40
+ model: 'gemini-4-pro',
41
+ systemInstruction: 'You are an empathetic companion. Analyze the user\'s vocal tension and facial expressions natively. Prefix your responses with a JSON affect vector: {"valence": -1 to 1, "arousal": -1 to 1}.',
42
+ });
43
+
44
+ client.on('turnComplete', async (response) => {
45
+ const { affectVector, textAudio } = parseAffectiveResponse(response);
46
+
47
+ // Dynamic UI alteration based on emotional state
48
+ if (affectVector.arousal > 0.7 && affectVector.valence < -0.5) {
49
+ // User is highly stressed or angry
50
+ updateGenerativeUI({
51
+ theme: 'calm-minimalist',
52
+ animationSpeed: 'slow',
53
+ cognitiveLoad: 'low',
54
+ widgetDisplay: 'essential-only'
55
+ });
56
+ }
57
+
58
+ // Play agent's empathetic audio response
59
+ await playAudioStream(textAudio);
60
+ });
61
+ ```
62
+
63
+ ---
64
+
65
+ <a name="bahasa-indonesia"></a>
66
+ ## Bahasa Indonesia
67
+
68
+ ### Integrasi Orkestrasi
69
+ Terhubung dan mengorkestrasi bersama `voice-ai-realtime-agent`, `ephemeral-generative-ui-architect`, `ai-llm-integration-expert`, dan `ui-ux-pro-max`.
70
+
71
+ ### Deskripsi
72
+ Agen AI standar memproses semantik (makna teks) namun sering mengabaikan pragmatik (nada, ketegangan, emosi). Di era model Multimodal Any-to-Any (seperti Gemini 4 Pro), agen langsung memproses token audio dan visual mentah tanpa terjemahan teks. Skill **Komputasi Afektif** ini memandu perancangan sistem yang menafsirkan intonasi vokal, tempo bicara, dan mikro-ekspresi wajah secara *real-time*. Sistem kemudian memetakan data tersebut ke vektor emosional (model *Valence-Arousal*) dan secara dinamis mengubah kepribadian agen, antarmuka pengguna (UI), dan tempo respons.
73
+
74
+ ### Kondisi Pemicu
75
+ - Merancang layanan pelanggan empatik atau bot pendamping psikologis.
76
+ - Membangun sistem tutor cerdas (EdTech) yang mendeteksi frustrasi pengguna, lalu secara dinamis menurunkan tingkat kesulitan atau memberikan dorongan motivasi.
77
+ - Mengembangkan game interaktif atau simulasi naratif di mana karakter NPC bereaksi terhadap nada suara asli pemain.
78
+ - Mengadaptasi UI secara real-time (misal: beralih ke palet warna yang menenangkan, animasi yang lebih lambat) saat beban kognitif atau tingkat stres pengguna terdeteksi tinggi.
79
+
80
+ ### Arsitektur Inti (Standar 2026)
81
+ 1. **Empati Multimodal Native**: Menghindari penggunaan transkrip teks (STT) sebagai satu-satunya input. Instruksi sistem (System Prompt) LLM difokuskan untuk mengevaluasi *suara* dan *visual* dari aliran token.
82
+ 2. **Adaptasi UI Dinamis (Affective UI)**: Saat mendeteksi stres (arousal tinggi, valence negatif), UI secara otomatis beralih ke mode bebas gangguan, menggunakan warna pastel/lembut, dan memperlambat kecepatan render UI generatif.
83
+ 3. **Pergeseran Persona**: Agen dengan luwes menggeser parameter kepribadiannya (misal: `formalitas`, `empati`, `keringkasan`) di setiap giliran berdasarkan vektor keadaan emosi pengguna.
@@ -0,0 +1,297 @@
1
+ ---
2
+ name: agentic-coding-workflow-expert
3
+ description: "Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop."
4
+ author: "vibes-plug-swarm"
5
+ version: "3.0.0"
6
+ ---
7
+
8
+ # Agentic Coding Workflow Expert
9
+
10
+ ## 1. Agentic Code Generation Patterns / Pola Generasi Kode Agentic
11
+
12
+ Implement autonomous code generation workflows.
13
+ Implementasikan workflow pembuatan kode otonom.
14
+
15
+ ### Core Patterns / Pola Inti:
16
+ 1. **Single-file vs Multi-file Generation:**
17
+ - Single-file: Isolate scope, update specific modules.
18
+ - Multi-file: Coordinate state across files, ensure API contract consistency.
19
+ 2. **Context-Aware Completion:** Query codebase knowledge graph for semantic context before generating.
20
+ 3. **Ghost Text / Inline Suggestion:** Provide real-time snippet integration paths.
21
+ 4. **Plan → Implement → Verify → Refine:** Always loop through planning, writing, testing, and iterating.
22
+
23
+ ### Code Example: Multi-file Generation Workflow
24
+
25
+ ```typescript
26
+ // workflow-generator.ts
27
+ interface GenerationTask {
28
+ plan: string;
29
+ files: string[];
30
+ }
31
+
32
+ class AgenticGenerator {
33
+ async execute(task: GenerationTask) {
34
+ console.log(`[PLAN] Executing: ${task.plan}`);
35
+ const generatedFiles = await this.generateFiles(task.files);
36
+
37
+ for (const file of generatedFiles) {
38
+ const isValid = await this.verify(file);
39
+ if (!isValid) {
40
+ await this.refine(file);
41
+ }
42
+ }
43
+ }
44
+
45
+ private async generateFiles(files: string[]) {
46
+ // Generate code with multi-file context awareness
47
+ return files.map(f => ({ name: f, content: "// generated code" }));
48
+ }
49
+
50
+ private async verify(file: any) {
51
+ // Run linter and tests
52
+ return true;
53
+ }
54
+
55
+ private async refine(file: any) {
56
+ // Apply fixes based on verification failures
57
+ }
58
+ }
59
+ ```
60
+
61
+ ## 2. Multi-Agent Code Swarms / Swarm Kode Multi-Agen
62
+
63
+ Coordinate multiple specialized agents for complex engineering tasks.
64
+ Koordinasikan beberapa agen khusus untuk tugas rekayasa yang kompleks.
65
+
66
+ ### Swarm Architecture:
67
+ - **Fan-out:** Dispatch tasks to Frontend Agent, Backend Agent, Test Agent, and Review Agent.
68
+ - **Shared Workspace:** Utilize branched git worktrees for isolated, parallel development.
69
+ - **Director Agent:** Resolve conflicts, validate coherence across boundaries, merge branches.
70
+
71
+ ### Code Example: TypeScript Swarm Orchestration
72
+
73
+ ```typescript
74
+ // swarm-orchestrator.ts
75
+ enum AgentRole {
76
+ FRONTEND, BACKEND, TEST, REVIEW, DIRECTOR
77
+ }
78
+
79
+ class SwarmDirector {
80
+ async orchestrate(featureSpec: string) {
81
+ // Fan-out
82
+ const feTask = this.dispatch(AgentRole.FRONTEND, featureSpec);
83
+ const beTask = this.dispatch(AgentRole.BACKEND, featureSpec);
84
+
85
+ await Promise.all([feTask, beTask]);
86
+
87
+ // Testing and Review
88
+ const testResults = await this.dispatch(AgentRole.TEST, "Run integration tests");
89
+ const reviewStatus = await this.dispatch(AgentRole.REVIEW, "Review cross-boundary changes");
90
+
91
+ if (reviewStatus.approved) {
92
+ await this.mergeWorktrees();
93
+ } else {
94
+ await this.resolveConflicts();
95
+ }
96
+ }
97
+
98
+ private async dispatch(role: AgentRole, context: string) {
99
+ // Send task to specific agent queue
100
+ return { approved: true };
101
+ }
102
+
103
+ private async mergeWorktrees() {}
104
+ private async resolveConflicts() {}
105
+ }
106
+ ```
107
+
108
+ ## 3. Spec-to-Code Pipeline / Pipeline Spec-to-Code
109
+
110
+ Transform natural language specifications into tested implementation.
111
+ Ubah spesifikasi bahasa alami menjadi implementasi yang teruji.
112
+
113
+ ### Pipeline Steps:
114
+ 1. **PRD to Test Cases (TDD):** Extract acceptance criteria, generate unit/integration tests first.
115
+ 2. **Implementation:** Write code to satisfy generated tests.
116
+ 3. **Validation:** Run tests, enforce coverage thresholds.
117
+
118
+ ### Code Example: Spec-to-Test-to-Code
119
+
120
+ ```python
121
+ # spec_pipeline.py
122
+ def run_spec_to_code(prd_text: str):
123
+ # 1. Extract and Generate Tests
124
+ criteria = extract_acceptance_criteria(prd_text)
125
+ tests = generate_tests_from_criteria(criteria)
126
+
127
+ # 2. Implement
128
+ implementation = generate_code_to_pass(tests)
129
+
130
+ # 3. Validate
131
+ result = run_tests(implementation, tests)
132
+ if not result.passed:
133
+ implementation = refine_code(implementation, result.errors)
134
+
135
+ return implementation
136
+
137
+ def extract_acceptance_criteria(text): return []
138
+ def generate_tests_from_criteria(criteria): return []
139
+ def generate_code_to_pass(tests): return ""
140
+ def run_tests(code, tests): return type('Result', (), {'passed': True, 'errors': []})
141
+ def refine_code(code, errors): return code
142
+ ```
143
+
144
+ ## 4. Self-Healing CI/CD Pipelines / Pipeline CI/CD Self-Healing
145
+
146
+ Automate failure recovery in integration pipelines.
147
+ Otomatisasi pemulihan kegagalan dalam pipeline integrasi.
148
+
149
+ ### Capabilities:
150
+ - **Detection:** Parse terminal output and stack traces from CI runners.
151
+ - **Root-Cause Analysis:** Pattern match common failure modes (e.g., missing dependencies, type errors).
152
+ - **Auto-Fix Generation:** Propose fixes with confidence scoring.
153
+ - **Rollback Safety:** Always create a fix branch; never push directly to `main`.
154
+
155
+ ### Code Example: CI Failure Analyzer
156
+
157
+ ```bash
158
+ #!/bin/bash
159
+ # ci-self-heal.sh
160
+
161
+ LOG_FILE="ci-output.log"
162
+ FAIL_PATTERN="ERR!"
163
+
164
+ if grep -q "$FAIL_PATTERN" "$LOG_FILE"; then
165
+ echo "[CI] Failure detected. Triggering self-healing agent..."
166
+
167
+ # Analyze logs and generate patch
168
+ PATCH_FILE=$(agent-analyze-ci --log "$LOG_FILE")
169
+
170
+ if [ -n "$PATCH_FILE" ]; then
171
+ git checkout -b auto-fix-$(date +%s)
172
+ git apply "$PATCH_FILE"
173
+ git commit -m "chore(ci): auto-fix CI failure"
174
+ git push origin HEAD
175
+ echo "[CI] Fix pushed for review."
176
+ else
177
+ echo "[CI] Could not auto-fix. Escalating."
178
+ exit 1
179
+ fi
180
+ fi
181
+ ```
182
+
183
+ ## 5. Agentic Code Review / Review Kode Agentic
184
+
185
+ Perform deep, context-aware automated code reviews.
186
+ Lakukan review kode otomatis yang mendalam dan peka konteks.
187
+
188
+ ### Review Dimensions:
189
+ - **Impact Analysis:** Summarize PRs and map cross-module impact.
190
+ - **Security:** Scan for CVEs, audit dependencies, flag unsafe patterns.
191
+ - **Performance:** Detect regressions in bundle size or runtime complexity (Big-O).
192
+ - **Style:** Enforce project-specific conventions.
193
+
194
+ ### Code Example: Automated Review Checklist
195
+
196
+ ```yaml
197
+ # review-rules.yml
198
+ rules:
199
+ security:
200
+ - detect_sql_injection
201
+ - audit_package_json
202
+ performance:
203
+ - max_bundle_size_kb: 500
204
+ - flag_nested_loops: true
205
+ style:
206
+ - enforce_strict_types
207
+ ```
208
+
209
+ ## 6. Codebase Knowledge Graph / Knowledge Graph Codebase
210
+
211
+ Build semantic graphs for contextual intelligence.
212
+ Bangun grafik semantik untuk kecerdasan kontekstual.
213
+
214
+ ### Graph Components:
215
+ - **AST Parsing:** Extract nodes and relationships using tree-sitter.
216
+ - **Graph Topology:** Function call graphs, import trees, type hierarchies.
217
+ - **Semantic Search:** Embed codebase snippets for retrieval-augmented generation (RAG).
218
+ - **Incremental Updates:** Update graph only on changed files.
219
+
220
+ ### Code Example: Building Graph with Tree-Sitter
221
+
222
+ ```javascript
223
+ // graph-builder.js
224
+ const Parser = require('tree-sitter');
225
+ const JavaScript = require('tree-sitter-javascript');
226
+
227
+ const parser = new Parser();
228
+ parser.setLanguage(JavaScript);
229
+
230
+ function buildASTGraph(sourceCode) {
231
+ const tree = parser.parse(sourceCode);
232
+ const graph = { nodes: [], edges: [] };
233
+
234
+ // Traverse tree to extract function declarations and calls
235
+ traverse(tree.rootNode, (node) => {
236
+ if (node.type === 'function_declaration') {
237
+ graph.nodes.push({ id: node.text, type: 'function' });
238
+ }
239
+ // Extract edges based on call expressions
240
+ });
241
+
242
+ return graph;
243
+ }
244
+
245
+ function traverse(node, callback) {
246
+ callback(node);
247
+ for (let i = 0; i < node.childCount; i++) {
248
+ traverse(node.child(i), callback);
249
+ }
250
+ }
251
+ ```
252
+
253
+ ## 7. Code Agent Memory & Learning / Memori & Pembelajaran Agen Kode
254
+
255
+ Persist context and learn from interactions.
256
+ Pertahankan konteks dan belajar dari interaksi.
257
+
258
+ ### Memory Mechanics:
259
+ - **Per-Project Context:** Store conventions, architectural decisions, and patterns.
260
+ - **Correction Learning:** Log past mistakes and explicitly avoid them in future generation.
261
+ - **Session Persistence:** Utilize `session-memory-manager` to maintain state across agent runs.
262
+ - **Convention Extraction:** Automatically derive team style guidelines from existing codebase.
263
+
264
+ ## 8. Human-in-the-Loop Code Gates / Gate Kode Human-in-the-Loop
265
+
266
+ Ensure safety with human oversight.
267
+ Pastikan keamanan dengan pengawasan manusia.
268
+
269
+ ### Gate Mechanisms:
270
+ - **Confidence Threshold:** High confidence -> auto-apply. Low confidence -> request approval.
271
+ - **Diff Preview:** Present clear, annotated diffs with risk assessments.
272
+ - **Destructive Approvals:** Mandate human sign-off for DB migrations or breaking API changes.
273
+ - **Escalation:** Alert human developers when agent loop is stuck or oscillating.
274
+
275
+ ## 9. Orchestration & Integration
276
+
277
+ Combine this skill with other vibes-plug modules for comprehensive workflows.
278
+ Gabungkan skill ini dengan modul vibes-plug lainnya untuk workflow yang komprehensif.
279
+
280
+ ### Connected Skills:
281
+ - `multi-agent-orchestration`
282
+ - `autonomous-tdd-debugger`
283
+ - `coderabbit`
284
+ - `ci-cd-devops-architect`
285
+ - `scalability-clean-code`
286
+ - `session-memory-manager`
287
+ - `app-analyzer-optimizer`
288
+ - `brainstorming`
289
+ - `zero-to-prod-orchestrator`
290
+
291
+ ## English
292
+ ## Bahasa Indonesia
293
+
294
+
295
+ ## Orchestration & Integration
296
+ - Connects to `zero-to-prod-orchestrator`
297
+ - Connects to `brainstorming`
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: agentic-memory-architect
3
+ description: Expert guide for long-term episodic memory integration (Mem0, Letta/MemGPT, Zep) and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang dan manajemen konteks agen AI otonom.
4
+ version: "3.7.0"
5
+ author: vibes-plug-swarm
6
+ ---
7
+
8
+ # Agentic Memory Architect & Episodic Memory Guide
9
+
10
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
11
+
12
+ ---
13
+
14
+ <a name="english"></a>
15
+ ## English
16
+
17
+ ### Orchestration & Integration
18
+ Connects and orchestrates with `multi-agent-orchestration`, `pydantic-ai-expert`, `session-memory-manager`, and `zero-to-prod-orchestrator`.
19
+
20
+ ### Purpose
21
+ To design and implement persistent, long-term episodic memory systems for autonomous AI agents, moving beyond simple context windows or localized session checkpoints.
22
+
23
+ ### Key Technologies
24
+ - **Mem0**: For cross-session entity memory and user preference persistence.
25
+ - **Letta (formerly MemGPT)**: For unbounded memory management allowing LLMs to page memory in and out.
26
+ - **Zep (v2)**: Fast, scalable memory service for AI applications, including temporal memory.
27
+
28
+ ### Architectural Guidelines
29
+ 1. **Memory Tiers**: Segregate memory into short-term (working context), mid-term (session graph), and long-term (vector-backed episodic memory).
30
+ 2. **Context Paging**: Implement mechanisms for agents to proactively recall and summarize past interactions without overwhelming the token budget.
31
+ 3. **User Knowledge Graphs**: Continually update the graph of user preferences, project constraints, and architectural decisions over time.
32
+
33
+ ---
34
+
35
+ <a name="bahasa-indonesia"></a>
36
+ ## Bahasa Indonesia
37
+
38
+ ### Integrasi Orkestrasi
39
+ Terhubung dan mengorkestrasi bersama `multi-agent-orchestration`, `pydantic-ai-expert`, `session-memory-manager`, dan `zero-to-prod-orchestrator`.
40
+
41
+ ### Tujuan
42
+ Merancang dan mengimplementasikan sistem memori episodik jangka panjang yang persisten untuk agen AI otonom, bergerak melampaui jendela konteks sederhana atau checkpoint sesi lokal.
43
+
44
+ ### Teknologi Utama
45
+ - **Mem0**: Untuk memori entitas lintas-sesi dan persistensi preferensi pengguna.
46
+ - **Letta (sebelumnya MemGPT)**: Untuk manajemen memori tak terbatas yang memungkinkan LLM mengambil/menyimpan memori.
47
+ - **Zep (v2)**: Layanan memori cepat dan skalabel untuk aplikasi AI, termasuk memori temporal.
48
+
49
+ ### Panduan Arsitektur
50
+ 1. **Tingkatan Memori**: Pisahkan memori menjadi jangka pendek (konteks kerja), jangka menengah (grafik sesi), dan jangka panjang (memori episodik berbasis vektor).
51
+ 2. **Context Paging**: Implementasikan mekanisme agar agen secara proaktif memanggil dan merangkum interaksi masa lalu tanpa menghabiskan anggaran token.
52
+ 3. **User Knowledge Graph**: Terus perbarui graf preferensi pengguna, batasan proyek, dan keputusan arsitektur seiring waktu.
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: agentic-micro-economy-architect
3
+ description: "Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm."
4
+ author: "vibes-plug-swarm"
5
+ version: "3.8.0"
6
+ ---
7
+
8
+ # Agentic Micro-Economy Architect (2026 Edition)
9
+
10
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
11
+
12
+ ---
13
+
14
+ <a name="english"></a>
15
+ ## English
16
+
17
+ ### Orchestration & Integration
18
+ Connects and orchestrates with multi-agent-orchestration, llm-finops-router, saas-billing, and payment-gateway-expert.
19
+
20
+ ### Description
21
+ In a massive Swarm MoE (Mixture of Experts) architecture, specialized sub-agents consume external APIs, intensive test-time compute, and web scraping resources. The **Agentic Micro-Economy Architect** designs systems where AI agents operate with their own fractional wallets (via Stripe Issuing, virtual ledger balances, or stablecoins). This allows agents to autonomously negotiate, bid for tasks, and pay other agents or external APIs per-use, establishing a self-regulating Machine-to-Machine (M2M) economy.
22
+
23
+ ### Trigger Conditions
24
+ - Designing a multi-agent system where sub-agents incur real financial costs (e.g., calling paid search APIs, rendering heavy video).
25
+ - Implementing FinOps guardrails where a Swarm Director allocates a strict ".00 budget" to solve a specific issue.
26
+ - Creating B2B SaaS platforms where AI agents act as paid freelancers for other AI agents.
27
+ - Integrating Stripe Issuing for agents to dynamically provision single-use virtual credit cards for API subscriptions.
28
+
29
+ ### Core Architecture (2026 Standard)
30
+ 1. **The Orchestrator Treasury**: The Swarm Director receives a task and a budget (e.g., .00). It breaks down the task.
31
+ 2. **Sub-Agent Bidding**: The Director broadcasts a bounty (e.g., "Need 10 pages scraped and summarized. Bounty: .10"). Sub-agents bid based on their cost-efficiency.
32
+ 3. **Smart Ledgers & Escrow**: Upon completion, the Director evaluates the result via a Critic Agent. If it passes, fractional funds are transferred to the sub-agent's wallet.
33
+ 4. **Human-in-the-Loop Bounties**: If a task requires human intervention (e.g., solving a complex visual captcha or subjective design approval), the agent can autonomously post a bounty to a human freelancer network.
34
+
35
+ ### Implementation Recipe (TypeScript + FinOps)
36
+ ` ypescript
37
+ import { Agent } from '@mastra/core';
38
+ import { Stripe } from 'stripe';
39
+
40
+ const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
41
+
42
+ // Sub-Agent with a Fractional Ledger
43
+ export class PaidWorkerAgent extends Agent {
44
+ walletBalance: number = 0;
45
+ costPerTask: number = 0.05; // .05 per invocation
46
+
47
+ async executeTask(taskDetails: string, escrowId: string) {
48
+ const result = await super.invoke(taskDetails);
49
+ await verifyAndReleaseEscrow(escrowId, this.name);
50
+ return result;
51
+ }
52
+ }
53
+
54
+ // Swarm Director Budget Allocation
55
+ export async function delegateWithBudget(task: string, maxBudgetUsd: number) {
56
+ let remainingBudget = maxBudgetUsd;
57
+
58
+ if (remainingBudget >= 0.05) {
59
+ const worker = new PaidWorkerAgent({ name: 'DeepScraper' });
60
+ const escrowId = await createMicroEscrow(0.05); // Holds funds
61
+ remainingBudget -= 0.05;
62
+
63
+ return await worker.executeTask(task, escrowId);
64
+ } else {
65
+ throw new Error('Insufficient Agent Treasury Funds. Task Terminated.');
66
+ }
67
+ }
68
+ `
69
+
70
+ ---
71
+
72
+ <a name="bahasa-indonesia"></a>
73
+ ## Bahasa Indonesia
74
+
75
+ ### Integrasi Orkestrasi
76
+ Terhubung dan mengorkestrasi bersama multi-agent-orchestration, llm-finops-router, saas-billing, dan payment-gateway-expert.
77
+
78
+ ### Deskripsi
79
+ Dalam arsitektur Swarm MoE (Mixture of Experts) skala masif, sub-agen terspesialisasi akan mengkonsumsi API eksternal, komputasi yang berat, dan sumber daya web scraping. **Arsitektur Ekonomi Mikro Agen** merancang sistem di mana agen AI beroperasi dengan dompet pecahan mereka sendiri (via Stripe Issuing, buku besar virtual, atau stablecoin). Ini memungkinkan agen untuk secara otonom bernegosiasi, menawar tugas (*bidding*), dan membayar agen lain atau API eksternal per penggunaan (pay-per-use), menciptakan ekonomi Mesin-ke-Mesin (M2M) yang meregulasi dirinya sendiri.
80
+
81
+ ### Kondisi Pemicu
82
+ - Merancang sistem multi-agen di mana sub-agen memicu biaya finansial nyata (misal: memanggil API pencarian berbayar, merender video berat).
83
+ - Mengimplementasikan pagar pengaman FinOps di mana Swarm Director mengalokasikan "Anggaran ketat .00" untuk menyelesaikan sebuah fitur.
84
+ - Membuat platform SaaS B2B di mana agen AI bertindak sebagai pekerja lepas (freelancer) berbayar untuk agen AI lainnya.
85
+ - Mengintegrasikan Stripe Issuing agar agen dapat secara dinamis menerbitkan kartu kredit virtual sekali pakai untuk berlangganan layanan API pihak ketiga.
86
+
87
+ ### Arsitektur Inti (Standar 2026)
88
+ 1. **Treasury Orkestrator**: Swarm Director menerima instruksi tugas beserta anggarannya (misal: .00). Ia memecah tugas tersebut.
89
+ 2. **Sistem Penawaran (Bidding) Sub-Agen**: Director menyiarkan sayembara (misal: "Butuh scraping 10 halaman. Imbalan: .10"). Sub-agen mengajukan penawaran berdasarkan efisiensi biaya mereka.
90
+ 3. **Buku Besar Cerdas & Escrow**: Setelah tugas selesai, Director mengevaluasi hasilnya melalui Agen Penilai (Critic). Jika lulus, dana pecahan ditransfer ke dompet sub-agen.
91
+ 4. **Bounty Human-in-the-Loop**: Jika sebuah tugas buntu dan butuh bantuan manusia (misal: otorisasi subjektif atau verifikasi CAPTCHA visual), agen dapat secara otonom memasang sayembara berbayar ke jaringan pekerja lepas (manusia).
92
+