Reviews unstaged git changes for security issues and code quality problems, generates severity-ranked report with file locations, descriptions, and fixes, blocks commit on critical/high issues.
How this command is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:code-reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# 代码审查 (Code Review) 对未提交的更改进行全面的安全和质量审查: 1. 获取已更改的文件:`git diff --name-only HEAD` 2. 对每个更改的文件,检查以下项: **安全问题 (Security Issues) (严重 - CRITICAL):** - 硬编码的凭据、API 密钥、令牌 (Tokens) - SQL 注入漏洞 - XSS 漏洞 - 缺少输入验证 - 不安全的依赖项 - 路径遍历风险 **代码质量 (Code Quality) (高 - HIGH):** - 函数长度 > 50 行 - 文件长度 > 800 行 - 嵌套深度 > 4 层 - 缺少错误处理 - `console.log` 语句 - TODO/FIXME 注释 - 公共 API 缺少 JSDoc **最佳实践 (Best Practices) (中 - MEDIUM):** - 变更模式 (Mutation patterns)(应改用不可变模式 (immutable)) - 代码/注释中使用 Emoji - 新代码缺少测试 - 无障碍访问问题 (a11y) 3. 生成包含以下内容的报告: - 严重程度 (Severity):严重 (CRITICAL)、高 (HIGH)、中 (MEDIUM)、低 (LOW) - 文件位置和行号 ...
对未提交的更改进行全面的安全和质量审查:
获取已更改的文件:git diff --name-only HEAD
对每个更改的文件,检查以下项:
安全问题 (Security Issues) (严重 - CRITICAL):
代码质量 (Code Quality) (高 - HIGH):
console.log 语句最佳实践 (Best Practices) (中 - MEDIUM):
生成包含以下内容的报告:
如果发现“严重 (CRITICAL)”或“高 (HIGH)”级别的问题,则阻止提交 (Block commit)
绝不要批准带有安全漏洞的代码!
npx claudepluginhub xu-xiang/everything-claude-code-zh/code-reviewReviews unstaged git changes for security issues and code quality problems, generates severity-ranked report with file locations, descriptions, and fixes, blocks commit on critical/high issues.
/code-reviewReviews uncommitted code changes via git diff for security vulnerabilities like hardcoded secrets and SQL injection, plus quality issues, generating a severity-based report with line numbers, descriptions, and fixes. Blocks commits on critical/high issues.
/code-reviewReviews uncommitted changes for security vulnerabilities, code quality issues, and best practices using git diff. Generates report with severity levels, locations, descriptions, fixes; blocks commits on critical/high issues.
/reviewReviews uncommitted git changes or specified file/directory across correctness, security, performance, design, and readability. Classifies findings by severity with line-specific fixes and summary.
/reviewPerforms structured code review on a file, recent unstaged changes, or changes since last commit. Categorizes issues by severity and outputs markdown table with verdict.
/reviewPerforms code review in full/quick/security modes on current branch changes or specified commit, providing feedback on architecture, correctness, security, maintainability, and file sizes.