/major-ai-skills:trivyfrom major-ai-skills
Scan containers, filesystems, repositories, and infrastructure code with Trivy, then triage CVEs and configure CI thresholds.
Ships in major-ai-skills. 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.
None: SKILL.md is the whole skill.
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.
Target (image | fs | repo | k8s)
|
v
Trivy DB + checks
|
+--> vulnerabilities (CVE)
+--> misconfig / secrets
+--> SBOM (optional)
CRITICAL/HIGH by policy; document ignores with expiry reasons.trivy image ghcr.io/example/api:1.4.2
trivy image --severity HIGH,CRITICAL --exit-code 1 ghcr.io/example/api@sha256:...
trivy fs --scanners vuln,secret,misconfig .
trivy repo --severity HIGH,CRITICAL https://github.com/example/api
trivy image -f json -o trivy.json ghcr.io/example/api:1.4.2
trivy image -f sarif -o trivy.sarif ghcr.io/example/api:1.4.2
trivy image --format spdx-json -o sbom.spdx.json ghcr.io/example/api:1.4.2
# .trivyignore.yaml
vulnerabilities:
- id: CVE-2024-12345
paths:
- "usr/lib/libexample.so"
expired_at: "2026-09-30"
statement: "Waiting on upstream base image 1.5; tracked in JIRA-100"
trivy k8s cluster --severity HIGH,CRITICAL --report summary
trivy config ./deploy/k8s
| 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 |
docker - rebuild images after base/package bumpskubernetes - workload hardening after trivy k8s findingspacker - scan golden images/AMIs via filesystem export where applicableargocd / fluxcd - block bad digests before syncWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job