cc-review
Review changed code for correctness bugs and reuse/simplification cleanups. High-confidence findings only.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- cc-review
- description
- Review changed code for correctness bugs and reuse/simplification cleanups. High-confidence findings only.
03 SKILL.md 正文
Code Review
Review the current diff for correctness bugs and reuse/simplification/efficiency cleanups.
Scope: correctness bugs and cleanup opportunities at the specified effort level (default: medium).
Not in scope: style preferences, minor naming, hypothetical future needs.
Output: location-tagged findings with file:line references and concrete one-line fixes.
Instructions
-
Get the current diff:
git diff HEADIf nothing staged, try:
git diff -
Review the diff for:
- Bugs: logic errors, off-by-one, null/undefined dereference, async/await mistakes, type mismatches
- Security: SQL injection, XSS, command injection, exposed secrets, missing auth checks
- Cleanup: dead code, duplicated logic (extract to helper), inefficient loops, unnecessary dependencies
- Tests: missing test coverage for new code paths
-
Report findings as:
[HIGH|MED|LOW] file:line — description Fix: concrete one-line fix -
Report only high-confidence findings. If uncertain, omit. Never invent findings.
-
If clean: output
✓ no issues found.
Effort levels
- low: only definite bugs and security issues
- medium (default): bugs + obvious cleanup opportunities
- high: thorough scan including edge cases and test gaps
04 同仓库更多 Skills
write-changelog
Turn a range of commits into a user-facing changelog
debug-flaky-test
Reproduce and isolate a flaky test before fixing it
triage-incident
First 10 minutes of an incident — stabilize, then diagnose
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
vanta-port-adapter
暂无简介
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.