360 Secure SkillHub
360 安全技能中心

VietQR

该 Skill 调用内置 Python 脚本,将银行名称、账号及可选金额、备注、账户名和模板参数规范化为 VietQR 支付图片 URL,也可输出 Markdown 图片预览;支持越南语金额简写和银行别名,并在输入无效时返回原因并提示修正字段。

分类:生活
phucisstupid
phucisstupid
热度 38.04
最近更新 2026-05-11 17:30:32

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add phucisstupid/vietqr
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
vietqr
description
Generate VietQR payment image URLs for Vietnamese bank transfers from bank/account details. Use when users ask to create a VietQR link, return a markdown QR preview, or validate VietQR bank/account/amount input.

VietQR

Use the bundled script when the user wants a VietQR payment link or markdown QR preview:

python3 "{baseDir}/scripts/vietqr.py" --bank <bank> --account <account>

Optional flags:

  • --amount <positive_int|k_suffix> (examples: 10000, 10k, 25K, 2.5k)
  • --amount <vn_amount> also supports Vietnamese shorthand and separators (examples: 200.000, 1,5tr, 2tr, 50k, 500kđ)
  • --note "<transfer note>"
  • --account-name "<account holder>"
  • --template <template> (default: compact2)
  • --markdown (print ![VietQR](...))
  • --list-banks (print built-in bank aliases like vcb, mb, bidv, vietinbank)

Workflow:

  1. Ask only for the missing bank, account, amount, or note fields needed for the user's request.
  2. Normalize human input before calling the script.
    • Convert shorthand amounts like 10k, 2.5k, 1,5tr, 2tr, or 200.000 into whole VND amounts.
    • Translate common bank nicknames or abbreviations (including Vietnamese forms with accents) into the bank string the script should receive.
    • Prefer using a clear official bank name when there is any ambiguity.
  3. Run the script instead of hand-building the URL.
  4. Return the generated URL directly, or the markdown image form when the user wants something they can paste into chat/docs.
  5. For chat surfaces that do not render markdown images inline, prefer returning the raw URL.

Keep the script layer small and predictable. Do not rely on the script to understand every human shorthand if the agent can normalize it first.

If the script exits with Invalid input: ..., return that reason clearly and ask only for the incorrect field.