Huawei Cloud Voucher Assistant logo

Huawei Cloud Voucher Assistant

Organization
huaweicloud
huawei-cloud-voucher-assistant

Invoke this skill when a user is purchasing a Huawei Cloud (华为云) service and wants to know what coupons (代金券), discounts, or savings options are available. Reads the account's coupons via AK/SK and presents applicable voucher deductions; when the balance is insufficient, recommends lower-spec alternatives or voucher+cash combos. Triggers include: "购买云服务", "下单", "选购", "买一台", "续费", "有什么优惠", "优惠方案", "代金券", "优惠券", "折扣", "代金券余额", "抵扣", "省钱", "代金券适不适用", "能抵多少", "够不够抵", "代金券怎么用", "任务列表", "成长中心任务", "推荐任务", "任务推荐", "buy Huawei Cloud", "coupon", "discount", "voucher balance", "purchase ECS/OBS/RDS".

Overview

Publisherhuaweicloud
Repositoryhuaweicloud-skills
Skill namehuawei-cloud-voucher-assistant
Stars
59
Forks
24
Bundled files
14
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 14 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by huaweicloud on GitHub. Read the source before you install it.

Installation

Install the Huawei Cloud Voucher Assistant AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bss/billing/huawei-cloud-voucher-assistant
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-voucher-assistant .claude/skills/huawei-cloud-voucher-assistant
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Huawei Cloud Voucher Assistant in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Huawei Cloud Voucher Assistant on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Huawei Cloud Voucher Assistant is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

[!IMPORTANT] 本 Skill 是华为云「代金券」的购买优惠咨询助手。用户在购买华为云服务、想了解有哪些优惠时,本 Skill 通过已授权的华为云账号权限(AK/SK)读取代金券余额与明细,给出可抵扣方案;余额不足时推荐低规格替代与「代金券+现金」组合。它不直接下单购买(下单由对应服务 Skill 负责),也不查询账单/用量明细(那是 huawei-cloud-billing-scout 的职责)。

Overview

华为云代金券助手:用户在购买华为云服务、想了解优惠时,读取「代金券」余额与明细,给出可抵扣金额;余额不足时推荐低规格与组合付款方案。

Scenario Description

本 Skill 的定位是购买时的优惠方案咨询:

  • 优惠查询:用户购买华为云服务时,查询有哪些代金券/折扣可抵扣
  • 余额不足推荐:余额不足以全额抵扣时,推荐低规格服务或「代金券+现金」组合

Use Cases

  • "我要买一台 ECS,有没有代金券能用?"
  • "有什么优惠方案?代金券能抵多少?"
  • "我的华为云代金券还剩多少?"
  • "这个代金券能在哪些云服务上用?"
  • "余额不够买这台 ECS 怎么办?"
  • "我要买一台 c7.large.2,代金券够不够抵?不够的话推荐什么方案?"

Prerequisites

  • Python 3.6+(python 或 python3 在 PATH 中),纯标准库,零第三方依赖
  • 网络访问:bss.myhuaweicloud.com(BSS)+ devdata.huaweicloud.com(成长中心 fwdo 任务列表)
  • 华为云 AK/SK:环境变量 HW_ACCESS_KEY/HW_SECRET_KEY 或 HUAWEICLOUD_SDK_AK/HUAWEICLOUD_SDK_SK
  • HW_DOMAIN_ID(可选):租户 ID(BSS 全局服务需 X-Domain-Id 头参与签名)
  • 任务列表(fwdo 匿名)零配置可用;代金券查询需 AK/SK,未配置时返回提示。分析类 action 始终可离线运行(见 Data Source)
  • skill-quality-cli — ensured by bash scripts/ensure_cli.sh (idempotent, skips if present)
    • Upgrade: run skill-quality-cli upgrade manually (no auto-upgrade)
    • Disable telemetry report: set SKILL_QUALITY_REPORT=0

All hcloud commands in this skill are wrapped with skill-quality-cli run for telemetry. No manual action required.

Data Source

双数据源,自动选择:

  1. BSS 开放 API(AK/SK 签名):已有代金券账户余额/明细。
  2. 成长中心前端 API(fwdo 匿名):公开任务列表(零配置,无需 Cookie/CSRF/appcode)。 底层客户端:scripts/data/bss_client.py(BSS)、scripts/data/hdcommunity_client.py(fwdo)。

数据读取通过可替换 Adapter 实现,统一接口定义在 scripts/data/。

  • 代金券:coupon_api.py get_adapter() —— 有 AK/SK → BSS;否则 → None。
  • 任务列表:growth_api.py get_adapter() —— fwdo 匿名,始终可用。
Adapter职责认证状态
coupon_api.py BssCouponAdapter已有代金券账户余额/明细AK/SK + X-Domain-Id(SDK-HMAC-SHA256 签名)✅ 已接入
growth_api.py HdgrowthWebAdapter成长中心公开任务列表无(fwdo 匿名)✅ 已接入

配置(环境变量):

环境变量说明必填
HW_ACCESS_KEY / HW_SECRET_KEY华为云 AK/SK(BSS 代金券查询)否
HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK同上(备选环境变量名)否
HW_DOMAIN_ID租户 ID(BSS 全局服务需 X-Domain-Id 头参与签名)否
HDGROW_WEB_BASE成长中心 web 域名,默认 https://devdata.huaweicloud.com否

BSS 代金券查询(GET /v2/promotions/benefits/coupons)用 SDK-HMAC-SHA256 签名 + X-Domain-Id 头,AK/SK 从环境变量读取。 代金券抵扣需 BSS 订单系统(订单创建时指定 coupon_id)。 代金券适用服务列表由本地知识库 references/voucher-taxonomy.md 提供。 fwdo 匿名任务列表仅含公开字段(不含个人完成状态);积分余额需 fwdu 登录态,本 skill 不提供。

