vibes-plug 2.14.1 → 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 (151) hide show
  1. package/.claude/rules/vibes-plug-core.md +5 -0
  2. package/.cursor/rules/vibes-plug-core.mdc +7 -2
  3. package/.cursorrules +8 -2
  4. package/AGENTS.md +23 -2
  5. package/CHANGELOG.md +114 -0
  6. package/CLAUDE.md +10 -3
  7. package/README.md +216 -611
  8. package/bin/vibes.mjs +1104 -0
  9. package/package.json +11 -3
  10. package/plugin.json +4 -3
  11. package/scripts/check-anti-slop.mjs +53 -0
  12. package/scripts/install.js +3 -1
  13. package/scripts/update_skills.js +1 -1
  14. package/scripts/update_skills.mjs +86 -0
  15. package/scripts/validate-skills.mjs +111 -0
  16. package/skills/accessibility-testing-expert/SKILL.md +117 -116
  17. package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
  18. package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
  19. package/skills/agentic-memory-architect/SKILL.md +52 -0
  20. package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
  21. package/skills/ai-llm-integration-expert/SKILL.md +330 -194
  22. package/skills/ai-media-generation-expert/SKILL.md +173 -172
  23. package/skills/ai-prompt-engineering-expert/SKILL.md +204 -134
  24. package/skills/ai-safety-governance-expert/SKILL.md +223 -0
  25. package/skills/angular-expert/SKILL.md +149 -148
  26. package/skills/anti-slop/SKILL.md +134 -133
  27. package/skills/api-design-expert/SKILL.md +4 -3
  28. package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
  29. package/skills/app-analyzer-optimizer/SKILL.md +4 -3
  30. package/skills/apple-ecosystem-expert/SKILL.md +6 -5
  31. package/skills/astro-framework-expert/SKILL.md +201 -200
  32. package/skills/async-queue-temporal-expert/SKILL.md +218 -217
  33. package/skills/authentication-identity-expert/SKILL.md +174 -173
  34. package/skills/autonomous-red-teamer/SKILL.md +338 -203
  35. package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
  36. package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
  37. package/skills/blockchain-web3-expert/SKILL.md +116 -115
  38. package/skills/brainstorming/SKILL.md +392 -377
  39. package/skills/browser-automation-expert/SKILL.md +260 -222
  40. package/skills/bun-runtime-expert/SKILL.md +5 -4
  41. package/skills/chatbot-messaging-expert/SKILL.md +115 -114
  42. package/skills/ci-cd-devops-architect/SKILL.md +3 -2
  43. package/skills/cloud-hosting-expert/SKILL.md +5 -4
  44. package/skills/coderabbit/SKILL.md +5 -4
  45. package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
  46. package/skills/composable-mach-architect/SKILL.md +338 -0
  47. package/skills/cron-scheduler-expert/SKILL.md +5 -4
  48. package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
  49. package/skills/data-telemetry-expert/SKILL.md +5 -4
  50. package/skills/data-visualization-expert/SKILL.md +155 -154
  51. package/skills/database-orm-expert/SKILL.md +166 -165
  52. package/skills/deep-research-analyst/SKILL.md +182 -136
  53. package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
  54. package/skills/design-system-architect/SKILL.md +4 -3
  55. package/skills/desktop-electron-expert/SKILL.md +129 -128
  56. package/skills/documentation-site-expert/SKILL.md +60 -59
  57. package/skills/doku-mcp-server/SKILL.md +5 -4
  58. package/skills/doku-payment-gateway/SKILL.md +250 -232
  59. package/skills/domain-driven-design-expert/SKILL.md +3 -2
  60. package/skills/e2e-testing-expert/SKILL.md +5 -4
  61. package/skills/ecommerce-expert/SKILL.md +88 -87
  62. package/skills/email-notification-expert/SKILL.md +5 -4
  63. package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
  64. package/skills/error-resilience-expert/SKILL.md +14 -13
  65. package/skills/event-driven-architect/SKILL.md +5 -4
  66. package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
  67. package/skills/file-upload-media-expert/SKILL.md +5 -4
  68. package/skills/firebase-security-expert/SKILL.md +5 -4
  69. package/skills/form-validation-expert/SKILL.md +7 -6
  70. package/skills/frontier-ai-models-expert/SKILL.md +116 -0
  71. package/skills/fullstack-expert/SKILL.md +185 -184
  72. package/skills/gemini-agent-booster/SKILL.md +248 -172
  73. package/skills/geospatial-maps-expert/SKILL.md +81 -80
  74. package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
  75. package/skills/glsl-shader-expert/SKILL.md +191 -190
  76. package/skills/go-programming-expert/SKILL.md +5 -4
  77. package/skills/graph-rag-knowledge-expert/SKILL.md +201 -200
  78. package/skills/graphql-apollo-expert/SKILL.md +5 -4
  79. package/skills/headless-cms-expert/SKILL.md +182 -181
  80. package/skills/hig/SKILL.md +5 -4
  81. package/skills/js-backend-expert/SKILL.md +219 -218
  82. package/skills/legacy-code-translator/SKILL.md +6 -5
  83. package/skills/llm-finops-router/SKILL.md +52 -0
  84. package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
  85. package/skills/logging-error-tracking-expert/SKILL.md +5 -4
  86. package/skills/mcp-server-architect/SKILL.md +315 -307
  87. package/skills/micro-frontend-architect/SKILL.md +5 -4
  88. package/skills/mobile-expo-expert/SKILL.md +5 -4
  89. package/skills/modern-css-native-expert/SKILL.md +190 -189
  90. package/skills/monorepo-architect/SKILL.md +5 -4
  91. package/skills/mpa-orchestrator/SKILL.md +41 -4
  92. package/skills/multi-agent-orchestration/SKILL.md +388 -254
  93. package/skills/mvc-expert/SKILL.md +5 -4
  94. package/skills/n8n-automation-expert/SKILL.md +90 -89
  95. package/skills/nextjs-app-router-expert/SKILL.md +3 -2
  96. package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
  97. package/skills/payment-gateway-expert/SKILL.md +131 -128
  98. package/skills/pdf-document-generation-expert/SKILL.md +92 -91
  99. package/skills/performance-web-vitals/SKILL.md +5 -4
  100. package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
  101. package/skills/prd-architect/SKILL.md +183 -182
  102. package/skills/proactive-background-watcher/SKILL.md +5 -4
  103. package/skills/production-ready-hardener/SKILL.md +10 -9
  104. package/skills/pwa-offline-first-expert/SKILL.md +227 -226
  105. package/skills/pydantic-ai-expert/SKILL.md +162 -161
  106. package/skills/python-programming-expert/SKILL.md +5 -4
  107. package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
  108. package/skills/realtime-collaboration-expert/SKILL.md +3 -2
  109. package/skills/rich-text-editor-expert/SKILL.md +178 -177
  110. package/skills/rust-programming-expert/SKILL.md +5 -4
  111. package/skills/saas-architect/SKILL.md +155 -154
  112. package/skills/saas-billing/SKILL.md +394 -382
  113. package/skills/saas-multi-tenant/SKILL.md +7 -6
  114. package/skills/scalability-clean-code/SKILL.md +5 -4
  115. package/skills/search-engine-expert/SKILL.md +90 -89
  116. package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
  117. package/skills/senior-frontend/SKILL.md +14 -9
  118. package/skills/seo/SKILL.md +4 -4
  119. package/skills/session-memory-manager/SKILL.md +129 -128
  120. package/skills/solidjs-expert/SKILL.md +81 -80
  121. package/skills/spa-orchestrator/SKILL.md +5 -4
  122. package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
  123. package/skills/state-management-expert/SKILL.md +5 -4
  124. package/skills/supabase-security-expert/SKILL.md +5 -4
  125. package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
  126. package/skills/svg-animation-motion-expert/SKILL.md +3 -2
  127. package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -155
  128. package/skills/tailwind-expert/SKILL.md +62 -5
  129. package/skills/tanstack-query-expert/SKILL.md +5 -4
  130. package/skills/tauri-expert/SKILL.md +5 -4
  131. package/skills/typescript-expert/SKILL.md +5 -4
  132. package/skills/ui-ux-pro-max/SKILL.md +7 -6
  133. package/skills/vector-db-rag-expert/SKILL.md +209 -208
  134. package/skills/vercel-ai-sdk-expert/SKILL.md +226 -181
  135. package/skills/voice-ai-realtime-agent/SKILL.md +243 -242
  136. package/skills/vue-frontend-expert/SKILL.md +5 -4
  137. package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
  138. package/skills/web-3d-graphics-expert/SKILL.md +314 -313
  139. package/skills/web-game-engine-expert/SKILL.md +330 -329
  140. package/skills/web-scraper/SKILL.md +158 -157
  141. package/skills/website-design-cloner/SKILL.md +5 -4
  142. package/skills/webxr-ar-vr-expert/SKILL.md +163 -162
  143. package/skills/wordpress-headless-expert/SKILL.md +145 -144
  144. package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
  145. package/skills/zero-to-prod-orchestrator/SKILL.md +281 -229
  146. package/skills/zero-trust-secret-vault/SKILL.md +3 -2
  147. package/BLUEPRINT.md +0 -319
  148. package/skills/bootstrap-to-modern/SKILL.md +0 -94
  149. package/skills/multiple-entry-points/SKILL.md +0 -91
  150. package/skills/secure-fuzz-testing/SKILL.md +0 -207
  151. package/skills/visual-qa-vision-agent/SKILL.md +0 -71
