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 | $0.00069 | $0.03950 |
| Sonnet 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 7d 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.
- 7d 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 2mo ago), licensed MIT. It adds 138 tokens to every session and 7,901 once invoked, about $0.0007 per session on Opus 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.
Other skills, from other repositories
gke-compute-classes
Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…
gke-workload-security
Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…
gke-reliability
Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).
nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.
azure-mgmt-botservice-dotnet
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
cloud-architect
Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…