跳到正文
TakoAPI
返回技能列表

tf-plan-review

由 tkuehnl 提供

DevOps & Cloud
429下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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. 1

    Runs tf-plan-review.sh plan against ~/infra/prod

  2. 2

    Parses JSON output for overall_risk, destroy count, and per-resource risk classifications

  3. 3

    Identifies critical changes such as IAM role deletions, database replacements, and security group updates

  4. 4

    Assesses blast radius for destroyed or replaced resources

  5. 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-review

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接