@@ -1,222 +1,260 @@
1
- ---
2
- name: browser-automation-expert
3
- description: "Expert guide for autonomous web agents (Browser-Use, Stagehand v0.4+), hardcore anti-bot evasion (Playwright Stealth, WebGL masking), and Vision LLM visual QA / Panduan ahli agen web otonom, penghindaran deteksi bot, dan QA visual berbasis Vision LLM."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Autonomous Web Agent & Automation Expert (2026 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Purpose & Overview
17
- Deploy ultra-powerful autonomous web agents that perceive, navigate, and execute complex workflows without human intervention. Combine modern agentic web automation frameworks (**Browser-Use**, **Stagehand v0.4+**) with hardcore anti-detection evasion techniques (Playwright Stealth, fingerprint spoofing, residential proxy rotation) and frontier Vision LLMs (**Gemini 3.8 Flash**, **Gemini 3.5 Pro**, **Claude 3.7 Sonnet Computer Use**, **OpenAI o3 / GPT-4.5**) for pixel-accurate visual QA.
18
-
19
- ### Core Capabilities
20
-
21
- 1. **Autonomous Execution Frameworks (2026 Standard)**
22
- - **Stagehand v0.4+**: Natural language DOM perception with semantic actions (`page.act()`, `page.extract()`, `page.observe()`). Avoid fragile CSS/XPath selectors.
23
- - **Browser-Use**: Autonomous multi-turn web browsing driven by LLMs with accessibility-tree parsing, visual bounding boxes, and goal-oriented execution loops.
24
-
25
- 2. **Hardcore Evasion & Anti-Bot Bypassing**
26
- - **Playwright Stealth**: Mask `navigator.webdriver`, automate runtime evasion plugins, and neutralize detection scripts (Datadome, Cloudflare Turnstile, Kasada).
27
- - **Fingerprint Masking**: Spoof Canvas, WebGL, AudioContext, hardware concurrency, and WebRTC leak vectors.
28
- - **Human Behavior Mimicry**: Inject natural Bezier-curve mouse movements, randomized typing cadences, and realistic scroll viewport dynamics.
29
-
30
- 3. **Visual QA & Layout Diffing via Vision LLMs**
31
- - Feed high-resolution viewport screenshots into **Gemini 3.8 Flash** or **Claude 3.7 Sonnet**.
32
- - Perform automatic visual regression audits, layout drift detection, contrast validation, and modal overlay checks.
33
-
34
- ---
35
-
36
- ### Production Implementation Recipes
37
-
38
- #### Recipe 1: Stagehand v0.4+ with Playwright Stealth (TypeScript)
39
- ```typescript
40
- import { Stagehand } from '@browserbase/stagehand';
41
- import { z } from 'zod';
42
-
43
- export async function runAutonomousShoppingAgent(targetProduct: string) {
44
- const stagehand = new Stagehand({
45
- env: 'LOCAL',
46
- modelName: 'claude-3-7-sonnet-20250219',
47
- browserbaseSessionCreateParams: {
48
- projectId: process.env.BROWSERBASE_PROJECT_ID,
49
- },
50
- });
51
-
52
- await stagehand.init();
53
- const page = stagehand.page;
54
-
55
- try {
56
- await page.goto('https://example-store.com');
57
-
58
- // Semantic action without hardcoded selectors
59
- await page.act({ action: `Search for "${targetProduct}" in the search input and press Enter` });
60
-
61
- // Extract structured data validated by Zod schema
62
- const productData = await page.extract({
63
- instruction: 'Extract the top 3 product names, prices, and availability status',
64
- schema: z.object({
65
- products: z.array(
66
- z.object({
67
- title: z.string(),
68
- price: z.string(),
69
- inStock: z.boolean(),
70
- })
71
- ),
72
- }),
73
- });
74
-
75
- console.log('Extracted Products:', productData.products);
76
- return productData.products;
77
- } finally {
78
- await stagehand.close();
79
- }
80
- }
81
- ```
82
-
83
- #### Recipe 2: Browser-Use with Anti-Bot Evasion (Python)
84
- ```python
85
- import asyncio
86
- from browser_use import Agent
87
- from langchain_google_genai import ChatGoogleGenerativeAI
88
- from playwright.async_api import async_playwright
89
-
90
- async def run_autonomous_browser_agent(goal: str):
91
- llm = ChatGoogleGenerativeAI(
92
- model="gemini-3.8-flash",
93
- temperature=0.1
94
- )
95
-
96
- # Initialize agent with human-like viewport and natural interactions
97
- agent = Agent(
98
- task=goal,
99
- llm=llm,
100
- use_vision=True,
101
- max_actions_per_step=3
102
- )
103
-
104
- result = await agent.run(max_steps=25)
105
- print(f"Goal Completed: {result.is_done()}")
106
- return result.final_result()
107
-
108
- if __name__ == "__main__":
109
- asyncio.run(run_autonomous_browser_agent("Search flights from CGK to HND for next month and return cheapest option"))
110
- ```
111
-
112
- ### Execution Protocol & Guardrails
113
- - **Pre-flight**: Always inject evasion headers and randomize screen dimensions before navigating.
114
- - **Fail-safe**: Set maximum navigation step thresholds (`max_steps <= 30`) to prevent infinite looping.
115
- - **Visual Validation**: Capture viewport screenshots at critical check-in steps and pass to Vision LLMs to verify state transitions.
116
-
117
- ## Orchestration & Integration
118
- - Integrates with: `web-scraper`, `autonomous-chaos-monkey`, `visual-qa-vision-agent`, `e2e-testing-expert`.
119
-
120
- ---
121
-
122
- <a name="bahasa-indonesia"></a>
123
- ## Bahasa Indonesia
124
-
125
- ### Tujuan & Gambaran Umum
126
- Terapkan agen web otonom super kuat yang dapat melihat, menavigasi, dan mengeksekusi alur kerja kompleks tanpa campur tangan manusia. Menggabungkan framework otomatisasi web agentic modern (**Browser-Use**, **Stagehand v0.4+**) dengan teknik penghindaran deteksi bot tingkat tinggi (Playwright Stealth, manipulasi sidik jari perangkat, rotasi proxy residential) dan model Vision frontier (**Gemini 3.8 Flash**, **Gemini 3.5 Pro**, **Claude 3.7 Sonnet Computer Use**, **OpenAI o3 / GPT-4.5**) untuk QA visual tingkat piksel.
127
-
128
- ### Kemampuan Utama
129
-
130
- 1. **Framework Eksekusi Otonom (Standar 2026)**
131
- - **Stagehand v0.4+**: Persepsi DOM berbasis bahasa alami dengan aksi semantik (`page.act()`, `page.extract()`, `page.observe()`). Menghilangkan ketergantungan pada selektor CSS/XPath yang rapuh.
132
- - **Browser-Use**: Penelusuran web otonom multi-langkah yang dipandu oleh LLM dengan pemindaian pohon aksesibilitas (accessibility tree), bounding boxes visual, dan siklus eksekusi berorientasi tujuan.
133
-
134
- 2. **Penghindaran Deteksi & Anti-Bot Tingkat Tinggi**
135
- - **Playwright Stealth**: Menyamarkan `navigator.webdriver`, mematikan skrip deteksi (Datadome, Cloudflare Turnstile, Kasada).
136
- - **Masking Fingerprint**: Memalsukan sidik jari Canvas, WebGL, AudioContext, konkurensi perangkat keras, serta kebocoran WebRTC.
137
- - **Mimikri Perilaku Manusia**: Menginjeksi gerakan kursor kurva Bezier, jeda pengetikan organik, dan dinamika scroll realistis.
138
-
139
- 3. **QA Visual & Diffing via Vision LLM**
140
- - Teruskan screenshot viewport resolusi tinggi ke **Gemini 3.8 Flash** atau **Claude 3.7 Sonnet**.
141
- - Jalankan audit regresi visual otomatis, deteksi pergeseran layout, validasi kontras, dan verifikasi modal overlay.
142
-
143
- ---
144
-
145
- ### Resep Implementasi Produksi
146
-
147
- #### Resep 1: Stagehand v0.4+ dengan Playwright Stealth (TypeScript)
148
- ```typescript
149
- import { Stagehand } from '@browserbase/stagehand';
150
- import { z } from 'zod';
151
-
152
- export async function jalankanAgenBelanjaOtonom(produkSasaran: string) {
153
- const stagehand = new Stagehand({
154
- env: 'LOCAL',
155
- modelName: 'claude-3-7-sonnet-20250219',
156
- });
157
-
158
- await stagehand.init();
159
- const page = stagehand.page;
160
-
161
- try {
162
- await page.goto('https://toko-contoh.com');
163
-
164
- // Aksi semantik tanpa selektor yang kaku
165
- await page.act({ action: `Cari "${produkSasaran}" pada kolom pencarian dan tekan Enter` });
166
-
167
- // Ekstraksi data terstruktur dengan validasi skema Zod
168
- const hasilProduk = await page.extract({
169
- instruction: 'Ekstrak 3 nama produk teratas, harga, dan ketersediaan stok',
170
- schema: z.object({
171
- products: z.array(
172
- z.object({
173
- title: z.string(),
174
- price: z.string(),
175
- inStock: z.boolean(),
176
- })
177
- ),
178
- }),
179
- });
180
-
181
- console.log('Hasil Ekstraksi:', hasilProduk.products);
182
- return hasilProduk.products;
183
- } finally {
184
- await stagehand.close();
185
- }
186
- }
187
- ```
188
-
189
- #### Resep 2: Browser-Use dengan Anti-Bot Evasion (Python)
190
- ```python
191
- import asyncio
192
- from browser_use import Agent
193
- from langchain_google_genai import ChatGoogleGenerativeAI
194
-
195
- async def jalankan_agen_browser(tujuan: str):
196
- llm = ChatGoogleGenerativeAI(
197
- model="gemini-3.8-flash",
198
- temperature=0.1
199
- )
200
-
201
- agent = Agent(
202
- task=tujuan,
203
- llm=llm,
204
- use_vision=True,
205
- max_actions_per_step=3
206
- )
207
-
208
- result = await agent.run(max_steps=25)
209
- print(f"Status Selesai: {result.is_done()}")
210
- return result.final_result()
211
-
212
- if __name__ == "__main__":
213
- asyncio.run(jalankan_agen_browser("Cari tiket pesawat Jakarta ke Tokyo untuk bulan depan dan ambil opsi termurah"))
214
- ```
215
-
216
- ### Protokol Eksekusi & Batasan Keamanan
217
- - **Sebelum Eksekusi**: Selalu injeksikan header penyamaran dan acak dimensi viewport sebelum memuat halaman.
218
- - **Fail-safe**: Batasi jumlah langkah navigasi (`max_steps <= 30`) agar agen tidak terjebak dalam perulangan tak berujung.
219
- - **Validasi Visual**: Tangkap screenshot di titik-titik krusial dan kirimkan ke Vision LLM untuk memastikan status halaman valid.
220
-
221
- ## Integrasi Orkestrasi
222
- - Terintegrasi dengan: `web-scraper`, `autonomous-chaos-monkey`, `visual-qa-vision-agent`, `e2e-testing-expert`.
1
+ ---
2
+ name: browser-automation-expert
3
+ description: "Expert guide for autonomous web agents (Browser-Use, Stagehand v0.4+), hardcore anti-bot evasion (Playwright Stealth, WebGL masking), and Vision LLM visual QA / Panduan ahli agen web otonom, penghindaran deteksi bot, dan QA visual berbasis Vision LLM."
4
+ author: "Roedy Rustam"
5
+ version: "3.0.0"
6
+ ---
7
+
8
+ # Autonomous Web Agent & Automation Expert (2026 Edition)
9
+
10
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
11
+
12
+ ---
13
+
14
+ <a name="english"></a>
15
+ ## English
16
+
17
+ ### Purpose & Overview
18
+ Deploy ultra-powerful autonomous web agents that perceive, navigate, and execute complex workflows without human intervention. Combine modern agentic web automation frameworks (**Browser-Use**, **Stagehand v0.4+**) with hardcore anti-detection evasion techniques (Playwright Stealth, fingerprint spoofing, residential proxy rotation) and frontier Vision LLMs (**Gemini 3.8 Flash**, **Gemini 3.5 Pro**, **Claude 3.7 Sonnet Computer Use**, **OpenAI o3 / GPT-4.5**) for pixel-accurate visual QA.
19
+
20
+ ### Core Capabilities
21
+
22
+ 1. **Autonomous Execution Frameworks (2026 Standard)**
23
+ - **Stagehand v0.4+**: Natural language DOM perception with semantic actions (`page.act()`, `page.extract()`, `page.observe()`). Avoid fragile CSS/XPath selectors.
24
+ - **Browser-Use**: Autonomous multi-turn web browsing driven by LLMs with accessibility-tree parsing, visual bounding boxes, and goal-oriented execution loops.
25
+
26
+ 2. **Hardcore Evasion & Anti-Bot Bypassing**
27
+ - **Playwright Stealth**: Mask `navigator.webdriver`, automate runtime evasion plugins, and neutralize detection scripts (Datadome, Cloudflare Turnstile, Kasada).
28
+ - **Fingerprint Masking**: Spoof Canvas, WebGL, AudioContext, hardware concurrency, and WebRTC leak vectors.
29
+ - **Human Behavior Mimicry**: Inject natural Bezier-curve mouse movements, randomized typing cadences, and realistic scroll viewport dynamics.
30
+
31
+ 3. **Visual QA & Layout Diffing via Vision LLMs**
32
+ - Feed high-resolution viewport screenshots into **Gemini 3.8 Flash** or **Claude 3.7 Sonnet**.
33
+ - Perform automatic visual regression audits, layout drift detection, contrast validation, and modal overlay checks.
34
+
35
+ ---
36
+
37
+ ### Production Implementation Recipes
38
+
39
+ #### Recipe 1: Stagehand v0.4+ with Playwright Stealth (TypeScript)
40
+ ```typescript
41
+ import { Stagehand } from '@browserbase/stagehand';
42
+ import { z } from 'zod';
43
+
44
+ export async function runAutonomousShoppingAgent(targetProduct: string) {
45
+ const stagehand = new Stagehand({
46
+ env: 'LOCAL',
47
+ modelName: 'claude-3-7-sonnet-20250219',
48
+ browserbaseSessionCreateParams: {
49
+ projectId: process.env.BROWSERBASE_PROJECT_ID,
50
+ },
51
+ });
52
+
53
+ await stagehand.init();
54
+ const page = stagehand.page;
55
+
56
+ try {
57
+ await page.goto('https://example-store.com');
58
+
59
+ // Semantic action without hardcoded selectors
60
+ await page.act({ action: `Search for "${targetProduct}" in the search input and press Enter` });
61
+
62
+ // Extract structured data validated by Zod schema
63
+ const productData = await page.extract({
64
+ instruction: 'Extract the top 3 product names, prices, and availability status',
65
+ schema: z.object({
66
+ products: z.array(
67
+ z.object({
68
+ title: z.string(),
69
+ price: z.string(),
70
+ inStock: z.boolean(),
71
+ })
72
+ ),
73
+ }),
74
+ });
75
+
76
+ console.log('Extracted Products:', productData.products);
77
+ return productData.products;
78
+ } finally {
79
+ await stagehand.close();
80
+ }
81
+ }
82
+ ```
83
+
84
+ #### Recipe 2: Browser-Use with Anti-Bot Evasion (Python)
85
+ ```python
86
+ import asyncio
87
+ from browser_use import Agent
88
+ from langchain_google_genai import ChatGoogleGenerativeAI
89
+ from playwright.async_api import async_playwright
90
+
91
+ async def run_autonomous_browser_agent(goal: str):
92
+ llm = ChatGoogleGenerativeAI(
93
+ model="gemini-3.8-flash",
94
+ temperature=0.1
95
+ )
96
+
97
+ # Initialize agent with human-like viewport and natural interactions
98
+ agent = Agent(
99
+ task=goal,
100
+ llm=llm,
101
+ use_vision=True,
102
+ max_actions_per_step=3
103
+ )
104
+
105
+ result = await agent.run(max_steps=25)
106
+ print(f"Goal Completed: {result.is_done()}")
107
+ return result.final_result()
108
+
109
+ if __name__ == "__main__":
110
+ asyncio.run(run_autonomous_browser_agent("Search flights from CGK to HND for next month and return cheapest option"))
111
+ ```
112
+
113
+ ### Execution Protocol & Guardrails
114
+ - **Pre-flight**: Always inject evasion headers and randomize screen dimensions before navigating.
115
+ - **Fail-safe**: Set maximum navigation step thresholds (`max_steps <= 30`) to prevent infinite looping.
116
+ - **Visual Validation**: Capture viewport screenshots at critical check-in steps and pass to Vision LLMs to verify state transitions.
117
+
118
+ ### Visual Regression & Vision QA
119
+
120
+ #### Description
121
+ This skill transforms the agent from a blind code generator into a visual designer. Instead of hoping the CSS looks correct, the agent is instructed to write a script that takes a screenshot of the newly created component, analyzes the screenshot using its own Vision AI capabilities, and iteratively tweaks the CSS until it matches the design intent perfectly.
122
+
123
+ #### Trigger Conditions
124
+ Activate this skill when the user says:
125
+ - "Fix the CSS, the button is misaligned."
126
+ - "Make it look exactly like this mockup."
127
+ - "Ensure the UI is responsive on mobile screens."
128
+
129
+ #### The Visual QA Loop
130
+ 1. **Code:** The agent writes the HTML/CSS/React component.
131
+ 2. **Serve:** The agent starts a local dev server in the background.
132
+ 3. **Capture:** The agent runs a quick Playwright/Puppeteer script to take screenshots at various viewports (Mobile, Tablet, Desktop).
133
+ 4. **Analyze:** The agent receives the screenshot (via the `view_file` tool on the image) and analyzes the visual hierarchy, contrast, and alignment.
134
+ 5. **Correct:** The agent fixes margin, padding, or flexbox issues based on what it *saw*, not just what the code says.
135
+
136
+ #### Agent Constraints (Mandatory Visual Verification)
137
+ - **NO BLIND CSS GUESSING**: You are strictly prohibited from finalizing a frontend component without verifying it visually first. You MUST use a `browser_subagent` to capture a screenshot of your work.
138
+ - **Pixel-Perfect Validation**: Compare the screenshot against the initial design spec or generic UI/UX best practices. Iterate on the CSS until the visual output is flawless.
139
+ - Always check contrast ratios visually if design tokens are overridden.
140
+
141
+ ## Orchestration & Integration
142
+ - Integrates with: `web-scraper`, `autonomous-chaos-monkey`, `e2e-testing-expert`, `brainstorming`, `zero-to-prod-orchestrator`, `session-memory-manager`, `tailwind-expert`, `design-system-architect`, `senior-frontend`.
143
+
144
+ ---
145
+
146
+ <a name="bahasa-indonesia"></a>
147
+ ## Bahasa Indonesia
148
+
149
+ ### Tujuan & Gambaran Umum
150
+ Terapkan agen web otonom super kuat yang dapat melihat, menavigasi, dan mengeksekusi alur kerja kompleks tanpa campur tangan manusia. Menggabungkan framework otomatisasi web agentic modern (**Browser-Use**, **Stagehand v0.4+**) dengan teknik penghindaran deteksi bot tingkat tinggi (Playwright Stealth, manipulasi sidik jari perangkat, rotasi proxy residential) dan model Vision frontier (**Gemini 3.8 Flash**, **Gemini 3.5 Pro**, **Claude 3.7 Sonnet Computer Use**, **OpenAI o3 / GPT-4.5**) untuk QA visual tingkat piksel.
151
+
152
+ ### Kemampuan Utama
153
+
154
+ 1. **Framework Eksekusi Otonom (Standar 2026)**
155
+ - **Stagehand v0.4+**: Persepsi DOM berbasis bahasa alami dengan aksi semantik (`page.act()`, `page.extract()`, `page.observe()`). Menghilangkan ketergantungan pada selektor CSS/XPath yang rapuh.
156
+ - **Browser-Use**: Penelusuran web otonom multi-langkah yang dipandu oleh LLM dengan pemindaian pohon aksesibilitas (accessibility tree), bounding boxes visual, dan siklus eksekusi berorientasi tujuan.
157
+
158
+ 2. **Penghindaran Deteksi & Anti-Bot Tingkat Tinggi**
159
+ - **Playwright Stealth**: Menyamarkan `navigator.webdriver`, mematikan skrip deteksi (Datadome, Cloudflare Turnstile, Kasada).
160
+ - **Masking Fingerprint**: Memalsukan sidik jari Canvas, WebGL, AudioContext, konkurensi perangkat keras, serta kebocoran WebRTC.
161
+ - **Mimikri Perilaku Manusia**: Menginjeksi gerakan kursor kurva Bezier, jeda pengetikan organik, dan dinamika scroll realistis.
162
+
163
+ 3. **QA Visual & Diffing via Vision LLM**
164
+ - Teruskan screenshot viewport resolusi tinggi ke **Gemini 3.8 Flash** atau **Claude 3.7 Sonnet**.
165
+ - Jalankan audit regresi visual otomatis, deteksi pergeseran layout, validasi kontras, dan verifikasi modal overlay.
166
+
167
+ ---
168
+
169
+ ### Resep Implementasi Produksi
170
+
171
+ #### Resep 1: Stagehand v0.4+ dengan Playwright Stealth (TypeScript)
172
+ ```typescript
173
+ import { Stagehand } from '@browserbase/stagehand';
174
+ import { z } from 'zod';
175
+
176
+ export async function jalankanAgenBelanjaOtonom(produkSasaran: string) {
177
+ const stagehand = new Stagehand({
178
+ env: 'LOCAL',
179
+ modelName: 'claude-3-7-sonnet-20250219',
180
+ });
181
+
182
+ await stagehand.init();
183
+ const page = stagehand.page;
184
+
185
+ try {
186
+ await page.goto('https://toko-contoh.com');
187
+
188
+ // Aksi semantik tanpa selektor yang kaku
189
+ await page.act({ action: `Cari "${produkSasaran}" pada kolom pencarian dan tekan Enter` });
190
+
191
+ // Ekstraksi data terstruktur dengan validasi skema Zod
192
+ const hasilProduk = await page.extract({
193
+ instruction: 'Ekstrak 3 nama produk teratas, harga, dan ketersediaan stok',
194
+ schema: z.object({
195
+ products: z.array(
196
+ z.object({
197
+ title: z.string(),
198
+ price: z.string(),
199
+ inStock: z.boolean(),
200
+ })
201
+ ),
202
+ }),
203
+ });
204
+
205
+ console.log('Hasil Ekstraksi:', hasilProduk.products);
206
+ return hasilProduk.products;
207
+ } finally {
208
+ await stagehand.close();
209
+ }
210
+ }
211
+ ```
212
+
213
+ #### Resep 2: Browser-Use dengan Anti-Bot Evasion (Python)
214
+ ```python
215
+ import asyncio
216
+ from browser_use import Agent
217
+ from langchain_google_genai import ChatGoogleGenerativeAI
218
+
219
+ async def jalankan_agen_browser(tujuan: str):
220
+ llm = ChatGoogleGenerativeAI(
221
+ model="gemini-3.8-flash",
222
+ temperature=0.1
223
+ )
224
+
225
+ agent = Agent(
226
+ task=tujuan,
227
+ llm=llm,
228
+ use_vision=True,
229
+ max_actions_per_step=3
230
+ )
231
+
232
+ result = await agent.run(max_steps=25)
233
+ print(f"Status Selesai: {result.is_done()}")
234
+ return result.final_result()
235
+
236
+ if __name__ == "__main__":
237
+ asyncio.run(jalankan_agen_browser("Cari tiket pesawat Jakarta ke Tokyo untuk bulan depan dan ambil opsi termurah"))
238
+ ```
239
+
240
+ ### Protokol Eksekusi & Batasan Keamanan
241
+ - **Sebelum Eksekusi**: Selalu injeksikan header penyamaran dan acak dimensi viewport sebelum memuat halaman.
242
+ - **Fail-safe**: Batasi jumlah langkah navigasi (`max_steps <= 30`) agar agen tidak terjebak dalam perulangan tak berujung.
243
+ - **Validasi Visual**: Tangkap screenshot di titik-titik krusial dan kirimkan ke Vision LLM untuk memastikan status halaman valid.
244
+
245
+ ### Regresi Visual & QA Visi
246
+
247
+ #### Deskripsi
248
+ Skill ini memanfaatkan kemampuan *Vision* (penglihatan) bawaan AI untuk melakukan *Quality Assurance* (QA) visual. Agen tidak lagi sekadar menebak CSS secara buta, melainkan mengambil *screenshot* dari halaman yang dibuatnya, melihat hasilnya, dan mengkoreksi *margin/padding* secara mandiri.
249
+
250
+ #### Kondisi Pemicu
251
+ - Saat pengguna meminta untuk merapikan UI yang berantakan.
252
+ - Saat melakukan *cloning* desain dari gambar *mockup*.
253
+
254
+ #### Panduan Singkat
255
+ - **Gunakan Mata Anda (Wajib Verifikasi Visual):** Anda dilarang keras memfinalisasi atau menyelesaikan tugas frontend tanpa melihat hasilnya terlebih dahulu. Anda WAJIB mengambil *screenshot*, melihatnya menggunakan tool `view_file`, dan memverifikasi layout secara visual (*pixel-perfect*).
256
+ - **Siklus Visual:** Tulis Kode ➔ Ambil Screenshot ➔ Analisis dengan *Vision* ➔ Perbaiki Tailwind/CSS ➔ Selesai.
257
+ - **Jangan Menebak:** Terkadang `justify-center` tidak berfungsi karena ada pembungkus (*wrapper*) absolut. Jangan menebak-nebak di dalam kode; lihat hasil akhirnya secara visual!
258
+
259
+ ## Integrasi Orkestrasi
260
+ - Terintegrasi dengan: `web-scraper`, `autonomous-chaos-monkey`, `e2e-testing-expert`, `brainstorming`, `zero-to-prod-orchestrator`, `session-memory-manager`, `tailwind-expert`, `design-system-architect`, `senior-frontend`.
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: bun-runtime-expert
3
3
  description: "Expert guide for Bun JavaScript/TypeScript runtime. Use when building, testing, or deploying applications with Bun / Panduan ahli untuk runtime JavaScript/TypeScript Bun. Digunakan saat membuat, menguji, atau meluncurkan aplikasi dengan Bun."
4
- author: "Roedy Rustam"
4
+ author: "Roedy Rustam"
5
+ version: "3.0.0"
5
6
  ---
6
7
 
7
8
  # Bun Runtime Expert
@@ -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 `project-context-mapper` to ensure cohesive execution.
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
  Expert-level guidance for building high-performance applications with the Bun JavaScript/TypeScript runtime (v1.1+). Covers Bun's built-in HTTP server, database clients, bundler, test runner, package manager, and Node.js migration strategies.
20
21
 
@@ -115,7 +116,7 @@ const users = await sql`SELECT * FROM users WHERE active = ${true}`;
115
116
  ## Bahasa Indonesia
116
117
 
117
118
  ### Integrasi Orkestrasi
118
- Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
119
+ Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `session-memory-manager` untuk memastikan eksekusi yang kohesif.
119
120
 
120
121
  Panduan tingkat ahli untuk membangun aplikasi berkinerja tinggi menggunakan runtime JavaScript/TypeScript Bun (v1.1+). Mencakup server HTTP bawaan, klien database, bundler, test runner, package manager, dan strategi migrasi dari Node.js.
121
122
 
@@ -214,4 +215,4 @@ const users = await sql`SELECT * FROM users WHERE active = ${true}`;
214
215
 
215
216
  ### Limitations / Batasan
216
217
  - Use this skill only when the task involves the Bun runtime specifically.
217
- - Bun's Node.js compatibility is extensive but not 100%. Always verify critical `node:*` API usage.
218
+ - Bun's Node.js compatibility is extensive but not 100%. Always verify critical `node:*` API usage.