scripts/analyzer.py(分析层)与上表解耦,仅依赖结构化输入,可离线运行与单测。

Core Workflow and Core Commands

主入口 scripts/voucher_assistant.py 按 action 分发,action 命名遵循 huawei_<service>_<action>(snake_case)。

查询类(R3,只读自动执行)

bash
python scripts/voucher_assistant.py list_vouchers
python scripts/voucher_assistant.py list_tasks
python scripts/voucher_assistant.py recommend_tasks
python scripts/voucher_assistant.py list_voucher_applicable_services

分析类(R3,只读自动执行,无需数据源即可运行本地逻辑)

bash
python scripts/voucher_assistant.py analyze_voucher_coverage --balance 100 --price 80
python scripts/voucher_assistant.py recommend_discount_plan --balance 50 --price 80 --alt "ecs:c7.large.2:40"

管理类(R2,预览 + 确认,依赖数据源接入)

bash
python scripts/voucher_assistant.py apply_voucher --order-ref <ref> --amount <amt> --confirm

管理类 action 在未接入数据源或未带 --confirm 时,只输出预览方案,不执行任何真实变更。

Action Reference

Action分级说明
huawei_list_vouchersR3代金券余额 + 明细(面额/有效期/状态)
huawei_list_tasksR3成长中心公开任务列表(fwdo 匿名,零配置,含周期类型)
huawei_recommend_tasksR3根据任务列表按积分收益推荐值得优先做的任务
huawei_list_voucher_applicable_servicesR3代金券适用云服务 + 抵扣规则
huawei_analyze_voucher_coverageR3判断余额是否够买目标服务(充足/部分/不足)
huawei_recommend_discount_planR3余额不足时推荐低规格 / 组合付款方案
huawei_apply_voucherR2购买时代金券抵用(预览 + 确认,需 BSS 订单系统)

Decision Flow

购买华为云服务时 → 主动提醒 + 抵扣闭环
   ┌─────────────────────────────────────────────────────┐
   │ 读取代金券余额 (list_vouchers)                       │
   │ ├─ 有可用代金券 → 计算覆盖 → 提醒抵扣 → apply_voucher │
   │ │                             ⚠️ 需 BSS/订单        │
   │ └─ 余额不足 → ① 推荐低规格 ② 现金组合               │
   │              (recommend_discount_plan)               │
   └─────────────────────────────────────────────────────┘

Parameters

ParameterRequiredDescription
action✅上述 action 名(不含 huawei_ 前缀)
--balance分析类代金券余额(analyze_voucher_coverage/recommend_discount_plan,数据源未接入时手动传入)
--price分析类目标价格(同上两个分析类 action,必填)
--alt分析类低规格替代 service:spec:price,可多次(recommend_discount_plan)
--order-ref抵扣类订单/购买引用(apply_voucher)
--amount抵扣类抵扣金额
--confirm管理类显式确认才执行抵扣,缺省仅预览
--top-n推荐类推荐任务返回数量(recommend_tasks,默认 5)

Reference Documentation

DocumentDescription
references/voucher-taxonomy.md代金券规则/适用服务/抵扣规则知识库(本地离线)
references/acceptance-criteria.md验收标准
references/iam-policies.mdIAM 权限说明
references/verification-method.md验证方法

Notes

  • 本 Skill 是辅助决策器,不直接下单;下单由对应服务 Skill 完成。
  • 抵扣必须显式确认(--confirm),且金额需二次校验、不得超余额。
  • 数据源:① BSS(AK/SK)查代金券余额/明细;② fwdo 匿名查成长中心公开任务列表(零配置)。未配置 AK/SK 时代金券查询返回配置提示,任务列表始终可用。代金券抵扣需 BSS 订单系统。
  • 代金券适用服务列表由 references/voucher-taxonomy.md 本地知识库提供(BSS 不直接提供该字段)。
  • fwdo 匿名任务列表仅含公开字段(不含个人完成状态/积分余额);任务周期类型:LIMIT(仅一次)/ DAILY / WEEKLY / MONTHLY。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Huawei Cloud Voucher Assistant AI skill do?

Invoke this skill when a user is purchasing a Huawei Cloud (华为云) service and wants to know what coupons (代金券), discounts, or savings options are available. Reads the account's coupons via AK/SK and presents applicable voucher deductions; when the balance is insufficient, recommends lower-spec alternatives or voucher+cash combos. Triggers include: "购买云服务", "下单", "选购", "买一台", "续费", "有什么优惠", "优惠方案", "代金券", "优惠券", "折扣", "代金券余额", "抵扣", "省钱", "代金券适不适用", "能抵多少", "够不够抵", "代金券怎么用", "任务列表", "成长中心任务", "推荐任务", "任务推荐", "buy Huawei Cloud", "coupon", "discount", "voucher balance", "purchase ECS/OBS/RDS".

Why use Huawei Cloud Voucher Assistant on TypingMind?

Because you install it once and use it with any model. Huawei Cloud Voucher Assistant is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Huawei Cloud Voucher Assistant in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bss/billing/huawei-cloud-voucher-assistant. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Huawei Cloud Voucher Assistant?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Huawei Cloud Voucher Assistant?

As many as you like. As long as a model supports skills, you can use Huawei Cloud Voucher Assistant with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Huawei Cloud Voucher Assistant AI skill free?

Yes. It is published on GitHub by huaweicloud under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