返回技能市场

华为云报价与资源开通

Generate Huawei Cloud pre-order price estimates, safely provision allowlisted resources via hcloud, and guide unsubscribe requests to the console only. Use this skill whenever the user mentions 华为云/Huawei Cloud/hcloud with 报价/询价/价格/quote/pricing/budget, 开通/购买/创建/provision/create, or 退订/unsubscribe. Create requires runtime help, --dryrun, fee review, and confirmation. Never run or emit unsubscribe CLI/API. Refuse other clouds, credentials, payment/renewal/delete, and non-allowlisted writes.

版本: 1.0.1分类: 办公效率
中文

SKILL.md

Huawei Cloud Cost Estimation and Provisioning

Community edition, not an official Huawei Cloud skill. Treat the current hcloud response as authoritative.

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.

Route

  • Quote, budget, or comparison → Pricing.
  • Provision, purchase, or create → Lifecycle Create, limited to references/lifecycle/commands.md.
  • Unsubscribe or stop using → console-only Unsubscribe Guidance.
  • Historical bills, balance, or reconciliation → Cost Center or read-only BSS billing; other clouds → refuse; non-allowlisted writes → console guidance.

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.

Pricing

  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

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.

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

Reference Index

DomainConceptsCommands
Pricingreferences/pricing/semantic/catalog.yml and rfq-*.ymlreferences/pricing/commands.md
Lifecyclereferences/lifecycle/concepts.mdreferences/lifecycle/commands.md

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

评论与讨论

0/2000

还没有评论,分享你的体验吧。