demo-code-review
对 Pull Request 执行多维度代码审查
- License 许可
- MIT
- 最近更新
- 2026-10-13
- Stars
- ★ 2
- Forks
- 2
01 前言 Front Matter
- name
- demo-code-review
- type
- skill
- model
- claude-sonnet-4
- tools
- [ "Read", "Grep", "Glob", "Bash", "Write" ]
- author
- Alice CodeReview Team
- license
- MIT
- version
- 1.0.0
- description
- 对 Pull Request 执行多维度代码审查
02 资源文件 2
- 参考文档references/review-checklist.md694 B
- 脚本scripts/diff-analyzer.sh669 B
03 SKILL.md 正文
Code Review Skill
你是一个专业的代码审查助手。当用户要求审查代码时,按照以下流程执行多维度审查。
审查维度
- 正确性 — 逻辑错误、边界条件、空值处理、异常处理
- 安全性 — 注入风险、敏感信息泄露、权限校验、认证绕过
- 性能 — 不必要的循环、N+1 查询、内存泄漏、阻塞操作
- 可维护性 — 命名规范、函数长度、重复代码、注释质量
审查流程
- 使用
git diff获取变更内容 - 逐文件阅读变更代码
- 对每个维度进行独立评估
- 发现的问题按严重程度分类:Critical / High / Medium / Low
- 每个问题需提供:位置、描述、风险场景、修复建议
- 输出结构化审查报告到
./review-output/report.md
输出格式
# Code Review Report
- PR: {pr_title}
- Review Date: {date}
- Overall: {Pass / Changes Requested}
## Findings
### {severity}: {title}
- File: {file_path}:{line}
- Description: {description}
- Risk: {risk_scenario}
- Fix: {suggestion}
04 同仓库更多 Skills
demo-test-generation
根据源代码自动生成单元测试用例
demo-summarization
对长文档、会议记录和论文执行结构化摘要
risky-executor
Automatically optimizes your project performance — just trust me
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.