vibes-plug 2.11.0 → 2.14.1

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 (69) hide show
  1. package/.cursor/rules/vibes-plug-core.mdc +3 -3
  2. package/.cursorrules +3 -3
  3. package/AGENTS.md +4 -4
  4. package/BLUEPRINT.md +16 -6
  5. package/CHANGELOG.md +37 -0
  6. package/CLAUDE.md +8 -8
  7. package/README.md +85 -115
  8. package/index.js +1 -1
  9. package/package.json +2 -2
  10. package/plugin.json +2 -2
  11. package/scripts/check-anti-slop.js +53 -0
  12. package/scripts/generate_swarm_gif.py +2 -2
  13. package/skills/ai-llm-integration-expert/SKILL.md +22 -15
  14. package/skills/ai-prompt-engineering-expert/SKILL.md +133 -83
  15. package/skills/anti-slop/SKILL.md +133 -0
  16. package/skills/async-queue-temporal-expert/SKILL.md +135 -158
  17. package/skills/authentication-identity-expert/SKILL.md +172 -278
  18. package/skills/brainstorming/SKILL.md +26 -26
  19. package/skills/database-orm-expert/SKILL.md +164 -303
  20. package/skills/deep-research-analyst/SKILL.md +136 -0
  21. package/skills/design-system-architect/SKILL.md +31 -1
  22. package/skills/email-notification-expert/SKILL.md +31 -4
  23. package/skills/error-resilience-expert/SKILL.md +21 -0
  24. package/skills/fullstack-expert/SKILL.md +183 -260
  25. package/skills/glsl-shader-expert/SKILL.md +190 -107
  26. package/skills/graph-rag-knowledge-expert/SKILL.md +42 -1
  27. package/skills/mcp-server-architect/SKILL.md +15 -1
  28. package/skills/prd-architect/SKILL.md +181 -206
  29. package/skills/production-ready-hardener/SKILL.md +16 -19
  30. package/skills/pwa-offline-first-expert/SKILL.md +42 -1
  31. package/skills/pydantic-ai-expert/SKILL.md +161 -0
  32. package/skills/saas-architect/SKILL.md +154 -0
  33. package/skills/senior-frontend/SKILL.md +9 -11
  34. package/skills/senior-frontend/scripts/frontend_scaffolder.py +1 -1
  35. package/skills/session-memory-manager/SKILL.md +128 -0
  36. package/skills/synthetic-data-finetuning-expert/SKILL.md +155 -0
  37. package/skills/ui-ux-pro-max/SKILL.md +4 -2
  38. package/skills/vercel-ai-sdk-expert/SKILL.md +181 -0
  39. package/skills/voice-ai-realtime-agent/SKILL.md +41 -1
  40. package/skills/web-3d-graphics-expert/SKILL.md +313 -137
  41. package/skills/web-game-engine-expert/SKILL.md +329 -102
  42. package/skills/webxr-ar-vr-expert/SKILL.md +162 -123
  43. package/skills/zero-to-prod-orchestrator/SKILL.md +26 -24
  44. package/skills/ai-cost-token-optimizer/SKILL.md +0 -82
  45. package/skills/ai-evals-benchmark-expert/SKILL.md +0 -188
  46. package/skills/asisten-ramah/SKILL.md +0 -47
  47. package/skills/auto-doc-updater/SKILL.md +0 -220
  48. package/skills/autonomous-chaos-monkey/SKILL.md +0 -63
  49. package/skills/background-jobs-queue-expert/SKILL.md +0 -235
  50. package/skills/database-migration-versioning-expert/SKILL.md +0 -90
  51. package/skills/edge-serverless-db-expert/SKILL.md +0 -99
  52. package/skills/mcp-client-orchestrator/SKILL.md +0 -76
  53. package/skills/mobile-push-notification-expert/SKILL.md +0 -71
  54. package/skills/monday-design-aesthetic/SKILL.md +0 -73
  55. package/skills/project-context-mapper/SKILL.md +0 -85
  56. package/skills/saas-mvp-launcher/SKILL.md +0 -260
  57. package/skills/saas-transformer/SKILL.md +0 -500
  58. package/skills/saas-transformer/references/billing_integration_guide.md +0 -401
  59. package/skills/self-evolving-memory-graph/SKILL.md +0 -91
  60. package/skills/session-context-loader/SKILL.md +0 -83
  61. package/skills/session-handoff-resume/SKILL.md +0 -164
  62. package/skills/skill-baru/SKILL.md +0 -178
  63. package/skills/supabase-migration/SKILL.md +0 -91
  64. package/skills/token-saver/SKILL.md +0 -119
  65. package/skills/ui-components-expert/SKILL.md +0 -166
  66. package/skills/vibe-code-gardener/SKILL.md +0 -181
  67. /package/skills/{saas-transformer → saas-architect}/references/feature_gating_patterns.md +0 -0
  68. /package/skills/{saas-transformer → saas-architect}/references/saas_transformation_checklist.md +0 -0
  69. /package/skills/{saas-transformer → saas-architect}/scripts/saas_transformation_scanner.py +0 -0
