Huawei Cloud Cost Estimation 标志

Huawei Cloud Cost Estimation

组织
huaweicloud
huawei-cloud-cost-estimation

生成华为云下单前的费用估算,通过 hcloud 创建允许清单中的资源,并将退订请求引导至控制台操作说明。用于华为云价格、预算、创建、开通或退订相关需求。创建资源需要运行时协助、--dryrun、费用审核和确认。绝不生成或执行退订操作,不接受凭据,也不执行允许清单以外的写入操作。触发词包括:“华为云报价”“报价”“价格估算”“费用预估”“比价”“询价”“开通报价”“创建报价”“华为云价格”“价格查询”“预算评估”“费用计算”“price estimate”“cost estimation”“budget”“quote”“pricing”“provision”“create”“purchase”“价格”“费用”“华为云多少钱”。

Add to TypingMind

概览

发布者huaweicloud
代码仓库huaweicloud-skills
技能名称huawei-cloud-cost-estimation
星标数
59
复刻数
24
附带文件
9
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 9 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 huaweicloud 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Huawei Cloud Cost Estimation AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bss/billing/huawei-cloud-cost-estimation
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/bss/billing/huawei-cloud-cost-estimation .claude/skills/huawei-cloud-cost-estimation
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Huawei Cloud Cost Estimation,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Huawei Cloud Cost Estimation。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Huawei Cloud Cost Estimation 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Huawei Cloud Cost Estimation and Provisioning

Prices come only from the current response: never guess, analogize, or recall them. Provisioning is the only permitted write path; unsubscribe is console guidance only.

Overview

Estimates Huawei Cloud pre-order costs and, when the user wants to buy or create, provisions resources through an allowlisted hcloud command set, then routes unsubscribe requests to console guidance. Use when the user asks about Huawei Cloud / 华为云 / hcloud pricing, budgets, creation or provisioning in Chinese or English: 报价, 询价, 价格估算, 费用预估, 比价, 开通, 创建, price estimate, budget, quote, pricing, provision, create, purchase. Answer: how much a resource will cost, which spec/billing-mode combination fits, whether a resource can be provisioned, and how to unsubscribe — never by guessing prices, inventing parameters, or running non-allowlisted writes.

  • Pricing runs a 4-step RFQ flow (Parse → Clarify → Query → Verify & Present) over hcloud BSS read-only APIs in the fixed region cn-north-1.
  • Lifecycle Create is limited to the 74 allowlisted operations in references/lifecycle/commands.md and only after --help, fee review, --dryrun, and explicit confirmation.
  • Unsubscribe is console guidance only; no unsubscribe CLI/API is ever emitted or executed.

Prerequisites

Prerequisite check: Huawei Cloud CLI (hcloud) >= 7.2.2 and an authenticated profile with BSS read-only + lifecycle dependency IAM permissions (see references/iam-policies.md). hcloud BSS always uses the fixed region --cli-region=cn-north-1; the resource deploy region is carried inside each quote line's region field.

bash
hcloud version
hcloud configure list
hcloud BSS ListServiceTypes --cli-region=cn-north-1 --cli-output=json --limit=1

If not installed or authenticated, point the user to references/cli-installation-guide.md. Do NOT configure credentials on the user's behalf and do NOT accept AK/SK/token pasted in chat.

Environment dependency (BSS pricing chain): the price-inquiry chain (ListServiceTypes, ListServiceResources, ListResourceSpecs, ListUsageTypes, ListMeasureUnits, ListRateOnPeriodDetail, ListOnDemandResourceRatings) runs against the authenticated account's BSS (Business Support System) APIs. In sandboxed or restricted environments where BSS access is not provisioned (no service metadata, no executor mapping), the pricing chain cannot be verified end-to-end. In that case state clearly that prices cannot be queried in the current environment, then stop — never guess, estimate from memory, or fabricate amounts.

Scope

In scope

RequestHandling
Quote, budget, or comparisonPricing (4-step RFQ)
Provision, purchase, or createLifecycle Create, limited to references/lifecycle/commands.md
Unsubscribe or stop usingconsole-only Unsubscribe Guidance

Out of scope — route, don't execute

RequestRouting
Historical bills, balance, or reconciliation费用中心 or read-only BSS billing APIs (do not use this skill)
Non-Huawei cloud pricingrefuse politely
Non-allowlisted writesconsole guidance; never run them
AK/SK/token in chatpoint to references/cli-installation-guide.md
Remembering or guessing pricesprices only from the current hcloud response

