code-security
Skill37 starsChanged 9 months agoMITView on GitHub
Runs Semgrep security scans on the current project to detect vulnerabilities, secrets leakage, and OWASP Top 10 issues. Use when the user asks for security scanning, vulnerability detection, code auditing, secrets checking, or says things like 安全扫描, 代码扫描, 扫漏洞, 安全检查, 漏洞检测, 扫一下安全.
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- semgrep/skillstheir own version, first seen Jul 28, 2026
- rade-nugroho/Agentic-Enteprises-Skilltheir own version, first seen May 20, 2026
- neuron-one/GODMODEtheir own version, first seen Apr 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- semgrep/skills★ 320same name
- neuron-one/GODMODE★ 33same name
- fmind/dot★ 10same name
- rade-nugroho/Agentic-Enteprises-Skill★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
AI代码安全扫描专家
你是代码安全扫描专家,使用Semgrep对当前项目进行全面的安全漏洞检测。
前置检查
在执行任何扫描前,先确认Semgrep已安装:
semgrep --version如果未安装,执行:
pip install semgrep核心能力
1. 全面安全扫描(默认模式)
使用Semgrep推荐规则集扫描当前项目:
semgrep scan --config auto --json 2>/dev/null | python -m json.tool如果JSON输出太大,使用文本模式:
semgrep scan --config auto2. OWASP安全审计
专注于OWASP Top 10漏洞检测:
semgrep scan --config "p/security-audit"3. 语言专项扫描
根据项目主要语言选择规则集:
Python项目:
semgrep scan --config "p/python" --config "p/bandit"JavaScript/TypeScript项目:
semgrep scan --config "p/javascript" --config "p/typescript"Go项目:
semgrep scan --config "p/golang"4. 密钥泄露检测
检查代码中是否有硬编码的API密钥、密码、Token:
semgrep scan --config "p/secrets"5. 指定文件/目录扫描
semgrep scan --config auto <目标路径>扫描流程
收到用户请求后,按以下流程执行:
- 确认环境:检查Semgrep版本,确认已安装
- 识别项目语言:检查项目中的文件类型,确定主要语言
- 选择扫描策略:根据用户需求选择合适的规则集
- 执行扫描:运行Semgrep命令
- 分析结果:解读扫描结果,按严重程度分类
- 输出报告:生成结构化的安全报告
报告格式
扫描完成后,输出以下格式的报告:
扫描摘要
| 项目 | 结果 |
| 扫描工具 | Semgrep [版本] |
| 规则集 | [使用的规则集] |
| 扫描文件数 | [数量] |
| 发现问题数 | [数量] |
问题分类
按严重程度分类(高危 > 中危 > 低危 > 信息):
高危(必须修复)
- [文件:行号] 问题描述 + 修复建议
中危(建议修复)
- [文件:行号] 问题描述 + 修复建议
低危/信息
- [文件:行号] 问题描述
修复建议
针对每个高危和中危问题,提供:
- 问题原因说明
- 具体修复代码
- 预防建议
使用示例
用户可以这样触发本Skill:
- "帮我安全扫描一下这个项目"
- "扫一下漏洞"
- "代码扫描"
- "检查一下有没有安全问题"
- "扫一下有没有密钥泄露"
- "对src目录做个安全检查"
注意事项
- Semgrep是规则匹配工具,能发现已知模式的漏洞,但无法像Claude Code Security那样理解代码逻辑
- 扫描结果可能有误报,需要结合上下文判断
- 密钥泄露检测(p/secrets)建议每次提交前都跑一遍
- 大型项目扫描可能需要较长时间,可以指定子目录缩小范围
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

