Agent Skills
› openclaw/clawhub
› convex-agent
convex-agent
GitHub在 Convex 应用中集成 AI Agent 和 RAG 后端,支持持久化对话线程、消息历史、工具调用及向量搜索。
Trigger Scenarios
需要为应用添加 AI 代理功能
实现基于 LLM 的 RAG 检索增强生成
配置 Convex 中的向量索引和嵌入
Install
npx skills add openclaw/clawhub --skill convex-agent -g -y
SKILL.md
Frontmatter
{
"name": "convex-agent",
"description": "Add an AI agent \/ RAG backend (@convex-dev\/agent) to the Convex app."
}
Add an AI agent / RAG backend
Install @convex-dev/agent for durable threads, message history, tool-calls, and vector search/RAG — the backend for an in-app AI agent.
Workflow
- Install @convex-dev/agent + add to convex.config.ts.
- Define the agent (model, tools, instructions); store the LLM key via the
envmicro power. - Create threads + stream messages; persist history in Convex.
- For RAG: embed docs into a vector index and retrieve in the tool.
Rules
- Keep the LLM API key in Convex env (use the
envmicro power), never client-side. - Run model calls in actions ('use node' if the SDK needs it).
- Persist threads/messages in Convex for durability + reactivity.
Version History
- d6a8c68 Current 2026-08-20 02:43