Execution Pace

Complete chains of at most three hcloud commands directly to the next safety gate. For longer chains, run only two or three commands per round, report progress and the next step, then ask whether to continue. A user may request uninterrupted execution, but clarification, unknown-cost approval, --dryrun, and write confirmation remain mandatory.

Workflow

Pricing — 4-Step RFQ

  1. Parse cloud_service_type / resource_type / region / resource_spec plus period or usage; route through references/pricing/semantic/catalog.yml.
  2. Clarify missing region, quantity, duration/usage, linear size, ambiguous categories, or unresolved variants in one question with two to four candidates. Disclose and apply only safe defaults: OS=linux, empty AZ, and fee_installment_mode=NA.
  3. Query using references/pricing/commands.md: ListServiceResources → ListResourceSpecs → on-demand ListUsageTypes(--resource_type_code) → measure resolution → quotation. Ask on multiple matches; a spec match may still fail. Never invent duration or mix capacity and usage slots.
  4. Verify and present that line items sum to the total and currency, period, and quantity align. Present [service] [spec] [region] [quantity × period] = amount, total, and “not a final bill.” Show discounts only when returned.

Lifecycle Create — 7 Gates

Read references/lifecycle/concepts.md, then perform every gate in order:

  1. Allowlist — Map intent to an operation in references/lifecycle/commands.md; refuse misses.
  2. Help — Run hcloud <Service> <Operation> --help for required and conditional fields. Stop on [APIE_ERROR] or missing schema; never guess.
  3. Resolve — Run required read-only dependencies such as VPC, subnet, AZ, image, and flavor. Let the user choose among multiple matches.
  4. Cost — Use Pricing when possible. Otherwise disclose “price unknown and may incur charges” and obtain separate approval.
  5. Dry — Add global --dryrun to the complete command. Fix and rerun failures; never promote a failed dry run.
  6. Confirm — Show resource, region, spec, quantity, billing, known or unknown price, and batch order; wait for explicit confirmation.
  7. Execute — Remove only --dryrun. Run multiple commands in order, stop on failure, never auto-rollback, and report succeeded, failed, and unexecuted items.

Any parameter, region, quantity, or operation change invalidates the dry run and confirmation and returns to Help.

Unsubscribe Guidance

Never run or generate unsubscribe CLI/API operations, and never use --dryrun as a substitute for console preview.

  • Subscription resources: direct the user to Huawei Cloud Console → Cost Center → Orders → Unsubscriptions. Ask them to back up or migrate data and verify the account, resource, related resources, refund, fees, and refund destination before submission.
  • Pay-per-use resources: unsubscribe does not apply. Direct the user to the service console to delete the resource after backup; do not delete it for them.

If automation is requested, preserve this boundary and provide the official unsubscribe rules.

Core Commands

All hcloud BSS commands use --cli-region=cn-north-1. Arrays use dot notation (--product_infos.N.*); output with --cli-output=json. Full contracts and exact templates live in references/pricing/commands.md and references/lifecycle/commands.md.

Resolve project scope (IAM read-only)

bash
hcloud IAM KeystoneListAuthProjects --cli-region={region} --cli-output=json
hcloud IAM KeystoneListProjects --domain_id={domain_id} --cli-region={region} --cli-output=json

Pricing dimensions (BSS read-only)

bash
hcloud BSS ListServiceTypes --cli-region=cn-north-1 --cli-output=json --limit=10 --offset=0
hcloud BSS ListServiceResources --service_type_code={cloud_service_type} --cli-region=cn-north-1 --cli-output=json --limit=10 --offset=0
hcloud BSS ListResourceSpecs --charge_mode=1 --cloud_service_type={cst} --resource_type={rt} --region_code={region} --filters.1.key=RESOURCE_SPEC --filters.1.value={spec_hint} --limit=100 --cli-region=cn-north-1 --cli-output=json
hcloud BSS ListUsageTypes --resource_type_code={rt} --cli-region=cn-north-1 --cli-output=json --limit=100 --offset=0
hcloud BSS ListMeasureUnits --cli-region=cn-north-1 --cli-output=json

Period quote (BSS/ListRateOnPeriodDetail, read-only POST)

