/airwallex-agentos:awx-best-practicesfrom airwallex-agentos
Fallback skill for ad-hoc Airwallex operations (list, get, update, delete, void, cancel), general API questions, troubleshooting, and domains not covered by dedicated workflow skills (payment links, refunds, disputes, spend management, financial reports).
Ships in airwallex-agentos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
| Task | Skill |
|---|---|
| Create invoice from PO/contract/quote | contract-to-billing |
| Coupons, meters, usage events, credit notes | contract-to-billing |
| Onboard suppliers / create beneficiaries | beneficiary-creation |
| Provision corporate cards | card-provisioning |
| Cash position, FX, balances, rebalancing | manage-cashflow |
If a workflow skill matches, use that skill instead — do NOT load this one alongside it.
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 pattern | Why out of scope | Redirect |
|---|---|---|
| "Forecast", "hedging strategy", "FX prediction" | Agent provides indicative spot rates only | Offer 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 action | Offer manage-cashflow for current balances, obligations, and informational indicative FX only |
See references/surface-quickstart.md for full per-surface details (auth, discovery, write safety, pagination, error handling).
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.
| Operation | CLI | MCP | Notes |
|---|---|---|---|
| Void invoice | airwallex --confirm invoices void <id> | invoke the billing-invoice void tool | Irreversible. FINALIZED+UNPAID only. |
| Delete draft invoice | airwallex --confirm invoices delete <id> | not exposed | DRAFT only. |
| Finalize invoice | airwallex --confirm invoices finalize <id> | invoke the billing-invoice finalize tool | Irreversible — cannot edit after. |
| Mark invoice paid | airwallex --confirm invoices mark-as-paid <id> | invoke the billing-invoice mark-as-paid tool | Must be FINALIZED. Use when paid outside Airwallex. |
| Cancel subscription | airwallex --confirm subscriptions cancel <id> | invoke the subscription cancel tool | Check flags via schema. |
| Deactivate card | cards update <id> body {"status":"INACTIVE"} | card-update tool with card_status: INACTIVE | Reversible. See references/api_traps.md for which statuses are NOT settable here. |
| Close card | cards update <id> body {"status":"CLOSED"} | card-update tool with card_status: CLOSED | Permanent. |
| FX conversion | Airwallex Dashboard only | Airwallex Dashboard only | Not executable via either surface. |
| Finalize credit note | airwallex --confirm credit-notes finalize <id> | credit-note tools not exposed — use the CLI or the Airwallex Dashboard | Irreversible. |
| Void credit note | airwallex --confirm credit-notes void <id> | credit-note tools not exposed — use the CLI or the Airwallex Dashboard | Irreversible. |
| Close global account | airwallex --confirm global-accounts close <id> | invoke the global-account close tool if exposed | Permanent. |
| Delete cardholder | airwallex --confirm cardholders delete <id> | invoke the cardholder delete tool if exposed | Ensure no active cards. |
| Situation | Action |
|---|---|
| Required field missing or ambiguous | STOP, list gaps, ask user |
| API error | Show full error, ask user |
| API validation error | Check references/api_traps.md. 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 expired | IF 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 detected | Show details, let user choose |
| Partial completion | Report what succeeded (with IDs) and what failed |
airwallex --tree --compact [group] for command discovery and airwallex <resource> <action> --api-schema-only for command schemas (including required flags).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).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/beneficiary-creationExtract bank details from supplier invoices or documents, validate per-country requirements, and create beneficiaries in Airwallex. Use when the user says "set up this supplier", "onboard these vendors", "create beneficiary from invoice", "add a payee", or uploads supplier documents with bank details. Do NOT use for creating invoices, checking balances or FX rates, or provisioning cards./card-provisioningProvision virtual or physical corporate cards in Airwallex Issuing — create cardholders, issue cards with spend limits, and manage card spending. Use when the user says "create a card for", "spin up a virtual card", "set up a card for Adobe", "provision a card", or needs to manage corporate card spending. Do NOT use for bank transfers, creating invoices, or checking FX rates./contract-to-billingExtract billing details from purchase orders, contracts, or quotes, then set up Airwallex Billing by creating invoices and/or subscriptions — matching existing customers, products, and prices to avoid duplicates. Use when the user says "create invoice from this PO", "set up billing from this contract", "create a subscription from this agreement", "invoice this quote", "bill this customer", or attaches a document and asks to set up one-time, recurring, or mixed billing. Do NOT use for paying suppliers, provisioning cards, or checking FX rates./manage-cashflowMulti-currency cash management — balances, receivables, obligations, FX exposure, runway, rebalancing, and indicative FX rates. Use when the user asks about cash position, treasury health, what is owed, money in or out, FX positions, or requests money movement (conversions, transfers, rate locks). Also load this skill when the user asks for a "transaction report", "accounting report", "reconciliation", "P&L", or "ledger" — the skill contains the required scope-boundary rules to refuse these properly and offer supported alternatives. Do NOT use for creating invoices from documents, supplier/beneficiary onboarding, or card provisioning (use the workflow skills for those).
claude plugin install airwallex-agentos@claude-plugins-official