convex-suggest

作者: get-convex

当用户手动实现Convex已解决的模式(crons、sharded-counter、rate-limiter、storage、search、presence、workflow、RAG、prosemirror-sync)时,建议匹配的Convex组件。被动式——在任务完成后建议,绝不打断。未经同意绝不安装。

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 智能体 / 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)