bash
hcloud BSS ListRateOnPeriodDetail \
  --project_id={project_id} \
  --product_infos.1.id=1 \
  --product_infos.1.cloud_service_type={cst} \
  --product_infos.1.resource_type={rt} \
  --product_infos.1.resource_spec={spec} \
  --product_infos.1.region={deploy_region} \
  --product_infos.1.period_type={0|2|3|4} --product_infos.1.period_num={n} --product_infos.1.subscription_num={qty} \
  --cli-region=cn-north-1 --cli-output=json

Linear products (volume / bandwidth / share_bandwidth) additionally require --product_infos.N.resource_size={size} --product_infos.N.size_measure_id={17|15}.

On-demand quote (BSS/ListOnDemandResourceRatings, read-only POST)

bash
hcloud BSS ListOnDemandResourceRatings \
  --project_id={project_id} \
  --product_infos.1.id=1 \
  --product_infos.1.cloud_service_type={cst} \
  --product_infos.1.resource_type={rt} \
  --product_infos.1.resource_spec={spec} \
  --product_infos.1.region={deploy_region} \
  --product_infos.1.usage_factor={factor} --product_infos.1.usage_value={value} --product_infos.1.usage_measure_id={mid} \
  --product_infos.1.subscription_num={qty} \
  --cli-region=cn-north-1 --cli-output=json

Lifecycle create (allowlisted write path)

The 74 allowlisted operations (e.g. ECS/CreateServers, DDS/CreateInstance, RDS/CreateInstance) are enumerated in references/lifecycle/commands.md. Parameters always come from the current --help, never from memory. Minimal executable example (VPC is allowlisted, VPC/CreateVpc is a readily dry-runnable create):

bash
hcloud VPC CreateVpc --help
hcloud VPC CreateVpc --vpc.name={name} --vpc.cidr=172.16.0.0/16 --cli-region={region} --dryrun

Every other allowlisted operation follows the same shape: run --help first, then build the full command from the help output, add --dryrun, and only remove --dryrun after the dry-run gate and explicit confirmation. Pass the --dryrun gate and explicit confirmation before executing without --dryrun; one failure stops the batch, no auto-rollback.

Lifecycle dependency lookups (read-only)

Run only the dependencies the help output marks required (references/lifecycle/commands.md):

bash
hcloud EPS ListEnterpriseProject --cli-region=cn-north-4 --cli-output=json
hcloud VPC ListVpcs --cli-region={region} --cli-output=json
hcloud VPC ListSubnets --cli-region={region} --cli-output=json
hcloud ECS NovaListAvailabilityZones --cli-region={region} --cli-output=json
hcloud IMS ListImages --cli-region={region} --cli-output=json
hcloud EVS CinderListVolumeTypes --cli-region={region} --cli-output=json
hcloud ECS NovaListKeypairs --cli-region={region} --cli-output=json
hcloud ECS NovaListFlavors --cli-region={region} --cli-output=json

EPS region note: EPS does not support cn-north-1. Query enterprise projects with --cli-region=cn-north-4 (or another EPS-enabled region such as ru-moscow-1 / my-kualalumpur-1); the returned enterprise_project_id is region-independent for lifecycle create parameters. The BSS fixed region cn-north-1 applies to price inquiry only, never to EPS.

Parameter Confirmation

ParameterRequiredDescriptionExample
--cli-regionYes (auto)fixed cn-north-1 for all BSS commands--cli-region=cn-north-1
--project_idYesresolved via KeystoneListAuthProjects--project_id=xxx
--product_infos.N.cloud_service_typeYesraw code from ListServiceTypeshws.service.type.ec2
--product_infos.N.resource_typeYesraw code from ListServiceResourceshws.resource.type.vm
--product_infos.N.resource_specYesraw code from ListResourceSpecs (never fabricate)c6.2xlarge.2.linux
--product_infos.N.regionYesactual deploy region of the resourcecn-north-4
--product_infos.N.subscription_numYesquantity, 1..100001
--product_infos.N.period_typeConditionalperiod quote only: 0 day / 2 month / 3 year / 4 hour2
--product_infos.N.period_numConditionalperiod quote only: number of periods1
--product_infos.N.usage_factorConditionalon-demand only: raw code from ListUsageTypesDuration
--product_infos.N.usage_valueConditionalon-demand only: scalar per Measure Resolve rules2
--product_infos.N.usage_measure_idConditionalon-demand only: usage slot from ListMeasureUnits (≠ size_measure_id)4
--product_infos.N.resource_sizeConditionallinear products only (volume / bandwidth / share_bandwidth)40
--product_infos.N.size_measure_idConditional17 GB (volume), 15 Mbps (bandwidth / share_bandwidth)17
--dryrunYes (lifecycle)global dry-run gate before any create; never --dry-run--dryrun

