mcpField
C
convex

convex

github.com/waynesuttonDevelopment4055.7k installsUpdated 4w ago
Repository

About convex

A skill guide for coding agents working with Convex. It routes tasks to focused skills for functions, data modeling, security, and project workflows, with baseline rules that apply when no specialized skill fits.

Key features

  1. 01Select Convex skills by task
  2. 02Cover functions, realtime, and storage
  3. 03Provide security checks and audits
  4. 04Include workflow and Git safety rules

Use cases

  1. 01Implement Convex queries, mutations, and actions
  2. 02Design schemas, indexes, or data migrations
  3. 03Review public function access and data exposure
  4. 04Plan multi-step work or safely undo changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/waynesutton/builder-skills --skill convex

After installing, type/convexin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlassets/small-logo.svg

Details

From the project README

Convex

Start here, pick the matching skill below, and load it. If nothing matches, the rules at the bottom still apply.

Pick a skill

SkillLoad when
convex-best-practicesgeneral patterns, project structure, "is this the Convex way"
convex-functionsqueries, mutations, actions, internal functions, error handling
convex-schema-validatortables, indexes, validators, v.* types, schema changes
convex-realtimeuseQuery, optimistic updates, pagination, presence, rerender churn
convex-http-actionswebhooks, REST endpoints, convex/http.ts, Stripe or Clerk callbacks
convex-file-storageuploads, upload URLs, serving files, storage cleanup
convex-cron-jobscrons.ts, runAfter, runAt, batching, a cron that is not firing
convex-migrationsbackfills, renaming fields, schema evolution with live data
convex-agentsAI agents, threads, tools, streaming, RAG with @convex-dev/agent
convex-component-authoringbuilding a reusable component package, defineComponent
convex-security-checkfast pre ship audit: auth on public functions, exposed data
convex-security-auditdeep review: authorization model, injection, rate limits, secrets
avoid-feature-creepscope pushback, MVP cuts, "just one more feature"
project-workflowmulti step tasks, PRDs in prds/, task.md, plans for review
project-docssyncing task.md, changelog.md, files.md with shipped code
git-safetyrevert, undo, reset, checkout, clean, stash, force push

Two skills often apply at once. Load the domain skill for the code and the process skill for the workflow, for example convex-functions plus project-workflow.

Rules that hold everywhere

  • Every function declares args and returns validators, including internal ones.
  • Read through withIndex. .filter() on a table scan is a bug waiting for data.
  • Mutations are idempotent. Check current state, return early when there is nothing to do.
  • Schedule and cron only internal.* functions. Never api.*.
  • Never call Date.now() inside a query. Pass time in as an argument.
  • Use npx convex dev for development. Do not run npx convex deploy unless asked.
  • Fetch https://docs.convex.dev/llms.txt before trusting memory about an API.

Do not

  • Edit anything under convex/_generated/.
  • Use crons.daily, crons.hourly, or crons.weekly. Use crons.interval or crons.cron.
  • Put "use node" in a file that also exports queries or mutations.
  • Run git commands that discard work without loading git-safety first.

Docs

Comments

Markdown supported