Automates container and dependency vulnerability scanning with Grype, enabling security testing in development workflows, CI/CD pipelines, and pre-commit hooks.
Ships in slim-website-maker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill helps you implement comprehensive vulnerability scanning for containers and software dependencies using Grype, an open-source vulnerability scanner. It provides both manual scanning capabilities and automated integration through pre-commit hooks to detect security vulnerabilities early in the development process.
The skill supports scanning containerized applications, base images, and package manager dependencies (NPM, Maven, PyPI, etc.) to identify known security vulnerabilities before they reach production.
Software:
Skills:
First, ensure Grype is installed and operational:
Install Grype:
# macOS (via Homebrew)
brew install anchore/grype/grype
# Linux/WSL
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
# Via Go
go install github.com/anchore/grype@latest
Verify installation:
grype version
Start with manual scanning to understand your current security posture:
Scan repository dependencies:
grype dir:.
This scans all package manager dependencies (package.json, requirements.txt, pom.xml, etc.) in the current directory.
Scan a specific container image:
# First build your container
docker build -t my-app:latest .
# Then scan the built image
grype my-app:latest
Scan a remote container image:
grype alpine:latest
grype nginx:1.21
Scan with severity filtering:
# Only show critical and high severity issues
grype dir:. --fail-on critical --fail-on high
Review scan output to understand vulnerabilities:
Address identified vulnerabilities:
For automated vulnerability checking before commits, set up pre-commit hooks:
Install pre-commit framework:
pip install pre-commit
Configure pre-commit scanning: Copy the pre-commit configuration to your repository root:
cp assets/pre-commit-config.yml .pre-commit-config.yaml
Initialize pre-commit in your repository:
pre-commit install
Test the setup:
pre-commit run --all-files
The automated scan will:
git push operationgrype dir:.git push --no-verify if neededFor automated scanning in your CI/CD pipeline:
GitHub Actions Integration:
General CI/CD Integration:
File: assets/pre-commit-config.yml
This template provides a ready-to-use pre-commit hook configuration that:
The configuration uses local repository execution to ensure reliable scanning without external dependencies.
grype db updateQ: The pre-commit scan is failing with "grype command not found"
A: Ensure Grype is installed and available in your PATH. Run grype version to verify installation. You may need to restart your terminal or update your PATH after installation.
Q: Scans are taking too long to complete A:
grype db updategrype dir:. --fail-on criticalQ: How do I skip the pre-commit scan temporarily?
A: Use git push --no-verify to bypass pre-commit hooks. However, this should be used sparingly and with caution.
Q: The scan found vulnerabilities but no fixes are available A:
Q: False positives are blocking development A:
Q: How often should I run vulnerability scans? A:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
container-scanning, vulnerability-detection, grype, ci-cd, pre-commit
/slim-website-maker:slim-container-vulnerability-scanningfrom slim-website-maker
npx claudepluginhub nasa-ammos/slim --plugin slim-website-maker18 skills in this plugin
/slim-badgesAdd badges to a repository, README, or document. Ships with authorship badges (100% Human Made, AI-assisted, AI-generated, AI-autonomous) and the SLIM Best Practices badge, and is extensible to any badge. Use when a user wants to add, choose, or generate a badge for a project or document./slim-changelogCreate and maintain human-readable changelogs for software projects using Keep a Changelog standards. Use when creating project changelogs, documenting releases, managing version history, or establishing transparent communication about software changes for users and contributors./slim-code-of-conductOther plugins' skills for the same job