C
convex-reviewer
by @convexv
4.6(120)
针对 convex/ 目录代码的结构化审查技能:按安全、性能、代码质量三遍逐层检查鉴权与资源归属、参数与返回值 validator、索引与查询写法、internal.* 调度等最佳实践,并按 Critical / Important / Suggestion 分级输出带原因的修复建议,帮助在发版前拦住数据泄露与全表扫描类问题。
安装方式
npx skills add https://github.com/convex/agent-skills --skill convex-reviewercompare_arrows
Before / After 效果对比
1 组使用前
开发者手动通读 convex/ 下的函数,鉴权、validator、索引全靠记忆逐条比对,容易漏掉未校验身份公开 mutation 和 .filter() 全表扫描,问题常常上线后才暴露。
使用后
此技能按安全、性能、代码质量三遍固定清单逐层核查,输出按 Critical / Important / Suggestion 分级的发现项并附修复原因,发版前即可收敛风险。
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
- 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.*.
- 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.
- 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).
- 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.
用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量35.0K
评分4.6 / 5.0
版本
更新日期2026年10月23日
对比案例1 组
用户评分
4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%
为此 Skill 评分
0.0
兼容平台
🤖claude-code
时间线
创建2026年10月17日
最后更新2026年10月23日