convex-advisor
Fungsinya
Skill ini memeriksa data kesehatan asli dari deployment Convex Anda yang aktif, seperti pembacaan berat dan konflik penulisan, lalu menjelaskan penyebab setiap masalah di kode Anda. Skill ini ditujukan untuk pengembang yang ingin memperbaiki fungsi backend yang lambat atau mahal.
Kapan dipakai
- βSaat aplikasi Convex Anda lambat atau tagihannya terus naik dan Anda ingin tahu penyebabnya.
- βSaat Anda melihat peringatan konflik penulisan atau batas pembacaan di deployment Anda.
- βSaat Anda ingin tinjauan performa berdasarkan pemakaian nyata, bukan tebakan.
Link skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-advisor/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPeriksa deployment Convex saya yang aktif untuk mencari fungsi yang lambat atau mahal, lalu beri tahu saya apa yang perlu diperbaiki.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini memastikan deployment mana yang sedang dibaca, mengambil kejadian 72 jam terakhir dengan alat resmi Convex, lalu membaca kode dari setiap fungsi yang ditandai. Setelah itu skill menulis temuan yang didukung bukti, beserta saran perbaikannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Live-deployment advisor
Static review guesses; the deployment KNOWS. The official Convex MCP ships an insights tool with typed 72h health events per function β documentsReadLimit / bytesReadLimit (hard limit hits), documentsReadThreshold / bytesReadThreshold (approaching), occFailedPermanently / occRetried (write contention) β each carrying evidence (table_name, bytes_read, documents_read, occ document id + retry count). The advisor turns each event into a root-caused finding by reading the flagged function's actual code, and emits findings on the findings bus (specs/finding.schema.json) so fixers can be dispatched and launch-readiness can score.
Workflow
- GUARD: run deploy-guard step 0-1 β identify + announce the deployment being read. Reading insights/logs on prod is allowed read-only; never enable mutating prod access for an advisory pass.
- GATHER (deterministic, via the official Convex MCP):
statusβ deployment selector;insightsβ the typed 72h events;tablesβ schema + row counts;functionSpecβ the public/internal surface. Theinsightstool is only available on cloud dev/prod deployments when logged in as a user (not on previews or deploy-key-scoped contexts) and needs ~72h of traffic; if it returns nothing or is unavailable, say so and fall back to offering convex-reviewer β do NOT invent findings. - ROOT-CAUSE each insight event by reading the flagged function's code:
- bytesReadThreshold/Limit or documentsReadThreshold/Limit β look for
.collect()/ unindexed.filter()/ missing pagination on the named table; the fix is an index +.withIndex,.take(n), or.paginate(convex-expert patterns), or an aggregate component for counting shapes. - occRetried / occFailedPermanently β look for read-modify-write hotspots on the named document (shared counters, status toggles); the fix is @convex-dev/sharded-counter, narrowing the read set, or moving contention to a workpool.
- repeated failures in
logs(status: failure) β classify: crash loop in a cron, validator rejections, unhandled error shapes.
- bytesReadThreshold/Limit or documentsReadThreshold/Limit β look for
- EMIT findings per specs/finding.schema.json: class perf/correctness/cost, severity from the insight kind (limit hits = high, thresholds = med, retried = med, permanent OCC failure = high), locus {kind: deployment, functionId, tableName}, evidence {kind: insight-event, detail: the raw event}, confidence: confirmed (the event happened β it is not a hypothesis), fixCapability + autofixable where the repair is mechanical.
- REPORT: findings ranked by severity, each with (a) the runtime evidence in one line ('messages:list read 4.2MB from messages 31Γ yesterday'), (b) the code-level root cause with file:line, (c) the concrete fix and which capability applies it. Offer to apply fixes; apply only on confirmation, then re-run
insightsafter traffic to verify the trend, or re-run the static check immediately. - Scope discipline: this is a health/perf/cost pass. Route authz findings to convex-authz, code-idiom findings to convex-reviewer, error triage to sentinel β emit a pointer finding rather than duplicating their work.
Rules
- Evidence-not-vibes: every finding cites a real insight event, log line, or table stat β if the deployment has no evidence, the advisor has no findings (offer convex-reviewer instead).
- Read-only by construction: an advisory pass never mutates any deployment and never enables prod mutation flags (deploy-guard discipline applies).
- Root-cause in the code before reporting: an insight event names the symptom; the finding must name the line and the mechanism.
- Emit on the findings bus (specs/finding.schema.json), confidence: confirmed β runtime events are facts, not hypotheses.
- Severity from the event kind: limit-hit / permanent-OCC-failure = high; threshold / retried = med.
- Stay in lane: perf/cost/health only β hand authz to convex-authz, style to convex-reviewer, error triage to sentinel.
- Prefer component fixes over hand-rolls when they match (sharded-counter for OCC on counters, aggregate for count scans) β same bias as suggest.
Pertanyaan umum
Apakah skill ini mengubah produksi?
Tidak. Skill ini hanya membaca data produksi dan tidak mengaktifkan perubahan apa pun di sana.
Bagaimana jika lalu lintasnya belum cukup?
Alat wawasan membutuhkan sekitar 72 jam lalu lintas, jadi skill akan menyebutkannya dan tidak menebak-nebak.
Deployment mana saja yang didukung?
Alat wawasan tersedia untuk deployment cloud dev dan produksi saat Anda masuk sebagai pengguna.
Detail
Deskripsi asli dari pembuat
Read the Convex deployment's 72h insights (read limits, OCC contention), root-cause each event in code, report evidence-backed perf/cost findings with fixes.
repo: openclaw/clawhub
Popularitas
- Bintang GitHub
- 9.5k
- Peringkat
- #12232
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
axiom-alerting
9.5kMembantu agen Anda membuat dan mengelola monitor Axiom serta rute notifikasi melalui API Axiom, dan memeriksa apakah peringatan berperilaku sesuai harapan.
axiom-sre
9.5kMembantu agen Anda menyelidiki insiden dan bug produksi langkah demi langkah, menguji setiap dugaan terhadap log Axiom sebelum menarik kesimpulan.
building-dashboards
9.5kMembantu agen Anda mendesain dasbor Axiom dengan grafik, kueri, dan filter yang sesuai, dimulai dari keputusan yang harus didukung dasbor tersebut.
controlling-costs
9.5kMembantu agen Anda menemukan data yang tidak terpakai di Axiom dan membangun dasbor serta monitor yang melacak dan memangkas biaya logging.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.