trivy-scan

trivy-scan is a skill for Claude Code from makigjuro/cloudstack-ai-plugins. It costs 68 tokens per session (1,381 once invoked), scanned B, original, MIT.

An infrastructure security scanner for Terraform files and Helm charts, which describe cloud resources and Kubernetes deployments. It uses Trivy to find configuration risks and container image vulnerabilities.

In plain words
What is it for?
Use it to check infrastructure during development, before a pull request, or as part of broader infrastructure checks. You can choose which severity levels fail the check or make it report findings without failing.
Why use it?
It catches security problems that basic Terraform validation and Helm checks can miss, such as public storage, missing encryption, weak TLS, and overly broad access permissions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cloud-infra plugin — 8 skills, 1 agent shipped together

Good fit Use it to check infrastructure during development, before a pull request, or as part of broader infrastructure checks. You can choose which severity levels fail the check or make it report findings without failing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add makigjuro/cloudstack-ai-plugins
Claude Code
/plugin install cloud-infra

Made for: Claude Code.

Or install cloud-infra, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trivy-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/trivy-scan/github.svg)](https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/trivy-scan)
Your own site
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/trivy-scan"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/trivy-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trivy-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/trivy-scan"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/trivy-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01381
Opus 5.5 $0.00027 $0.00552
Sonnet 5.5 $0.00014 $0.00276
Haiku 4.5 $0.00007 $0.00138

Measured 1mo ago against content hash 6fdf5ba51f16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

trivy-scan scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan-trivy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
plugins/cloud-infra/skills/trivy-scan/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trivy Security Scan

Run Aqua Security's trivy against the infrastructure tree to catch misconfigurations that terraform validate and helm lint miss — things like publicly exposed storage, missing encryption, weak TLS, and over-broad IAM role assignments.

When to Use

  • Directly (/trivy-scan) — manual scan, e.g. while iterating on a module or before a PR.
  • Indirectly — invoked from /infra-lint (fast check) and /complete-infra (pre-PR verification gate).

Arguments

The script takes no CLI flags; the skill maps each argument to an environment variable:

  • --strict — Run with TRIVY_STRICT=1 (adds LOW to the fail set). Default: fail on CRITICAL, HIGH, MEDIUM; LOW is advisory.
  • --warn-only — Run with TRIVY_WARN_ONLY=1: never exit non-zero on findings; just report. Useful for CI continue-on-error style gating.
  • --severity HIGH,CRITICAL — Run with TRIVY_SEVERITY=HIGH,CRITICAL to override the default severity filter.

Configuration

Read cloudstack.json from the project root at start of execution. Extract:

  • TF_PATH = infrastructure.terraformPath (default: infra/terraform/modules)
  • CHARTS_PATH = infrastructure.chartsPath (default: deploy/charts)

Derive TF_PARENT as the parent directory of TF_PATH (e.g., infra/terraform/modules → infra/terraform). If cloudstack.json is missing, auto-detect by scanning the project.

Prerequisites

trivy must be installed locally. The skill does not auto-install — be explicit about system changes.

# macOS
brew install trivy

# Linux
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

If trivy is missing, the script prints the install command and exits 2 (even with --warn-only).

Suppressing findings — .trivyignore

Project-local exemptions go in a .trivyignore file. The script uses the first one it finds, in this order: TRIVY_IGNOREFILE (if set and the file exists), then {TF_PARENT}/.trivyignore, then .trivyignore in the parent of CHARTS_PATH, then ./.trivyignore. One rule ID per line, with a comment explaining why:

Read the full file on GitHub · 141 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -8 lines · -3 tokens per session 6fdf5ba51f16
  2. 3mo ago First seen · 149 lines · 71 tokens per session scan B 3800ccec3295

Subscribe to this mod's changes

trivy-scan is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 1,381 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

trivy-scan compared with skills from other repositories

trivy-scan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trivy-scanmakigjuro/cloudstack-ai-pluginsSkill11mo agoMITB68Claude Code
demoalivecontext/aliveSkill13215d agoMITA50Claude Code
session-historyalivecontext/aliveSkill13215d agoMITA74Claude Code
worldalivecontext/aliveSkill13215d agoMITA61Claude Code
karpenternitinjain999/platform-skillsSkill743d agoApache-2.0A131Claude Code
pr-reviewnitinjain999/platform-skillsSkill743d agoApache-2.0A81Claude Code
azurenitinjain999/platform-skillsSkill743d agoApache-2.0A39Claude Code