code-review-plus
Enhanced code review with local + PR modes, security scanning, and quality gates. Blocks commits on CRITICAL/HIGH issues.
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- code-review-plus
- description
- Enhanced code review with local + PR modes, security scanning, and quality gates. Blocks commits on CRITICAL/HIGH issues.
02 资源文件 5
- 参考文档.skill-meta.json361 B
- 脚本assets/01-example.ts32 B
- 参考文档README.md431 B
- 参考文档references/01-setup.md26 B
- 参考文档references/02-patterns.md28 B
03 SKILL.md 正文
Absorbed:
code-reviewer(v1 — general code review framework, severity levels, best practices)
Code Review Plus
Enhanced code review system with local uncommitted changes review and GitHub PR review modes. Comprehensive security and quality scanning.
Modes
Local Review Mode
Reviews uncommitted changes (git diff).
PR Review Mode
Reviews GitHub PR (pass PR number or URL).
Workflow
Phase 1 — GATHER
git diff --name-only HEAD
If no changed files → Stop with "Nothing to review."
Phase 2 — SECURITY SCAN
Check for CRITICAL issues:
- Hardcoded credentials, API keys, tokens
- SQL injection vulnerabilities
- XSS vulnerabilities
- Missing input validation
- Insecure dependencies
- Path traversal risks
Phase 3 — QUALITY SCAN
Check for HIGH issues:
- Functions > 50 lines
- Files > 800 lines
- Nesting depth > 4 levels
- Missing error handling
- console.log statements
- TODO/FIXME comments
Check for MEDIUM issues:
- Mutation patterns (prefer immutable)
- Emoji usage in code
- Missing tests for new code
- Accessibility issues (a11y)
Phase 4 — REPORT
Generate structured report:
- Severity: CRITICAL, HIGH, MEDIUM, LOW
- File location and line numbers
- Issue description
- Suggested fix
Phase 5 — GATE
Block commit if CRITICAL or HIGH issues found. Never approve code with security vulnerabilities.
Usage
# Local review (uncommitted changes)
/code-review
# PR review
/code-review 123
/code-review https://github.com/user/repo/pull/123
Severity Decision Matrix
| Severity | Action | Block Commit |
|---|---|---|
| CRITICAL | Fix required | YES |
| HIGH | Fix required | YES |
| MEDIUM | Suggest fix | NO |
| LOW | Note | NO |
Security Checks
# Check for leaks
grep -r "api_key\|secret\|password\|token" --include="*.js" --include="*.py"
grep -r "SELECT.*FROM.*WHERE" --include="*.sql"
Quality Metrics
- Cyclomatic complexity < 10
- Lines per function < 50
- Lines per file < 800
- Nesting depth < 4
- Test coverage > 70%
Output Format
## Code Review Report
### CRITICAL (MUST FIX)
- [file:line] Issue: description
- [file:line] Issue: description
### HIGH (MUST FIX)
- [file:line] Issue: description
### MEDIUM (SHOULD FIX)
- [file:line] Issue: description
### LOW (NICE TO FIX)
- [file:line] Issue: description
---
**Verdict**: APPROVED / BLOCKED
04 同仓库更多 Skills
zustand-5
Zustand 5 state management patterns. Trigger: When managing React state with Zustand.
zod-4
Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.
x-bookmark-quote-posts
Workflow para revisar bookmarks de X/Twitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.