md-audit
它能做什么
这项技能会检查当前文件夹中的代码,并按严重程度列出可能的问题。适合希望快速做只读检查的开发者。
适用场景
- ✓当你想快速扫描漏洞、遗留代码或安全风险的时候。
- ✓当你接手一个陌生的项目,想知道哪里可能有问题时。
- ✓当你想在动手修改之前,先列出需要决定的问题时。
技能链接
https://github.com/HarnessMD/munder-difflin/blob/main/resources/skills/md-audit/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请快速审计这个项目,告诉我你发现的最严重的问题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会识别主要编程语言,搜索写死的密钥、被忽略的错误和未使用的导出等模式,然后按严重程度报告结果,不编辑任何文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Code Audit (read-only)
Perform a read-only code quality scan and return a findings report. Do NOT edit any files.
Steps:
- Scope — identify the primary language and entry points (
package.json,Cargo.toml,go.mod,pyproject.toml, or similar). - Scan — use
GrepandReadto look for:- Unhandled promise rejections / ignored errors
- Hard-coded secrets or credentials (keys, tokens, passwords)
TODO/FIXME/HACKcomments that signal known debt- Dead exports (exported symbols with no in-repo import)
- Obvious type-safety gaps (unchecked
any, missing null guards)
- Report — output a findings list sorted by severity (Critical → High → Medium → Low):
## Audit Report — <project name> ### Critical - [file:line] <description> ### High - ... ### Summary <total count> findings across <file count> files scanned. - Stop after reporting. Do not apply any fixes.
常见问题
它会修复问题吗?
不会。它在报告之后就停止,不做任何修复。
它能找出所有漏洞吗?
不能。它只查找常见模式,所以只是快速的初步检查,而不是完整的审查。
它能识别哪些项目?
它根据 package.json、Cargo.toml、go.mod 或 pyproject.toml 等文件识别项目类型。
详情
作者的原始描述
Read-only code quality audit — scan the current working directory for common issues (bugs, dead code, security hotspots, missing error handling) and return a prioritised findings report. No files are edited. Use when asked to "audit the code", "quick audit", "find issues", "code scan", or "what's wrong with this codebase". (munder-difflin)
repo: HarnessMD/munder-difflin
热度
- GitHub 星标
- 9.3k
- 排名
- #12296
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …