audit
它能做什么
审查代码库或其中某个部分,按严重程度报告已确认的问题,并注明位置和建议的修复方法。适合希望对代码风险做出客观评估的开发者。
适用场景
- ✓当你想全面审查项目的安全性、正确性和维护状况时。
- ✓当你需要在发布前检查系统的某一部分时。
- ✓当你想要一份已确认的发现清单,且代码不被改动时。
技能链接
https://github.com/ccch1mneyyy/dsh-TUI/blob/main/.agents/skills/audit/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审核我应用中的登录部分是否存在安全和正确性问题,暂时不要修改任何代码。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会界定审查范围,追踪输入从进入到经过验证、再到被使用的全过程,并在报告前确认每一个可疑问题。发现按严重程度列出,未经验证的线索则单独保留。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Establish the audit scope, then trace the relevant runtime paths. For a findings-only request, leave code unchanged; carry out fixes when the user has requested them.
- Identify entry points, state owners, external inputs, and teardown paths within the requested scope.
- Follow inputs through validation and consumers. In this TUI, inspect applicable session projections, plugin capabilities, file access, terminal escape handling, and long-session resource bounds. Prioritize paths whose failure can lose state, cross a trust boundary, or leave the terminal unusable. Check dependencies and lockfiles for known vulnerabilities against advisory data.
- Confirm suspected defects against callers, existing guards, and focused regressions. Check exports, registries, and supported compatibility paths before declaring code dead. Explain a simplification in terms of current requirements and the behavior it preserves.
- Report confirmed findings by severity with location, trigger, impact, and a concrete remedy. Keep unverified leads separate. For a cross-layer failure, a short input → boundary → effect trace may be enough to explain it.
- State the areas examined, checks actually run, and material gaps. No findings means none found in that scope, not proof that the whole project is safe. An audit can finish without findings or a forced list of healthy areas.
常见问题
它会修改我的代码吗?
对于只要求查找问题的请求,不会。只有在你要求时才会修复。
没有发现问题是否意味着项目是安全的?
不是。没有发现问题仅适用于该技能所检查的范围。
它会检查依赖项吗?
如果依赖项在审查范围内,会检查。它会将依赖项与已知的安全公告进行比对。
详情
作者的原始描述
Audit the repository or a broad subsystem for security, correctness, and maintainability risks. Use for audit requests or /audit; use review for a specific change and vuln-check for a security-only assessment.
repo: ccch1mneyyy/dsh-TUI
热度
- GitHub 星标
- 6.6k
- 排名
- #13784
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …