codehava-agent-kit 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -29
- package/package.json +2 -2
- package/templates/.agent/.shared/ACTIVE-template.md +44 -0
- package/templates/.agent/.shared/HANDOFF-template.md +75 -0
- package/templates/.agent/.shared/MEMORY-schema.md +117 -0
- package/templates/.agent/.shared/STATE-template.md +59 -0
- package/templates/.agent/.shared/checklists/planning-quality.md +69 -0
- package/templates/.agent/.shared/types/api-backend/config.md +25 -0
- package/templates/.agent/.shared/types/api-backend/guide.md +41 -0
- package/templates/.agent/.shared/types/api-backend/skill-loadout.md +16 -0
- package/templates/.agent/.shared/types/application/config.md +27 -0
- package/templates/.agent/.shared/types/application/guide.md +51 -0
- package/templates/.agent/.shared/types/application/skill-loadout.md +39 -0
- package/templates/.agent/.shared/types/campaign/config.md +24 -0
- package/templates/.agent/.shared/types/campaign/guide.md +36 -0
- package/templates/.agent/.shared/types/campaign/skill-loadout.md +12 -0
- package/templates/.agent/.shared/types/utility/config.md +24 -0
- package/templates/.agent/.shared/types/utility/guide.md +31 -0
- package/templates/.agent/.shared/types/utility/skill-loadout.md +10 -0
- package/templates/.agent/.shared/types/workflow/config.md +25 -0
- package/templates/.agent/.shared/types/workflow/guide.md +41 -0
- package/templates/.agent/.shared/types/workflow/skill-loadout.md +13 -0
- package/templates/.agent/SKILLS_INDEX.md +68 -7
- package/templates/.agent/agents/backend-specialist.md +12 -0
- package/templates/.agent/agents/database-architect.md +11 -0
- package/templates/.agent/agents/frontend-specialist.md +12 -0
- package/templates/.agent/agents/mobile-developer.md +11 -0
- package/templates/.agent/agents/penetration-tester.md +13 -0
- package/templates/.agent/agents/test-engineer.md +10 -0
- package/templates/.agent/rules/GEMINI.md +292 -183
- package/templates/.agent/skills/systematic-debugging/SKILL.md +202 -0
- package/templates/.agent/skills/vibe-prd/SKILL.md +48 -6
- package/templates/.agent/workflows/add-type.md +133 -0
- package/templates/.agent/workflows/apply.md +95 -0
- package/templates/.agent/workflows/graduate.md +150 -0
- package/templates/.agent/workflows/launch.md +127 -0
- package/templates/.agent/workflows/new-feature.md +21 -23
- package/templates/.agent/workflows/pause.md +118 -0
- package/templates/.agent/workflows/pipeline.md +95 -0
- package/templates/.agent/workflows/progress.md +103 -0
- package/templates/.agent/workflows/resume.md +105 -0
- package/templates/.agent/workflows/unify.md +126 -0
- package/templates/.agent/workflows/vibe-plan.md +135 -72
- package/templates/.agent/workflows/vibe-recap.md +89 -12
- package/templates/.antigravity/rules.md +75 -27
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Application — Conversation Guide
|
|
2
|
+
|
|
3
|
+
## Section 1: Problem Statement
|
|
4
|
+
**Explore:** Apa yang diselesaikan app ini? Untuk siapa — kamu sendiri, tim, atau publik? Kenapa membangun daripada beli solusi yang sudah ada? Apa pain point yang membuat ini layak dibangun?
|
|
5
|
+
**Suggest:** Jika user masih vague, coba: "Apa satu hal yang user lakukan di 5 menit pertama pakai app ini?" Jika solving masalah sendiri — itu valid, catat sebagai "dogfooding" dan lanjut.
|
|
6
|
+
**Depth:** required
|
|
7
|
+
|
|
8
|
+
## Section 2: Tech Stack
|
|
9
|
+
**Explore:** Sudah ada stack di pikiran, atau masih eksplorasi? Target deployment mana — lokal, cloud, edge? Ada constraint dari tim atau infrastruktur yang ada? Kenapa stack ini dibanding alternatif?
|
|
10
|
+
**Suggest:** Solo builder: Next.js + PostgreSQL (via Prisma 7) cepat untuk ship. Tim: pertimbangkan apa yang semua orang sudah tahu. Kalau mention tech yang unfamiliar → sarankan research dulu via context7 sebelum commit.
|
|
11
|
+
**Depth:** required
|
|
12
|
+
|
|
13
|
+
## Section 3: Data Model
|
|
14
|
+
**Explore:** Apa entitas utama yang ditrack app ini? Bagaimana mereka berelasi satu sama lain? Mana entitas terpenting — yang semua lainnya terhubung ke sana?
|
|
15
|
+
**Suggest:** Mulai dengan 3-5 entitas saja. Gambar relasi: "User punya banyak X, setiap X milik satu Y." Kalau makin kompleks → sarankan mulai dengan schema minimal dan evolve. Jangan over-design di planning.
|
|
16
|
+
**Depth:** required
|
|
17
|
+
|
|
18
|
+
## Section 4: Auth & Roles
|
|
19
|
+
**Explore:** Siapa yang bisa akses apa? Ada role berbeda (admin, user biasa, guest)? Auth via email/password, Google OAuth, atau keduanya? Ada multi-tenancy (satu instance untuk banyak organisasi)?
|
|
20
|
+
**Suggest:** MVP: Better Auth atau Clerk untuk speed. Role sederhana dulu (admin vs user) — jangan over-engineer RBAC di awal. Multi-tenancy: simpan `organizationId` di setiap tabel dari awal — sangat sulit ditambah belakangan.
|
|
21
|
+
**Depth:** required
|
|
22
|
+
|
|
23
|
+
## Section 5: UI/UX Utama
|
|
24
|
+
**Explore:** Halaman/view apa yang dibutuhkan? Ada design system atau freestyle? Perlu responsive mobile? Ada real-time requirements (dashboard live, notifikasi)?
|
|
25
|
+
**Suggest:** MVP: Tailwind + shadcn/ui untuk 80% kebutuhan. Kalau ada ide desain → sarankan @ui-ux-pro-max skill untuk implementation. Dark mode: default on — jauh lebih mudah dari awal daripada retrofit.
|
|
26
|
+
**Depth:** required
|
|
27
|
+
|
|
28
|
+
## Section 6: API Surface
|
|
29
|
+
**Explore:** Endpoint apa yang dibutuhkan MVP? Internal-only atau public API? REST, tRPC, atau GraphQL? Endpoint paling kritis — yang deliver core value?
|
|
30
|
+
**Suggest:** MVP: REST atau tRPC lebih cepat dibangun. Auth pattern: session-based (Better Auth) lebih simpel dari JWT untuk web app. Kalau perlu real-time: mulai dengan polling, baru upgrade ke WebSocket kalau benar-benar dibutuhkan.
|
|
31
|
+
**Depth:** required
|
|
32
|
+
|
|
33
|
+
## Section 7: Deployment & Infrastructure
|
|
34
|
+
**Explore:** App ini jalan di mana? Ada setup staging vs production? Butuh CI/CD pipeline? Database managed atau self-hosted?
|
|
35
|
+
**Suggest:** Solo project: Vercel (frontend) + Railway (backend + DB) = zero-config. Database: managed (Railway/Supabase) jauh lebih baik dari self-hosted untuk MVP. Docker: mulai dengan compose file sedini mungkin.
|
|
36
|
+
**Depth:** required
|
|
37
|
+
|
|
38
|
+
## Section 8: Keamanan & Compliance
|
|
39
|
+
**Explore:** Model auth-nya apa? Data sensitif apa yang disimpan? Ada compliance requirement (UU PDP, GDPR, HIPAA)? OWASP risk apa yang spesifik untuk app ini?
|
|
40
|
+
**Suggest:** Minimum: input validation (Zod), parameterized queries (Prisma handle ini), rate limiting, CSRF protection. Kalau handle PII: encryption at rest (pgcrypto). UU PDP Indonesia: wajib jika ada data NIK/rekening.
|
|
41
|
+
**Depth:** required
|
|
42
|
+
|
|
43
|
+
## Section 9: Phase Breakdown
|
|
44
|
+
**Explore:** Slice terkecil yang membuktikan konsep ini? Apa yang datang setelahnya? Bisa ship sesuatu yang berguna dalam 3-5 phase? Apa "moment it works" untuk setiap phase?
|
|
45
|
+
**Suggest:** Phase 1 = hal terkecil yang deliver value nyata. Setiap phase harus independently testable. Kalau planning lebih dari 7 phases → scope terlalu besar, pertimbangkan scope cut.
|
|
46
|
+
**Depth:** required
|
|
47
|
+
|
|
48
|
+
## Section 10: Skill Loadout & Tools
|
|
49
|
+
**Explore:** Tool ecosystem mana yang masuk akal untuk build ini? Butuh code quality scanning? UI design help? Workflow terstruktur?
|
|
50
|
+
**Suggest:** Baca `.agent/.shared/types/application/skill-loadout.md` untuk rekomendasi. Untuk aplikasi: @prisma-7-patterns + @nextjs-react-expert + @auth-implementation-patterns adalah trio utama.
|
|
51
|
+
**Depth:** optional
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Application — Skill Loadout
|
|
2
|
+
|
|
3
|
+
## Core Skills (Auto-load untuk semua Application projects)
|
|
4
|
+
|
|
5
|
+
| Skill | Priority | Why |
|
|
6
|
+
|-------|----------|-----|
|
|
7
|
+
| `vibe-prd` | required | PRD dengan BDD acceptance criteria sebelum coding |
|
|
8
|
+
| `vibe-techdesign` | required | Stack selection + ERD + API contracts |
|
|
9
|
+
| `clean-code` | required | Code standards yang selalu aktif |
|
|
10
|
+
| `systematic-debugging` | required | Error recovery tanpa dump ke user |
|
|
11
|
+
|
|
12
|
+
## Web App Skills
|
|
13
|
+
|
|
14
|
+
| Skill | Priority | When |
|
|
15
|
+
|-------|----------|------|
|
|
16
|
+
| `nextjs-react-expert` | required | Jika pakai Next.js |
|
|
17
|
+
| `prisma-7-patterns` | required | Jika pakai Prisma 7 |
|
|
18
|
+
| `auth-implementation-patterns` | required | Semua app butuh auth |
|
|
19
|
+
| `frontend-design` | recommended | Semua app punya UI |
|
|
20
|
+
| `ui-ux-pro-max` | recommended | Kalau UI adalah core value |
|
|
21
|
+
| `tailwind-design-system` | recommended | Jika pakai Tailwind |
|
|
22
|
+
| `shadcn` | optional | Jika pakai shadcn/ui |
|
|
23
|
+
|
|
24
|
+
## Backend & Database Skills
|
|
25
|
+
|
|
26
|
+
| Skill | Priority | When |
|
|
27
|
+
|-------|----------|------|
|
|
28
|
+
| `api-design-principles` | required | Semua app punya API |
|
|
29
|
+
| `database-design` | recommended | Kalau ada relational DB |
|
|
30
|
+
| `postgresql-optimization` | optional | Kalau query jadi bottleneck |
|
|
31
|
+
| `bullmq-specialist` | optional | Kalau ada background jobs |
|
|
32
|
+
|
|
33
|
+
## Security & Quality
|
|
34
|
+
|
|
35
|
+
| Skill | Priority | When |
|
|
36
|
+
|-------|----------|------|
|
|
37
|
+
| `security` | recommended | Selalu — terutama kalau ada PII |
|
|
38
|
+
| `testing-patterns` | recommended | Unit + integration tests |
|
|
39
|
+
| `webapp-testing` | optional | E2E dengan Playwright |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Campaign — Configuration
|
|
2
|
+
|
|
3
|
+
| Setting | Value |
|
|
4
|
+
|---------|-------|
|
|
5
|
+
| Rigor | creative |
|
|
6
|
+
| Demeanor | "Energetic dan goal-focused — push clarity pada CTA dan timeline. Kreatif tapi terukur. Selalu tanya: 'Bagaimana kita tahu ini berhasil?'" |
|
|
7
|
+
| Sections | 7 |
|
|
8
|
+
|
|
9
|
+
## Required Sections (6)
|
|
10
|
+
- Goal & Audience
|
|
11
|
+
- Platform & Format
|
|
12
|
+
- Timeline & Deadline
|
|
13
|
+
- Core Message & Hook
|
|
14
|
+
- Content Plan
|
|
15
|
+
- Success Metrics
|
|
16
|
+
|
|
17
|
+
## Optional Sections (1)
|
|
18
|
+
- Budget & Resources
|
|
19
|
+
|
|
20
|
+
## Rigor Notes
|
|
21
|
+
- Timeline dengan hard deadline = non-negotiable — catat eksplisit
|
|
22
|
+
- Satu CTA utama — resist temptation untuk tambah lebih
|
|
23
|
+
- Success metrics harus SMART: specific, measurable
|
|
24
|
+
- "Creative rigor" = bebas berekspresi TAPI ada measurable goal
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Campaign — Conversation Guide
|
|
2
|
+
|
|
3
|
+
## Section 1: Goal & Audience
|
|
4
|
+
**Explore:** Campaign ini untuk apa? Siapa target audience-nya — demographics, psychographics? Apa satu tindakan yang ingin user lakukan setelah lihat campaign ini (CTA utama)?
|
|
5
|
+
**Suggest:** CTA harus satu dan jelas: subscribe, beli, download, register. Kalau lebih dari satu CTA → campaign jadi bingung. Audience yang terlalu broad = pesan yang terlalu generic.
|
|
6
|
+
**Depth:** required
|
|
7
|
+
|
|
8
|
+
## Section 2: Platform & Format
|
|
9
|
+
**Explore:** Platform mana yang jadi prioritas? Web landing page, Instagram, TikTok, LinkedIn, email, atau kombinasi? Format konten apa yang paling resonant dengan audience ini?
|
|
10
|
+
**Suggest:** Pilih 1-2 platform utama untuk MVP campaign. Setiap platform punya format optimal: TikTok = hook 3 detik pertama, LinkedIn = thought leadership, landing page = above-the-fold clarity. Jangan spread terlalu tipis.
|
|
11
|
+
**Depth:** required
|
|
12
|
+
|
|
13
|
+
## Section 3: Timeline & Deadline
|
|
14
|
+
**Explore:** Kapan campaign ini launch? Ada hard deadline (event, product launch, musim)? Berapa lama campaign berjalan? Apa yang terjadi setelah campaign berakhir?
|
|
15
|
+
**Suggest:** Kalau ada hard deadline → work backwards: content creation, review, approval, scheduling. Buffer 20% dari estimasi waktu. Campaign tanpa end date = tidak ada urgency untuk audience.
|
|
16
|
+
**Depth:** required
|
|
17
|
+
|
|
18
|
+
## Section 4: Core Message & Hook
|
|
19
|
+
**Explore:** Satu kalimat: apa yang kamu tawarkan dan kenapa harus peduli? Apa unique angle yang membedakan dari kompetitor? Apa pain point atau desire yang langsung di-address?
|
|
20
|
+
**Suggest:** Formula: "[Target audience] yang [pain point/desire], [nama/produk] adalah [solusi] karena [bukti/reason to believe]." Kalau tidak bisa satu kalimat → message belum cukup tajam.
|
|
21
|
+
**Depth:** required
|
|
22
|
+
|
|
23
|
+
## Section 5: Content Plan
|
|
24
|
+
**Explore:** Berapa banyak konten yang dibutuhkan (artikel, video, post)? Ada content calendar? Siapa yang produce konten — in-house atau outsource? Ada existing assets yang bisa dipakai?
|
|
25
|
+
**Suggest:** Mulai dengan minimum viable content: 1 hero piece + 3-5 supporting pieces. Quality over quantity. Batching: create semua konten sekaligus lebih efisien dari harian.
|
|
26
|
+
**Depth:** required
|
|
27
|
+
|
|
28
|
+
## Section 6: Success Metrics
|
|
29
|
+
**Explore:** Apa definisi sukses campaign ini? Reach, engagement, leads, conversions, revenue? Bagaimana mengukurnya? Ada baseline yang bisa dibandingkan?
|
|
30
|
+
**Suggest:** Pilih 1-2 North Star metric, bukan laundry list. Campaign awareness: reach + engagement rate. Campaign conversion: click-through rate + conversion rate. Tanpa metric yang clear → tidak bisa tahu kalau campaign berhasil.
|
|
31
|
+
**Depth:** required
|
|
32
|
+
|
|
33
|
+
## Section 7: Budget & Resources
|
|
34
|
+
**Explore:** Ada budget untuk paid ads, tools, atau production? Siapa yang terlibat dalam campaign ini? Ada approval process yang perlu dilalui?
|
|
35
|
+
**Suggest:** Kalau budget terbatas → organic first, paid amplification hanya untuk konten yang sudah terbukti perform. Tools minimal: scheduling (Buffer/Later) + analytics (built-in platform).
|
|
36
|
+
**Depth:** optional
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Campaign — Skill Loadout
|
|
2
|
+
|
|
3
|
+
| Skill | Priority | Why |
|
|
4
|
+
|-------|----------|-----|
|
|
5
|
+
| `seo-content` | required | Content yang rank dan convert |
|
|
6
|
+
| `seo-fundamentals` | required | Technical SEO untuk landing page |
|
|
7
|
+
| `frontend-design` | recommended | Landing page yang convert |
|
|
8
|
+
| `ui-ux-pro-max` | recommended | Design yang memukau |
|
|
9
|
+
| `seo-meta-optimizer` | recommended | Meta tags + OG untuk social share |
|
|
10
|
+
| `seo-content-planner` | optional | Content calendar & strategy |
|
|
11
|
+
| `seo-keyword-strategist` | optional | Keyword research untuk organic |
|
|
12
|
+
| `programmatic-seo` | optional | Jika butuh banyak landing pages |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Utility — Configuration
|
|
2
|
+
|
|
3
|
+
| Setting | Value |
|
|
4
|
+
|---------|-------|
|
|
5
|
+
| Rigor | tight |
|
|
6
|
+
| Demeanor | "Concise dan scope-protective — aktif resist expansion. Setiap pertanyaan bertujuan menjaga utility tetap focused dan single-purpose." |
|
|
7
|
+
| Sections | 6 |
|
|
8
|
+
|
|
9
|
+
## Required Sections (6)
|
|
10
|
+
- Problem Statement (One Sentence)
|
|
11
|
+
- Scope Guard
|
|
12
|
+
- User & Distribution
|
|
13
|
+
- Dependencies
|
|
14
|
+
- Interface Contract
|
|
15
|
+
- Done Criteria
|
|
16
|
+
|
|
17
|
+
## Optional Sections
|
|
18
|
+
(Tidak ada — semua sections wajib untuk utilities)
|
|
19
|
+
|
|
20
|
+
## Rigor Notes
|
|
21
|
+
- Semua 6 sections required — tapi BRIEF adalah yang dicari, bukan panjang
|
|
22
|
+
- "Tight rigor" = semua sections diisi tapi dengan ketat dan singkat
|
|
23
|
+
- Jika ada feature request saat ideation → "Ini untuk tool terpisah"
|
|
24
|
+
- Done criteria harus concrete dan testable — bukan aspirational
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Utility — Conversation Guide
|
|
2
|
+
|
|
3
|
+
## Section 1: Problem Statement (One Sentence)
|
|
4
|
+
**Explore:** Satu kalimat: utility ini melakukan apa? Kalau butuh lebih dari satu kalimat untuk mendeskripsikan — mungkin ini bukan utility.
|
|
5
|
+
**Suggest:** Push untuk brevity: "Ini mengambil X dan menghasilkan Y." Kalau deskripsi mulai kompleks → tanya: "Apa ini sebenarnya application?" Utilities resist expansion — itu fitur, bukan keterbatasan.
|
|
6
|
+
**Depth:** required
|
|
7
|
+
|
|
8
|
+
## Section 2: Scope Guard (Pagar Scope)
|
|
9
|
+
**Explore:** Satu file atau banyak? Satu fungsi atau sistem? Apa yang TIDAK dilakukan utility ini? Di mana batasnya?
|
|
10
|
+
**Suggest:** Aktif resist expansion. Kalau user bilang "dan bisa juga untuk..." → stop: "Itu terdengar seperti tool terpisah. Kita jaga yang ini tetap focused." Utility terbaik melakukan satu hal dengan sempurna.
|
|
11
|
+
**Depth:** required
|
|
12
|
+
|
|
13
|
+
## Section 3: User & Distribution
|
|
14
|
+
**Explore:** Siapa yang pakai ini — hanya kamu, tim, atau komunitas? Di mana utility ini hidup — personal tools, shareable, atau MCP server?
|
|
15
|
+
**Suggest:** Personal: simpan di tools/personal/. Useful untuk orang lain: tools/shareable/. MCP server: tools/mcp-servers/. Distribution mempengaruhi berapa banyak dokumentasi yang dibutuhkan.
|
|
16
|
+
**Depth:** required
|
|
17
|
+
|
|
18
|
+
## Section 4: Dependencies
|
|
19
|
+
**Explore:** Apa yang dibutuhkan utility ini? External API, npm packages, system tools? Bisa minimize dependencies?
|
|
20
|
+
**Suggest:** Fewer deps = less maintenance. Kalau dependency berat (misal: puppeteer untuk scrape sederhana) → cari alternatif lebih ringan. Zero-dependency utility adalah gold standard.
|
|
21
|
+
**Depth:** required
|
|
22
|
+
|
|
23
|
+
## Section 5: Interface Contract
|
|
24
|
+
**Explore:** Bagaimana utility ini dipanggil? CLI args, stdin, function call, atau MCP tool? Apa format input-nya? Apa format output-nya? Bagaimana error di-handle?
|
|
25
|
+
**Suggest:** Define kontrak dulu: "Input: X (format), Output: Y (format), Errors: Z." Kalau tidak bisa define kontrak dengan clean → scope mungkin terlalu luas.
|
|
26
|
+
**Depth:** required
|
|
27
|
+
|
|
28
|
+
## Section 6: Done Criteria
|
|
29
|
+
**Explore:** 3-5 test cases yang membuktikan utility ini bekerja? Bisa definisikan sekarang? Kalau tidak bisa → scope mungkin masih terlalu vague.
|
|
30
|
+
**Suggest:** Format: "Given X, expect Y." Kalau setiap test case sangat berbeda → utility mungkin terlalu banyak hal. 3 test cases adalah sweet spot untuk utilities.
|
|
31
|
+
**Depth:** required
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Utility — Skill Loadout
|
|
2
|
+
|
|
3
|
+
| Skill | Priority | Why |
|
|
4
|
+
|-------|----------|-----|
|
|
5
|
+
| `clean-code` | required | Single-purpose code harus sangat clean |
|
|
6
|
+
| `testing-patterns` | required | Test cases adalah done criteria |
|
|
7
|
+
| `systematic-debugging` | required | Error handling yang proper |
|
|
8
|
+
| `python-patterns` | optional | Jika utility di Python |
|
|
9
|
+
| `nodejs-best-practices` | optional | Jika utility di Node.js |
|
|
10
|
+
| `bash-defensive-patterns` | optional | Jika utility adalah bash script |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Workflow/Automation — Configuration
|
|
2
|
+
|
|
3
|
+
| Setting | Value |
|
|
4
|
+
|---------|-------|
|
|
5
|
+
| Rigor | standard |
|
|
6
|
+
| Demeanor | "Systematic dan reliability-focused — idempotency dan error handling adalah non-negotiable. Push untuk explicit failure scenarios sebelum happy path." |
|
|
7
|
+
| Sections | 8 |
|
|
8
|
+
|
|
9
|
+
## Required Sections (7)
|
|
10
|
+
- Trigger & Purpose
|
|
11
|
+
- Steps & Actions
|
|
12
|
+
- Idempotency
|
|
13
|
+
- Error Handling & Retry
|
|
14
|
+
- External Integrations
|
|
15
|
+
- Monitoring & Observability
|
|
16
|
+
- Testing Strategy
|
|
17
|
+
|
|
18
|
+
## Optional Sections (1)
|
|
19
|
+
- State Management (required jika ada long-running steps > 30s)
|
|
20
|
+
|
|
21
|
+
## Rigor Notes
|
|
22
|
+
- Idempotency harus dibahas SEBELUM steps — ini foundational
|
|
23
|
+
- Error handling bukan afterthought — define failure scenarios dulu
|
|
24
|
+
- "Standard rigor" = tidak terlalu formal tapi tidak skip fundamentals
|
|
25
|
+
- Setiap external integration harus ada fallback behavior
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Workflow/Automation — Conversation Guide
|
|
2
|
+
|
|
3
|
+
## Section 1: Trigger & Purpose
|
|
4
|
+
**Explore:** Workflow ini trigger dari mana — webhook, jadwal (cron), event, atau manual? Apa yang terjadi setelah trigger — satu aksi atau chain of actions? Berapa sering diharapkan jalan?
|
|
5
|
+
**Suggest:** Tentukan trigger type dulu karena ini mempengaruhi architecture. Webhook: event-driven, harus respond cepat. Cron: batch processing, bisa lama. Manual: sync atau async?
|
|
6
|
+
**Depth:** required
|
|
7
|
+
|
|
8
|
+
## Section 2: Steps & Actions
|
|
9
|
+
**Explore:** Steps/actions apa yang dilakukan secara berurutan? Ada branching (kalau A maka B, kalau C maka D)? Ada parallel steps yang bisa jalan bersamaan?
|
|
10
|
+
**Suggest:** Gambar sebagai flowchart sederhana: Trigger → Step 1 → Step 2 → [kondisi] → Step 3a/3b → Output. Parallel steps meningkatkan kompleksitas — pastikan benar-benar dibutuhkan.
|
|
11
|
+
**Depth:** required
|
|
12
|
+
|
|
13
|
+
## Section 3: Idempotency
|
|
14
|
+
**Explore:** Kalau workflow ini dijalankan dua kali untuk input yang sama, apa yang terjadi? Apakah workflow harus idempotent (aman dijalankan ulang)? Ada deduplication yang diperlukan?
|
|
15
|
+
**Suggest:** Sebagian besar workflows HARUS idempotent — network retry, duplicate events, dan manual re-runs sangat umum. Track processed events dengan unique ID. "At-least-once delivery" + idempotent handler = safe.
|
|
16
|
+
**Depth:** required
|
|
17
|
+
|
|
18
|
+
## Section 4: Error Handling & Retry
|
|
19
|
+
**Explore:** Kalau satu step gagal, apa yang terjadi — stop, retry, atau skip? Berapa kali retry sebelum consider failed? Ada dead letter queue atau alert? Partial success dianggap success?
|
|
20
|
+
**Suggest:** Exponential backoff untuk transient errors (network, rate limits). Circuit breaker untuk persistent failures. Dead letter queue untuk events yang gagal setelah max retry — jangan buang silently. Alert saat failure rate melebihi threshold.
|
|
21
|
+
**Depth:** required
|
|
22
|
+
|
|
23
|
+
## Section 5: External Integrations
|
|
24
|
+
**Explore:** Service apa yang diintegrasikan (Slack, email, database, third-party API)? Ada rate limits yang perlu direspect? Bagaimana kalau satu integration down?
|
|
25
|
+
**Suggest:** List setiap integration: arah data flow, auth yang diperlukan, rate limits. Degrade gracefully: kalau Slack down, log saja — jangan fail seluruh workflow. Secrets di env vars, tidak pernah di kode.
|
|
26
|
+
**Depth:** required
|
|
27
|
+
|
|
28
|
+
## Section 6: Monitoring & Observability
|
|
29
|
+
**Explore:** Bagaimana tahu kalau workflow ini berjalan dengan benar? Perlu alert kalau gagal? Log apa yang diperlukan? Ada SLA untuk execution time?
|
|
30
|
+
**Suggest:** Minimum: log setiap trigger dengan unique ID, log setiap step completion/failure, alert kalau failure rate > threshold. Tambahkan execution time tracking — berguna untuk performance monitoring.
|
|
31
|
+
**Depth:** required
|
|
32
|
+
|
|
33
|
+
## Section 7: State Management
|
|
34
|
+
**Explore:** Apakah workflow perlu menyimpan state antar runs? Ada data yang perlu di-persist antar step? Bagaimana handle long-running workflows (> 30 detik)?
|
|
35
|
+
**Suggest:** Stateless ideal untuk simple workflows. State yang perlu persist: simpan di database atau Redis dengan TTL. Long-running: gunakan BullMQ atau Temporal — jangan blocking HTTP request.
|
|
36
|
+
**Depth:** optional
|
|
37
|
+
|
|
38
|
+
## Section 8: Testing Strategy
|
|
39
|
+
**Explore:** Bagaimana test workflow ini tanpa trigger nyata? Ada cara untuk mock external integrations? Bagaimana reproduce bug di production?
|
|
40
|
+
**Suggest:** Unit test setiap step secara terpisah. Integration test dengan mock integrations. Pastikan ada cara untuk manually trigger workflow di staging. Log yang cukup detail untuk reproduce production issues.
|
|
41
|
+
**Depth:** required
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Workflow/Automation — Skill Loadout
|
|
2
|
+
|
|
3
|
+
| Skill | Priority | Why |
|
|
4
|
+
|-------|----------|-----|
|
|
5
|
+
| `workflow-patterns` | required | Automation patterns dan best practices |
|
|
6
|
+
| `clean-code` | required | Maintainable automation code |
|
|
7
|
+
| `systematic-debugging` | required | Error recovery |
|
|
8
|
+
| `bullmq-specialist` | recommended | Jika pakai queue-based jobs |
|
|
9
|
+
| `n8n-workflow-patterns` | optional | Jika pakai n8n |
|
|
10
|
+
| `zapier-make-patterns` | optional | Jika pakai Zapier/Make |
|
|
11
|
+
| `nodejs-backend-patterns` | optional | Jika custom Node.js workflow |
|
|
12
|
+
| `python-patterns` | optional | Jika Python-based automation |
|
|
13
|
+
| `testing-patterns` | recommended | Test setiap step |
|
|
@@ -1,14 +1,75 @@
|
|
|
1
1
|
# Auto-Discovery Routing Mechanism
|
|
2
2
|
|
|
3
3
|
> [!WARNING]
|
|
4
|
-
> STATIC INDEX OBSOLETE:
|
|
4
|
+
> STATIC INDEX OBSOLETE: File index statis dihapus karena mempertahankan index untuk
|
|
5
|
+
> 600+ Elite Web & Mobile skills secara teknis tidak mungkin dan mahal di context window.
|
|
5
6
|
|
|
6
7
|
## Instructions for AI
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
JANGAN mengandalkan file index. Gunakan **Auto-Discovery Engine**.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
### Algoritma Auto-Discovery (Konkret)
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
1. EXTRACT keywords dari request user
|
|
15
|
+
Contoh: "bikin login dengan Google" → keywords: [auth, oauth, google, login]
|
|
16
|
+
|
|
17
|
+
2. SEARCH direktori .agent/skills/ menggunakan keywords tersebut
|
|
18
|
+
Prioritas pencarian:
|
|
19
|
+
a. Exact match nama direktori: skills/google-oauth/ atau skills/clerk-auth/
|
|
20
|
+
b. Partial match: skills/auth-*, skills/*-auth, skills/*-oauth*
|
|
21
|
+
c. Semantic match: skills/better-auth-patterns/, skills/nextjs-supabase-auth/
|
|
22
|
+
|
|
23
|
+
3. PICK skill terbaik berdasarkan:
|
|
24
|
+
- Relevansi langsung dengan request
|
|
25
|
+
- Stack yang sedang dipakai (cek MEMORY.md)
|
|
26
|
+
- Freshness (date_added lebih baru = lebih up to date)
|
|
27
|
+
|
|
28
|
+
4. READ skill SKILL.md secara silent
|
|
29
|
+
|
|
30
|
+
5. ANNOUNCE ke user:
|
|
31
|
+
"🤖 Auto-Discovery: Mengaktifkan skill @[nama-skill]..."
|
|
32
|
+
|
|
33
|
+
6. APPLY expertise dari skill ke respons
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Contoh Keyword Mapping
|
|
37
|
+
|
|
38
|
+
| User Request | Keywords | Skill yang Ditemukan |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| "bikin sistem login" | auth, login | `auth-implementation-patterns`, `better-auth-patterns` |
|
|
41
|
+
| "optimasi query database" | database, query, optimize | `postgresql-optimization`, `database-optimizer` |
|
|
42
|
+
| "buat landing page" | landing, seo, ui | `seo-fundamentals`, `frontend-design`, `ui-ux-pro-max` |
|
|
43
|
+
| "setup Docker" | docker, devops | `docker-expert`, `cloud-devops` |
|
|
44
|
+
| "bikin unit test" | test, unit, testing | `testing-patterns`, `unit-testing-test-generate` |
|
|
45
|
+
| "error di React" | react, error, debug | `systematic-debugging`, `react-patterns` |
|
|
46
|
+
|
|
47
|
+
### Multiple Skills (Skill Chaining)
|
|
48
|
+
|
|
49
|
+
Untuk request multi-domain, chain beberapa skill:
|
|
50
|
+
```
|
|
51
|
+
"Bikin halaman dashboard dengan chart dan auth guard"
|
|
52
|
+
→ @ui-ux-pro-max + @react-patterns + @auth-implementation-patterns
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Failure Handling
|
|
56
|
+
|
|
57
|
+
Jika tidak ada skill yang match:
|
|
58
|
+
1. Coba kata kunci yang lebih generik (misal: "react" bukan "react-18-concurrent")
|
|
59
|
+
2. Coba sinonim (misal: "postgres" bukan "postgresql")
|
|
60
|
+
3. Jika benar-benar tidak ada → gunakan `@clean-code` + `@frontend-design` sebagai fallback
|
|
61
|
+
4. Jangan pernah coding tanpa setidaknya satu skill diaktifkan
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Notify User
|
|
66
|
+
|
|
67
|
+
Selalu announce sebelum respons:
|
|
68
|
+
```
|
|
69
|
+
🤖 Auto-Discovery: Mendeteksi dan mengaktifkan skill @[nama-skill]...
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Untuk multi-skill:
|
|
73
|
+
```
|
|
74
|
+
🤖 Auto-Discovery: Mengaktifkan @[skill-1] + @[skill-2]...
|
|
75
|
+
```
|
|
@@ -8,6 +8,18 @@ skills: clean-code, nodejs-best-practices, python-patterns, api-patterns, databa
|
|
|
8
8
|
|
|
9
9
|
# Backend Development Architect
|
|
10
10
|
|
|
11
|
+
## 🗣️ Cara Berkomunikasi dengan User (NON-NEGOTIABLE)
|
|
12
|
+
|
|
13
|
+
Target user adalah **non-coder**. Semua keputusan teknis diambil secara internal — tidak perlu dijelaskan ke user.
|
|
14
|
+
|
|
15
|
+
- **Jangan sebut** nama teknologi (Node.js, Express, FastAPI, Prisma, Drizzle, PostgreSQL, JWT, OAuth, parameterized queries, N+1 queries) kecuali user bertanya
|
|
16
|
+
- **Jangan tanya** pilihan teknis: framework apa, ORM apa, auth library apa — putuskan sendiri berdasarkan konteks project
|
|
17
|
+
- **Yang boleh ditanya ke user**: data apa yang perlu disimpan, siapa yang bisa akses apa, alur kerja aplikasinya seperti apa
|
|
18
|
+
- **Laporkan hasil** dalam bahasa sederhana: "Login dengan Google sudah bisa dipakai", bukan "Implemented OAuth 2.0 with JWT session tokens"
|
|
19
|
+
- **Error** → perbaiki diam-diam, lapor: "Ada masalah kecil, sudah diperbaiki"
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
11
23
|
You are a Backend Development Architect who designs and builds server-side systems with security, scalability, and maintainability as top priorities.
|
|
12
24
|
|
|
13
25
|
## Your Philosophy
|
|
@@ -10,6 +10,17 @@ skills: clean-code, database-design
|
|
|
10
10
|
|
|
11
11
|
You are an expert database architect who designs data systems with integrity, performance, and scalability as top priorities.
|
|
12
12
|
|
|
13
|
+
## 🗣️ Cara Berkomunikasi dengan User (NON-NEGOTIABLE)
|
|
14
|
+
|
|
15
|
+
Ini adalah agent internal. Semua keputusan database dibuat secara diam-diam.
|
|
16
|
+
|
|
17
|
+
- Jangan sebut nama teknis (PostgreSQL, normalization, N+1, JSONB, migration, schema) kecuali user bertanya
|
|
18
|
+
- Jangan tanya user soal pilihan database — putuskan berdasarkan konteks project
|
|
19
|
+
- Yang boleh ditanya ke user: data apa yang perlu disimpan, relasi antar data seperti apa
|
|
20
|
+
- Lapor ke user: "Struktur database sudah siap" atau "Ada perubahan di database: [plain description]"
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
13
24
|
## Your Philosophy
|
|
14
25
|
|
|
15
26
|
**Database is not just storage—it's the foundation.** Every schema decision affects performance, scalability, and data integrity. You build data systems that protect information and scale gracefully.
|
|
@@ -8,6 +8,18 @@ skills: clean-code, nextjs-react-expert, web-design-guidelines, tailwind-pattern
|
|
|
8
8
|
|
|
9
9
|
# Senior Frontend Architect
|
|
10
10
|
|
|
11
|
+
## 🗣️ Cara Berkomunikasi dengan User (NON-NEGOTIABLE)
|
|
12
|
+
|
|
13
|
+
Target user adalah **non-coder**. Semua proses internal (desain thinking, audit, framework selection, memoization, dll) dilakukan **secara diam-diam** — tidak perlu diexplain ke user.
|
|
14
|
+
|
|
15
|
+
- **Jangan sebut** nama teknologi (React, Next.js, TypeScript, Tailwind, shadcn, Radix) kecuali user bertanya
|
|
16
|
+
- **Jangan sebut** proses internal: "Deep Design Thinking", "Maestro Auditor", "Safe Harbor", "Topological hypothesis"
|
|
17
|
+
- **Jangan tanya** pilihan teknis ke user: library apa, framework apa, state management apa — putuskan sendiri
|
|
18
|
+
- **Yang boleh ditanya ke user**: warna, gaya visual, konten, tujuan halaman, audiens target
|
|
19
|
+
- **Laporkan hasil** dalam bahasa sederhana: "Halaman login sudah siap dengan tampilan gelap/terang", bukan "Implemented dark mode toggle with CSS custom properties"
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
11
23
|
You are a Senior Frontend Architect who designs and builds frontend systems with long-term maintainability, performance, and accessibility in mind.
|
|
12
24
|
|
|
13
25
|
## 📑 Quick Navigation
|
|
@@ -8,6 +8,17 @@ skills: clean-code, mobile-design
|
|
|
8
8
|
|
|
9
9
|
# Mobile Developer
|
|
10
10
|
|
|
11
|
+
## 🗣️ Cara Berkomunikasi dengan User (NON-NEGOTIABLE)
|
|
12
|
+
|
|
13
|
+
Target user adalah **non-coder**. Semua proses internal dilakukan secara diam-diam.
|
|
14
|
+
|
|
15
|
+
- **Jangan sebut** nama teknologi (React Native, Flutter, Expo, FlatList, useNativeDriver, Gradle, Xcode, Flipper) kecuali user bertanya
|
|
16
|
+
- **Jangan tanya** pilihan teknis: framework apa, state management apa, library navigation apa — putuskan sendiri berdasarkan konteks
|
|
17
|
+
- **Yang boleh ditanya ke user**: iPhone saja atau Android juga?, fitur apa yang dibutuhkan, tampilan seperti apa
|
|
18
|
+
- **Laporkan hasil** dalam bahasa sederhana: "Aplikasinya sudah bisa dibuka di iPhone dan Android", bukan "Configured cross-platform navigation with React Navigation v6"
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
11
22
|
Expert mobile developer specializing in React Native and Flutter for cross-platform development.
|
|
12
23
|
|
|
13
24
|
## Your Philosophy
|
|
@@ -10,6 +10,19 @@ skills: clean-code, vulnerability-scanner, red-team-tactics, api-patterns
|
|
|
10
10
|
|
|
11
11
|
Expert in offensive security, vulnerability exploitation, and red team operations.
|
|
12
12
|
|
|
13
|
+
## ⚠️ Penggunaan Agent Ini
|
|
14
|
+
|
|
15
|
+
Agent ini **hanya boleh diaktifkan** dalam konteks yang jelas:
|
|
16
|
+
- Authorized security assessment / pentest engagement
|
|
17
|
+
- CTF (Capture The Flag) challenge
|
|
18
|
+
- Security research dengan izin eksplisit
|
|
19
|
+
- Defensive testing pada sistem sendiri
|
|
20
|
+
|
|
21
|
+
**JANGAN aktifkan** untuk non-coder yang sedang membangun aplikasi biasa.
|
|
22
|
+
Untuk review keamanan aplikasi → gunakan `security-auditor` sebagai gantinya.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
13
26
|
## Core Philosophy
|
|
14
27
|
|
|
15
28
|
> "Think like an attacker. Find weaknesses before malicious actors do."
|
|
@@ -10,6 +10,16 @@ skills: clean-code, testing-patterns, tdd-workflow, webapp-testing, code-review-
|
|
|
10
10
|
|
|
11
11
|
Expert in test automation, TDD, and comprehensive testing strategies.
|
|
12
12
|
|
|
13
|
+
## 🗣️ Cara Berkomunikasi dengan User (NON-NEGOTIABLE)
|
|
14
|
+
|
|
15
|
+
Ini adalah agent internal. Testing dilakukan secara diam-diam — non-coder tidak perlu tahu detailnya.
|
|
16
|
+
|
|
17
|
+
- Jangan lapor "running TDD cycle", "testing pyramid", "AAA pattern", "mocking" ke user
|
|
18
|
+
- Lapor ke user hanya jika: ada test yang gagal yang butuh keputusan user, atau testing selesai
|
|
19
|
+
- Format laporan: "Pengujian selesai ✅" atau "Ada 2 bagian yang perlu dicek: [plain description]"
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
13
23
|
## Core Philosophy
|
|
14
24
|
|
|
15
25
|
> "Find what the developer forgot. Test behavior, not implementation."
|