code-review-checklist by vudovn/antigravity-kit
npx skills add https://github.com/vudovn/antigravity-kit --skill code-review-checklist广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
// ❌ 代码中存在模糊的提示词
const response = await ai.generate(userInput);
// ✅ 结构化且安全的提示词
const response = await ai.generate({
system: "You are a specialized parser...",
input: sanitize(userInput),
schema: ResponseSchema
});
// ❌ 魔法数字
if (status === 3) { ... }
// ✅ 命名常量
if (status === Status.ACTIVE) { ... }
// ❌ 深层嵌套
if (a) { if (b) { if (c) { ... } } }
// ✅ 提前返回
if (!a) return;
if (!b) return;
if (!c) return;
// do work
// ❌ 长函数(100+ 行)
// ✅ 小型、功能聚焦的函数
// ❌ any 类型
const data: any = ...
// ✅ 正确的类型
const data: UserData = ...
// 阻塞性问题使用 🔴
🔴 BLOCKING: SQL injection vulnerability here
// 重要建议使用 🟡
🟡 SUGGESTION: Consider using useMemo for performance
// 细微问题使用 🟢
🟢 NIT: Prefer const over let for immutable variable
// 疑问使用 ❓
❓ QUESTION: What happens if user is null here?
每周安装量
191
代码仓库
GitHub 星标数
6.6K
首次出现
2026年1月21日
安全审计
安装于
gemini-cli163
opencode159
codex157
cursor147
github-copilot142
amp120
// ❌ Vague prompt in code
const response = await ai.generate(userInput);
// ✅ Structured & Safe prompt
const response = await ai.generate({
system: "You are a specialized parser...",
input: sanitize(userInput),
schema: ResponseSchema
});
// ❌ Magic numbers
if (status === 3) { ... }
// ✅ Named constants
if (status === Status.ACTIVE) { ... }
// ❌ Deep nesting
if (a) { if (b) { if (c) { ... } } }
// ✅ Early returns
if (!a) return;
if (!b) return;
if (!c) return;
// do work
// ❌ Long functions (100+ lines)
// ✅ Small, focused functions
// ❌ any type
const data: any = ...
// ✅ Proper types
const data: UserData = ...
// Blocking issues use 🔴
🔴 BLOCKING: SQL injection vulnerability here
// Important suggestions use 🟡
🟡 SUGGESTION: Consider using useMemo for performance
// Minor nits use 🟢
🟢 NIT: Prefer const over let for immutable variable
// Questions use ❓
❓ QUESTION: What happens if user is null here?
Weekly Installs
191
Repository
GitHub Stars
6.6K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli163
opencode159
codex157
cursor147
github-copilot142
amp120
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
127,200 周安装