agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/convex/SKILL.md

convex

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use convex-migration-helper, convex-performance-audit and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • vantageos-agencySkill

    convex-migration-helper

    Plans and executes safe Convex schema and data migrations using the widen-migrate-narrow workflow and the @convex-dev/migrations component. Use this skill when a deployment fails schema validation, existing documents need backfilling, fields need adding or removing or changing type, tables need splitting or merging, or a zero-downtime migration strategy is needed. Also use when the user mentions breaking schema changes, multi-deploy rollouts, or data transformations on existing Convex tables.

    Also in 8 projects that use this

  • vantageos-agencySkill

    convex-performance-audit

    Audits and optimizes Convex application performance across hot-path reads, write contention, subscription cost, and function limits. Use this skill when a Convex feature is slow or expensive, npx convex insights shows high bytes or documents read, OCC conflict errors or mutation retries appear, subscriptions or UI updates are costly, functions hit execution or transaction limits, or the user mentions performance, latency, read amplification, or invalidation problems in a Convex app.

    Also in 8 projects that use this

  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

  • +1 more from vantageos-agency

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write a query function in your convex/ folder.

    line 12
  2. Very specific:

    Use mutation functions for deterministic database writes.

    line 16
  3. Very specific:

    Use the convex-test library to write unit tests for your backend functions, passing in mock authentication states to verify your row-level …

    line 28
  4. Very specific:

    If a mutation throws a non-deterministic error (e.g., Math.random() or fetch()), Convex will reject it.

    line 31
  5. Distinctive:

    Use this when your agent works with convex — structured patterns beat pasted docs and prevent common hallucinations.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Convex API Skill

Quick Start

Convex manages your database, server functions, and client state. You write server functions in TypeScript, and Convex automatically syncs the results to your React frontend via WebSockets.

npm install convex

Common Workflows

Realtime Queries

Write a query function in your convex/ folder. In your React component, use useQuery(api.messages.list). Convex handles the WebSocket subscription; if the database changes, the React component automatically re-renders.

Production Patterns

Mutations and Actions

Use mutation functions for deterministic database writes. Use action functions (which can call third-party APIs like OpenAI or Stripe) for non-deterministic side effects. Actions can subsequently call mutations to update the database.

Error Recovery

Convex automatically retries deterministic queries and mutations if they fail due to transient database locks. Actions are NOT retried automatically; handle HTTP failures explicitly within your action code.

Security Notes

Enforce authorization directly within your Convex query and mutation functions by verifying the ctx.auth object before reading or writing data.

Performance Considerations

Because queries are strictly deterministic, Convex caches their results transparently. Avoid fetching massive data sets; utilize pagination patterns or explicit limit clauses.

Testing Guidance

Use the convex-test library to write unit tests for your backend functions, passing in mock authentication states to verify your row-level security logic.

Troubleshooting

If a mutation throws a non-deterministic error (e.g., Math.random() or fetch()), Convex will reject it. Move side-effects into action functions.

References

Related Skills

  • Clerk
  • Vercel

Why use this skill

Use this when your agent works with convex — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • clerk — related to
  • vercel — related to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.