Convex Code Reviewer

VerifiedSafe

Structured review of Convex code for security, authorization, validators, performance, and schema design. Flags anti-patterns with severity.

Sby Skills Guide Bot
DevelopmentIntermediate
8/4/2026
Claude CodeCursorCodex
#convex#code-review#security#performance#validators

Recommended for

Automated summary

Reviews Convex code in a convex/ directory against a three-pass checklist (security, performance, code quality) and reports findings grouped by severity.

Strengths

  • Convex-specific checklist: ctx.auth.getUserIdentity(), internal.* vs api.*, withIndex, args/returns validators
  • Three ordered passes covering authorization, full table scans, and query reactivity
  • Each finding explains why the issue matters and proposes a concrete fix
  • Severity grouping (Critical / Important / Suggestion) makes pre-ship triage straightforward

Limitations

  • Scoped to code inside a convex/ directory — no coverage of front-end code or deployment configuration
  • Static reading only: it does not run tests or verify access rules at runtime
  • The rule set is fixed, so project-specific anti-patterns may go unflagged
When to use it

Use it before shipping or merging new or modified Convex functions when you want a fast security- and performance-focused audit.

When not to use it

Skip it if you need a full application security review covering the client, hosting, and secrets, or if the code is not Convex.

Security analysis

Safe
Quality score88/100

This is a pure instruction/checklist skill for reviewing Convex code. It declares no tools, executes no commands, touches no network or filesystem, and contains no obfuscated payloads, credential handling, or destructive instructions. All guidance is defensive (auth checks, validators, indexing), so listing it carries no meaningful execution risk.

No concerns found

How this analysis is made

Examples

Pre-ship review
Review all the functions in my convex/ directory before I ship. Check auth on every public function, validators, indexes, and anything that would cause a full table scan. Group the findings by severity.
Audit a single mutation
Audit convex/messages.ts — I'm worried the send mutation lets users write to threads they don't own. Check the auth and ownership logic and tell me what to fix.
Performance pass
Do a performance-only pass on my Convex queries: flag .filter() calls, missing indexes on foreign keys, unbounded .collect(), and any Date.now() inside query handlers.

name: convex-reviewer description: 'Convex code reviewer — security, auth, validators, performance, and pattern checks for code in a convex/ directory. Use to review or audit Convex functions before shipping.'

<!-- GENERATED from convex-agents content/capabilities/convex-reviewer.json — do not edit by hand. -->

Convex Code Reviewer

Structured review of Convex code for security, authorization, validators, performance, and schema design. Applies a Convex-specific checklist and flags anti-patterns with severity (Critical / Important / Suggestion).

Workflow

  1. First pass — Security: verify all public functions check ctx.auth.getUserIdentity(), verify resource ownership before reads/writes, confirm no client-provided user IDs are trusted, confirm scheduled functions target internal.* not api.*.
  2. Second pass — Performance: confirm no .filter() on DB queries (withIndex required), verify all foreign-key fields have indexes, confirm no Date.now() in query handlers, confirm .collect() is not used on unbounded queries.
  3. Third pass — Code quality: confirm args and returns validators on every public function, no any types, promises are awaited, arrays in documents are bounded (<8192 elements).
  4. Report findings grouped by severity; explain why each issue matters and suggest a fix.

Rules

  • Flag missing auth checks as Critical — any unauthenticated public mutation is a data-loss risk.
  • Flag .filter() on DB queries as Important — it is a full table scan.
  • Flag Date.now() in query handlers as Important — it breaks reactivity.
  • Flag missing args or returns validators as Important.
  • Flag scheduling to api.* (not internal.*) as Important.
  • Always explain why a change is needed, not just what to change.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/convex-code-reviewer-mse7io5k' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/convex-code-reviewer-mse7io5k/download' --output '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md.part' && mv '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md.part' '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && test -s '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/convex-reviewer' && cp -R '.skill-downloads/convex-code-reviewer-mse7io5k' '.claude/skills/convex-reviewer'

Cursor
test -f '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && test -s '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/convex-reviewer' && cp -R '.skill-downloads/convex-code-reviewer-mse7io5k' '.cursor/skills/convex-reviewer'

Codex
test -f '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && test -s '.skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/convex-reviewer' && cp -R '.skill-downloads/convex-code-reviewer-mse7io5k' '.agents/skills/convex-reviewer'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/convex-code-reviewer-mse7io5k'

openskills read 'convex-code-reviewer-mse7io5k'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/convex-code-reviewer-mse7io5k/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills