vibes-plug 2.5.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/vibes-plug-core.md +32 -0
- package/.cursor/rules/vibes-plug-core.mdc +51 -0
- package/.cursorrules +42 -0
- package/AGENTS.md +37 -7
- package/BLUEPRINT.md +309 -217
- package/CHANGELOG.md +133 -1
- package/CLAUDE.md +70 -0
- package/LICENSE +1 -1
- package/README.md +641 -415
- package/index.js +19 -0
- package/package.json +44 -8
- package/plugin.json +24 -7
- package/scripts/generate_swarm_gif.py +295 -0
- package/scripts/install.js +201 -0
- package/skills/accessibility-testing-expert/SKILL.md +116 -0
- package/skills/ai-cost-token-optimizer/SKILL.md +82 -52
- package/skills/ai-evals-benchmark-expert/SKILL.md +188 -0
- package/skills/ai-llm-integration-expert/SKILL.md +185 -178
- package/skills/ai-media-generation-expert/SKILL.md +172 -0
- package/skills/ai-prompt-engineering-expert/SKILL.md +84 -0
- package/skills/angular-expert/SKILL.md +148 -0
- package/skills/api-design-expert/SKILL.md +6 -3
- package/skills/api-gateway-proxy-expert/SKILL.md +81 -0
- package/skills/app-analyzer-optimizer/SKILL.md +6 -3
- package/skills/apple-ecosystem-expert/SKILL.md +144 -141
- package/skills/{asisten_ramah → asisten-ramah}/SKILL.md +7 -1
- package/skills/astro-framework-expert/SKILL.md +200 -0
- package/skills/async-queue-temporal-expert/SKILL.md +210 -24
- package/skills/authentication-identity-expert/SKILL.md +278 -275
- package/skills/auto-doc-updater/SKILL.md +7 -1
- package/skills/autonomous-chaos-monkey/SKILL.md +63 -63
- package/skills/autonomous-red-teamer/SKILL.md +172 -28
- package/skills/autonomous-tdd-debugger/SKILL.md +70 -64
- package/skills/background-jobs-queue-expert/SKILL.md +235 -0
- package/skills/biome-linter-formatter-expert/SKILL.md +89 -0
- package/skills/blockchain-web3-expert/SKILL.md +115 -0
- package/skills/bootstrap-to-modern/SKILL.md +9 -6
- package/skills/brainstorming/SKILL.md +58 -50
- package/skills/browser-automation-expert/SKILL.md +197 -21
- package/skills/bun-runtime-expert/SKILL.md +7 -1
- package/skills/chatbot-messaging-expert/SKILL.md +114 -0
- package/skills/ci-cd-devops-architect/SKILL.md +45 -36
- package/skills/cloud-hosting-expert/SKILL.md +7 -1
- package/skills/coderabbit/SKILL.md +7 -1
- package/skills/compliance-gdpr-privacy-expert/SKILL.md +85 -0
- package/skills/cron-scheduler-expert/SKILL.md +303 -297
- package/skills/data-pipeline-etl-expert/SKILL.md +84 -0
- package/skills/data-telemetry-expert/SKILL.md +7 -1
- package/skills/data-visualization-expert/SKILL.md +154 -0
- package/skills/database-migration-versioning-expert/SKILL.md +90 -0
- package/skills/database-orm-expert/SKILL.md +13 -3
- package/skills/dependency-upgrade-migrator/SKILL.md +300 -294
- package/skills/design-system-architect/SKILL.md +278 -259
- package/skills/desktop-electron-expert/SKILL.md +128 -0
- package/skills/documentation-site-expert/SKILL.md +59 -0
- package/skills/doku-mcp-server/SKILL.md +7 -1
- package/skills/doku-payment-gateway/SKILL.md +7 -1
- package/skills/domain-driven-design-expert/SKILL.md +82 -0
- package/skills/e2e-testing-expert/SKILL.md +7 -1
- package/skills/ecommerce-expert/SKILL.md +87 -0
- package/skills/edge-serverless-db-expert/SKILL.md +98 -42
- package/skills/email-notification-expert/SKILL.md +367 -361
- package/skills/error-resilience-expert/SKILL.md +485 -479
- package/skills/event-driven-architect/SKILL.md +7 -1
- package/skills/feature-flag-analytics-expert/SKILL.md +65 -45
- package/skills/file-upload-media-expert/SKILL.md +436 -430
- package/skills/firebase-security-expert/SKILL.md +7 -1
- package/skills/form-validation-expert/SKILL.md +406 -400
- package/skills/fullstack-expert/SKILL.md +60 -1
- package/skills/gemini-agent-booster/SKILL.md +173 -135
- package/skills/geospatial-maps-expert/SKILL.md +80 -0
- package/skills/global-a11y-i18n-expert/SKILL.md +7 -1
- package/skills/glsl-shader-expert/SKILL.md +106 -100
- package/skills/go-programming-expert/SKILL.md +21 -15
- package/skills/graph-rag-knowledge-expert/SKILL.md +159 -0
- package/skills/graphql-apollo-expert/SKILL.md +113 -107
- package/skills/headless-cms-expert/SKILL.md +181 -0
- package/skills/hig/SKILL.md +7 -1
- package/skills/js-backend-expert/SKILL.md +218 -216
- package/skills/legacy-code-translator/SKILL.md +70 -64
- package/skills/local-slm-edge-ai-expert/SKILL.md +167 -0
- package/skills/logging-error-tracking-expert/SKILL.md +343 -337
- package/skills/mcp-client-orchestrator/SKILL.md +75 -69
- package/skills/mcp-server-architect/SKILL.md +294 -194
- package/skills/micro-frontend-architect/SKILL.md +111 -105
- package/skills/mobile-expo-expert/SKILL.md +8 -2
- package/skills/mobile-push-notification-expert/SKILL.md +70 -50
- package/skills/modern-css-native-expert/SKILL.md +189 -0
- package/skills/monday-design-aesthetic/SKILL.md +7 -1
- package/skills/monorepo-architect/SKILL.md +7 -1
- package/skills/mpa-orchestrator/SKILL.md +20 -1
- package/skills/multi-agent-orchestration/SKILL.md +254 -234
- package/skills/multiple-entry-points/SKILL.md +37 -1
- package/skills/mvc-expert/SKILL.md +7 -1
- package/skills/n8n-automation-expert/SKILL.md +89 -0
- package/skills/nextjs-app-router-expert/SKILL.md +148 -0
- package/skills/openapi-swagger-codegen-expert/SKILL.md +67 -0
- package/skills/payment-gateway-expert/SKILL.md +85 -1
- package/skills/pdf-document-generation-expert/SKILL.md +91 -0
- package/skills/performance-web-vitals/SKILL.md +7 -1
- package/skills/post-quantum-crypto-migrator/SKILL.md +57 -57
- package/skills/prd-architect/SKILL.md +7 -1
- package/skills/proactive-background-watcher/SKILL.md +67 -61
- package/skills/production-ready-hardener/SKILL.md +461 -455
- package/skills/project-context-mapper/SKILL.md +84 -78
- package/skills/pwa-offline-first-expert/SKILL.md +185 -0
- package/skills/python-programming-expert/SKILL.md +407 -401
- package/skills/rate-limit-abuse-prevention/SKILL.md +376 -370
- package/skills/realtime-collaboration-expert/SKILL.md +55 -1
- package/skills/rich-text-editor-expert/SKILL.md +177 -0
- package/skills/rust-programming-expert/SKILL.md +7 -1
- package/skills/saas-billing/SKILL.md +7 -1
- package/skills/saas-multi-tenant/SKILL.md +7 -1
- package/skills/saas-mvp-launcher/SKILL.md +20 -1
- package/skills/saas-transformer/SKILL.md +499 -488
- package/skills/scalability-clean-code/SKILL.md +7 -1
- package/skills/search-engine-expert/SKILL.md +89 -0
- package/skills/secure-fuzz-testing/SKILL.md +7 -1
- package/skills/self-evolving-memory-graph/SKILL.md +90 -74
- package/skills/self-healing-cloud-orchestrator/SKILL.md +57 -57
- package/skills/senior-frontend/SKILL.md +141 -161
- package/skills/seo/SKILL.md +41 -17
- package/skills/session-context-loader/SKILL.md +82 -76
- package/skills/session-handoff-resume/SKILL.md +7 -1
- package/skills/{skill_baru → skill-baru}/SKILL.md +8 -2
- package/skills/solidjs-expert/SKILL.md +80 -0
- package/skills/spa-orchestrator/SKILL.md +20 -1
- package/skills/sse-websocket-streaming-expert/SKILL.md +93 -0
- package/skills/state-management-expert/SKILL.md +7 -1
- package/skills/supabase-migration/SKILL.md +47 -1
- package/skills/supabase-security-expert/SKILL.md +7 -1
- package/skills/svelte-sveltekit-expert/SKILL.md +91 -0
- package/skills/svg-animation-motion-expert/SKILL.md +115 -0
- package/skills/tailwind-expert/SKILL.md +88 -136
- package/skills/tanstack-query-expert/SKILL.md +7 -1
- package/skills/tauri-expert/SKILL.md +7 -1
- package/skills/token-saver/SKILL.md +1 -1
- package/skills/typescript-expert/SKILL.md +12 -6
- package/skills/ui-components-expert/SKILL.md +165 -279
- package/skills/ui-ux-pro-max/SKILL.md +23 -3
- package/skills/vector-db-rag-expert/SKILL.md +175 -19
- package/skills/vibe-code-gardener/SKILL.md +1 -1
- package/skills/visual-qa-vision-agent/SKILL.md +70 -64
- package/skills/voice-ai-realtime-agent/SKILL.md +202 -0
- package/skills/vue-frontend-expert/SKILL.md +131 -125
- package/skills/wasm-edge-computing-expert/SKILL.md +97 -0
- package/skills/web-3d-graphics-expert/SKILL.md +136 -130
- package/skills/web-game-engine-expert/SKILL.md +101 -95
- package/skills/web-scraper/SKILL.md +157 -207
- package/skills/website-design-cloner/SKILL.md +179 -173
- package/skills/webxr-ar-vr-expert/SKILL.md +122 -116
- package/skills/wordpress-headless-expert/SKILL.md +144 -0
- package/skills/zero-to-prod-orchestrator/SKILL.md +52 -27
- package/skills/zero-trust-secret-vault/SKILL.md +87 -39
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/workflows/publish.yml +0 -20
- package/CONTRIBUTING.md +0 -199
- package/SECURITY.md +0 -21
- package/banner.png +0 -0
- package/skills/autonomous-swarm-director/SKILL.md +0 -69
- package/skills/hyper-context-synthesizer/SKILL.md +0 -55
- package/skills/llm-cost-arbitrage-router/SKILL.md +0 -59
- package/skills/senior-fullstack/SKILL.md +0 -167
- package/skills/senior-fullstack/references/architecture_patterns.md +0 -160
- package/skills/senior-fullstack/references/development_workflows.md +0 -222
- package/skills/senior-fullstack/references/tech_stack_guide.md +0 -190
- package/skills/senior-fullstack/scripts/code_quality_analyzer.py +0 -114
- package/skills/senior-fullstack/scripts/fullstack_scaffolder.py +0 -114
- package/skills/senior-fullstack/scripts/project_scaffolder.py +0 -114
- package/skills/seo-aeo-landing-page-writer/SKILL.md +0 -97
- package/skills/seo-geo/SKILL.md +0 -188
- package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-310.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-310.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-312.pyc +0 -0
- package/skills/ui_ux_expert/SKILL.md +0 -125
- package/vibes-swarm-demo.gif +0 -0
|
@@ -1,101 +1,107 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: glsl-shader-expert
|
|
3
|
-
description: "Expert guide for writing custom GLSL shaders (Vertex/Fragment) for WebGL using Three.js and Babylon.js. Covers shader materials, post-processing, noise, and performance optimization."
|
|
1
|
+
---
|
|
2
|
+
name: glsl-shader-expert
|
|
3
|
+
description: "Expert guide for writing custom GLSL shaders (Vertex/Fragment) for WebGL using Three.js and Babylon.js. Covers shader materials, post-processing, noise, and performance optimization."
|
|
4
4
|
author: "Roedy Rustam"
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# GLSL Shader Expert (WebGL 3D Graphics)
|
|
8
|
-
|
|
9
|
-
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<a name="english"></a>
|
|
14
|
-
## English
|
|
15
|
-
|
|
16
|
-
###
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
###
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- `
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
###
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# GLSL Shader Expert (WebGL 3D Graphics)
|
|
8
|
+
|
|
9
|
+
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<a name="english"></a>
|
|
14
|
+
## English
|
|
15
|
+
|
|
16
|
+
### Orchestration & Integration
|
|
17
|
+
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `project-context-mapper` to ensure cohesive execution.
|
|
18
|
+
|
|
19
|
+
### Description
|
|
20
|
+
Production-grade guidance for writing and integrating custom GLSL (OpenGL Shading Language) shaders into web applications using **Three.js** (`ShaderMaterial` / `RawShaderMaterial`) or **Babylon.js** (`ShaderMaterial`). Focuses on creating advanced visual effects, custom lighting models, procedural textures (noise), and post-processing passes.
|
|
21
|
+
|
|
22
|
+
### Trigger Conditions
|
|
23
|
+
Activate this skill when the user is:
|
|
24
|
+
- Asking to create custom materials that standard PBR materials cannot achieve.
|
|
25
|
+
- Writing Vertex or Fragment shaders in GLSL.
|
|
26
|
+
- Implementing procedural generation (e.g., Perlin noise, Simplex noise) on the GPU.
|
|
27
|
+
- Creating post-processing effects or screen-space shaders.
|
|
28
|
+
- Optimizing GPU performance by moving CPU calculations to vertex shaders.
|
|
29
|
+
|
|
30
|
+
### Core Concepts
|
|
31
|
+
|
|
32
|
+
#### 1. The Graphics Pipeline
|
|
33
|
+
Understand the flow:
|
|
34
|
+
1. **Vertex Shader:** Runs for every vertex. Used to manipulate geometry (position) and pass data (varyings) to the fragment shader. Must set `gl_Position`.
|
|
35
|
+
2. **Fragment Shader:** Runs for every pixel (fragment). Used to determine color. Must set `gl_FragColor`.
|
|
36
|
+
|
|
37
|
+
#### 2. Three.js `ShaderMaterial` Example
|
|
38
|
+
```javascript
|
|
39
|
+
import * as THREE from 'three';
|
|
40
|
+
|
|
41
|
+
const vertexShader = `
|
|
42
|
+
varying vec2 vUv;
|
|
43
|
+
void main() {
|
|
44
|
+
vUv = uv;
|
|
45
|
+
// Standard projection
|
|
46
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
const fragmentShader = `
|
|
51
|
+
uniform float uTime;
|
|
52
|
+
varying vec2 vUv;
|
|
53
|
+
void main() {
|
|
54
|
+
// Simple animated color based on UV coordinates and time
|
|
55
|
+
vec3 color = vec3(vUv.x, vUv.y, sin(uTime) * 0.5 + 0.5);
|
|
56
|
+
gl_FragColor = vec4(color, 1.0);
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
const material = new THREE.ShaderMaterial({
|
|
61
|
+
vertexShader,
|
|
62
|
+
fragmentShader,
|
|
63
|
+
uniforms: {
|
|
64
|
+
uTime: { value: 0 }
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
```
|
|
68
|
+
*Note: In the render loop, you must update `material.uniforms.uTime.value += delta;`*
|
|
69
|
+
|
|
70
|
+
#### 3. Best Practices for Shaders
|
|
71
|
+
- **Avoid Branching:** GPU threads run in lockstep (warps/wavefronts). `if/else` statements can cause significant performance drops. Prefer mathematical functions like `step()`, `smoothstep()`, `mix()`, and `clamp()`.
|
|
72
|
+
- **Precision:** Explicitly declare float precision (`precision mediump float;` or `highp` if necessary). Use `mediump` for colors/UVs to save performance, particularly on mobile.
|
|
73
|
+
- **Use Uniforms Wisely:** Only pass data that changes per frame or per object as uniforms.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
### Integration with Other Skills (MANDATORY)
|
|
78
|
+
This skill works best when combined with:
|
|
79
|
+
- `web-3d-graphics-expert` — For setting up the core WebGL scene in Three.js/Babylon.js.
|
|
80
|
+
- `web-game-engine-expert` — For linking shader uniforms with physics data (e.g., impact ripples).
|
|
81
|
+
- `ui-ux-pro-max` — For ensuring shader visual effects match the modern Web design tokens.
|
|
82
|
+
|
|
83
|
+
### Referenced By Orchestrators (MANDATORY)
|
|
84
|
+
- `brainstorming` — Add to "3D & Graphics" or "UI/UX & Design Systems".
|
|
85
|
+
- `zero-to-prod-orchestrator` — Phase 5 (Frontend / WebGL Implementation).
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
<a name="bahasa-indonesia"></a>
|
|
90
|
+
## Bahasa Indonesia
|
|
91
|
+
|
|
92
|
+
### Integrasi Orkestrasi
|
|
93
|
+
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
|
|
94
|
+
|
|
95
|
+
### Deskripsi
|
|
96
|
+
Panduan ahli untuk menulis dan mengintegrasikan shader GLSL khusus ke dalam aplikasi web menggunakan **Three.js** atau **Babylon.js**. Mencakup pembuatan *Vertex Shader*, *Fragment Shader*, efek visual prosedural, dan optimasi GPU.
|
|
97
|
+
|
|
98
|
+
### Kondisi Pemicu
|
|
99
|
+
- Saat pengguna ingin membuat efek visual kustom (seperti air, hologram, distorsi) yang tidak bisa dilakukan oleh material standar.
|
|
100
|
+
- Menulis kode GLSL untuk *ShaderMaterial*.
|
|
101
|
+
- Mengoptimalkan performa grafis dengan memindahkan komputasi CPU ke GPU.
|
|
102
|
+
|
|
103
|
+
### Panduan Singkat
|
|
104
|
+
- **Vertex vs Fragment:** *Vertex shader* mengatur posisi dan memanipulasi geometri (`gl_Position`), sedangkan *Fragment shader* mengatur pewarnaan setiap pixel (`gl_FragColor`).
|
|
105
|
+
- **Hindari If/Else:** CPU sangat cepat dalam percabangan (`if/else`), tetapi GPU sangat lambat. Gunakan fungsi interpolasi matematika bawaan GLSL seperti `step()`, `smoothstep()`, dan `mix()`.
|
|
106
|
+
- **Gunakan Uniforms:** Gunakan `uniforms` untuk mengirim data dari JavaScript (seperti waktu, posisi mouse, atau tekstur) ke dalam shader. Update nilai uniform ini di dalam *render loop*.
|
|
107
|
+
- **Presisi (Precision):** Gunakan `precision mediump float;` secara default untuk menyeimbangkan performa dan kualitas visual, terutama untuk optimalisasi *mobile*.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: go-programming-expert
|
|
3
|
-
description: "Expert-level skill for Go programming (Go 1.
|
|
4
|
-
author: "Roedy Rustam"
|
|
3
|
+
description: "Expert-level skill for Go programming (Go 1.25+). Covers high-performance microservices, concurrency patterns, sqlc, net/http, Gin/Echo/Fiber, gRPC, and testing in English and Indonesian."
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Go Programming Expert (Go 1.
|
|
7
|
+
# Go Programming Expert (Go 1.25 Edition)
|
|
8
8
|
|
|
9
9
|
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
|
|
10
10
|
|
|
@@ -13,11 +13,14 @@ author: "Roedy Rustam"
|
|
|
13
13
|
<a name="english"></a>
|
|
14
14
|
## English
|
|
15
15
|
|
|
16
|
+
### Orchestration & Integration
|
|
17
|
+
Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `project-context-mapper` to ensure cohesive execution.
|
|
18
|
+
|
|
16
19
|
### Description
|
|
17
|
-
Expert-level Go development for building high-performance microservices, APIs, and CLI tools. Covers **Go 1.
|
|
20
|
+
Expert-level Go development for building high-performance microservices, APIs, and CLI tools. Covers **Go 1.25** features (range-over-func iterators, generic type aliases, weak pointers), structured logging with `slog`, `net/http` with the new ServeMux patterns, Gin/Echo/Fiber frameworks, sqlc for type-safe SQL, gRPC, and production testing patterns.
|
|
18
21
|
|
|
19
22
|
### Trigger Conditions
|
|
20
|
-
- Writing Go 1.
|
|
23
|
+
- Writing Go 1.24+ / 1.25+ microservices or APIs.
|
|
21
24
|
- Implementing concurrency patterns with goroutines, channels, and `sync` primitives.
|
|
22
25
|
- Using structured logging with `log/slog`.
|
|
23
26
|
- Building HTTP servers with `net/http` ServeMux (Go 1.22+) or Gin/Echo/Fiber.
|
|
@@ -25,9 +28,9 @@ Expert-level Go development for building high-performance microservices, APIs, a
|
|
|
25
28
|
- Implementing gRPC services with protobuf.
|
|
26
29
|
- Writing Go tests with the standard `testing` package + `testify`.
|
|
27
30
|
|
|
28
|
-
### Go 1.
|
|
31
|
+
### Go 1.25 — Key Features
|
|
29
32
|
|
|
30
|
-
#### Range-Over-Func (Go 1.22 → Stable in 1.24)
|
|
33
|
+
#### Range-Over-Func (Go 1.22 → Stable in 1.24/1.25)
|
|
31
34
|
Range over custom iterators — enables functional-style collection operations:
|
|
32
35
|
```go
|
|
33
36
|
// Define an iterator function
|
|
@@ -52,7 +55,7 @@ for n := range Fibonacci() {
|
|
|
52
55
|
}
|
|
53
56
|
```
|
|
54
57
|
|
|
55
|
-
#### Generic Type Aliases (Go 1.24)
|
|
58
|
+
#### Generic Type Aliases (Go 1.24/1.25)
|
|
56
59
|
```go
|
|
57
60
|
// Type alias with generic parameters
|
|
58
61
|
type Set[T comparable] = map[T]struct{}
|
|
@@ -62,7 +65,7 @@ type Result[T any] = struct{ Value T; Err error }
|
|
|
62
65
|
var s Set[string] = make(map[string]struct{})
|
|
63
66
|
```
|
|
64
67
|
|
|
65
|
-
#### Weak Pointers (Go 1.24)
|
|
68
|
+
#### Weak Pointers (Go 1.24/1.25)
|
|
66
69
|
```go
|
|
67
70
|
import "weak"
|
|
68
71
|
|
|
@@ -250,24 +253,27 @@ func TestGetUser(t *testing.T) {
|
|
|
250
253
|
<a name="bahasa-indonesia"></a>
|
|
251
254
|
## Bahasa Indonesia
|
|
252
255
|
|
|
256
|
+
### Integrasi Orkestrasi
|
|
257
|
+
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
|
|
258
|
+
|
|
253
259
|
### Deskripsi
|
|
254
|
-
Panduan Go tingkat ahli untuk membangun microservices, API, dan CLI tool berkinerja tinggi. Mencakup fitur **Go 1.
|
|
260
|
+
Panduan Go tingkat ahli untuk membangun microservices, API, dan CLI tool berkinerja tinggi. Mencakup fitur **Go 1.25** (range-over-func, generic type alias, weak pointer), structured logging dengan `slog`, ServeMux `net/http` dengan pola baru (Go 1.22+), framework Gin/Echo/Fiber, sqlc untuk SQL type-safe, gRPC, dan pola pengujian produksi.
|
|
255
261
|
|
|
256
262
|
### Kondisi Pemicu
|
|
257
|
-
- Menulis microservices atau API Go 1.
|
|
263
|
+
- Menulis microservices atau API Go 1.24+/1.25+.
|
|
258
264
|
- Mengimplementasikan pola konkurensi dengan goroutine, channel, dan primitif `sync`.
|
|
259
265
|
- Menggunakan structured logging dengan `log/slog`.
|
|
260
266
|
- Membangun HTTP server dengan ServeMux `net/http` (Go 1.22+) atau Gin/Echo/Fiber.
|
|
261
267
|
- Menulis SQL type-safe dengan **sqlc** atau GORM.
|
|
262
268
|
- Mengimplementasikan layanan gRPC dengan protobuf.
|
|
263
269
|
|
|
264
|
-
### Go 1.
|
|
270
|
+
### Go 1.25 — Fitur Utama
|
|
265
271
|
|
|
266
|
-
#### Range-Over-Func (Stabil di 1.24)
|
|
267
|
-
Go 1.24 menstabilkan range over iterator function — memungkinkan koleksi gaya fungsional yang idiomatis tanpa mengekspos slice internal.
|
|
272
|
+
#### Range-Over-Func (Stabil di 1.24/1.25)
|
|
273
|
+
Go 1.24/1.25 menstabilkan range over iterator function — memungkinkan koleksi gaya fungsional yang idiomatis tanpa mengekspos slice internal.
|
|
268
274
|
|
|
269
275
|
#### Generic Type Alias
|
|
270
|
-
Go 1.24 memungkinkan alias tipe dengan parameter generic, meningkatkan komposibilitas tipe.
|
|
276
|
+
Go 1.24/1.25 memungkinkan alias tipe dengan parameter generic, meningkatkan komposibilitas tipe.
|
|
271
277
|
|
|
272
278
|
#### Weak Pointer
|
|
273
279
|
`weak.Make()` membuat pointer lemah yang tidak mencegah GC mengumpulkan objek — berguna untuk cache.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: graph-rag-knowledge-expert
|
|
3
|
+
description: "Expert guide for Knowledge Graphs, GraphRAG, Microsoft GraphRAG, Neo4j Text2Cypher, multi-hop relational retrieval, and hybrid vector-graph search / Panduan ahli Knowledge Graph, GraphRAG, dan pencarian relasional multi-hop."
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# GraphRAG & Knowledge Graph Expert (2026 Edition)
|
|
8
|
+
|
|
9
|
+
Expert guide for implementing Knowledge Graph-augmented Retrieval (GraphRAG), solving the fatal weaknesses of vector search: multi-hop reasoning, relationship discovery, and global corpus understanding. Covers Microsoft GraphRAG, Neo4j Text2Cypher, FalkorDB, and hybrid Vector + Graph retrieval pipelines.
|
|
10
|
+
|
|
11
|
+
*Panduan ahli untuk implementasi Knowledge Graph dan GraphRAG untuk mengatasi kelemahan mendasar vector search murni dalam pemikiran multi-hop, deteksi relasi entitas tersembunyi, dan ringkasan global korpus.*
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. Why GraphRAG Over Pure Vector Search?
|
|
16
|
+
|
|
17
|
+
| Capability | Pure Vector Search (RAG) | GraphRAG (Graph + Vector) |
|
|
18
|
+
| :--- | :--- | :--- |
|
|
19
|
+
| **Direct Similarity ("What is X?")** | 🟢 Fast, accurate | 🟢 High accuracy |
|
|
20
|
+
| **Multi-Hop Traversal ("How does X affect Z via Y?")** | 🔴 Blind (returns fragmented chunks) | 🟢 Explores interconnected graph edges |
|
|
21
|
+
| **Global Corpus Query ("What are the main themes across all documents?")** | 🔴 Fails (limited to Top-K chunks) | 🟢 Hierarchical Community Summaries |
|
|
22
|
+
| **Hallucination Rate on Complex Queries** | 🔴 Moderate to High (context stitching) | 🟢 Grounded in explicit knowledge edges |
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Production Recipe: Text2Cypher Knowledge Graph Querying (TypeScript)
|
|
27
|
+
|
|
28
|
+
Using Neo4j with deterministic schema introspection, preventing arbitrary syntax hallucinations.
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// text2cypher.ts - Safe Neo4j Query Generation & Execution
|
|
32
|
+
import neo4j, { Driver } from 'neo4j-driver';
|
|
33
|
+
import { generateText } from 'ai';
|
|
34
|
+
import { openai } from '@ai-sdk/openai';
|
|
35
|
+
|
|
36
|
+
export class GraphRAGService {
|
|
37
|
+
private driver: Driver;
|
|
38
|
+
|
|
39
|
+
constructor(uri: string, user: string, pass: string) {
|
|
40
|
+
this.driver = neo4j.driver(uri, neo4j.auth.basic(user, pass));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 1. Fetch live Graph Schema to ground the LLM
|
|
44
|
+
private async getGraphSchema(): Promise<string> {
|
|
45
|
+
const session = this.driver.session();
|
|
46
|
+
try {
|
|
47
|
+
const result = await session.run(`
|
|
48
|
+
CALL apoc.meta.schema() YIELD value
|
|
49
|
+
RETURN value
|
|
50
|
+
`);
|
|
51
|
+
return JSON.stringify(result.records[0]?.get('value') || {});
|
|
52
|
+
} finally {
|
|
53
|
+
await session.close();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// 2. Synthesize strict read-only Cypher query
|
|
58
|
+
public async queryGraph(userQuestion: string): Promise<any[]> {
|
|
59
|
+
const schema = await this.getGraphSchema();
|
|
60
|
+
|
|
61
|
+
const { text: cypherQuery } = await generateText({
|
|
62
|
+
model: openai('gpt-4o-mini'),
|
|
63
|
+
system: `
|
|
64
|
+
You are an expert Neo4j Cypher generator.
|
|
65
|
+
Generate ONLY valid, read-only CYPHER queries based on this schema:
|
|
66
|
+
${schema}
|
|
67
|
+
|
|
68
|
+
Rules:
|
|
69
|
+
- Never generate CREATE, MERGE, DELETE, or SET statements.
|
|
70
|
+
- Always use parameterization where appropriate.
|
|
71
|
+
- Output ONLY the raw Cypher query, without markdown or backticks.
|
|
72
|
+
`,
|
|
73
|
+
prompt: `Translate this question into Cypher: ${userQuestion}`,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const sanitizedCypher = cypherQuery.trim().replace(/^```cypher|```$/g, '');
|
|
77
|
+
|
|
78
|
+
// 3. Execute with read-only transaction
|
|
79
|
+
const session = this.driver.session({ defaultAccessMode: neo4j.session.READ });
|
|
80
|
+
try {
|
|
81
|
+
const res = await session.run(sanitizedCypher);
|
|
82
|
+
return res.records.map((r) => r.toObject());
|
|
83
|
+
} finally {
|
|
84
|
+
await session.close();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public async close(): Promise<void> {
|
|
89
|
+
await this.driver.close();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 3. Production Recipe: Entity & Relation Extraction (Python)
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
# graph_extractor.py - Structured Entity & Relation Extraction
|
|
100
|
+
from typing import List
|
|
101
|
+
from pydantic import BaseModel, Field
|
|
102
|
+
import instructor
|
|
103
|
+
from openai import OpenAI
|
|
104
|
+
|
|
105
|
+
client = instructor.from_openai(OpenAI())
|
|
106
|
+
|
|
107
|
+
class Entity(BaseModel):
|
|
108
|
+
name: str = Field(description="Normalized entity name, uppercase")
|
|
109
|
+
type: str = Field(description="ORGANIZATION, PERSON, TECHNOLOGY, CONCEPT, LOCATION")
|
|
110
|
+
description: str = Field(description="Summary of entity role")
|
|
111
|
+
|
|
112
|
+
class Relationship(BaseModel):
|
|
113
|
+
source_entity: str
|
|
114
|
+
target_entity: str
|
|
115
|
+
relation_type: str = Field(description="USES, DEVELOPS, OWNS, LOCATED_IN, DEPENDS_ON")
|
|
116
|
+
weight: float = Field(default=1.0, ge=0.0, le=1.0)
|
|
117
|
+
description: str
|
|
118
|
+
|
|
119
|
+
class KnowledgeGraph(BaseModel):
|
|
120
|
+
entities: List[Entity]
|
|
121
|
+
relationships: List[Relationship]
|
|
122
|
+
|
|
123
|
+
def extract_knowledge_graph(document_text: str) -> KnowledgeGraph:
|
|
124
|
+
"""Extracts entities and relationships from raw text into structured schema."""
|
|
125
|
+
return client.chat.completions.create(
|
|
126
|
+
model="gpt-4o-mini",
|
|
127
|
+
response_model=KnowledgeGraph,
|
|
128
|
+
messages=[
|
|
129
|
+
{
|
|
130
|
+
"role": "system",
|
|
131
|
+
"content": (
|
|
132
|
+
"Extract all named entities and factual relationships between them. "
|
|
133
|
+
"Ensure entity names are canonicalized and relationships are directed."
|
|
134
|
+
),
|
|
135
|
+
},
|
|
136
|
+
{"role": "user", "content": document_text},
|
|
137
|
+
],
|
|
138
|
+
temperature=0.0,
|
|
139
|
+
)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 4. Microsoft GraphRAG: Hierarchical Communities
|
|
145
|
+
|
|
146
|
+
For high-level summaries ("Summarize all technical debts reported across the system"):
|
|
147
|
+
1. **Extraction**: Chunk documents ➔ Extract Entities & Relationships.
|
|
148
|
+
2. **Clustering**: Apply **Leiden Algorithm** to detect hierarchical communities (Level 0: Micro, Level 1: Sub-domain, Level 2: Macro domain).
|
|
149
|
+
3. **Summarization**: LLM generates pre-computed summaries for each community cluster.
|
|
150
|
+
4. **Global Search**: Query runs across pre-computed community summaries in parallel, eliminating the need to read millions of tokens at inference time.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Orchestration & Integration
|
|
155
|
+
|
|
156
|
+
- **`vector-db-rag-expert`**: For hybrid dense-vector similarity search combined with graph path discovery.
|
|
157
|
+
- **`database-orm-expert`**: For maintaining transactional relational mappings alongside graph stores.
|
|
158
|
+
- **`ai-llm-integration-expert`**: Connects reasoning models to multi-hop graph context.
|
|
159
|
+
- **`search-engine-expert`**: For keyword lexical indexing of graph node attributes.
|