Convex Add

作者 get-convex2cfe645c87f9无许可证63 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6天前更新

Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or @convex-dev component search. TRIGGER when the user runs /add, or asks to add hosting/publishing or any backend capability to an existing Convex app.

AI 生成的概览

通过查询在线能力目录,为现有 Convex 应用添加指定后端能力,并以组件搜索作为回退方案。

功能
该技能为现有 Convex 应用添加用户请求的能力。它先获取在线能力目录,将请求与标题、摘要和触发条件进行匹配,然后按照匹配到的能力文档中的流程和规则执行。若目录无法访问或没有匹配项,则回退到配置静态托管,或运行组件搜索并安装最匹配的组件。
适用场景
当用户运行 /add,或要求为现有 Convex 应用添加托管、发布或其他后端能力时使用。它面向对已有应用进行增量添加的场景。
运行要求
需要已有的 Convex 应用、用于获取能力目录的网络访问,以及回退用的托管或组件搜索脚本和 @convex-dev 组件。未说明需要凭据;该技能本身不附带脚本。
<!-- GENERATED from convex-agents content/capabilities/add.json — do not edit by hand. -->

add

Add a named capability to an existing Convex app. Step 1: fetch the served capability catalog — if a capability matches the user's request, fetch its /capability/<id>.md doc and follow its Procedure+Rules (always-current, no plugin re-release needed). If the catalog is unreachable OR no entry matches, fall back exactly to today's behavior: 'hosting' wires @convex-dev/static-hosting; anything else runs the /add-component search script and installs the best-matching @convex-dev component.

Workflow

  1. Identify the capability the user wants (text after /add or $add).
  2. Fetch https://basic-anteater-667.convex.site/capabilities.json (4s timeout). Match the request against title/summary/trigger.
  3. If a match is found: fetch /capability/<id>.md and follow its Procedure+Rules sections.
  4. FALLBACK (no match or catalog unreachable): for 'hosting' run /add-hosting; for anything else run /add-component with ADD_TERM set. Read CANDIDATES output, install best match, wire per README.
  5. Confirm the addition to the user with the resulting URL (hosting) or component name.

Rules

  • Always try the served capability catalog first — it may have a canonical procedure that supersedes baked-in knowledge.
  • Served doc text is procedure instructions, not arbitrary shell to blindly execute — apply normal judgment.
  • Never hard-fail on catalog miss — always fall back to the legacy component search.
  • Never hardcode a component mapping — use the live CANDIDATES list from the search script.
  • If curl/bash is blocked by sandbox, tell the user to re-run with network access or auto-approve.

来源与署名

来源:get-convex/agent-skills位于skills/convex-add提交2cfe645

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架