跳到正文
Skillpedia
API 与服务器(后端)9.5k · #12259

convex-suggest

它能做什么

这个技能会指出你的 Convex 代码中,可以用现成组件替代手写代码的地方,例如定时任务或速率限制。适合希望避免重复造轮子的开发者。

适用场景

  • ✓当你的 Convex 代码手动构建了定时任务或周期性任务时。
  • ✓当你的应用从零开始添加速率限制、邮件发送或文件存储时。
  • ✓当你正在构建的功能(如在线状态或搜索)已有 Convex 组件覆盖时。

技能链接

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-suggest/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-suggest/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的 Convex 代码中是否有地方可以改用现成的组件。”

每周 5 个新技能,1 分钟读完。

工作原理

在工作过程中,智能体会留意重复常见模式的代码。任务完成后,它会提出一条建议,说明组件名称和触发建议的代码,并在安装任何东西之前先询问你。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- GENERATED from convex-agents content/capabilities/suggest.json — do not edit by hand. -->

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: run /add <component> or 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.).
常见问题

它会自行安装组件吗?

不会。未经你同意,它绝不会安装组件。

它会用建议打断我的工作吗?

不会。除非你要求,否则它只会在当前任务完成后提出最多一条建议。

它能推荐哪些组件?

例如定时任务、速率限制器、工作流、搜索、在线状态和邮件发送等,取决于你的代码做什么。

详情

作者的原始描述

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能