/code-review
对未提交更改进行全面的安全和质量审查
$ npx -y skills add zhukunpenglinyutong/ai-max --agent claude-code
Command definition
code-review.mddescription: 对未提交更改进行全面的安全和质量审查
代码审查
对未提交更改进行全面的安全和质量审查:
1. 获取已更改的文件:git diff --name-only HEAD
2. 对于每个已更改的文件,检查以下内容:
**安全问题(严重):**
- 硬编码的凭证、API 密钥、令牌
- SQL 注入漏洞
- XSS 漏洞
- 缺少输入验证
- 不安全的依赖项
- 路径遍历风险
**代码质量(高):**
- 函数超过 50 行
- 文件超过 800 行
- 嵌套深度超过 4 层
- 缺少错误处理
- console.log 语句
- TODO/FIXME 注释
- 公共 API 缺少 JSDoc 文档
**最佳实践(中):**
- 可变模式(应使用不可变模式代替)
- 代码/注释中使用表情符号
- 新代码缺少测试
- 可访问性问题(a11y)
3. 生成报告,包含:
- 严重程度:严重、高、中、低
- 文件位置和行号
- 问题描述
- 建议的修复方案
4. 如果发现严重或高级问题,阻止提交
永远不要批准存在安全漏洞的代码!
这是基于 everything-claude-code 进行二次开发,提供npm一键安装方式,协议沿用MIT Claude Code 增强配置,开箱即用。 本仓库包含生产级 agents(代理)、skills(技能)、hooks(钩子)、commands(命令)、rules(规则)和 MCP 配置,帮助你快速提升 Claude Code 的使用体验。
Other commands on ai-max.
e2e
Command使用 Playwright 生成并运行端到端测试。创建测试流程,运行测试,捕获截图/视频/追踪记录,并上传测试产物。
More commands from other plugins.
devbox-entrypoint
CommandContext: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because…
a11y-audit
CommandScan a frontend project for WCAG 2.2 accessibility violations and fix them. Usage: /a11y-audit [path]
c
CommandShortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

