andrewyng/openworker/iac-scan
Claude Code and agent skill by andrewyng/openworker
- community
Checking that the SKILL.md file is still in the repository.
Scan Terraform/IaC with trivy config and fix what matters in code
Install
npx vskill@latest install andrewyng/openworker/iac-scanSKILL.md
The same SKILL.md was published earlier as andrewyng/openworker/iac-scan.
Scan the repo's infrastructure-as-code and turn findings into minimal, safe Terraform changes.
- Pick the scanner (in this order — do NOT skip the scan if none is present):
trivy config . --format json -o /tmp/iac.json(also covers Dockerfiles/k8s)checkov -d . -o json > /tmp/iac.jsonif the repo already uses it- Neither installed: ask for trivy with
request_tool("trivy", …). If the user
declines, review the Terraform by hand against the exposure checklist in step 2 and say in your report that the scan was manual. Do not suggest tfsec — it is deprecated; trivy config is its successor.
- Triage by real exposure, reading the surrounding Terraform for each finding:
- Internet-reachable (0.0.0.0/0 ingress, public buckets/ALBs) first.
- Then identity blast radius (wildcard IAM, broad assume-role trust).
- Then encryption/logging hygiene.
Mark deliberate-looking configuration (a public website bucket, a bastion SG) as "intentional?" and ask rather than auto-fix.
- Fix in the module where the resource is DEFINED (follow module sources), matching
the repo's Terraform style — variables, locals, and tags the way the codebase already does them.
- Validate every change:
terraform fmton touched files, then `terraform init
-backend=false && terraform validate when possible. Include terraform plan output in the PR when the user can run it — NEVER run terraform apply`.
- Deliver: exposure-ranked findings table (resource · issue · verdict · action), the
fix branch/PR, and any "intentional?" items awaiting a human decision. Offer a pinned scanner config (e.g. .trivyignore with justifications) only for findings the team explicitly accepts.
Security
- Security scanPassed, 90 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 repositoryCheckingcoworker/personas/builtin/cloud-posture/skills/iac-scan/SKILL.md
Popularity
- Repository stars
- 18,375
- Repository forks
- 2,598
- 7-day trend score
- 49
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/andrewyng/openworker/iac-scan)