Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Convex Agents

A code-pattern skill for building stateful AI agents on Convex with threads, tools, streaming, RAG and multi-step workflows.

Dev & CodingIntermediate40232AI score 7/10Last updated: Feb 6, 2026

What it does

  • Shows how to set up an agent with the @convex-dev/agent component.
  • Provides thread management code (create, list, fetch messages) so chat history persists.
  • Covers tool definitions for function calling, token streaming to clients, and vector-search RAG.
  • Includes a multi-step research workflow (search → analyze → summarize), a full Convex schema with vectorIndex, and a React chat UI example.
  • Adds guardrails: never run npx convex deploy or git commands unprompted, plus a common-pitfalls list.

Who it's for

  • Full-stack developers using Convex as a backend who want to add AI chat or agents.
  • TypeScript/React teams prototyping streaming chat and retrieval-augmented answers.
  • Anyone needing durable, long-running agent workflows on serverless infrastructure.

Usage examples

  1. "Build a Convex chat backend with per-user conversation threads" → generates schema plus mutations/queries.
  2. "Give the agent tools to create tasks and search the knowledge base" → generates tool() definitions and an action with a system prompt.
  3. "Set up RAG: embed documents on insert and answer from vector search" → generates the vector index schema and search query.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/waynesutton/convexskills/HEAD/skills/convex-agents/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the skills/convex-agents folder from the GitHub repo waynesutton/convexskills into my ~/.claude/skills/convex-agents/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/waynesutton/convexskills.git /tmp/convexskills && mkdir -p ~/.claude/skills && cp -r /tmp/convexskills/skills/convex-agents ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/waynesutton/convexskills.git
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r convexskills/skills/convex-agents ~/.claude/skills/
  5. Confirm ~/.claude/skills/convex-agents/SKILL.md exists.
  6. Restart Claude Code and try a prompt like "build an AI agent chat with Convex".
  7. Install the runtime dependencies in your project: npm install @convex-dev/agent ai openai
View source on GitHubLicense: Apache-2.0