ivan-sincek/secure-code-review-agent-skills
GitHub: ivan-sincek/secure-code-review-agent-skills
为 AI agent(尤其是 Claude)提供基于 CWE 的安全代码审查技能,使大模型能够自动识别代码中的通用缺陷并输出结构化报告。
Stars: 0 | Forks: 0
# 安全代码审查 Agent 技能
为 AI agent 提供易于使用、易于定制且高质量的安全代码审查技能。
支持 Markdown 和 JSON 输出格式。
我的其他技能:
- [威胁建模 Agent 技能](https://github.com/ivan-sincek/threat-modeling-agent-skills)
## 目录
* [安全代码审查](#secure-code-review)
* [CWE](#cwe)
* [如何使用](#how-to-use)
## 安全代码审查
### CWE
* 用于根据通用缺陷枚举(CWE)识别弱点。
* 采用结构化的单步 kill chain 推理,不考虑业务上下文、目标或影响。
* 作用域限定于应用程序。
* 适用于低端和高端 LLM。
**技能:** [cwe-code-review/SKILL.md](https://github.com/ivan-sincek/secure-code-review-agent-skills/blob/main/markdown/cwe-code-review/SKILL.md)
## 如何使用
* 将 [markdown](https://github.com/ivan-sincek/secure-code-review-agent-skills/tree/main/markdown) 目录的内容复制到你项目的 `.claude/skills/` 目录中。
* 或者,在你的 Claude 应用中的 `Customize -> Skills` 下手动上传每个 `SKILL.md` 文件。
基础 prompt:
```
Perform CWE code review and save the output to "cwe_code_review.md".
```
高级 prompt:
```
- Perform CWE code review and save the output to "cwe_code_review.md".
- Convert "cwe_code_review.md" to "cwe_code_review.html".
- Ensure the `body` CSS rule includes `width: 100%; max-width: 100%;`.
- Ensure the `td` CSS rule includes `word-break: keep-all;`.
- Add a table of contents.
- Make the non-key-value tables sortable.
```
标签:AI智能体, C2, Claude, CVE检测, Homebrew安装, 云安全监控, 提示词工程, 策略决策点, 防御加固, 静态分析