Convex's official top-level agent skill — routes an agent to the right convex-* skill for the task and to a served capability catalogue that stays current without a reinstall.
Convex Create Component Skill
Convex's official skill for building reusable Convex components: isolated tables, a small app-facing API, app-side wrappers for auth and env, and the boundary rules that trip agents up.
Install
Other ways to install
About
- Decision tree for local, packaged (npm) or hybrid components, with one reference file per shape
- Complete local component skeleton: convex.config.ts, schema with index, mutation, query and app wiring
- App-side wrapper pattern so clients never call component functions directly
- Boundary rules for auth, environment variables, ID types, HTTP routes and pagination
- Requires args and returns validators on every public component function
- Ends with npx convex dev to fix codegen, type and boundary errors
Convex Create Component is the Convex team's agent skill for packaging backend logic as a Convex component, a self-contained module that owns its own tables and functions and is installed into an app with app.use(...). It walks the agent from the decision ("does this need to be a component at all?") through a local, packaged or hybrid shape, each backed by its own reference file, to a working component that passes npx convex dev.
The skill includes a complete minimal example (a notifications component with a schema, an index, a mutation and a query, plus the app-side wrapper) and spells out the boundary rules that cause most failed attempts: ctx.auth and process.env are unavailable inside a component, so the app resolves identity and secrets and passes them in; parent-table IDs cross the boundary as strings; component functions import from their own _generated/server; HTTP routes are mounted in the app's convex/http.ts; and pagination uses convex-helpers' paginator because .paginate() does not work across the boundary.
It is meant for TypeScript developers on Convex who want reusable backend modules or third-party integrations with their own persistent state, and it explicitly steers one-off business logic back into ordinary app code. Apache-2.0, from the convex/agent-skills collection.
SKILL.md
The instructions your agent loads, as published by Convex.
Related Skills
See all Convex Create Component alternativesConvex's official skill for turning a one-sentence app idea into a running Next.js + Convex template with an anonymous dev deployment, plus strict rules for writing Convex functions that compile and push first time.
Skill: Convex Live Migrations
by Convex
Convex's official skill for changing the schema of a deployed app without breaking it — add the field optional, backfill with @convex-dev/migrations, verify, then tighten the validator.
Skill: Convex Auth Setup
by Convex
Convex's official skill for adding passkey or OAuth authentication to a Convex app — including the auth.config.ts wiring and a headless key-generation path that avoids the interactive wizard.