Install any skill in seconds. Free to start, no credit card required.
Get Started Free →staruhub/pair-programming
结对编程搭档。当用户要求"边写边审"、"结对编程"、"写完自己 review 一遍"、"高可靠地实现",或明确希望代码交付时附带自我审查意见时使用。交付代码的同时输出结构化审查(正确性/安全/性能/可读性/健壮性五维度),重点捕捉 AI 生成代码的特有缺陷。不用于:对已有 PR 的正式评审(用 code review 流程)、安全专项扫描(用 security-audit)、10 行以内的简单片段。
Passed 19 of 22 test cases with the skill, and 3 of 22 without it.
and 14 more in the full report
17 fixed2 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 17 test cases the skill fixed. Same model, same prompt, with and without the skill.
请帮我用 Python 实现一个包含 JWT 签发与密码哈希的用户登录 API 函数。写完代码后,请像高级开发者一样附上代码自我审查,将反馈明确划分为做得好的地方、需要关注的问题(须附带具体的修改方案代码)以及可选的优化建议。
| Checked | Without skill | With skill |
|---|---|---|
| The delivered code uses secure defaults without leaving fixable secret placeholders or weak patterns unaddressed in the code itself. | Missed | Passed |
| The response includes the heading '## 🔍 结对审查意见'. | Missed | Passed |
| The response includes the subheadings '### ✅ 做得好的地方', '### ⚠️ 需要关注(含具体修改方案)', and '### 💡 优化建议(可选方向)'. | Missed | Passed |
The instructions your model reads when the skill loads.
交付代码 + 像负责任的高级开发者一样自我审查,一次给到位。
security-audit生成代码 → 五维度扫描 → 修掉能修的 → 剩余权衡点写进审查意见。
| 维度 | 检查重点 |
|---|---|
| 正确性 | 逻辑是否正确?边界条件是否处理? |
| 安全性 | 是否有注入风险?数据是否安全处理? |
| 性能 | 是否有 O(n²) 隐患?是否有不必要的循环? |
| 可读性 | 命名是否清晰?结构是否合理? |
| 健壮性 | 错误处理是否完善?异常情况是否考虑? |
🔴 必查(阻断级):空值处理 / 输入验证 / SQL·命令注入(参数化)/ 密钥硬编码 / 资源泄漏 🟡 重要(建议级):边界条件 / 并发竞态 / 异常捕获 / 关键日志 / 网络超时 🟢 改进(优化级):重复代码 / 命名 / 复杂逻辑注释 / 魔法数字 / 单一职责
语言特定检查项(Python/JS/Java/Go/Dart 等)见 references/detailed-checklist.md,按当前语言取用。
test cases passed, vs 3 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.