Awx Best Practices

作者 airwallexb418b9913e49无许可证7 个星标收录于 2026年10月7日更新于 2026年10月7日仓库7天前更新

Fallback Airwallex skill — works with the Airwallex CLI or the Airwallex MCP server. Use ONLY when no dedicated workflow skill matches the task. Covers ad-hoc operations (list, get, update, delete, void, cancel), general Airwallex API questions, troubleshooting, and domains not covered by a workflow skill (payment links, refunds, disputes, spend management, financial reports). Do NOT load this skill alongside a workflow skill — each workflow skill is self-contained. For invoices/billing/coupons/meters/credit notes use contract-to-billing, for suppliers/beneficiaries use beneficiary-creation, for cards use card-provisioning, for balances/FX/cashflow use manage-cashflow.

仅含说明DevOps & Cloud
AI 生成的概览

针对临时性 Airwallex API 操作、故障排查及不可逆操作安全处理的兜底指引。

功能
提供通过 CLI 或 MCP 服务器使用 Airwallex 的操作规则,涵盖临时的 list、get、update、delete、void 和 cancel 操作、一般 API 问题及故障排查。它界定哪些操作不可逆或影响重大并需要明确确认,列出错误处理步骤,并澄清钱包、发票和账单等核心概念。它还会将属于专用工作流技能或超出支持范围的请求重定向。
适用场景
当没有匹配的专用 Airwallex 工作流技能时使用,例如一次性 API 操作、一般 Airwallex 问题,或支付链接、退款、争议、支出管理和财务报告等领域。不应与工作流技能同时加载。
运行要求
需要 Airwallex CLI(PATH 上的 airwallex 可执行文件,通过 airwallex auth login 认证)或已启用并认证的 Airwallex MCP 服务器。不附带脚本,仅为说明文档加两份参考文档。

Airwallex Best Practices

Fallback skill for Airwallex tasks. Use only when no dedicated workflow skill fits. Each workflow skill (beneficiary-creation, card-provisioning, contract-to-billing, manage-cashflow) is self-contained — do NOT load this skill alongside them.

When to use

  • Ad-hoc operations (list, get, update, delete, void, cancel, deactivate)
  • General Airwallex API questions or troubleshooting
  • Payment links, refunds, disputes, spend management, financial reports, and other domains not covered by a dedicated workflow skill

Use a workflow skill instead

TaskSkill
Create invoice from PO/contract/quotecontract-to-billing
Coupons, meters, usage events, credit notescontract-to-billing
Onboard suppliers / create beneficiariesbeneficiary-creation
Provision corporate cardscard-provisioning
Cash position, FX, balances, rebalancingmanage-cashflow

If a workflow skill matches, use that skill instead — do NOT load this one alongside it.

Out of scope — refuse and redirect

Do NOT attempt to fulfill these by aggregating API calls. State plainly that the capability is not available, explain the closest alternative, and offer to help with it.

Request patternWhy out of scopeRedirect
"Forecast", "hedging strategy", "FX prediction"Agent provides indicative spot rates onlyOffer manage-cashflow for current exposure and indicative FX rates
"Yield", "investment advice", "idle funds", "automated top-up", "should I lock a rate?"Financial advice or unsupported treasury actionOffer manage-cashflow for current balances, obligations, and informational indicative FX only

Environment quickstart

See references/surface-quickstart.md [blocked] for full per-surface details (auth, discovery, write safety, pagination, error handling).


Operational rules

  • NEVER fabricate or assume missing information. If any required field is uncertain — STOP and ask the user.
  • Always fetch fresh data — re-fetch before every step.
  • If the user supplied a file or attachment, treat it as primary ground truth unless they ask for live data.
  • For ambiguous-intent requests, confirm the action before starting.
  • Never overclaim unsupported capabilities. Transfers, payouts, FX execution, PAN/CVV retrieval: refuse immediately, state what is not available, offer the closest alternative.
  • Do not provide financial advice. Never recommend yield, investment products, automated top-ups, hedging strategy, FX prediction, or rate-locking. For treasury questions, redirect to manage-cashflow and keep any FX discussion informational and clearly labelled as indicative.
  • Split supported and unsupported asks. Complete the supported portion and clearly state what was not configured.
  • Prefer business labels over raw IDs in user-facing output. Show human-readable business labels (customer names, product names, beneficiary names, card nicknames, etc.) instead of raw system IDs whenever possible. Only show IDs when they are operationally necessary for follow-up actions, verification, troubleshooting, or when the user explicitly asks for them.

