convex-suggest

作者: get-convex

在使用者手動實作 Convex 已能解決的模式(crons、sharded-counter、rate-limiter、storage、search、presence、workflow、RAG、prosemirror-sync)時,建議相符的 Convex component。被動式——在工作完成後建議,絕不中斷。未經同意絕不安裝。

npx skills add https://github.com/get-convex/agent-skills --skill convex-suggest

Proactively suggest the right Convex component

When you see code or intent that duplicates what a Convex component already does, surface a targeted suggestion: ONE component, WHY (anchored in the user's own code or ask), and a concrete install hint. Never install without explicit consent. Never suggest more than one component at a time unless the user asks.

Workflow

  1. Observe the codeSnippets and userAsk passively — never block the current task to suggest.
  2. Match against the detector rules (see generators/suggest-detector.mjs): email/SMTP → resend; push notifications → expo-push; setInterval/cron → @convex-dev/crons; shared counter increments → @convex-dev/sharded-counter; .collect().length scans → @convex-dev/aggregate; multi-step/long-running actions → @convex-dev/workflow; bounded concurrency → @convex-dev/workpool; rate-limit counters in DB → @convex-dev/rate-limiter; fs.write/S3 uploads → Convex Storage; Elasticsearch/Algolia → built-in full-text search; presence/typing → @convex-dev/presence; Pinecone/external vector DB → @convex-dev/rag; collaborative editing → @convex-dev/prosemirror-sync.
  3. After finishing the current task, offer ONE suggestion: name the component, quote the specific code or phrase that triggered it, explain why the component fits better.
  4. If the user says yes: follow the installHint from the detector.
  5. If the user says no or ignores it: drop it. Do not repeat the same suggestion.

Rules

  • Passive — never interrupt the current task; surface the suggestion AFTER completing what the user asked.
  • One at a time — pick the highest-priority match; do not dump a list of five components.
  • Cite WHY from the user's own code or ask — 'I noticed you wrote post.likes + 1 in a mutation that many users call concurrently; that causes OCC conflicts at scale.'
  • Never install without explicit consent — suggest, explain, wait for a yes.
  • Do not suggest a component the user has already installed.
  • Do not fire on generic coding questions unrelated to Convex (sorting arrays, writing CSS, etc.).

來自 get-convex 的更多技能

convex
get-convex
將一般 Convex 請求路由至正確的專案技能。當使用者詢問該使用哪個 Convex 技能,或給出未明確指定的 Convex 應用任務時使用。
developmentdatabase
convex-add
get-convex
為目前的 Convex 應用程式新增功能——查閱已提供的 Convex 功能目錄,以取得最新的操作程序(計費、定時任務、驗證、代理、搜尋等);若無法查閱,則回退至內建託管或 @convex-dev 元件搜尋。當使用者執行 /add,或要求為現有 Convex 應用程式新增託管/發布或任何後端功能時觸發。
convex-advisor
get-convex
讀取 Convex 部署的 72 小時洞察(讀取限制、OCC 競爭),在程式碼中根因分析每個事件,並回報有證據支援的效能/成本發現與修復方案。
developmentdatabasedata-analysis
convex-agent
get-convex
為 Convex 應用程式新增 AI agent / RAG 後端 (@convex-dev/agent)。
convex-auth
get-convex
為目前的 Convex 應用程式新增驗證(passkeys/OAuth),包括 auth.config.ts 的設定。
convex-authz
get-convex
審核並強化 Convex 授權:從參數冒充身份、缺少逐文件所有權檢查、洩漏 PII 的公開查詢,以及寫入呼叫者不擁有的容器。確定性掃描 + 標準 requireIdentity/requireOwner 修復 + tsc 驗證。用於「保護我的應用程式」/「審核驗證」/「誰可以存取此資料」,而非一般程式碼審查。
convex-backup
get-convex
設定 Convex 備份並執行還原演練以證明可恢復性——快照、還原至臨時的預覽環境、驗證資料是否成功回歸——同時建立符合 RPO 的排程,以及具備閘控機制的復原操作手冊。
convex-billing
get-convex
透過 @convex-dev/stripe 為 Convex 應用程式新增 Stripe 帳單/付款功能(checkout + webhook + gating)。