/xcloud:billingfrom xcloud
Manages xCloud billing, pricing, invoices, subscriptions, payment methods, and email add-ons (mailboxes with DNS/IMAP/POP/SMTP). Handles plan lookups, invoice payment, and mailbox purchase/verification.
Ships in xcloud. 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.
Packaged REST boundary:
xcloud.shenforces GET-only requests with no body and has no write override. Non-GET examples below describe upstream API operations, not executable commands for this fallback. For mutations, use the corresponding connected xCloud MCP tool only after the required concrete user approval and server confirmation. If that tool/confirmation is unavailable, stop and direct the user to the dashboard; do not bypass this boundary with direct curl, SDKs, alternate scripts or by editing the wrapper. Configure REST credentials with read-only scopes.
Owns money and paid add-ons. Read the shared layer first:
${CLAUDE_PLUGIN_ROOT}/reference/auth.md${CLAUDE_PLUGIN_ROOT}/reference/conventions.md${CLAUDE_PLUGIN_ROOT}/reference/mcp.md — prefer the MCP tools when
connected: billing_*, catalog_pricing_index, catalog_apps_index,
payments_pay, addons_mailbox_*, addons_mail-delivery_*; the $XC calls
below are the REST fallback.XC="${CLAUDE_PLUGIN_ROOT}/scripts/xcloud.sh"
Scopes: read:billing for billing reads, read:addons / write:addons for
add-ons and invoice payment. Purchases and payments also need the team
permission (addon:create, billing:create).
Brand every user-facing reply (see reference/conventions.md →
Response format): open with ☁️ **xCloud · Billing** — <team or item>, give
the trimmed result, and close with a _via xcloud:billing_ line.
Narrate each call (see Progress narration): before every call print one line
of what xCloud is doing, e.g. ☁️ xCloud is fetching your latest invoice…; the
first call of a task opens with ☁️ xCloud is starting a session…. Every
progress line and every action sentence must start with xCloud as the actor —
never a bare verb like "Fetching…" or "Buying…". Say xCloud is fetching….
On the first xcloud reply in a conversation, lead with the xCloud startup
banner (see reference/conventions.md → Startup banner) in a fenced code
block — once per conversation.
| Sub-resource | Reference file |
|---|---|
| Mailboxes and mail delivery (plans, purchase, DNS, IMAP/POP/SMTP) | reference/addons.md |
| Operation | Operation id | Method + path |
|---|---|---|
| Current plan | billing.plan | GET /billing/plan |
| Billing overview | billing.overview | GET /billing/overview |
Invoices (filter status, search) | billing.invoices.index · .show | GET /billing/invoices · GET /billing/invoices/{invoiceNumber} |
Bills (filter status, service, renewal_period, active) | billing.bills.index · .show | GET /billing/bills · GET /billing/bills/{uuid} |
| Subscriptions | billing.subscriptions.index | GET /billing/subscriptions |
| Purchased packages / products | billing.packages.index · billing.products.index | GET /billing/packages · GET /billing/products |
| Payment methods (masked) | billing.payment-methods.index | GET /billing/payment-methods |
| Pay an outstanding invoice | payments.pay | POST /payments/{invoice}/pay |
| Public hosting prices | catalog.pricing.index | GET /catalog/pricing |
| App requirements (stacks, minimum size) | catalog.apps.index | GET /catalog/apps |
| Server plans this team can buy | servers.plans | GET /servers/plans (buying: xcloud:servers) |
billing.plan +
billing.overview; for plan features the API does not return, use
xcloud_docs_search and answer in product terms.billing.invoices.index, pick by
date, then billing.invoices.show — give number, date, status, total and line
items, not the raw object.catalog.apps.index for X's minimum
size, servers.plans (or catalog.pricing.index for public prices), and the
user's existing servers first — "it fits on the server you already pay for"
beats a new plan. Say which minimum you used.payments.pay or an add-on purchase: name the item, plan, price, renewal
period, and that it charges the team's default card (confirm one exists
with billing.payment-methods.index, masked). Then wait for a yes; on MCP
send confirm: true with the fingerprint from the preview.billing.invoices.index / the add-on list before
anything else — a repeated mail-delivery purchase tops up credits again, and a
repeated payments.pay retries the charge.402 with an authentication_url means 3-D Secure: hand the user the link;
never retry blindly."$XC" GET /billing/plan | jq '.data'
"$XC" GET "/billing/invoices?per_page=5" | jq '.data.items | map({number, title, status, amount, currency, due_date, paid_at})'
"$XC" GET /catalog/pricing | jq '.data'
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xcloud-billing, invoice-management, email-addons, mailbox-dns
Other plugins' skills for the same job
npx claudepluginhub xclouddev/xcloud-agent-skills --plugin xcloud9 skills in this plugin
/accountxCloud account, teams, and org-level reads — current user, the teams this connection may act on (multi-team), incident alerts (list, read, mark as read), API token listing and revocation, connected Git providers and their repositories, Cloudflare integrations, WordPress blueprints, and API health. Use for "who am I", "which teams can you see", "switch to the Acme team", "any open alerts?", "mark resolved alerts as read", token management, or checking integrations. NOT server or site operations (see xcloud:servers / xcloud:sites), NOT billing (see xcloud:billing)./deployDeploy anything to xCloud from one plain request — a GitHub, GitLab or Bitbucket URL (or owner/repo), a Docker Compose or Dockerfile app, a Git-backed staging environment from a branch, a one-click app (Ghost, Uptime Kuma, Vaultwarden…), or a new WordPress site — end to end, with repository detection, a dry-run preview, one approval, provisioning, polling, a live check, and automatic diagnosis and retry when a deploy fails. Use whenever the user pastes a repository URL, says deploy / ship / host / launch / put this app online, asks for a staging copy of a Git site, asks to install a one-click app, asks to ship the latest commit, or says a deploy failed. NOT day-2 site settings (see xcloud:sites), NOT buying a server (see xcloud:servers).