Missing region, quantity, duration/usage, or linear size is clarified in one question with two to four candidates before any command runs.

Unsubscribe Console Path

Never run or generate unsubscribe CLI/API operations; --dryrun previews request construction only and never replaces the console. Subscription resources go through Console → Cost Center → Orders → Unsubscriptions after data backup and account/resource/refund verification; pay-per-use resources are deleted by the user in the service console after backup.

Critical Rules

  1. Prices come from the current response; parameters come from current help.
  2. No real create call without a successful --dryrun and explicit confirmation.
  3. Never automate or emit unsubscribe operations.
  4. Refuse AK, SK, and tokens in chat; point to references/cli-installation-guide.md for self-configuration.
  5. Every BSS call uses --cli-region=cn-north-1; product_infos.N.region remains the deployment region.
  6. Route out-of-scope work to Cost Center, the appropriate console, or read-only billing.

Use bullets or numbered items, not GFM tables, in user-facing responses. For command-level traps, read references/pricing/commands.md.

KooCLI Command Format Standard

Every command follows the generic KooCLI shape: hcloud <Service> <Operation> --cli-region=<region> [--key=value ...].

FeatureDescriptionExample
Service nameExact KooCLI Service name beginning with uppercase/title caseBSS, IAM, ECS, VPC, DDS
Operation namePascalCaseListRateOnPeriodDetail, CreateServers
Region parameter--cli-region=<value>--cli-region=cn-north-1
Simple parameter--key=value--project_id=xxx
Indexed parameter--key.N=value dot notation--product_infos.1.id=1
Global dry-run--dryrun (not --dry-run)--dryrun

Placeholder tokens above (e.g. <Service>) are illustrative only — never run them literally.

Reference Documents

DocumentContent
references/lifecycle/concepts.mdLifecycle execution concepts: allowlist, help, lookup, dry-run, fee status, batch invariants, unsubscribe console path
references/lifecycle/commands.mdThe 74 allowlisted create operations and dependency lookup commands
references/pricing/commands.mdPricing command contracts, response fields, universal traps, Measure Resolve table
references/pricing/semantic/catalog.ymlRouting catalog: period / on-demand / dimension_lookup
references/pricing/semantic/rfq-ondemand-model.ymlOn-demand quote fact/line model
references/pricing/semantic/rfq-period-model.ymlPeriod quote fact/line model
references/pricing/semantic/rfq-shared-dimensions.ymlShared conformed dimensions
references/iam-policies.mdLeast-privilege IAM policies
references/cli-installation-guide.mdKooCLI install and auth guide (only to relay to user)

For 403 or permission failures, read references/iam-policies.md. If hcloud is unavailable, relay references/cli-installation-guide.md; never install it for the user.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Huawei Cloud Cost Estimation AI 技能有什么作用?

生成华为云下单前的费用估算,通过 hcloud 创建允许清单中的资源,并将退订请求引导至控制台操作说明。用于华为云价格、预算、创建、开通或退订相关需求。创建资源需要运行时协助、--dryrun、费用审核和确认。绝不生成或执行退订操作,不接受凭据,也不执行允许清单以外的写入操作。触发词包括:“华为云报价”“报价”“价格估算”“费用预估”“比价”“询价”“开通报价”“创建报价”“华为云价格”“价格查询”“预算评估”“费用计算”“price estimate”“cost estimation”“budget”“quote”“pricing”“provision”“create”“purchase”“价格”“费用”“华为云多少钱”。

为什么在 TypingMind 中使用 Huawei Cloud Cost Estimation?

因为您只需安装一次,就能搭配任何模型使用。Huawei Cloud Cost Estimation 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Huawei Cloud Cost Estimation?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bss/billing/huawei-cloud-cost-estimation。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Huawei Cloud Cost Estimation?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Huawei Cloud Cost Estimation 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Huawei Cloud Cost Estimation 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Huawei Cloud Cost Estimation AI 技能免费吗?

是的。huaweicloud 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