tf-plan-review
tkuehnl 제작
DevOps & Cloud요약
Analyze Terraform plans for risk before you apply.
설명
이 스킬이 하는 일
Runs terraform plan and classifies every infrastructure change as safe, moderate, dangerous, or critical. Detects destroys, IAM mutations, data-loss risks, and blast radius before you apply. Never modifies state or runs apply.
Classifies every change by risk level and surfaces destroys and IAM mutations automatically, instead of requiring engineers to manually scan raw plan output.
사용 시점
- Checking whether a plan destroys a production database before applying
- Reviewing IAM policy changes in a staging deployment
- Assessing blast radius when replacing a load balancer or VPC subnet
- Validating Terraform config syntax before a team code review
- Identifying which resources will be permanently deleted in a refactor
예시 워크플로
User asks: Is this plan safe to apply? (directory: ~/infra/prod)
- 1
Runs tf-plan-review.sh plan against ~/infra/prod
- 2
Parses JSON output for overall_risk, destroy count, and per-resource risk classifications
- 3
Identifies critical changes such as IAM role deletions, database replacements, and security group updates
- 4
Assesses blast radius for destroyed or replaced resources
- 5
Presents Markdown risk report with a go/no-go recommendation
Risk report showing overall risk level, a list of dangerous changes with plain-English explanations, and a pre-apply checklist
요구 사항
- terraform CLI or opentofu CLI installed
설치
clawhub install tkuehnl/tf-plan-reviewCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.