/godmode:infrafrom godmode
Validates, secures, estimates costs, and detects drift in Terraform, CloudFormation, Pulumi, and CDK infrastructure. Blocks deployments on critical policy violations.
Ships in godmode. 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.
/godmode:infra# Detect IaC tool
ls *.tf template.yaml Pulumi.yaml cdk.json \
2>/dev/null
# Check state backend
grep -r 'backend\s*"s3"\|backend\s*"gcs"' *.tf \
2>/dev/null
# List existing resources
terraform state list 2>/dev/null | head -20
INFRASTRUCTURE CONTEXT:
IaC Tool: Terraform | CloudFormation | Pulumi | CDK
Provider: AWS | GCP | Azure | Multi-cloud
State: S3 | GCS | Azure Blob | Terraform Cloud | Local
Environments: dev | staging | production
IF no IaC detected: scaffold new project
IF state is local: migrate to remote immediately
IF no policy checks: add OPA/Sentinel
# Terraform validation
terraform fmt -check -recursive
terraform validate
terraform init -backend=false
terraform plan -out=tfplan
# CloudFormation validation
aws cloudformation validate-template \
--template-body file://template.yaml
cfn-lint template.yaml
# Pulumi / CDK
pulumi preview --diff
cdk synth && cdk diff
POLICY CHECKLIST:
[ ] No public S3 buckets or storage
[ ] No SGs with 0.0.0.0/0 on sensitive ports
[ ] Encryption at rest on all data stores
[ ] TLS 1.2+ enforced in transit
[ ] No hardcoded secrets in IaC
[ ] IAM least-privilege (no * actions)
[ ] All resources tagged: env, team, cost-center
[ ] VPC flow logs enabled
[ ] CloudTrail / audit logging enabled
THRESHOLDS:
CRITICAL: public data store, leaked secrets, * IAM
HIGH: missing encryption, no tags, no audit logs
MEDIUM: suboptimal instance type, missing flow logs
IF any CRITICAL: block deployment immediately
# Infracost for Terraform
infracost breakdown --path .
infracost diff --path . \
--compare-to infracost-base.json
COST ESTIMATE:
| Resource | Monthly | Change |
|---------------------------|----------|----------|
| aws_instance.api (t3.lg) | $60.74 | NEW |
| aws_rds.primary (r5.lg) | $172.80 | — |
| aws_elasticache.redis | $48.62 | NEW |
| TOTAL | $306.73 | +$109.36 |
THRESHOLDS:
IF cost delta > 20% of current: require approval
IF monthly > budget ceiling: suggest optimizations
IF cost per request > $0.01: investigate alternatives
# Terraform drift
terraform plan -detailed-exitcode
# Exit 0=no changes, 1=error, 2=drift detected
# CloudFormation drift
aws cloudformation detect-stack-drift \
--stack-name <stack>
DRIFT REPORT:
In sync: 14/16 resources
Drifted: 2/16 resources
IF drift found in security group: investigate ASAP
IF drift found in instance type: update IaC or revert
# Unit tests (Terratest)
cd test/ && go test -v -timeout 30m
# Integration tests
terraform apply -auto-approve -var-file=test.tfvars
./scripts/infra-integration-test.sh
terraform destroy -auto-approve -var-file=test.tfvars
# Compliance (InSpec)
inspec exec profiles/cloud-security --target aws://
DEPLOYMENT PLAN — <environment>:
CREATE: <N> resources
UPDATE: <N> resources
DELETE: <N> resources
UNCHANGED: <N> resources
SAFETY:
IF any DELETE: require manual confirmation
IF > 5 resources changing: deploy in stages
IF database resource changing: take snapshot first
terraform apply tfplan
terraform output -json > outputs.json
# Post-deployment health check
curl -s -o /dev/null -w "%{http_code}" \
https://api.example.com/health
Commit: "infra: <description> — <N> resources (<cost delta>)"
Never ask to continue. Loop autonomously until done.
* in IAM policies.1. IaC: *.tf, template.yaml, Pulumi.yaml, cdk.json
2. Provider: aws/google/azurerm blocks
3. State: backend "s3"/"gcs"/"azurerm"
Print: Infra: {resources} resources, {modules} modules. Drift: {status}. Security: {violations}. Cost: ${monthly}/mo. Verdict: {verdict}.
iteration provider resources drift policy_violations status
KEEP if: plan shows expected changes
AND policy passes AND cost within budget
DISCARD if: unexpected destroys OR policy violations
OR cost exceeds threshold
STOP when ANY of:
- All environments validated
- All policy violations resolved
- User requests stop
- CRITICAL violation needs architectural change
terraform state mv.What SKILL.md sets; muted values are Claude Code's defaults
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job