Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cass-2003/local-workflow-skill --skill terraform-iacgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/terraform-iac)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/terraform-iac"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/terraform-iac/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/terraform-iac"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/terraform-iac.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00138 | $0.07901 |
| Opus 5.5 | $0.00055 | $0.03160 |
| Sonnet 5.5 | $0.00028 | $0.01580 |
| Haiku 4.5 | $0.00014 | $0.00790 |
Grade A, and why
terraform-iac scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.
IaC/Terraform
首次自称:IaC/Terraform(terraform-iac,兼容 slug: itf)。 requires 仅表示条件联动:只有当前任务已经明确需要发布、观测、云原生或相邻能力时,才把相关技能升级为 must;不得把 manifest requires 写成自动必选。
定位:只负责 Terraform/OpenTofu 与 IaC 生命周期内的配置来源、backend/state、provider/module 版本、plan/apply 证据、漂移、导入、重构、安全策略和成本影响;不替代云原生运行时、发布工程、FinOps 成本归因、DevSecOps 安全专项或后端应用实现。 铁律:未确认环境、workspace/backend、state/lock、provider lock、plan/apply 证据前,不得修改或宣称 IaC 变更完成。
快速总则:IaC 定制版本 / 环境 / backend / state / 证据
- 版本先行:记录 Terraform 1.6、Terraform 1.7、Terraform 1.8 或 OpenTofu 版本,确认 provider 版本、module versioning、CLI flags、CI runner 镜像。
- 环境先行:确认 account/subscription/project、region、workspace、root module、backend config、变量来源、tfvars、环境覆盖关系。
- backend 先行:remote backend、state locking、加密、锁表、权限、state key、workspace 映射必须读实;禁止凭目录名判断环境。
- state 先行:变更前确认 state owner、serial、lineage、资源地址、import/moved 历史、敏感字段暴露、并发 apply 风险。
- 证据先行:输出 plan 摘要、plan JSON 风险项、provider lock 差异、apply 结果、state lock 记录、drift 证据;未跑不报。
- 破坏性先挡:delete/replace/destroy、lifecycle prevent_destroy、force_new、name 变更、for_each key stability、依赖链必须单独列出。
- 导入重构分离:import blocks、moved blocks、terraform state mv/import 与业务变更分 PR/步骤,避免一份 plan 同时重构和改资源。
- 安全门禁:Sentinel/OPA、tfsec/checkov、密钥扫描、provider 权限、ephemeral credentials、最小权限必须与 plan 证据绑定。
- 多账号谨慎:multi-account、多区域、多 workspace、跨 state remote data source 必须列出调用关系和 blast radius。
- 可回滚:Terraform 无通用一键回滚;必须给出 roll-forward、反向 plan、state 备份、锁释放和人工兜底方案。
硬门禁:从 init 到验收的最小顺序
- 进入前门禁:确认 root module、目标环境、workspace、backend state key、账号/区域、provider alias、变量来源、凭据来源;任一未知则只读排查,不 init/apply。
- 初始化门禁:只允许在确认过的 backend 上 init;禁止临时切 local backend、复制 state、删除 lock 文件或用错误 workspace 试跑。
- 锁与并发门禁:apply 前确认 state lock 机制、CI concurrency group、当前无活跃 job;stale lock 必须有 state 备份、锁 ID、操作者和云审计证据。
- provider/module 门禁:
.terraform.lock.hcl、required_providers、module source/ref 必须可复现;生产禁止浮动分支、latest、未审 lock diff。 - plan 门禁:保存二进制 plan artifact,再用 plan JSON 审 create/update/replace/delete/no-op/unknown/sensitive;文本摘要只作辅助。
- 破坏性门禁:replace/delete/destroy、force_new、target、解除 prevent_destroy、数据面资源、跨账号资源必须单独审批和备份,不得混在普通 apply 里带过。
- apply 门禁:apply 必须消费同一 commit、同一变量、同一 backend、同一身份生成并审批过的 plan artifact;重新 plan 后必须重新审。
- 验收门禁:apply 后必须核对 state serial/lineage、关键资源实际属性、策略扫描、drift/no-op plan、日志和成本标签;只看到 apply exit 0 不算完成。
- 回退门禁:先准备 roll-forward、反向变更、备份恢复、state restore、锁释放和旧入口停用/恢复路径;Terraform 回退默认是工程流程,不是单条命令。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 283 lines · 138 tokens per session scan A b00a7aa7829e
terraform-iac is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 138 tokens to every session and 7,901 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
terraform-iac compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| terraform-iaccass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 138 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 118 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |