C

convex-reviewer

by @convexv
4.6(120)

A structured review skill for code inside a convex/ directory: it runs three passes (security, performance, code quality) to verify auth and resource-ownership checks, args/returns validators, index usage, and internal.* scheduling, then reports findings grouped by Critical / Important / Suggestion with the reasoning behind each fix. Use it to audit Convex functions before shipping and catch data-loss or full-table-scan issues early.

convexcode-reviewsecurity-auditvalidatorsperformanceGitHub
Installation
npx skills add https://github.com/convex/agent-skills --skill convex-reviewer
compare_arrows

Before / After Comparison

1 组
Before

Developers read every function under convex/ by hand, checking auth, validators, and indexes from memory. Unauthorized public mutations and .filter() full-table scans slip through and surface only after release.

After

This skill walks a fixed three-pass checklist (security, performance, code quality) and reports findings graded Critical / Important / Suggestion with the reason behind each fix, so risks are closed before shipping.

SKILL.md

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.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs35.0K
Rating4.6 / 5.0
Version
Updated2026年10月23日
Comparisons1

User Rating

4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年10月17日
Last Updated2026年10月23日
🎁 Agent Knowledge Cards
Survey