huaweicloud/huaweicloud-skills/huawei-cloud-billing-scout

Claude Code and agent skill by huaweicloud/huaweicloud-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Huawei Cloud BSS billing (not AWS/Azure/other clouds; refuses pricing quotes, real-name review, and any non-billing scope): balance, spend, attribution, reconciliation, coupons, stored-value cards, enterprise/partner billing. One-page briefing via hcloud. Use when the request is about Huawei Cloud billing. Triggers include: 华为云余额, 华为云欠费, 华为云本月花费, 华为云扣费原因, 华为云账单对账, 华为云资源包, 华为云优惠券, 华为云企业主账号, 华为云伙伴账务, 华为云服务编码, Huawei Cloud balance / bill / spend / reconciliation / coupon / stored-value card / BSS billing. Refuses pay, renew, refund, delete; non-Huawei-Cloud billing is out of scope.

Install

npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-billing-scout

SKILL.md

The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-billing-scout.

Huawei Cloud · How Much Spent & Why Charged · Read-Only Reconciliation

Huawei Cloud Read-Only Billing — Spend, Charges & Reconciliation

Using hcloud ≥7.2.2 and BSS read-only IAM, answer in one conversation: how much spent, why charged, where the difference is, what evidence is still missing. Query only, no modifications, no account operations on behalf of users.

Overview

A thin, read-only billing scout: it does not compute or store billing facts itself — it routes a billing question to the right BSS entities in billing-ontology.yml, gathers the minimum evidence with copyable BSS CLI commands, and answers in one-page briefing style. Query only: no payment, refund, unsubscribe, delete, or any account operation on behalf of the user.

Applicable scenarios

  1. Balance / arrears — how much is left, how much is owed
  2. Spend — monthly and period totals, by cloud service or enterprise project
  3. Charge attribution — which resource or product is being charged, and why
  4. Reconciliation — monthly summary versus resource detail, and where the difference comes from
  5. Entitlements — resource packages, coupons, stored-value cards
  6. Enterprise / partner billing — master account, sub-account and reseller scope

Not applicable — pricing trials, renewal quotes, discount strategy, real-name review results, and any non-Huawei-Cloud billing; see ## Boundaries.

Document Map

SKILL.md defines behavior; semantic/catalog.yml defines entry points and required context; semantic/billing-ontology.yml defines facts, grains, money_basis, and source_operations; references/related-commands.md defines copyable BSS templates and pagination limits.

Four types of billing questions and routing: see references/semantic/catalog.yml.

Prerequisites

Prerequisite check: Huawei Cloud CLI (hcloud) >= 7.2.2 required
Run hcloud version to verify version >= 7.2.2, and hcloud configure list to check profile exists.
Run hcloud configure set --cli-lang=cn — BSS requires Chinese mode.
If not installed or version is too low, see references/cli-installation-guide.md for installation guide.
bash
hcloud version
hcloud configure list
hcloud configure set --cli-lang=cn

Principles

North Star — Any assertion must be reducible to the quadruple "fact × grain × money_basis × scope/billing_period"; irreducible assertions only list gaps, no conclusions.
  • Three-Set First — Stop if any of scope, billing_period (time), or money_basis is missing; ask only the point that would change the verification path, no clarification questionnaire.
  • Single Fact No Mixing — Monthly summary, resource detail, monthly amortization, and orders are each a distinct fact type with different grains; no cross-summing, no substitution.
  • Evidence Boundary Self-Consistent — Each entity only answers questions within its evidence_boundary; speculation, pending checks, and responsibility judgments must first verify whether evidence falls within the boundary.

Workflow

Huawei Cloud Gate — Before matching in catalog.yml: if user has not indicated Huawei Cloud / BSS / this skill's billing scope, and cannot be determined from conversation as the Huawei Cloud account for current hcloud profile, first ask one confirmation "Query current configured Huawei Cloud account and billing period?"; without confirmation, no BSS query execution. Non-Huawei Cloud or other cloud vendor billing → only state out of scope, no evidence gathering.

PhaseTaskReference FileForbidden
Lock Money BasisLock three-setcatalog.yml → required_contextAsk one at a time if missing, not all together
Select Entry PointMatch triggers to get entry_point, obtain ontology_entitiescatalog.yml → entry_pointsNo cross-entry-point summing or borrowing
Gather EvidenceMinimal read-only queries within evidence_boundary; first query copy from related-commands.md current entry #### templatebilling-ontology.yml + related-commands.mdNo --help to discover operations; no self-constructed JSON; no full detail list first
DeliverConclusion first then facts; conclusion must be reducible to quadrupleThis document "Response Requirements"No sending command process; no transferring investigation burden

Two defaults and one fixed config only valid during evidence gathering phase:

  • Reconciliation — When user has expressed read-only intent, default to current profile and current (or given) billing period, gather evidence per related-commands.md reconciliation order; ask one ID at a time only when blocking ID is missing.
  • Enterprise / Partner — When ontology requires customer_id or other prerequisite IDs, first provide read-only acquisition path or one clarification, then make responsibility judgment.
  • BSS Endpoint — All BSS calls require --cli-region=cn-north-1; no substitution with profile or other regions. [Fixed config, non-adjustable]

Core Commands

