xCloud Docker Deploy
Deploy any project to xCloud hosting by auto-detecting the tech stack (WordPress, Laravel, Next.js, Node.js, Python, Go, Rust) and generating production-ready Dockerfile, docker-compose.yml, and GitHub Actions CI/CD pipelines.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
// README
xCloud Docker Deploy Skill
For AI Agents: Let users say, "This is my project. I want to deploy it on xCloud." Then confirm the intended scope, inspect the project only with consent, choose native or Docker deployment, generate the right files, and guide the xCloud deploy in plain language.
Start Here
Use normal human language:
This is my project. I want to deploy it on xCloud.
Please inspect it, decide whether it should use xCloud native deployment or Docker,
generate the proper Dockerfile, Docker image workflow, docker-compose.yml,
.env.example, and give me the exact xCloud deployment steps.
For an existing compose file:
Please make this docker-compose.yml work on xCloud.
Fix anything xCloud does not support, especially Docker build steps,
proxy services, and host ports 80/443.
The skill should respond with simple, copy-paste-ready output:
- What kind of project it detected
- Whether xCloud native deployment or Custom Docker is the better path
- The Dockerfile, compose file, GHCR GitHub Actions workflow, and
.env.examplewhen needed - The exact xCloud exposed/primary port
- The exact xCloud UI or API steps
Before the agent inspects files, edits a repository, requests tokens, triggers webhooks, or routes to live xCloud API skills, it must ask for explicit confirmation of that exact step. Start with read-only analysis when possible.
Safe agent opening:
I can do read-only analysis first, or I can generate deployment files after your confirmation.
I will not push, deploy, collect tokens, or call live xCloud APIs unless you explicitly approve that exact step.
What It Does
What's New in v1.4.1
- Adds explicit confirmation gates before inspection, file generation, credential collection, deployment recommendations, webhooks, or live API routing.
- Rewrites the security attestation so it accurately describes templates, generated workflows, and user-approved live operations.
- Adds least-privilege token guidance plus production backup/staging guidance.
What's New in v1.4.0
- Starts with human-friendly usage prompts instead of platform internals.
- Explains how this Docker deploy skill can hand live xCloud operations to official xCloud API skills.
- Keeps the
80:80→3080:80rule visible in the first screen of the skill body.
Paste a project structure or docker-compose.yml and ask the AI to deploy it on xCloud. The skill:
- Detects your stack — WordPress, Laravel, PHP, Node.js, Next.js, NestJS, Nuxt, Python, Go, Rust, or existing Docker
- Picks the right path — xCloud Native deploy vs Docker
- Generates all files — Dockerfile, docker-compose.yml, GitHub Actions CI/CD, .env.example
- Gives exact xCloud UI steps — copy-paste ready
What It Handles
| Scenario | Signal | Fix |
|---|---|---|
| Stack detection | Any project files | Auto-routes to native or Docker path |
| Build-from-source | build: context: . in compose | GitHub Actions → GHCR; replaces build: with image: |
| Proxy conflict | Caddy/Traefik/nginx-proxy service | Removes it, adds embedded nginx-router |
| Multi-port | Multiple ports: on different services | Routes through nginx-router, single exposed port |
| Reserved ports | 80:80 or 443:443 host bindings | Rewrites/removes them; uses 3080:80 when container listens on 80 |
| External config | ./nginx.conf:/etc/nginx/... | Embeds config inline via configs: block |
| No Docker at all | WordPress/Laravel/Node.js project | Native xCloud deploy guide |
Install
Claude Code (CLI)
# From ClawHub
clawhub install xcloud-docker-deploy
# Or manually
git clone https://github.com/Asif2BD/xCloud-Docker-Deploy-Skill.git
cp -r xCloud-Docker-Deploy-Skill ~/.claude/skills/xcloud-docker-deploy
OpenAI Codex CLI
git clone https://github.com/Asif2BD/xCloud-Docker-Deploy-Skill.git
cp -r xCloud-Docker-Deploy-Skill ~/.codex/skills/xcloud-docker-deploy
OpenClaw Agent
Drop the skill folder into your agent's skills/ workspace directory.
Claude.ai (Projects)
Upload SKILL.md to your Project files. The AI will use it as context automatically.
Cursor / Windsurf / Any AI IDE
Add SKILL.md contents to your system prompt or project rules file.
Usage
Once installed, just describe what you want:
"Make this docker-compose.yml work on xCloud"
"Deploy my Laravel app to xCloud"
"My Next.js app needs to run on xCloud, help me set it up"
"Convert this Caddy + React + API stack for xCloud"
The agent reads DETECT.md first, identifies your stack, then follows the appropriate guide.
Critical xCloud Port Rule
xCloud already owns host ports 80 and 443 for its Nginx and SSL layer. Final Docker compose output must never bind those host ports.
Use this routing model:
User -> xCloud Nginx 80/443 -> Docker host port >=1024 -> container port
Examples:
| App listens on | Final compose mapping | xCloud exposed/primary port |
|---|---|---|
container 80 | 3080:80 | 3080 |
container 3000 | 3000:3000 | 3000 |
container 8000 | 8000:8000 | 8000 |
If a source compose has 80:80, treat it as invalid for xCloud and rewrite it to 3080:80.
Works With xCloud API Skills
xCloud now publishes API-backed agent skills for live operations:
xcloud:servers— servers, PHP, databases, cron, firewall/fail2ban, sudo users, WordPress provisioningxcloud:sites— site lifecycle, status, backups, domains, cache, SSH, site cron, gitxcloud:wordpress— WordPress updates, debug, magic login, vulnerabilities, PageSpeedxcloud:ssl— SSL certificatesxcloud:account— current user, API tokens, Cloudflare integrations, blueprints, health
Use this skill for project detection, Dockerfile/compose generation, GHCR CI, and Custom Docker readiness. Use the official xCloud API skills for live account/server/site actions.
Private API Token Flow
If the user wants live xCloud account/server/site actions, the agent should ask for or help configure XCLOUD_API_TOKEN.
Keep it simple:
- Ask for the token only when live xCloud API access is needed.
- State the exact live operation before asking for a token.
- Prefer least-privilege and short-lived tokens where possible.
- Never print, store, log, reuse, or commit the token.
- Use this Docker skill for local project analysis and file generation.
- Use official xCloud API skills for live operations like checking servers, creating sites, reading deployment logs, renewing SSL, or verifying status.
Production Safety Gate
Before recommending git push, deployment webhooks, production migrations, cache clears, DNS changes, SSL changes, or live xCloud API mutations:
- Confirm the target environment: staging or production.
- Ask whether a backup exists for production sites/databases.
- Prefer a feature branch or pull request for generated files.
- Show generated Dockerfile, compose file, workflow, and environment variable list before applying.
- Do not trigger deployment webhooks or live API mutations without a separate final confirmation.
Supported Stacks
| Stack | Deploy Path | Files Provided |
|---|---|---|
| WordPress | xCloud Native | Step-by-step UI guide |
| Laravel | xCloud Native | Deploy hooks, queue worker config |
| PHP (generic) | xCloud Native | Web root config, Compose |
// HOW IT'S BUILT
TECHNOLOGY STACK
This skill is built with GitHub Actions, Docker..
// FILES
15 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
.clawhubsafeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.githubupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
CHANGELOG.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
CONTRIBUTING.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
DETECT.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
LICENSEupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
SECURITY.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
SKILL.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
assetsupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
compose-templatesupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
dockerfilesupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examplesupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
referencesupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skill.jsonupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/xcloud-docker-deploy.md