JPeetz/agent-skills / skills/devops-infrastructure/infrastructure-as-code-guardian
infrastructure-as-code-guardian
VerifiedUse this skill when authoring, securing, or managing infrastructure as code in Terraform, Pulumi, CloudFormation, Ansible, or Bicep — or when selecting an IaC tool, reviewing modules for security, detecting drift, optimizing cost, or planning a multi-tool migration. Covers AWS, Azure, GCP, and hybrid cloud, with per-tool authoring patterns, CIS/SOC 2 security checklists, drift detection, and cost guardrails across the full IaC lifecycle.
| File | Kind | Size |
|---|---|---|
| CHANGELOG.md | markdown | 4.4 KB |
| LICENSE | other | 1.0 KB |
| SKILL.md | skill md | 29.5 KB |
| evals/evals.json | config | 5.1 KB |
| references/cloud-provider-matrix.md | markdown | 20.7 KB |
| references/iac-patterns.md | markdown | 16.4 KB |
| references/security-hardening.md | markdown | 22.1 KB |
| scripts/drift-check.shexecutable | script | 16.1 KB |
| scripts/security-scan-iac.shexecutable | script | 19.2 KB |
| scripts/validate-iac.shexecutable | script | 14.0 KB |
evals/evals.json
View on GitHub{
"$schema": "https://agents.skillfoundry.io/evals/v1",
"skill": "infrastructure-as-code-guardian",
"version": "1.0.0",
"description": "Evaluation suite for the Infrastructure as Code Guardian skill — 5 positive trigger cases and 2 near-miss negatives to validate activation accuracy.",
"cases": [
{
"id": "trigger-001-terraform-module",
"type": "positive_trigger",
"input": "Write a Terraform module for provisioning an RDS PostgreSQL instance with encryption and multi-AZ failover.",
"expected": {
"should_activate": true,
"activation_reason": "Direct request to author Terraform IaC with security parameters embedded.",
"expected_tool": "terraform",
"expected_sections": ["security hardening", "authoring guidelines", "encryption"]
},
"tags": ["terraform", "rds", "module-authoring", "security"],
"severity": "critical"
},
{
"id": "trigger-002-security-audit",
"type": "positive_trigger",
"input": "Review my Pulumi stack for security issues — I'm deploying to production today and want a second pair of eyes.",
"expected": {
"should_activate": true,
"activation_reason": "Explicit request for Pulumi security audit with production deployment context.",
"expected_tool": "pulumi",
"expected_sections": ["security hardening", "secret management", "least privilege IAM", "encryption"]
},
"tags": ["pulumi", "security-audit", "production"],
"severity": "critical"
},
{
"id": "trigger-003-drift-detection",
"type": "positive_trigger",
"input": "My Terraform plan output shows unexpected changes — I think someone made manual changes in the AWS console. Help me reconcile this drift.",
"expected": {
"should_activate": true,
"activation_reason": "Explicit drift detection and reconciliation request for Terraform-managed AWS infrastructure.",
"expected_tool": "terraform",
"expected_sections": ["drift detection workflow", "drift remediation patterns"]
},
"tags": ["terraform", "drift", "aws", "reconciliation"],
"severity": "high"
},
{
"id": "trigger-004-migration",
"type": "positive_trigger",
"input": "We have 200+ CloudFormation stacks and our DevOps team wants to standardize on Terraform. How should we approach this migration without downtime?",
"expected": {
"should_activate": true,
"activation_reason": "Cross-tool migration planning (CloudFormation → Terraform) at scale with zero-downtime requirements.",
"expected_tool": "cloudformation-to-terraform migration",
"expected_sections": ["migration patterns", "tool selection"]
},
"tags": ["migration", "cloudformation", "terraform", "zero-downtime"],
"severity": "high"
},
{
"id": "trigger-005-tool-selection",
"type": "positive_trigger",
"input": "We're a startup building a multi-cloud platform targeting AWS and Azure. Our team of 5 developers knows TypeScript well. Should we use Terraform or Pulumi for our infra?",
"expected": {
"should_activate": true,
"activation_reason": "Explicit tool selection decision with multi-cloud and team skill context.",
"expected_tool": "pulumi (recommended via decision tree)",
"expected_sections": ["tool selection decision tree", "comparison matrix"]
},
"tags": ["tool-selection", "multi-cloud", "pulumi", "terraform-compare"],
"severity": "medium"
},
{
"id": "nearmiss-001-docker-deploy",
"type": "near_miss_negative",
"input": "Deploy this Docker container to production. Here's the docker-compose.yml — just push it up to ECS.",
"expected": {
"should_activate": false,
"reason": "Operational deployment request, not IaC authoring or management. This is a container deployment task, not infrastructure definition."
},
"tags": ["docker", "deployment", "operational"],
"severity": "must_not_trigger"
},
{
"id": "nearmiss-002-ssh-troubleshoot",
"type": "near_miss_negative",
"input": "I can't SSH into my EC2 instance. The security group looks fine. What should I check?",
"expected": {
"should_activate": false,
"reason": "Operational troubleshooting of a running EC2 instance. Not an IaC authoring, security review, or management task."
},
"tags": ["ssh", "ec2", "troubleshooting", "operational"],
"severity": "must_not_trigger"
}
],
"metadata": {
"total_cases": 7,
"positive_triggers": 5,
"near_miss_negatives": 2,
"ambiguous_cases": 0,
"coverage": {
"tools_covered": ["terraform", "pulumi", "cloudformation"],
"clouds_covered": ["aws", "azure"],
"skill_sections_tested": [
"tool-selection-decision-tree",
"authoring-guidelines",
"security-hardening",
"drift-detection",
"migration-patterns",
"secret-management"
]
},
"expected_min_activation_rate": 1.0,
"expected_max_false_positive_rate": 0.0
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |