/xcloud:sitesfrom xcloud
Manages xCloud sites day-2 operations: inspect status, events, deployment logs, backups, staging, domains, cache, SSH/SFTP, cron jobs, and deletion. Routes specialized requests to xcloud:troubleshoot, xcloud:performance, xcloud:deploy, xcloud:ssl, xcloud:wordpress, or xcloud:servers.
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 site lifecycle and delivery. Read the shared layer first for auth, base URL, envelope, pagination, and rate limits:
${CLAUDE_PLUGIN_ROOT}/reference/auth.md${CLAUDE_PLUGIN_ROOT}/reference/conventions.md${CLAUDE_PLUGIN_ROOT}/reference/mcp.md — prefer mcp__xcloud__sites_*
tools when connected (e.g. sites_index, sites_show, sites_status,
sites_backup, sites_docker_backup, sites_stagingSites, sites_rescue,
sites_destroy); the $XC calls below are the REST fallback.XC="${CLAUDE_PLUGIN_ROOT}/scripts/xcloud.sh"
Scopes: reads need read:sites, writes need write:sites.
Brand every user-facing reply (see reference/conventions.md →
Response format): open with ☁️ **xCloud · Sites** — <site domain>, give the
trimmed result, and close with a _via xcloud:sites_ line.
Narrate each call (see Progress narration): before every $XC call print one
line of what xCloud is doing, e.g. ☁️ xCloud is fetching site \`…; the first call of a task opens with ☁️ xCloud is starting a session…. **Every progress line and every action sentence must start with xCloudas the actor — never a bare verb like "Creating…" or "Polling…". SayxCloud is creating…`.**
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 |
|---|---|
| Backups (trigger, list, settings, status, count) | reference/backups.md |
| Docker app backups (back up now, notes, schedule, retention) | reference/docker-backups.md |
| Domains, redirections, web rules | reference/domains.md |
| Cache (purge, purge-all, settings) | reference/cache.md |
| SSH/SFTP config & keys | reference/ssh.md |
| Site cron jobs | reference/cron-jobs.md |
| Operation | Method + path |
|---|---|
| List sites | GET /sites |
| Get site | GET /sites/{uuid} |
| Status | GET /sites/{uuid}/status |
| Events | GET /sites/{uuid}/events |
| Deployment logs | GET /sites/{uuid}/deployment-logs |
| Monitoring (+ history) | GET /sites/{uuid}/monitoring[/history] |
| Access logs | GET /sites/{uuid}/access-logs |
| One event's full output | GET /sites/{uuid}/events/{task_uuid} |
| Git settings, deploys, diagnosis, retry | owned by xcloud:deploy |
| Snapshots | GET /sites/{uuid}/snapshots |
| Staging environments (list / create for Git sites) | GET|POST /sites/{uuid}/staging-sites — creating is a deploy (xcloud:deploy) |
| Custom nginx / site scripts / IP access | GET /sites/{uuid}/{custom-nginx,site-scripts,ip-access}; custom nginx writes: sites.customNginx.test first, then .store / .update (preview, then confirm) |
| Domain update status | GET /sites/{uuid}/domain/status |
| Rescue site | POST /sites/{uuid}/rescue |
| Delete site | DELETE /sites/{uuid} |
Not here: a site that errors → xcloud:troubleshoot; a slow site →
xcloud:performance; deploys → xcloud:deploy; SSL → xcloud:ssl;
WordPress/vulns/pagespeed/broken links → xcloud:wordpress; servers →
xcloud:servers.
Find a site by domain (resolve its UUID first):
"$XC" GET "/sites?search=example.com&per_page=20" \
| jq '(.data.items // .data.data // []) | map({uuid, name, domain: .domain_name, status, type})'
Status + recent events (the go-to triage pair):
SITE_UUID='replace-me'
"$XC" GET "/sites/$SITE_UUID/status" | jq '.data'
"$XC" GET "/sites/$SITE_UUID/events" | jq '(.data.items // .data) | .[0:10]'
Rescue a broken site (all flags optional booleans; pick the repairs you need —
supported options depend on site type: repair_node, repair_pm2, and
repair_openclaw exist for Node/OpenClaw sites, reinstall_php for PHP sites):
# Preview, then confirm: show the user what will change on site "$SITE_DOMAIN" and wait for a yes.
# Target named: site "$SITE_DOMAIN".
"$XC" POST "/sites/$SITE_UUID/rescue" '{
"isolate_user": true,
"regenerate_nginx": true,
"restart_nginx": true,
"directory_permissions": true,
"reinstall_php": false
}' | jq '.message'
Delete a site — destructive and irreversible; never call without explicit
user confirmation naming the exact domain, and never as a retry or
"start clean" step after another call failed. All three delete_* flags
(delete_files, delete_database, delete_user) are required; they choose what
is removed alongside the record; deletion is async (status → deleting,
staging sites are removed too):
# Preview, then confirm: show the user what will change on site "$SITE_DOMAIN" and wait for a yes.
# Target named: site "$SITE_DOMAIN".
"$XC" DELETE "/sites/$SITE_UUID" '{
"delete_files": true,
"delete_database": true,
"delete_user": true,
"delete_local_backups": false,
"delete_dns_record": false
}' | jq '.message'
# poll: GET /sites/{uuid}/status until the site is gone
(.data.items // .data.data // []).GET /sites/{uuid}/events.provisioned is usually a missing site OS user — pull
/sites/{uuid}/ssh (site_user) and the server tasks to confirm.site:delete team permission; sites tied to their
server's lifecycle (e.g. OpenClaw) cannot be deleted independently.403 on free plans. It takes a
range query parameter.xcloud:deploy
(diagnosis and retry on the same site), never delete and recreate it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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)./billingxCloud billing, pricing and paid add-ons — current plan, billing overview, invoices, bills, subscriptions, purchased packages and products, payment methods on file, paying an outstanding invoice, public hosting prices and app requirements, and buying or managing email add-ons (branded mailboxes with DNS verification and IMAP/POP/SMTP settings, and mail-delivery SMTP subscriptions). Use for "what plan am I on", "show last month's invoice", "how much would a server for X cost", "pay invoice 1234", "buy a mailbox for example.com", "verify the mailbox DNS", or "give me the SMTP settings". NOT creating a server (see xcloud:servers), NOT deploying apps (see xcloud:deploy)./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).