skills/security-scan-assistant/SKILL.md
Guide automated security scanning, dependency auditing, and secret detection. Use when: dependency audit, CVE scanning, secret detection, license compliance. Keywords: scan, audit, CVE, dependency, secret, SBOM, vulnerability.
npx skillsauth add asiaostrich/universal-dev-standards scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automate security scanning for dependencies, secrets, and license compliance.
自動化相依套件、機密資訊和授權合規的安全掃描。
| Type | Tool Examples | Purpose | 用途 | |------|---------------|---------|------| | Dependency audit | npm audit, pip-audit, Snyk | Find known CVEs in dependencies | 檢測相依套件已知 CVE | | Secret detection | gitleaks, trufflehog | Find leaked credentials in code | 偵測程式碼中洩漏的憑證 | | License compliance | license-checker, SPDX | Verify OSS license compatibility | 驗證開源授權相容性 | | SAST | Semgrep, CodeQL | Static analysis for code patterns | 靜態分析程式碼模式 |
| Tool | Command | Scope | 範圍 |
|------|---------|-------|------|
| npm audit | npm audit --json | Node.js dependencies | Node.js 相依套件 |
| Snyk | npx snyk test | Multi-language deps | 多語言相依套件 |
| Trivy | trivy fs . | Filesystem & containers | 檔案系統與容器 |
| gitleaks | gitleaks detect | Git history secrets | Git 歷史機密 |
| SPDX | npx spdx-tool | License SBOM generation | 授權 SBOM 產出 |
| Severity | SLA | Criteria | 標準 | |----------|-----|----------|------| | Critical | 24 hours | RCE, auth bypass, data exfil | 遠端執行、認證繞過、資料外洩 | | High | 72 hours | Privilege escalation, SQLi | 權限提升、SQL 注入 | | Medium | 2 weeks | XSS, CSRF, info disclosure | XSS、CSRF、資訊洩漏 | | Low | Next sprint | Missing headers, verbose errors | 缺少 Header、冗長錯誤訊息 |
SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
/scan - Full scan (deps + secrets + license) | 完整掃描
/scan --deps - Dependency audit only | 僅相依套件審計
/scan --secrets - Secret detection only | 僅機密偵測
/scan --license - License compliance check | 授權合規檢查
After /scan completes, the AI assistant should suggest:
掃描完成。建議下一步 / Scan complete. Suggested next steps:
- 執行
/security深入安全審查 ⭐ Recommended / 推薦 — Run deep security review- 執行
/checkin確認修復符合提交規範 — Verify fixes meet check-in standards- 執行
/commit提交安全修復 — Commit security fixes- 更新相依套件 →
npm update或pip install --upgrade— Update dependencies
| Version | Date | Changes | 變更說明 | |---------|------|---------|----------| | 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
完整的 AI 行為定義請參閱對應的命令文件:
/scanFor complete AI agent behavior definition, see the corresponding command file:
/scan
CC BY 4.0 — Documentation content
tools
[UDS] 從規格衍生 BDD 場景、TDD 骨架或 ATDD 表格
development
[UDS] /methodology: 選擇並追蹤開發方法論(SDD/BDD/TDD)。 Use when: 選擇方法論、切換開發模式、查詢當前方法論狀態。 若要查詢各階段對應指令請用 /dev-workflow。
testing
[UDS] Derive BDD scenarios, TDD skeletons, or ATDD tables from specifications
development
[UDS] Create or review specification documents for Spec-Driven Development