Entry-point examples only. The copyable #### template in references/related-commands.md is authoritative: the first query must copy that template, and if the operation has no template, stop — do not use --help to discover operations.
FunctionReal read-only commandNotes
Balance / debthcloud BSS ShowCustomerAccountBalances --cli-region=cn-north-1 --cli-output=jsonCurrent profile, first query for balance questions
Monthly summaryhcloud BSS ShowCustomerMonthlySum --bill_cycle=2025-04 --cli-region=cn-north-1 --cli-output=jsonWhole-account billing-period overview
Spend by dimensionhcloud BSS ListCosts --amount_type=PAYMENT_AMOUNT --cost_type=ORIGINAL_COST --time_condition.begin_time=2025-04-01 --time_condition.end_time=2025-04-30 --time_condition.time_measure_id=1 --groupby.1.key=CLOUD_SERVICE_TYPE --groupby.1.type=dimension --cli-region=cn-north-1 --cli-output=json --limit=10 --offset=0Service or enterprise-project ranking; an empty filter result must not be widened to a full-account query
Reconciliation (transaction side)hcloud BSS ListCustomerBillsFeeRecords --bill_cycle=2025-04 --cli-region=cn-north-1 --cli-output=json --limit=10 --offset=0Billing-period transaction records
Resource detail (export side)hcloud BSS ListCustomerselfResourceRecordDetails --cycle=2025-04 --cli-region=cn-north-1 --cli-output=json --limit=10 --offset=0May differ in precision from the summary; that difference is the reconciliation object
Resource packagehcloud BSS ListFreeResourceInfos --service_type_code_list.1=hws.service.type.obs --cli-region=cn-north-1 --cli-output=jsonPackage list; remaining quota uses ListFreeResourceUsages
Service code dictionaryhcloud BSS ListServiceTypes --cli-region=cn-north-1 --cli-output=jsonTranslate and validate codes appearing in bills and costs

Commands for the remaining entry points (reconciliation, discount_entitlement, order_evidence, enterprise_multi_account, partner_resale, reference_dimensions) are grouped in references/related-commands.md.

Parameter Confirmation

ParameterRequiredDescriptionExample
scopeYesAccount / enterprise project / customer the question is aboutthe account of the current profile
billing_periodYesBilling period or time window (the third leg of the three-set)2025-04
money_basisYesWhich money basis the answer must usePAYMENT_AMOUNT / NET_AMOUNT, ORIGINAL_COST / AMORTIZED_COST
entry_pointYesBilling question type that drives the routebalance / spend / attribution / reconciliation
regionNo (fixed)BSS is a global service; every call uses cn-north-1cn-north-1
customer_idConditionalRequired by enterprise / partner entitiesobtained from ListSubCustomers
limit / offsetNoPage size and offset; defaults limit<=10, offset=0--limit=10 --offset=0

Ask only for the missing point that would change the verification path (Three-Set First); never send a full clarification questionnaire.

Hard Constraints (Non-Negotiable)

The following three are derived from principles, non-negotiable.

Read-Only

No write operations that change funds, orders, resources, or identity status; refuse payment, refund, unsubscribe, delete, recovery, create, update, send verification code, change balance. Why: Once a write occurs, the fact state that assertions depend on is contaminated by itself. List*/Show* with Change in name are still read-only ledgers, not in this category.

No Leak

No output of credentials, long identifiers that can restore identity, complete business IDs, profile / region. Why: Identity dimension disclosure exceeds evidence_boundary response scope; delivery value is unrelated to disclosure degree.

No Extrapolation

Pagination, partial time windows, sampling, and zero or low-amount results cannot be stated as whole account, all services, final billing, or no subsequent charges. Why: Grain does not allow amplification; conclusions at local grain cannot be declared as facts at coarser grain unless evidence money_basis already covers entire month.

Execution & Failure Handling

Credentials and Execution Modes
  • Default — hcloud CLI — All queries run through the configured hcloud profile; BSS calls always carry --cli-region=cn-north-1.
  • SDK fallback — Some BSS operations have no hcloud command and must run through huaweicloudsdkbss. The CLI profile credentials are not inherited by the SDK: HW_ACCESS_KEY / HW_SECRET_KEY (temporary credentials also HW_SECURITY_TOKEN) must exist in the environment. Check presence only, never the value:

``bash python3 -c "import os; print('ok' if os.getenv('HW_ACCESS_KEY') and os.getenv('HW_SECRET_KEY') else 'missing')" `` Missing credentials are a gap, not a finding — state that the query could not run and give one read-only next step; never substitute a guess.

  • Permission prerequisite — The BSS read-only IAM policy must be attached to the AK/SK in use; without it queries return 403 Forbidden (CBC.0151). Handling: see references/iam-policies.md → Permission Failure Handling.
Error Handling
  • Transient failures — Treat 5xx, timeouts and network errors as transient: retry the same read-only command at most twice with identical parameters, then stop.
  • No silent degradation — A failed query never becomes "no charges". Record operation name, account scope and interface family, degrade that point to a gap, and keep the conclusion limited to evidence actually obtained.
  • No retry storm — Do not loop over variations of a failing command to "find something that works"; one retry, then report the gap.
Idempotency
  • Every operation in this skill is read-only (List* / Show*) and therefore naturally idempotent: re-running a query does not change funds, orders, resources or identity status, and is safe after a transient failure.
  • Results may still differ between runs because new consumption arrives — that change comes from the account, not from this skill.
Boundary Cases

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/huaweicloud/huaweicloud-skills/huawei-cloud-billing-scout/badge)](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-billing-scout)

Something wrong with this skill or its page? Tell us.