Langsung ke konten
Skillpedia
API & server (backend)9.5k Β· #12232

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-advisor/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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.

<!-- GENERATED from convex-agents content/capabilities/convex-advisor.json β€” do not edit by hand. -->

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

  1. 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.
  2. GATHER (deterministic, via the official Convex MCP): status β†’ deployment selector; insights β†’ the typed 72h events; tables β†’ schema + row counts; functionSpec β†’ the public/internal surface. The insights tool 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.
  3. 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.
  4. 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.
  5. 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 insights after traffic to verify the trend, or re-run the static check immediately.
  6. 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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa