评论

工程开发 社区

技能解读

当前原文的自动摘译,尚未人工审校。

目标:$ARGUMENTS(文件路径,或当前差异为空)

步骤: 1. 如果提供了参数,请读取这些文件。否则运行git diff获取当前的更改。 2. 排除test/dev/来自审查的文件 - 它们仅限于本地开发,而不是审查目标。 3. 分析: - 逻辑错误(差一、空访问、竞争条件) - 死代码(无法访问的分支、未使用的变量) - 丢失边缘情况 4. 报告结果,包括文件路径和行号。 5. 不要修复任何东西——仅报告。让用户决定修复什么。

查看指南 — 避免误报: - Null/guard 检查:如果调用链上游(调用方)已存在 null 检查,请勿将被调用者标记为缺少自己的 null Guard。仅在存在无人看守的现实路径时才进行标记。 - 有意的模式:如果代码看起来是有意的并且与周围的模式一致,请勿将其报告为错误。如果不确定,请将其记为确认问题(例如“의도된 동작인지 확인: ...”)而不是错误。 - 严重性过滤:仅报告实际上可能导致错误行为或崩溃的问题。不要报告风格偏好、假设的未来风险或“会很好”的改进。 - 暂存/未暂存差异:不要将 git 暂存状态差异标记为结果。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
工程开发
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
94 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@JiHong88 · MIT
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

Review the specified file(s) or current git diff for bugs, logic errors, and dead code.

Target: `$ARGUMENTS` (file path, or blank for current diff)

Steps:
1. If arguments provided, read those files. Otherwise run `git diff` to get current changes.
2. Exclude `test/dev/` files from review — they are local dev-only and not review targets.
3. Analyze for:
   - Logic bugs (off-by-one, null access, race conditions)
   - Dead code (unreachable branches, unused variables)
   - Missing edge cases
4. Report findings with file path and line numbers.
5. Do NOT fix anything — report only. Let the user decide what to fix.

Review guidelines — avoid false positives:
- **Null/guard checks**: If a null check already exists upstream in the call chain (caller side), do NOT flag the callee for lacking its own null guard. Only flag if there is a realistic unguarded path.
- **Intentional patterns**: If code looks intentional and consistent with surrounding patterns, do NOT report it as a bug. If unsure, note it as a confirmation question (e.g. "의도된 동작인지 확인: ...") rather than a bug.
- **Severity filtering**: Only report issues that could actually cause incorrect behavior or crashes. Do not report style preferences, hypothetical future risks, or "would be nice" improvements.
- **staged/unstaged diff**: Do not flag git staging state differences as findings.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。