Core Airwallex concepts

  • One wallet, multiple currencies. Say "AUD balance" — never "AUD wallet."
  • Invoices = receivables (money in). Issued BY the user TO their customers.
  • Bills = payables (money out). Money the user owes to suppliers.
  • FX conversions happen within one wallet — not between wallets.

Consequential operations

These are irreversible or high-impact. Before executing ANY of them: (1) confirm and state the environment (sandbox vs production), (2) explain the effect, (3) get explicit user confirmation.

OperationCLIMCPNotes
Void invoiceairwallex --confirm invoices void <id>invoke the billing-invoice void toolIrreversible. FINALIZED+UNPAID only.
Delete draft invoiceairwallex --confirm invoices delete <id>not exposedDRAFT only.
Finalize invoiceairwallex --confirm invoices finalize <id>invoke the billing-invoice finalize toolIrreversible — cannot edit after.
Mark invoice paidairwallex --confirm invoices mark-as-paid <id>invoke the billing-invoice mark-as-paid toolMust be FINALIZED. Use when paid outside Airwallex.
Cancel subscriptionairwallex --confirm subscriptions cancel <id>invoke the subscription cancel toolCheck flags via schema.
Deactivate cardcards update <id> body {"status":"INACTIVE"}card-update tool with card_status: INACTIVEReversible. See references/api_traps.md [blocked] for which statuses are NOT settable here.
Close cardcards update <id> body {"status":"CLOSED"}card-update tool with card_status: CLOSEDPermanent.
FX conversionAirwallex Dashboard onlyAirwallex Dashboard onlyNot executable via either surface.
Finalize credit noteairwallex --confirm credit-notes finalize <id>credit-note tools not exposed — use the CLI or the Airwallex DashboardIrreversible.
Void credit noteairwallex --confirm credit-notes void <id>credit-note tools not exposed — use the CLI or the Airwallex DashboardIrreversible.
Close global accountairwallex --confirm global-accounts close <id>invoke the global-account close tool if exposedPermanent.
Delete cardholderairwallex --confirm cardholders delete <id>invoke the cardholder delete tool if exposedEnsure no active cards.

Error handling

SituationAction
Required field missing or ambiguousSTOP, list gaps, ask user
API errorShow full error, ask user
API validation errorCheck references/api_traps.md [blocked]. IF using the CLI, THEN also run airwallex <resource> <action> --api-schema-only to verify body structure. ELSE IF using the MCP server, THEN re-inspect the tool's input schema.
401 / auth expiredIF using the CLI, THEN retry once (auto-refresh). If retry fails, ask the user which environment, immediately execute auth login (or --prod) yourself, confirm with auth whoami, then resume. ELSE IF using the MCP server, THEN the server refreshes tokens automatically; if a tool keeps returning 401, the OAuth grant has been revoked — ask the user to re-authorize the MCP server.
Duplicate detectedShow details, let user choose
Partial completionReport what succeeded (with IDs) and what failed

References

  • references/api_traps.md [blocked] — non-obvious body constraints beyond what the schema/manifest surfaces.
  • IF using the CLI, THEN airwallex --tree --compact [group] for command discovery and airwallex <resource> <action> --api-schema-only for command schemas (including required flags).
  • Airwallex API Introduction

Feedback

When the user reacts to how this skill performed (praise, frustration, a gap, a missing capability) — or when you hit a real gap, unclear/wrong instruction, or unexpected behavior while using it — briefly offer to pass feedback along and, on the user's go-ahead, submit it. See references/feedback.md for when to offer, the channel commands (CLI / MCP), and the rules (ask first, no sensitive data, don't nag).

来源与署名

来源:airwallex/airwallex-marketplace位于plugins/airwallex-agentos/skills/awx-best-practices提交b418b99

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架