跳到正文
Skillpedia
部署与云(DevOps)5.1k · #15116

omh-iac-change

它能做什么

它读取已保存的基础设施计划,展示偏差、影响范围和成本变化,然后规划分阶段的应用方案,每个阶段都包含健康检查和回滚。适合更改云端或集群配置的工程师。

适用场景

  • ✓当 Terraform 或 OpenTofu 计划显示偏差,你希望先审查时。
  • ✓当你修改了 Kubernetes 清单或 Helm chart,并想了解其风险时。
  • ✓当你希望基础设施的应用分阶段进行,并在每一步都有回滚时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-iac-change/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-iac-change/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“Terraform 计划显示 Kubernetes 集群存在偏差。请审查它,并安全地分阶段应用。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体读取已保存的计划,把已有偏差与拟议改动区分开,并把应用过程排列成几个阶段。每个阶段都有健康检查和回滚步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Iac Change

This is an OMH iac-change workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

iac-change exists because infrastructure changes had no owner: deploy-and-monitor watches an application release, release-cut decides one, and inference-serving deploys a model server, while a Terraform plan with drift, a Helm chart change, or a manifest edit reached a generic planner with no blast radius, cost delta, or staged apply at all.

First Steps

  • Ask for the saved plan or the diff output before assessing anything.
  • Separate existing drift from the proposed change before ordering stages.

Do Not Use When

  • The ask is shipping a new version of the application and watching its health signals after the deploy; use omh-deploy-and-monitor.
  • The ask is deciding a versioned release -- what goes in, its tag, or its canary -- rather than changing declared infrastructure; use omh-release-cut.
  • The ask is choosing and deploying a model-serving engine; use omh-inference-serving.
  • Production is down or degraded right now and the ask is command of the incident; use omh-live-incident-response.

Examples

Good example:

  • Prompt: terraform plan shows drift in the kubernetes cluster, stage the apply
  • Expected behavior: Separate the drift from a refresh-only plan, read the saved plan's creates, replacements and destroys, give the cost delta or mark it unestimated, and stage the apply from staging to production with a rollout-status gate and a rollback per stage.
  • Why: Applying over unresolved drift changes resources nobody meant to touch.

Bad example:

  • Prompt: just run terraform apply -auto-approve in prod, the plan looked fine yesterday
  • Expected behavior: Refuse the fresh apply: re-plan, save the plan, read its replacements and destroys, and apply that saved plan behind a health gate.
  • Why: Yesterday's plan is not today's apply; drift and other merges change what a fresh apply does.

Completion Checklist

  • Existing drift is separated from the proposed change.
  • Every replacement or destroy is listed, and each stateful one waits for explicit approval.
  • The cost delta is observed or marked unestimated.
  • Every stage names its health gate and its rollback.
  • OMH ran nothing, and every fact cites observed output or is marked unverified.

Recovery Notes

  • If no saved plan exists, stop at the plan step and ask for one; do not assess from the diff of the code alone.
  • If a resource cannot be rolled back, say so in its stage and ask for approval before that stage.

When to Use

Use when a change to declared infrastructure is about to be applied or has drifted: a Terraform, OpenTofu, Pulumi or CloudFormation plan, a Kubernetes manifest or kustomization, or a Helm chart or values change. The output is the drift between state and reality, the blast radius and cost delta read from the saved plan, and a staged apply where every stage has a health gate and a rollback; OMH applies nothing.

Strong routing signals: `iac-change`, `iac change`, `infrastructure as code`, `infrastructure-as-code`, `terraform plan`, `terraform apply`, `terraform state`, `terraform drift`, `terraform module`, `terraform change`, `opentofu`, `tofu plan`, `pulumi`, `pulumi preview`, `pulumi up`, `cloudformation`, `cloudformation change set`, `helm upgrade`, `helm diff`, `helm chart`, `helm chart change`, `kubectl apply`, `kubectl diff`, `kustomize`, `kubernetes manifest`, `kubernetes manifests`, `k8s manifest`, `k8s manifests`, `infracost`, `drift detection`, `cost delta`, `staged apply`, `stage the apply`

Catalog Metadata

Category: planning Phase: iac-change Quality tier: staged-apply-gated Reasoning demand: standard

Quality bar:

  • Read the saved plan or diff before anything else; the blast radius is what the plan says, not what the change was meant to do.
  • Load references/iac-change-method.md for the per-tool drift, plan, health and rollback commands and the replacement markers instead of recalling them.
  • Resolve existing drift before the apply, so the apply changes only what the change meant to.
  • Give every stage a health gate and a rollback; a stage with neither is not a stage.
  • Keep prepared, applied, and verified as separate states for every stage.

Required inputs:

  • the tool and the unit of change: the Terraform workspace or stack, the cluster and namespace, or the Helm release
  • the environments the change reaches,
常见问题

它会自己应用改动吗?

它规划分阶段的应用方案。实际应用是由你控制的操作。

它涵盖应用版本发布吗?

不涵盖。发布应用版本由部署监控技能负责。

它需要已保存的计划吗?

需要。在评估之前,它会从已保存的计划或差异输出开始。

详情

作者的原始描述

[omh] Infrastructure-as-code change -- Terraform, OpenTofu, Pulumi, a Kubernetes manifest, a Helm chart: read the drift, the blast radius and the cost delta from the saved plan, then stage the apply behind a health gate with a rollback per stage. Use when the user says: iac-change, iac change, infrastructure as code, infrastructure-as-code, terraform plan, terraform apply, terraform state, terraform drift.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15116
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能