alivirgo/major-ai-skills/trivy
Claude Code and agent skill by alivirgo/major-ai-skills
- community
Checking that the SKILL.md file is still in the repository.
Scan containers, filesystems, repositories, and infrastructure code with Trivy, then triage CVEs and configure CI thresholds.
Install
npx vskill@latest install alivirgo/major-ai-skills/trivySKILL.md
Aqua Trivy Vulnerability Scanning AI Skill Guide
Overview
Trivy scans container images, filesystems, Git repos, Kubernetes manifests, and Terraform/CloudFormation for OS packages, language libraries, secrets, and misconfigurations. It is widely used as a CI gate. Agents should report actionable findings (fixable base, upgraded package) and avoid failing builds on unfixed noise without a documented policy.
When to use
- Scanning images before registry push or cluster deploy
- Adding CI security gates with severity thresholds
- Generating SBOM artifacts for compliance
- Triaging whether a CVE is reachable / fixed upstream
Operational directives
- Pin Trivy version in CI; cache the vulnerability DB between jobs.
- Fail on
CRITICAL/HIGHby policy; document ignores with expiry reasons. - Prefer scanning by image digest, not mutable tags.
- Separate vuln results from misconfig/secret scanners in reports.
- Never suppress secrets findings without rotating the leaked credential.
Concrete examples
Image and filesystem scans
CI-friendly JSON + SARIF
Ignore file (time-boxed)
Kubernetes / config
Triage table
| Finding type | Typical remediations | |
|---|---|---|
| Distro package CVE | Rebuild on newer base (alpine:3.20, distroless) | |
| App library CVE | Bump lockfile dependency; rebuild | |
| Secret in image | Rotate; rewrite history/layers; use BuildKit secrets | |
| K8s misconfig | Fix securityContext, capabilities, root FS |
Best practices
- Scan both build images and final runtime images (multi-stage).
- Publish SBOM beside the image digest in the registry/CI artifacts.
- Track mean-time-to-remediate for CRITICAL separately from informational noise.
- Combine with admission policy (optional) - Trivy alone is not runtime enforcement.
Limitations
- Not all CVEs are exploitable in context; still require human risk acceptance.
- DB freshness matters - stale caches miss new advisories.
- IaC checks are heuristics; not a full cloud security posture platform.
Related skills
docker- rebuild images after base/package bumpskubernetes- workload hardening aftertrivy k8sfindingspacker- scan golden images/AMIs via filesystem export where applicableargocd/fluxcd- block bad digests before sync
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/trivy/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alivirgo/major-ai-skills/trivy)