convex-suggest
它能做什么
这个技能会指出你的 Convex 代码中,可以用现成组件替代手写代码的地方,例如定时任务或速率限制。适合希望避免重复造轮子的开发者。
适用场景
- ✓当你的 Convex 代码手动构建了定时任务或周期性任务时。
- ✓当你的应用从零开始添加速率限制、邮件发送或文件存储时。
- ✓当你正在构建的功能(如在线状态或搜索)已有 Convex 组件覆盖时。
技能链接
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-suggest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的 Convex 代码中是否有地方可以改用现成的组件。”
每周 5 个新技能,1 分钟读完。
工作原理
在工作过程中,智能体会留意重复常见模式的代码。任务完成后,它会提出一条建议,说明组件名称和触发建议的代码,并在安装任何东西之前先询问你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Observe the codeSnippets and userAsk passively — never block the current task to suggest.
- 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.
- 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.
- If the user says yes: run
/add <component>or follow the installHint from the detector. - 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 + 1in 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.).
常见问题
它会自行安装组件吗?
不会。未经你同意,它绝不会安装组件。
它会用建议打断我的工作吗?
不会。除非你要求,否则它只会在当前任务完成后提出最多一条建议。
它能推荐哪些组件?
例如定时任务、速率限制器、工作流、搜索、在线状态和邮件发送等,取决于你的代码做什么。
详情
作者的原始描述
Suggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, workflow, RAG, prosemirror-sync). Passive — suggest after the task, never interrupt. Never install without consent.
repo: openclaw/clawhub
热度
- GitHub 星标
- 9.5k
- 排名
- #12259
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
axiom-alerting
9.5k帮你的智能体通过 Axiom API 创建和管理监控器与通知路由,并检查告警是否按预期运行。
axiom-sre
9.5k帮你的智能体逐步调查生产事故和缺陷,在得出结论之前,用 Axiom 日志验证每一个猜测。
building-dashboards
9.5k帮你的智能体从仪表盘必须支持的决策出发,设计配有合适图表、查询和筛选器的 Axiom 仪表盘。
controlling-costs
9.5k帮你的智能体在 Axiom 中找出未被使用的数据,并构建用于追踪和削减日志成本的仪表盘与监控器。