huawei-terraform-skill

huawei-terraform-skill is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 52 tokens per session (2,166 once invoked), scanned A, original, MIT.

A Huawei Cloud skill for creating, reviewing, and running Terraform or OpenTofu infrastructure definitions. Terraform and OpenTofu are tools that describe cloud resources in code so they can be planned and changed consistently.

In plain words
What is it for?
It is for discovering Huawei Cloud settings, writing infrastructure code, reviewing it, running plan or apply, and preparing tests or CI/CD configuration.
Why use it?
It reduces errors from using the wrong cloud resource names or missing Huawei Cloud dependencies such as regions, networks, images, and security groups.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for discovering Huawei Cloud settings, writing infrastructure code, reviewing it, running plan or apply, and preparing tests or CI/CD configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/source
Install

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.

Any agent
npx skills add huaweicloud/huaweicloud-skills --skill source
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Claude Code, Codex.

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

agentmods badge for huawei-terraform-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/source/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/source)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/source"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/source/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.

agentmods 80×15 button for huawei-terraform-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/source"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/source.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,166 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02166
Opus 5 $0.00026 $0.01083
Sonnet 5 $0.00010 $0.00433
Haiku 4.5 $0.00005 $0.00217

Measured 5d ago against content hash 0782d0dce401, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

huawei-terraform-skill 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 5d 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.

skills/solution/ops/huawei-cloud-solution-ops/references/terraform/source-skill.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Huawei Terraform Skill

华为云 Terraform 执行型 skill。它是一个自包含 skill,提供 provider 认证、资源模型、依赖发现、示例、排障规则和后续扩展入口,并允许把 Terraform 当成真正的执行介质,而不只是代码模板。

什么时候使用

当任务符合以下任一条件时启用本 skill:

  • 生成华为云 Terraform / OpenTofu 配置
  • 评审或修改 huaweicloud_* 资源定义
  • 将华为云现网资源整理成可审查的 Terraform
  • 为华为云资源编写 Terraform 示例、模块、测试或 CI/CD 配置
  • 通过 Terraform plan / apply 在华为云上创建、变更或销毁基础设施

如何与其他 skill 配合

huawei_skill 的关系

  • huawei_skill 适合做现网查询、账号探测、region/project 校验、候选参数补齐。
  • 本 skill 适合把经过确认的依赖和约束沉淀成 Terraform,并继续执行 plan / apply
  • 如果用户要求“先查现网,再生成 Terraform”或“先查现网,再帮我落地”,优先先走 huawei_skill,再进入 Terraform 路线。

核心规则

1. 不要套用 AWS 资源名和默认建议

  • 华为云 Terraform 必须使用 huaweicloud_* 资源和 data source。
  • 不要输出 aws_*hashicorp/aws、S3 backend、AWS Secrets Manager 这类默认答案。
  • 模块结构、测试和 CI/CD 也要以本 skill 内定义的华为云规则为准,不要默认依赖其他 skill 补全。

2. 默认先发现依赖,再写资源

在华为云上,很多配置是否可用取决于 region、AZ、flavor、image、subnet、security group、磁盘类型等约束。

默认流程:

  1. 确认认证方式和 region
  2. 确认是复用现网资源,还是创建新资源
  3. 通过 data source 或 huawei_skill 探测依赖
  4. 再生成 resource 定义

除非用户明确给出完整且可信的 ID/参数,否则不要硬编码 flavor、image、subnet。

3. 同时支持 HW_*HUAWEI_*

  • provider 官方环境变量是 HW_ACCESS_KEYHW_SECRET_KEYHW_REGION_NAME
  • 项目现有 MCP 侧常用 HUAWEI_ACCESS_KEYHUAWEI_SECRET_KEYHUAWEI_REGION
  • 文档和生成代码时优先说明 HW_*
  • 但在分析和联动场景里,需要识别并兼容 HUAWEI_*
  • 如果两套变量同时存在但值可能冲突,应提醒用户确认实际生效值

4. 优先使用已验证的 Full support 资源

当前用户列出的服务都已经进入 Full support,并且有经过验证的本地示例。

但真正开始产出代码时,不要平均地看待所有服务,优先顺序仍然是:

  • 先从现有 starter examples 出发
  • 再用变体指南决定是沿用最小模板还是切到高级变体
  • 最后再从 inventory 文档里回查 provider 更宽的能力面

5. 默认支持“生成并执行”,不是只停在写代码

  • 如果用户目标是“创建”“部署”“落地”“执行变更”“验证能不能跑通”,默认不要停在生成 .tf
  • 默认继续执行:
    1. 写入或更新 Terraform 文件
    2. terraform fmt
    3. terraform init
    4. terraform plan
    5. 在任务授权明确时执行 terraform apply
  • 只有在以下情况才停在代码层:
    • 用户明确说“只生成代码”“不要执行”
    • 当前环境缺少必要凭证或 Terraform 运行条件
    • 任务风险较高且用户未授权真正变更资源

默认输出风格

  • 优先输出可审查、可复用、可执行的最小可运行配置
  • 优先把“发现型 data source”和“创建型 resource”分开写清楚
  • 关键 provider 和变量必须包含 docstring/description 级别说明
  • 需要时解释为什么用 data source,而不是只给结果

默认执行模式

Read the full file on GitHub · 183 lines

Changes

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.

  1. 5d ago First seen · 183 lines · 52 tokens per session scan A 0782d0dce401

Subscribe to this mod's changes

huawei-terraform-skill is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (49 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 2,166 once invoked, about $0.0003 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-07.

Related

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…

google/skills · 83 tokens

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

google/skills · 73 tokens

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…

google/skills · 181 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

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

microsoft/skills · 78 tokens

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…

Jeffallan/claude-skills · 71 tokens