Agent skill

code-review

代码审查 (含通用质量标准) — T 阶段

Stars 166
Forks 24

Install this agent skill to your Project

npx add-skill https://github.com/WenJunDuan/Rlues/tree/main/vibeCoding/old version/config-agent_v9.1.8/.codex/skills/code-review

SKILL.md

管道位置: T → 追加 quality.md 审查部分

审查清单

逻辑: 边界条件、错误处理、空值检查

安全: SQL注入、XSS、密钥泄露、权限

通用代码质量

  • 函数职责单一, <50 行?
  • 注释解释 WHY 不解释 WHAT?
  • 类型严格, 无 any/as any?
  • 错误处理完整, 无空 catch?
  • 命名清晰? 无魔术数字? DRY?

性能: N+1查询、不必要循环、内存泄漏

Codex原生: /review 触发审查

审查报告格式

markdown
## 审查报告
- 严重: 0 | 警告: 2 | 建议: 3
- [警告] src/xxx.ts:42 — 具体问题

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results