---
id: gh-convex-add
name: "convex-add"
url: https://skills.yangsir.net/skill/gh-convex-add
author: convex
domain: ai-backend-engineering
tags: ["convex", "backend", "component-install", "capability-catalog", "integration"]
install_count: 46400
rating: 4.70 (120 reviews)
github: https://github.com/convex/agent-skills/tree/main/skills/convex-add
---

# convex-add

> 为现有 Convex 应用按需添加后端能力(托管发布、计费、定时任务、认证、搜索、AI Agent 等)。该 Skill 先查询在线能力目录获取始终最新的标准流程,命中即按文档指引接入,未命中或目录不可达时自动回退到内置托管接线与 @convex-dev 组件搜索,避免硬编码映射与版本过期。

**Stats**: 46,400 installs · 4.7/5 (120 reviews)

## Before / After 对比

### 接入一项后端能力所需时间

**Before**:

开发者想给已有 Convex 应用加托管或计费能力,得先翻文档、猜组件名、手动比对版本,经常装错包或漏掉接线步骤。

**After**:

此技能先查在线能力目录拿到最新流程,命中即逐步执行;未命中则自动走组件搜索,直接给出候选与安装接线方案。

| Metric | Before | After | Change |
|---|---|---|---|
| 接入耗时 | 60分钟 | 10分钟 | -83% |

### 因过期映射导致的返工次数

**Before**:

组件名与接入方式写死在提示或笔记里,官方更新后旧映射失效,接入失败还得重新排查,平均每条能力返工数次。

**After**:

该 Skill 禁止硬编码组件映射,始终使用实时候选列表与线上目录文档,能力覆盖范围随服务端更新自动扩展。

| Metric | Before | After | Change |
|---|---|---|---|
| 平均返工次数 | 3次 | 0次 | -100% |

## Readme

<!-- 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.


---
*Source: https://skills.yangsir.net/skill/gh-convex-add*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-convex-add/markdown*