Token导航 LogoToken导航

Agent Skill · 运维

tf-plan-review(工作重点计划审查)

tf-plan-review 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tf-plan-review 是运维类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在运维类的 954 个 Skill 里排第 173。

总安装 21,714周安装 887GitHub Stars 公开资料未说明下载 6,954核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.2.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tf-plan-review(工作重点计划审查)
来源仓库:https://github.com/tkuehnl/tf-plan-review
安装命令:
openclaw skills install tf-plan-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tf-plan-review

这个 Skill 是做什么的

运维类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

tf-plan-review 用于分析 Terraform 部署计划的风险等级与安全影响。适合在 OpenClaw 中检查云资源配置变更、IAM 修改或数据丢失风险。自动分类更改为安全、中等、危险或严重级别,辅助运维决策。

安装命令:openclaw skills install tf-plan-review,需确认是否执行远程操作或读取环境变量。使用前请核实权限范围及是否涉及生产环境变更审批流程。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install tf-plan-review;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tf-plan-review 怎么安装?

在终端执行 openclaw skills install tf-plan-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tf-plan-review 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tf-plan-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

tf-plan-review 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

tf-plan-review 用的人多吗?

公开数据是累计安装 21,714 次,近一周安装 887 次,下载 6,954 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tf-plan-review 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理运维类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
docker-essentials

Docker 基础 · OpenClaw

1,005,15130接触敏感数据MIT-0通过
playwright-scraper-skill

Playwright scraper 技能 · OpenClaw

923,55754接触敏感数据MIT-0有提醒
moltguard

moltguard 搜索 · OpenClaw

825,096110接触敏感数据MIT-0通过
finance-news

财经新闻 · OpenClaw

275,51210需要联网MIT-0有提醒
security-monitor

安全监视器 · OpenClaw

224,1695需要联网MIT-0有提醒
tf-plan-review

工作重点计划审查 · 本页

21,714—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
tf-plan-review
description
>
version
0.1.1
author
Anvil AI
tags
[terraform, opentofu, iac, infrastructure, devops, risk-assessment, plan-review, security, discord, discord-v2]

Terraform Plan Analyzer & Risk Assessor

Analyze terraform plan output and produce an AI-powered risk assessment of every infrastructure change — before you press apply.

This skill is STRICTLY READ-ONLY. It runs terraform plan and terraform validate to analyze changes, but it NEVER runs terraform apply, terraform destroy, terraform import, terraform taint, or any command that modifies infrastructure or state.

Activation

This skill activates when the user mentions:

  • "terraform plan", "tf plan", "review plan", "plan review"
  • "is this plan safe", "safe to apply", "risk assessment"
  • "what will be destroyed", "what changes", "terraform changes"
  • "terraform state", "state drift", "drift detection"
  • "terraform validate", "validate config", "tf validate"
  • "IAM changes", "security group changes", "infrastructure changes"
  • "blast radius", "cascade effects", "dependencies"
  • "tofu plan", "opentofu" (same workflow, different binary)

Example Prompts

  1. "Review this terraform plan before I apply"
  2. "What will be destroyed in this plan?"
  3. "Is this plan safe to apply?"
  4. "Show me the state drift"
  5. "What IAM changes are in this plan?"
  6. "Validate my terraform config in ~/infra/prod"
  7. "Run a risk assessment on the terraform plan in /deployments/staging"
  8. "What's the blast radius if I apply this plan?"

Permissions

permissions:
  exec: true          # Required to run terraform/tofu CLI
  read: true          # Read .tf files and plan output
  write: false        # NEVER writes — strictly read-only analysis
  network: true       # terraform plan needs provider API access

Terraform Change Types — What the Agent Must Know

Understanding Terraform change types is critical for accurate risk assessment:

Action Types (from plan JSON)

