Convex Reviewer

作者 get-convex2cfe645c87f9無授權條款63 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 天前更新

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.

AI 產生的概覽

審查 Convex 後端程式碼的安全性、授權、驗證器、效能與模式反模式。

功能
對 convex/ 目錄中的程式碼套用 Convex 專用檢查清單,分三輪進行:安全性與授權、效能、程式碼品質。它會檢查身分驗證檢查、資源擁有權檢查、索引使用、驗證器以及有界查詢,然後依嚴重程度(Critical、Important、Suggestion)分組報告發現的問題,並說明原因與修復建議。
適用情境
適合在發布前審查或稽核 Convex 函式,或需要對 Convex 的安全性、授權、驗證器與效能做結構化檢查時。適用於 Convex 後端程式碼的發布前檢查。
執行需求
不需要指令碼或工具,僅為指令型技能。需要有待審查的 convex/ 目錄中的 Convex 程式碼。
<!-- 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.

來源與署名

來源:get-convex/agent-skills位於skills/convex-reviewer提交2cfe645

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架