code-scanner
Installation
SKILL.md
Code Scanner
基于正则的轻量级代码安全扫描引擎,支持 Bash 和 Python,内置 25 条检测规则。
调用方式
agent-sec-cli scan-code --code '<source_code>' --language <bash|python>
输入
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
code |
string | 是 | 待扫描的源代码字符串,支持多行 |
language |
string | 是 | 编程语言,取值:bash 或 python |