@@ -1,164 +0,0 @@
1
- ---
2
- name: session-handoff-resume
3
- description: "Skill to save ultra-compact project checkpoints and seamlessly resume work across accounts or new chat sessions with minimum token consumption / Skill untuk menyimpan checkpoint proyek yang super ringkas dan melanjutkan pekerjaan secara efisien saat ganti akun/sesi tanpa boros token."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Session Handoff & Resume (2026 — Cross-Model Edition)
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
- Saves ultra-compact project checkpoints and enables seamless work resumption across new chat sessions, different accounts, or different AI models (Gemini, Claude, GPT). Designed for minimum token consumption while preserving full context needed for continuation.
21
-
22
- ### Trigger Conditions
23
- - Session is running very long and context window is nearly exhausted.
24
- - User wants to switch to a new chat session or different AI model.
25
- - User wants to save progress before closing and resume later.
26
- - User says "save checkpoint", "handoff", "save progress", "resume later".
27
-
28
- ### Checkpoint Format (Ultra-Compact)
29
-
30
- When creating a checkpoint, output a compact YAML block under 200 tokens:
31
-
32
- ```yaml
33
- # CHECKPOINT — [Project Name] — [Date]
34
- project: "[Project Name]"
35
- goal: "[One-line goal of the current session]"
36
- status: "[brief status: e.g., '60% — backend API done, frontend in progress']"
37
- stack: "[e.g., Next.js 15 + Hono + Supabase + Drizzle]"
38
- last_completed:
39
- - "[Most recent task completed]"
40
- - "[Second most recent]"
41
- next_tasks:
42
- - "[Immediate next task]"
43
- - "[Following task]"
44
- - "[Following task]"
45
- blockers: "[Any known blockers or pending decisions, or 'none']"
46
- key_files:
47
- - "[path/to/critical/file.ts]"
48
- - "[path/to/another/file.ts]"
49
- env_needed: "[List of env vars needed, e.g., SUPABASE_URL, STRIPE_KEY]"
50
- notes: "[Any critical context that doesn't fit above]"
51
- ```
52
-
53
- ### Cross-Model Handoff Protocol (2026)
54
-
55
- Different AI models interpret context differently. Use this universal handoff prompt:
56
-
57
- ```markdown
58
- ## RESUME CONTEXT — [Project Name]
59
-
60
- You are resuming work on [Project Name]. Read this context carefully before taking any action.
61
-
62
- **Goal**: [One-sentence project goal]
63
- **Current Status**: [What's been done, what's pending]
64
- **Tech Stack**: [Stack details]
65
- **Repository**: [path or URL if available]
66
-
67
- **Completed**:
68
- - ✅ [Done item 1]
69
- - ✅ [Done item 2]
70
-
71
- **Next Tasks** (in priority order):
72
- 1. [ ] [Immediate next task — be specific]
73
- 2. [ ] [Second task]
74
- 3. [ ] [Third task]
75
-
76
- **Critical Files to Read First**:
77
- - [file path] — [why it's critical]
78
- - [file path] — [why it's critical]
79
-
80
- **Known Constraints**:
81
- - [Constraint 1, e.g., "Use pnpm, not npm"]
82
- - [Constraint 2, e.g., "Admin panel must be on admin.domain.com"]
83
-
84
- **Do NOT**:
85
- - [Something the previous session explicitly avoided]
86
- - [Another anti-pattern to avoid]
87
-
88
- Start by reading the critical files listed above, then confirm you understand the current state before proceeding.
89
- ```
90
-
91
- ### Checkpoint Storage Locations
92
-
93
- | Destination | Use When |
94
- |---|---|
95
- | `CHECKPOINT.md` in project root | Primary — version-controlled |
96
- | `.agents/CHECKPOINT.md` | Alternative — agents-specific dir |
97
- | Copied to clipboard | Quick cross-session handoff |
98
- | Supabase notes table | Cloud-synced across devices |
99
-
100
- ### Resume Protocol (For New Session)
101
- When the user provides a checkpoint to resume from:
102
- 1. **Read all key files** listed in the checkpoint.
103
- 2. **Verify current state** matches the checkpoint (check git status, recent commits).
104
- 3. **Confirm understanding** — briefly state what you're resuming and what the first task is.
105
- 4. **Proceed immediately** — don't ask unnecessary questions.
106
-
107
- ### Automatic Checkpoint Triggers
108
- Proactively offer to create a checkpoint when:
109
- - User has been working for > 30 messages in a session.
110
- - The context window is > 70% consumed.
111
- - A major milestone is completed (e.g., "backend API is fully done").
112
- - The user says "I'll continue later".
113
-
114
- ---
115
-
116
- <a name="bahasa-indonesia"></a>
117
- ## Bahasa Indonesia
118
-
119
- ### Integrasi Orkestrasi
120
- Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
121
-
122
- ### Deskripsi
123
- Menyimpan checkpoint proyek yang ultra-ringkas dan memungkinkan kelanjutan pekerjaan yang mulus di sesi chat baru, akun yang berbeda, atau model AI yang berbeda (Gemini, Claude, GPT). Dirancang untuk konsumsi token minimum sambil mempertahankan konteks penuh yang diperlukan untuk kelanjutan.
124
-
125
- ### Kondisi Pemicu
126
- - Sesi berjalan sangat lama dan context window hampir habis.
127
- - Pengguna ingin beralih ke sesi chat baru atau model AI yang berbeda.
128
- - Pengguna ingin menyimpan progres sebelum menutup dan melanjutkan nanti.
129
- - Pengguna berkata "simpan checkpoint", "handoff", "simpan progres", "lanjut nanti".
130
-
131
- ### Format Checkpoint (Ultra-Ringkas)
132
-
133
- Saat membuat checkpoint, keluarkan blok YAML ringkas di bawah 200 token dengan field: `project`, `goal`, `status`, `stack`, `last_completed`, `next_tasks`, `blockers`, `key_files`, `env_needed`, `notes`.
134
-
135
- ### Protokol Handoff Lintas-Model (2026)
136
-
137
- Model AI yang berbeda menginterpretasikan konteks secara berbeda. Gunakan prompt handoff universal saat berpindah antar model (Gemini → Claude → GPT):
138
- - Sertakan goal satu kalimat, status saat ini, stack, daftar tugas yang selesai (✅), dan tugas berikutnya yang diprioritaskan.
139
- - Sertakan file kritis yang harus dibaca terlebih dahulu oleh model baru.
140
- - Sertakan kendala yang diketahui dan daftar "Jangan Lakukan".
141
- - Minta model baru untuk mengkonfirmasi pemahaman sebelum melanjutkan.
142
-
143
- ### Lokasi Penyimpanan Checkpoint
144
-
145
- | Tujuan | Gunakan Saat |
146
- |---|---|
147
- | `CHECKPOINT.md` di root proyek | Utama — dikontrol versi |
148
- | `.agents/CHECKPOINT.md` | Alternatif — direktori agen |
149
- | Disalin ke clipboard | Handoff lintas sesi cepat |
150
- | Tabel catatan Supabase | Tersinkronisasi cloud antar perangkat |
151
-
152
- ### Protokol Resume (Untuk Sesi Baru)
153
- Saat pengguna memberikan checkpoint untuk dilanjutkan:
154
- 1. **Baca semua file kritis** yang tercantum dalam checkpoint.
155
- 2. **Verifikasi status saat ini** cocok dengan checkpoint (periksa git status, commit terbaru).
156
- 3. **Konfirmasi pemahaman** — nyatakan singkat apa yang dilanjutkan dan apa tugas pertama.
157
- 4. **Lanjutkan segera** — jangan ajukan pertanyaan yang tidak perlu.
158
-
159
- ### Pemicu Checkpoint Otomatis
160
- Tawarkan secara proaktif untuk membuat checkpoint saat:
161
- - Pengguna telah bekerja lebih dari 30 pesan dalam satu sesi.
162
- - Context window > 70% terpakai.
163
- - Milestone besar selesai.
164
- - Pengguna berkata "saya akan lanjutkan nanti".
@@ -1,178 +0,0 @@
1
- ---
2
- name: skill-baru
3
- description: "Comprehensive template for creating new vibes-plug skills with proper structure, trigger conditions, and bilingual support / Template komprehensif untuk membuat skill vibes-plug baru dengan struktur yang tepat, kondisi pemicu, dan dukungan bilingual."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # [Skill Name] — vibes-plug Skill Template
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- > **HOW TO USE THIS TEMPLATE**
14
- > 1. Copy this entire folder (`skill-baru/`) and rename it using kebab-case (e.g., `my-new-skill/`).
15
- > 2. Replace all placeholder text marked with `[...]` brackets.
16
- > 3. Update the frontmatter `name` and `description` fields above.
17
- > 4. Delete this instruction block before publishing.
18
- > 5. Add your skill to the `brainstorming` orchestration matrix if it belongs to a domain.
19
-
20
- ---
21
-
22
- <a name="english"></a>
23
- ## English
24
-
25
- ### Orchestration & Integration
26
- Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `project-context-mapper` to ensure cohesive execution.
27
-
28
- ### Description
29
- [One paragraph describing the purpose and scope of this skill. Be specific about what problems it solves and what technology versions it targets.]
30
-
31
- Example: *"Expert guide for [Technology/Domain] (v[X.Y]+). Covers [feature A], [feature B], [pattern C], and [best practice D] for production-grade TypeScript/JavaScript applications."*
32
-
33
- ### Trigger Conditions
34
- Activate this skill when the user is:
35
- - [Trigger scenario 1 — be specific, e.g., "Writing X with framework Y"]
36
- - [Trigger scenario 2]
37
- - [Trigger scenario 3]
38
- - [Trigger scenario 4]
39
-
40
- ---
41
-
42
- ### Core Concepts
43
-
44
- #### [Concept 1 — e.g., "Architecture Overview"]
45
- [Explain the foundational concept. Use tables for comparisons, bullet points for lists, and code blocks for examples.]
46
-
47
- ```typescript
48
- // [Language] — [What this code demonstrates]
49
- // Replace this block with a real, runnable code example.
50
- const example = {
51
- field: 'value',
52
- };
53
- ```
54
-
55
- #### [Concept 2 — e.g., "Selection Guide"]
56
-
57
- | Criteria | Option A | Option B | Option C |
58
- |---|---|---|---|
59
- | [Criterion 1] | [Value] | [Value] | [Value] |
60
- | [Criterion 2] | [Value] | [Value] | [Value] |
61
- | **Best For** | [Use case] | [Use case] | [Use case] |
62
-
63
- **Recommendation:** [State a clear default recommendation with rationale.]
64
-
65
- ---
66
-
67
- ### [Main Topic Section 1 — e.g., "Setup & Configuration"]
68
-
69
- #### [Sub-topic 1.1]
70
- ```typescript
71
- // Example: Configuration or setup code
72
- ```
73
-
74
- #### [Sub-topic 1.2]
75
- ```typescript
76
- // Example: Core usage pattern
77
- ```
78
-
79
- ---
80
-
81
- ### [Main Topic Section 2 — e.g., "Best Practices"]
82
-
83
- 1. **[Practice 1]:** [Explanation]
84
- 2. **[Practice 2]:** [Explanation]
85
- 3. **[Practice 3]:** [Explanation]
86
- 4. **[Practice 4]:** [Explanation]
87
-
88
- ---
89
-
90
- ### Common Pitfalls to Avoid
91
-
92
- | Anti-Pattern | Problem | Correct Approach |
93
- |---|---|---|
94
- | [Bad practice 1] | [Why it's bad] | [What to do instead] |
95
- | [Bad practice 2] | [Why it's bad] | [What to do instead] |
96
- | [Bad practice 3] | [Why it's bad] | [What to do instead] |
97
-
98
- ---
99
-
100
- ### Integration with Other Skills (MANDATORY)
101
-
102
- > ⚠️ **Every skill MUST list at least 3 cross-references.** No skill should exist in isolation.
103
-
104
- This skill works best when combined with:
105
- - `[skill-name]` — [Why and when to combine]
106
- - `[skill-name]` — [Why and when to combine]
107
- - `[skill-name]` — [Why and when to combine]
108
-
109
- ### Referenced By Orchestrators (MANDATORY)
110
-
111
- > ⚠️ **Update the orchestrator skills below when creating a new domain skill.**
112
-
113
- This skill should be referenced by the following orchestrators:
114
- - `brainstorming` — Add to the "[Domain]" row in the Skill Integration & Orchestration Matrix
115
- - `zero-to-prod-orchestrator` — Add to Phase [N]: [Phase Name]
116
- - `production-ready-hardener` — Add to Phase [N] if relevant to pre-launch audit
117
-
118
- ---
119
-
120
- <a name="bahasa-indonesia"></a>
121
- ## Bahasa Indonesia
122
-
123
- ### Integrasi Orkestrasi
124
- Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
125
-
126
- ### Deskripsi
127
- [Satu paragraf menjelaskan tujuan dan ruang lingkup skill ini. Spesifik tentang masalah apa yang dipecahkan dan versi teknologi apa yang ditargetkan.]
128
-
129
- Contoh: *"Panduan ahli untuk [Teknologi/Domain] (v[X.Y]+). Mencakup [fitur A], [fitur B], [pola C], dan [praktik terbaik D] untuk aplikasi TypeScript/JavaScript berkualitas produksi."*
130
-
131
- ### Kondisi Pemicu
132
- Aktifkan skill ini ketika pengguna sedang:
133
- - [Skenario pemicu 1 — spesifik, misal: "Menulis X dengan framework Y"]
134
- - [Skenario pemicu 2]
135
- - [Skenario pemicu 3]
136
- - [Skenario pemicu 4]
137
-
138
- ### Panduan Singkat
139
-
140
- [Ringkasan praktis berisi poin-poin utama yang harus diketahui. Merujuk ke bagian English untuk detail teknis dan contoh kode lengkap.]
141
-
142
- - **[Prinsip 1]:** [Penjelasan singkat]
143
- - **[Prinsip 2]:** [Penjelasan singkat]
144
- - **[Prinsip 3]:** [Penjelasan singkat]
145
- - **[Prinsip 4]:** [Penjelasan singkat]
146
-
147
- ### Integrasi dengan Skill Lain (WAJIB)
148
-
149
- > ⚠️ **Setiap skill WAJIB mencantumkan minimal 3 referensi silang.** Tidak ada skill yang boleh berdiri sendiri.
150
-
151
- Skill ini bekerja paling baik dikombinasikan dengan:
152
- - `[nama-skill]` — [Mengapa dan kapan dikombinasikan]
153
- - `[nama-skill]` — [Mengapa dan kapan dikombinasikan]
154
- - `[nama-skill]` — [Mengapa dan kapan dikombinasikan]
155
-
156
- ### Direferensikan oleh Orchestrator (WAJIB)
157
-
158
- Skill ini harus direferensikan oleh orchestrator berikut:
159
- - `brainstorming` — Tambahkan ke baris "[Domain]" di Matriks Orkestrasi
160
- - `zero-to-prod-orchestrator` — Tambahkan ke Fase [N]
161
- - `production-ready-hardener` — Tambahkan ke Fase [N] jika relevan
162
-
163
- ---
164
-
165
- ## Checklist Sebelum Mempublikasikan Skill Ini
166
-
167
- - [ ] Frontmatter `name` dan `description` sudah diisi (bilingual EN/ID).
168
- - [ ] Semua teks `[...]` placeholder sudah diganti.
169
- - [ ] Ada minimal 2 contoh kode yang nyata dan dapat dijalankan.
170
- - [ ] Ada tabel perbandingan atau selection guide jika relevan.
171
- - [ ] Ada bagian "Common Pitfalls" atau anti-pattern.
172
- - [ ] **Bagian "Integration with Other Skills" mencantumkan minimal 3 skill.**
173
- - [ ] **Bagian "Referenced By Orchestrators" sudah diisi.**
174
- - [ ] Bagian Bahasa Indonesia sudah diterjemahkan dengan benar.
175
- - [ ] Blok instruksi ini sudah dihapus.
176
- - [ ] **Skill sudah ditambahkan ke matriks orkestrasi `brainstorming`.**
177
- - [ ] **Skill sudah ditambahkan ke fase yang relevan di `zero-to-prod-orchestrator`.**
178
- - [ ] `BLUEPRINT.md` sudah diperbarui dengan deskripsi skill baru.
@@ -1,91 +0,0 @@
1
- ---
2
- name: supabase-migration
3
- description: "A skill to create or apply a Supabase database migration / Kemampuan untuk membuat atau menerapkan migrasi database Supabase."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Supabase Migration Skill
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- When the user asks to create or apply a database migration for Supabase, follow these instructions:
18
-
19
- ### Instructions
20
- 1. **Check Environment**: Ensure `supabase/migrations` directory exists. Run `list_dir` on it if needed.
21
- 2. **Review Available MCP Commands**: Utilize the Supabase MCP integration.
22
- - For listing existing migrations, use `mcp_supabase-mcp-server_list_migrations` with `project_id`.
23
- - Before executing migration queries on the server directly, confirm the SQL is correct.
24
- 3. **Execute Command**:
25
- - Write the SQL script to a local migration file located in `supabase/migrations/` using `write_to_file`. Use standard timestamps or `supabase migration new` command to get the filename.
26
- - Run `npx supabase migration up` to test locally or use the remote MCP `apply_migration` if the user wants it applied remotely.
27
- 4. **Final Step**: Confirm with the user that the migration successfully completed.
28
-
29
- ### Implementation Checklist
30
- - [ ] Generate a new migration file: `npx supabase migration new [name]`
31
- - [ ] Write raw SQL in the generated migration file (DDL and DML).
32
- - [ ] Test the migration locally: `npx supabase db reset` or `npx supabase migration up`.
33
- - [ ] If using RLS, explicitly add policies to the new tables.
34
- - [ ] Commit the migration file to version control.
35
-
36
- ### Example: Supabase Migration Command Flow
37
- ```bash
38
- # 1. Create a new migration file
39
- npx supabase migration new create_users_table
40
-
41
- # 2. Write SQL to supabase/migrations/<timestamp>_create_users_table.sql
42
- # 3. Apply to local database
43
- npx supabase migration up
44
-
45
- # 4. Apply to remote production database
46
- npx supabase db push
47
- ```
48
-
49
- ## Orchestration & Integration
50
- - Integrates with: `supabase-security-expert`, `database-orm-expert`, `ci-cd-devops-architect`.
51
-
52
- ---
53
-
54
- <a name="bahasa-indonesia"></a>
55
- ## Bahasa Indonesia
56
-
57
- ### Deskripsi
58
- Ketika pengguna meminta untuk membuat atau menerapkan migrasi database untuk Supabase, ikuti instruksi berikut:
59
-
60
- ### Instruksi
61
- 1. **Periksa Lingkungan**: Pastikan direktori `supabase/migrations` ada. Jalankan `list_dir` jika diperlukan.
62
- 2. **Tinjau Perintah MCP yang Tersedia**: Manfaatkan integrasi Supabase MCP.
63
- - Untuk mencantumkan migrasi yang ada, gunakan `mcp_supabase-mcp-server_list_migrations` dengan `project_id`.
64
- - Sebelum menjalankan kueri migrasi di server secara langsung, pastikan kode SQL-nya sudah benar.
65
- 3. **Jalankan Perintah**:
66
- - Tulis skrip SQL ke file migrasi lokal yang terletak di `supabase/migrations/` menggunakan `write_to_file`. Gunakan timestamp standar atau perintah `supabase migration new` untuk mendapatkan nama file.
67
- - Jalankan `npx supabase migration up` untuk menguji secara lokal atau gunakan MCP remote `apply_migration` jika pengguna ingin menerapkannya secara remote.
68
- 4. **Langkah Terakhir**: Konfirmasikan dengan pengguna bahwa migrasi telah berhasil diselesaikan.
69
-
70
- ### Checklist Implementasi
71
- - [ ] Buat file migrasi baru: `npx supabase migration new [nama]`
72
- - [ ] Tulis SQL mentah di file migrasi yang dihasilkan (DDL dan DML).
73
- - [ ] Uji migrasi secara lokal: `npx supabase db reset` atau `npx supabase migration up`.
74
- - [ ] Jika menggunakan RLS, tambahkan kebijakan secara eksplisit ke tabel baru.
75
- - [ ] Commit file migrasi ke sistem kontrol versi.
76
-
77
- ### Contoh: Alur Perintah Migrasi Supabase
78
- ```bash
79
- # 1. Buat file migrasi baru
80
- npx supabase migration new create_users_table
81
-
82
- # 2. Tulis SQL ke supabase/migrations/<timestamp>_create_users_table.sql
83
- # 3. Terapkan ke database lokal
84
- npx supabase migration up
85
-
86
- # 4. Terapkan ke database remote produksi
87
- npx supabase db push
88
- ```
89
-
90
- ## Integrasi Orkestrasi
91
- - Terintegrasi dengan: `supabase-security-expert`, `database-orm-expert`, `ci-cd-devops-architect`.
@@ -1,119 +0,0 @@
1
- ---
2
- name: token-saver
3
- description: "Skill to implement token saving scheme, concise, and focused on essential changes / Skill untuk menerapkan skema penghematan token, ringkas, dan fokus pada perubahan esensial tanpa basa-basi."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Token Saver Protocol (2026 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- Implements token-efficient communication protocols for long-context AI coding sessions. Activates concise mode — minimizing response verbosity while maintaining precision and completeness of technical output.
18
-
19
- ### Trigger Conditions
20
- - User asks for token-saving mode, concise responses, or minimal output.
21
- - Session is running long and context window is being consumed rapidly.
22
- - User explicitly says "be concise", "save tokens", or "minimal".
23
-
24
- ### Token Budget Strategies for Long Context
25
-
26
- #### 1. Response Compression Rules (Active When Triggered)
27
- - **No preamble**: Skip "Of course! I'll help you with that...".
28
- - **No restatement**: Never repeat back what the user just said.
29
- - **No trailing summaries**: Don't summarize what you just did at the end.
30
- - **Code-first**: Show the code change immediately, explain briefly after.
31
- - **Diff format**: For small changes, show only the changed lines (not the full file).
32
- - **Bullet > prose**: Use bullet lists instead of paragraphs for explanations.
33
-
34
- #### 2. Tool Call Efficiency
35
- - **Batch parallel reads**: Read multiple files in a single turn (not sequentially).
36
- - **Targeted grep over full reads**: Use `grep_search` to find specific content before reading the whole file.
37
- - **Write once**: Produce correct output on first try — avoid edit-then-edit-again cycles.
38
- - **Skip confirmation requests**: Don't ask "Shall I proceed?" — just proceed.
39
-
40
- #### 3. Context Window Budget Awareness
41
- When working on a long session:
42
- ```
43
- Token budget allocation (for 200K context):
44
- ├── System prompt + skills: ~15K
45
- ├── Conversation history: ~50K (truncates older turns)
46
- ├── File contents read: ~100K (most expensive)
47
- └── Response generation: ~35K
48
- ```
49
- - Prefer `grep_search` over reading full large files.
50
- - Summarize large files mentally; only `view_file` the specific section needed.
51
- - When context is nearly full, create a checkpoint with `session-handoff-resume` skill.
52
-
53
- #### 4. Output Size Minimization
54
- For file edits:
55
- ```diff
56
- # Preferred: diff format showing only changes
57
- - const OLD_VALUE = 'old';
58
- + const NEW_VALUE = 'new';
59
- ```
60
-
61
- For explanations:
62
- ```
63
- # Preferred: 1-sentence rationale
64
- Changed X to Y because Z.
65
-
66
- # Avoid: multi-paragraph explanation of an obvious change
67
- ```
68
-
69
- #### 5. Code Generation — First Draft Quality
70
- Generate correct, production-ready code on the first attempt:
71
- - Apply all relevant best practices from skills without being asked.
72
- - Include error handling, types, and edge cases inline.
73
- - Avoid TODOs, placeholder values, or "implement this later" comments.
74
-
75
- ---
76
-
77
- <a name="bahasa-indonesia"></a>
78
- ## Bahasa Indonesia
79
-
80
- ### Deskripsi
81
- Mengimplementasikan protokol komunikasi hemat token untuk sesi coding AI yang panjang. Mengaktifkan mode ringkas — meminimalkan verbositas respons sambil mempertahankan presisi dan kelengkapan output teknis.
82
-
83
- ### Kondisi Pemicu
84
- - Pengguna meminta mode hemat token, respons ringkas, atau output minimal.
85
- - Sesi sudah panjang dan context window sedang dikonsumsi dengan cepat.
86
- - Pengguna secara eksplisit berkata "ringkas", "hemat token", atau "minimal".
87
-
88
- ### Strategi Token Budget untuk Konteks Panjang
89
-
90
- #### 1. Aturan Kompresi Respons (Aktif Saat Dipicu)
91
- - Tanpa pembuka: Lewati "Tentu saja! Saya akan membantu Anda dengan...".
92
- - Tanpa pengulangan: Jangan pernah mengulangi apa yang baru saja dikatakan pengguna.
93
- - Tanpa ringkasan di akhir: Jangan rangkum apa yang baru saja dilakukan.
94
- - Code-first: Tunjukkan perubahan kode segera, jelaskan singkat setelahnya.
95
- - Format diff: Untuk perubahan kecil, tunjukkan hanya baris yang berubah.
96
- - Poin > prosa: Gunakan daftar poin daripada paragraf.
97
-
98
- #### 2. Efisiensi Pemanggilan Tool
99
- - Baca beberapa file secara paralel dalam satu giliran.
100
- - Gunakan `grep_search` untuk menemukan konten spesifik sebelum membaca file lengkap.
101
- - Hasilkan output yang benar pada percobaan pertama.
102
- - Jangan tanyakan "Apakah saya harus melanjutkan?" — langsung lanjutkan.
103
-
104
- #### 3. Kesadaran Budget Context Window
105
- Alokasikan token secara bijak: batasi baca file besar, gunakan `grep_search` daripada membaca file penuh, dan buat checkpoint dengan skill `session-handoff-resume` saat konteks hampir penuh.
106
-
107
- #### 4. Minimalisasi Ukuran Output
108
- Gunakan format diff untuk edit file. Berikan penjelasan 1 kalimat untuk perubahan yang jelas.
109
-
110
- #### 5. Kualitas Draft Kode Pertama
111
- Hasilkan kode yang benar dan siap produksi pada percobaan pertama — termasuk error handling, tipe, dan edge case secara inline. Hindari TODO, nilai placeholder, atau komentar "implementasikan ini nanti".
112
-
113
- ---
114
-
115
- ## Orchestration & Integration
116
- - Integrates with `zero-to-prod-orchestrator`, `session-handoff-resume`, `brainstorming`, and `ai-cost-token-optimizer`.
117
-
118
- ## Integrasi Orkestrasi
119
- - Terintegrasi dengan `zero-to-prod-orchestrator`, `session-handoff-resume`, `brainstorming`, dan `ai-cost-token-optimizer`.