Guide · Agent skill
How to use the Convex Code Reviewer agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The Convex Code Reviewer is an agent skill that teaches an AI agent to review the code in a Convex project's convex/ folder against a fixed Convex-specific checklist. It is aimed at developers building on Convex who want a second pair of eyes before deploying, and at teams auditing existing Convex functions. By the end of this guide you will know what the skill checks, how to install it, how to ask for a review, and where its limits are.
Quick start
- 1Download the ZIP. Download the convex-reviewer ZIP from this page. It contains SKILL.md.
- 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for all projects, or into your project's .claude/skills/ for one project.
- 3Or upload in the Claude apps. In the Claude apps, open Settings, go to Capabilities, and upload the skill under Skills.
- 4Open your Convex project. Make sure the code you want reviewed is in the convex/ directory.
- 5Ask for a review. Request a review of the convex/ functions before shipping, or an audit focused on authorization.
- 6Work through the findings. Fix Critical items first, then Important, then Suggestion, reading the reason given for each.
- 7Re-run the review. Run the review again after your changes to confirm the findings are resolved.
What is an agent skill and what does this one do?
An agent skill is a folder containing a SKILL.md file that gives an AI agent specific instructions for a task. When the skill is installed, the agent can load these instructions and follow them when a request matches the skill's description.
The convex-reviewer skill makes the agent review code in a Convex project's convex/ directory using a fixed checklist, in three passes. The first pass covers security: whether public functions check ctx.auth.getUserIdentity(), whether resource ownership is verified before reads and writes, whether client-provided user IDs are trusted, and whether scheduled functions target internal.* rather than api.*. The second pass covers performance: no .filter() on database queries (use withIndex), indexes on foreign-key fields, no Date.now() in query handlers, and no .collect() on unbounded queries. The third pass covers code quality: args and returns validators on public functions, no any types, awaited promises, and bounded arrays in documents (under 8192 elements).
- Critical: missing auth checks on public mutations, which the skill describes as a data-loss risk.
- Important: .filter() on database queries, Date.now() in query handlers, missing args or returns validators, and scheduling to api.* instead of internal.*.
- Suggestion: lower-severity findings.
- Each finding comes with an explanation of why it matters and a suggested fix.
Install the convex-reviewer skill
Download the ZIP for this skill from this page. The package contains a single file, SKILL.md. Unzip it so the convex-reviewer folder containing SKILL.md ends up in one of the following locations.
For a personal install available to all your projects, place it in ~/.claude/skills/. For a single project, place it in the project's .claude/skills/ folder so it applies only to that project.
If you use the Claude apps instead, open Settings, go to Capabilities, and upload the skill under Skills.
- Personal: ~/.claude/skills/convex-reviewer/
- Project only: .claude/skills/convex-reviewer/ inside your project
Trigger the skill with a natural request
You do not need a special command. The skill's description says it is for reviewing or auditing Convex functions before shipping, so ask the agent in those terms. Point it at the convex/ folder so it knows where the code lives.
Good requests name the scope and the goal, for example a full review before a release, or an authorization-only audit of one file. The agent will then run the three passes and report back.
- Review the functions in convex/ before I deploy.
- Audit the convex/ folder for authorization problems.
- Check my Convex mutations for missing auth checks and unsafe user IDs.
- Look at convex/messages.ts for performance issues like full table filters.
What the report looks like
The agent groups findings under Critical, Important and Suggestion. Each finding should state the issue, why it matters, and a suggested fix. The skill's rules require the agent to explain why a change is needed, not only what to change, so you can judge whether the advice fits your app.
Use the report as a checklist to work through, and re-run the review after you make changes.
What you need and what the skill does on your machine
You need a Convex project with code in a convex/ directory, and an AI agent that can read your project files, such as Claude Code. According to the skill's listing, it does not run scripts and does not use the network. It works by reading the code the agent has access to and applying the checklist.
Because the review is checklist-based, it can miss issues. Treat its output as a strong first pass, not a replacement for a human security audit on systems that handle sensitive data.
- Requires: a Convex project with a convex/ directory, and an agent that can read project files.
- Runs scripts: no. Uses network: no.
- Licence: MIT.
Tips for getting better reviews
Review the whole convex/ folder at once when you want cross-file checks such as ownership and index coverage, since a single file may not show the full picture. If you are new to Convex, read the Critical and Important findings closely, because they describe common anti-patterns you can learn from.
The skill is specific to Convex APIs. Do not use it on projects that do not use Convex, because the findings would be irrelevant.
- Scope the review to convex/ so the checks apply to the right code.
- Fix Critical findings first, then Important, then Suggestion.
- Re-run the review after changes to confirm the findings are resolved.
What people use it for
- Reviewing new Convex mutations for missing ctx.auth.getUserIdentity() checks before a release.
- Auditing existing queries for .filter() calls that should use withIndex.
- Checking that scheduled jobs point to internal.* functions rather than api.*.
- Learning Convex anti-patterns as a newcomer by reading the explained findings on your own code.
Frequently asked questions
Is the Convex Code Reviewer skill free?
The skill is published under the MIT licence, according to its listing. Check the licence file in the source repository for the full terms.
What do I need to use the convex-reviewer skill?
You need a Convex project with code in a convex/ directory, and an AI agent that can read project files, such as Claude Code. The skill does not run scripts and does not use the network.
Where do I install the convex-reviewer skill?
Unzip the downloaded ZIP into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder for one project. In the Claude apps, you can instead upload it under Settings, Capabilities, Skills.
Can this skill replace a security audit?
No. It is a checklist-based review and can miss issues, so it is not a replacement for a human security audit on production systems that handle sensitive data.
Does this work on projects that do not use Convex?
No. The checklist is specific to Convex APIs, so on other projects it would produce irrelevant findings.
What kinds of problems does it flag?
It flags missing authentication checks on public functions, unverified resource ownership, untrusted client-provided user IDs, scheduling to api.* instead of internal.*, .filter() on database queries, Date.now() in query handlers, missing args or returns validators, and use of any types.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you build on Convex and want a structured second review of your convex/ functions before deploying, or if you are auditing authorization across an existing Convex app. Pick something else if your project does not use Convex, or if you need a formal security audit for production systems handling sensitive data, since a checklist review can miss issues.
Download the skill