snyk

GitHub

使用 Snyk 对项目和依赖进行安全扫描,识别漏洞并按严重程度分类。提供修复建议并制定优先行动计划,辅助用户解决安全和依赖问题。

.claude/skills/snyk/SKILL.md slackapi/slack-cli

触发场景

执行月度安全审查 检查项目新出现的漏洞 运行 Snyk 依赖或代码扫描

安装

npx skills add slackapi/slack-cli --skill snyk -g -y
更多选项

非标准路径

npx skills add https://github.com/slackapi/slack-cli/tree/main/.claude/skills/snyk -g -y

不安装直接使用

npx skills use slackapi/slack-cli@snyk

指定 Agent (Claude Code)

npx skills add slackapi/slack-cli --skill snyk -a claude-code -g -y

安装 repo 全部 skill

npx skills add slackapi/slack-cli --all -g -y

预览 repo 内 skill

npx skills add slackapi/slack-cli --list

SKILL.md

Frontmatter
{
    "name": "snyk",
    "description": "Run Snyk security scans to find dependency vulnerabilities and source code issues. Use for monthly security reviews or when checking for new vulnerabilities."
}

Run a Snyk security scan on this project.

1. Check prerequisites

Run which snyk to verify Snyk is installed. If not found, tell the user to install it with brew install snyk or npm install -g snyk.

Run snyk auth check or snyk whoami to verify authentication. If not authenticated, tell the user to run ! snyk auth to log in interactively.

2. Run snyk test (dependency vulnerabilities — primary scan)

Run snyk test to scan Go module dependencies for known vulnerabilities.

This is the most important scan. Summarize the results:

  • Group vulnerabilities by severity: Critical > High > Medium > Low
  • For each vulnerability, note:
    • The affected package and version
    • Whether a fix is available (upgrade path exists) or requires waiting on the upstream maintainer
  • For fixable issues, propose the specific go get upgrade commands
  • For unfixable issues, note them as "waiting on upstream" — these are deferred

3. Run snyk code test (source code analysis — secondary scan)

Run snyk code test to scan the project's own Go source code for security issues.

This scan is optional and secondary. Summarize the results:

  • Group findings by severity
  • Identify which issues are simple/quick to fix vs. complex
  • Focus on simple fixes that can be resolved quickly

4. Present a prioritized action plan

Combine both scan results into a single prioritized plan:

  1. Fix now — dependency upgrades with available fixes (propose commands)
  2. Fix now — simple source code issues from snyk code test
  3. Defer — dependency vulnerabilities waiting on upstream fixes
  4. Defer — complex source code issues that need more investigation

Ask the user which items they'd like to tackle, then help resolve them.

版本历史

  • 2369f3e 当前 2026-07-25 08:42

同 Skill 集合

.claude/skills/record-demo/SKILL.md

元信息

文件数
0
版本
9b4235c
Hash
39aa7177
收录时间
2026-07-25 08:42

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-13 01:25
浙ICP备14020137号-1 $访客地图$