security-scan
Skill by bagofwords1
Runs a Snyk security scan across npm and pip dependencies, the Dockerfile base image and Snyk Code, then triages and fixes the real findings. Built for dependency CVE cleanup and pre-release security passes.
Install security-scan
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bagofwords1/bagofwords /tmp/bagofwords && mkdir -p ~/.claude/skills && cp -r /tmp/bagofwords/.agents/skills/security-scan ~/.claude/skills/security-scanRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bagofwords1/bagofwords /tmp/bagofwords && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bagofwords/.agents/skills/security-scan ~/.gemini/antigravity-cli/skills/security-scanAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill runs a Snyk security scan on a repository across four surfaces: frontend npm dependencies, backend pip dependencies, the Dockerfile and base image, and Snyk Code static analysis. It then triages the findings, since many are dev-only or false positives, and fixes the real ones with verified remediations. The Snyk token is read from the SNYK_PAT environment variable.
The workflow covers yarn resolutions for transitive npm packages, pyproject and uv.lock updates for Python, and exclusions in the .snyk policy file. It requires a re-scan to confirm each fix, plus a local build and lock consistency check before committing. It is aimed at developers doing dependency CVE cleanup or a pre-release security pass.
Written from the project's SKILL.md and checked against it.
What it can do
- Frontend dependency scanRuns snyk test on the frontend yarn.lock and maps fixes into yarn resolutions.
- Backend dependency scanExports pinned uv requirements and scans them as pip to find vulnerable packages.
- Container scanRuns snyk container test on the Dockerfile base image and checks remediation advice.
- Snyk Code triageRuns SAST and sorts findings into dev-only exclusions and real application issues.
- Verified re-scanRe-runs the scans to confirm finding counts dropped before committing changes.
What you need
- Snyk API token stored in the SNYK_PAT environment variable
- Snyk CLI, installed with npm
- Yarn 1 (classic) for the frontend
- uv 0.9.29 or later and Python 3.12 for the backend
Try asking
- Scan this repo with Snyk and resolve the security issues
- Run a pre-release security pass with Snyk on this project
- Clean up the dependency CVEs in the frontend and backend
Good to know
- Major-version app dependency bumps are left out and flagged for a separate change.
- Base OS findings are often distro won't-fix and are not churned in the Dockerfile.
- Issue-level ignores are managed in the Snyk web UI, not the .snyk file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/security-scan/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to security-scan
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
security-scan: common questions
Does it need a Snyk account?
It needs a Snyk API token in the SNYK_PAT environment variable. The org id is looked up through the Snyk REST API.
Does it fix every Snyk finding?
No. It triages findings and fixes only the real ones. Major-version bumps are deferred and many base image issues are won't-fix.
Does the container scan need Docker running?
No. The source says Snyk fetches image metadata directly, so no Docker daemon is needed.
How do I install security-scan?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is security-scan free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is security-scan safe to use?
It scores 70 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to security-scan?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