ActionMeaningRisk Profile
createNew resource being addedGenerally safe (unless IAM/security)
updateExisting resource modified in-placeModerate (depends on what's changing)
deleteResource being permanently destroyedDANGEROUS — data loss risk
replace (delete + create)Resource must be destroyed and recreatedDANGEROUS — downtime + data loss
readData source being refreshedSafe (read-only)
no-opNo changes neededSafe

What Makes a Change Dangerous

Critical (🔴 CRITICAL):

  • Any destroy/replace of: IAM roles/policies, security groups, KMS keys, secrets, databases (RDS, DynamoDB, Cloud SQL, Azure SQL), S3 buckets, DNS records, WAF rules, CloudTrail
  • Any update to IAM policies, security group rules, encryption settings
  • These changes can cause data loss, security breaches, or service outages

Dangerous (🟠 DANGEROUS):

  • Destroy/replace of: EC2 instances, load balancers, ECS/EKS clusters, VPCs, subnets, NAT gateways, Lambda functions, API gateways
  • These changes cause downtime and may require manual intervention to recover

Moderate (🟡 MODERATE):

  • Updates to: autoscaling policies, monitoring/alerting rules, launch templates
  • Creates of: security-sensitive resources (new IAM roles, new security groups)
  • Changes that affect capacity or observability but not data integrity

Safe (🟢 SAFE):

  • Tag-only updates
  • Creating new non-sensitive resources
  • No-op / read operations

Replace is Especially Dangerous

When Terraform says it must "replace" a resource, it means:

  1. Delete the existing resource (irreversible)
  2. Create a new one with the new configuration

This is triggered when an immutable attribute changes (e.g., changing RDS engine_version, EC2 ami, changing a subnet's AZ). The agent should always flag replaces prominently because:

  • The old resource (and its data) is destroyed
  • There will be a gap between destroy and create (downtime)
  • Dependent resources may break during the transition

Agent Workflow

Follow this sequence exactly based on user intent:

For Plan Analysis ("review this plan", "is it safe", "what changes")

Step 1: Run Plan Analysis
bash <skill_dir>/scripts/tf-plan-review.sh plan <directory>

If no directory specified, use the current working directory.

The script outputs:

  • stdout: Structured JSON with all resource changes, risk classifications, and summary
  • stderr: Beautiful Markdown risk report
Step 2: Interpret the JSON

Parse the JSON output. Key fields:

{
  "overall_risk": "🔴 CRITICAL | 🔴 HIGH | 🟡 MODERATE | 🟢 LOW",
  "summary": {
    "create": 5,
    "update": 3,
    "destroy": 1,
    "replace": 0
  },
  "risk_breakdown": {
    "critical": 1,
    "dangerous": 0,
    "moderate": 2,
    "safe": 5
  },
  "resources": [
    {
      "address": "aws_iam_role.admin",
      "action": "delete",
      "risk": "🔴 CRITICAL"
    }
  ]
}
Step 3: Present the Risk Assessment

Show the Markdown report from stderr. Then add your own AI analysis:

  1. Lead with the overall risk level — make it viscerally clear
  2. Highlight destroys and critical changes first — these are what kill production
  3. Explain WHY each critical change is dangerous in plain English
  4. Assess blast radius — what other resources depend on the destroyed ones?
  5. Present the pre-apply checklist — what should the human verify?
  6. Give a clear recommendation: "Safe to apply" / "Review needed" / "DO NOT APPLY without ___"

Tone guidance for critical plans:

  • Don't be polite about danger. If a plan destroys a production database, say so bluntly.
  • "This plan will permanently delete your RDS instance prod-db. All data will be lost. Do you have a backup?"
  • Make the "oh shit" moment impossible to miss.

For State Inspection ("show me state", "what's managed", "state drift")

bash <skill_dir>/scripts/tf-plan-review.sh state "<filter>" <directory>

The filter is optional — it greps resource addresses. Examples:

  • bash <skill_dir>/scripts/tf-plan-review.sh state "iam" . → all IAM resources
  • bash <skill_dir>/scripts/tf-plan-review.sh state "aws_instance" . → all EC2 instances
  • bash <skill_dir>/scripts/tf-plan-review.sh state "" . → all resources

For Validation ("validate config", "check syntax")

bash <skill_dir>/scripts/tf-plan-review.sh validate <directory>

Reports configuration errors and warnings without running a plan.

Environment Variables

VariableDefaultDescription
TF_BINARYauto-detectOverride binary: terraform, tofu, or a path
TF_PLAN_TIMEOUT600Timeout for terraform plan in seconds

The script auto-detects terraform first, then tofu. Set TF_BINARY=tofu to force OpenTofu.

Error Handling

SituationBehavior
terraform/tofu not foundJSON error with install links for both
jq not foundJSON error with install link
No .tf files in directoryJSON error: "No Terraform configuration files found"
Not initializedAuto-runs terraform init (for plan) or terraform init -backend=false (for validate)
Plan fails (provider errors)Extracts error from plan JSON diagnostics, reports it
Plan timeoutProcess killed after TF_PLAN_TIMEOUT seconds
State not foundJSON error explaining no state exists
Empty stateReports "State is empty — no managed resources"

Safety — CRITICAL RULES

  1. NEVER run terraform apply — not even with -auto-approve, not even with -target, not even "just this one resource". NEVER.
  2. NEVER run terraform destroy — not under any circumstances.
  3. NEVER run terraform import — this modifies state.
  4. NEVER run terraform taint or terraform untaint — these modify state.
  5. NEVER run terraform state mv, terraform state rm, or terraform state push — these modify state.
  6. Never expose cloud credentials — if they appear in plan output, redact them.
  7. Handle sensitive values — Terraform marks values as (sensitive). Never try to reveal them.
  8. Never cache or store plan output — plans can contain secrets in resource attributes.
  9. The ONLY terraform commands this skill runs are: plan, show, state list, state show, validate, init, providers.

If the user asks you to apply a plan, respond:

"I can analyze and assess Terraform plans, but I cannot apply them. Applying infrastructure changes requires human review and explicit execution. Based on my analysis, here's what you should verify before running terraform apply..."

Common Patterns & Agent Tips

"Is this plan safe to apply?"

Run the plan analysis. If overall_risk is 🟢 LOW:

"This plan looks safe. It creates X new resources with no destroys or security changes. The pre-apply checklist is straightforward."

If overall_risk is 🔴 CRITICAL:

"⚠️ This plan has CRITICAL risk. [Explain specific dangers]. I strongly recommend review by another team member before applying."

"What will be destroyed?"

Run plan, then filter for action == "delete" or action == "replace". Present each with:

  • Resource address
  • Resource type
  • Why it matters (is it stateful? does it have data?)
  • What depends on it

"What IAM changes are in this plan?"

Run plan, then filter resources matching IAM patterns. For each:

  • What permission is changing
  • Is it adding or removing access
  • Is it overly permissive (e.g., Action: *)

"Show me the blast radius"

Run plan, identify all destroys/replaces, then explain:

  • What other resources reference the destroyed ones
  • What will break when the resource is gone
  • Whether Terraform will auto-fix the dependencies or if manual intervention is needed

Discord v2 Delivery Mode (OpenClaw v2026.2.14+)

When the conversation is happening in a Discord channel:

  • Send a compact first summary (overall risk, destroy count, critical resources), then ask if the user wants the full report.
  • Keep the first response under ~1200 characters and avoid large Markdown tables in the first message.
  • If Discord components are available, include quick actions:

- Show Critical Changes - Show Destroyed Resources - Show Pre-Apply Checklist

  • If components are not available, provide the same follow-ups as a numbered list.
  • Prefer short follow-up chunks (<=15 lines per message) for large plans.

Sensitive Data Handling

Terraform plan JSON may contain sensitive values. The script does NOT extract resource attribute values — it only extracts resource addresses, types, and actions. However, when presenting results:

  • Never show attribute values marked (sensitive) by Terraform
  • Never show provider credentials or backend configuration secrets
  • If a user asks "what value is changing?", explain that you can see the change type but sensitive values are redacted by Terraform for security
  • Never store or cache plan output files

Powered by Anvil AI 🔍

平台分布

OpenClaw

96.5%
按下载量换算6,711

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills