Agent skill

cloud-ready

Standardizes project for Cloud Sovereignty (Coolify + VPS) with Eco Mode resource limits and Professional Folder Hierarchy.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/cloud-ready

SKILL.md

โ˜๏ธ Cloud Ready (Sovereign Deploy)

This skill forces the project into a professional, deployable state compatible with Hetzner VPS and Coolify.

๐ŸŽฏ Objective

Transform a "Local" project into a "Production" engine.

  1. Strict Topology: Enforces src/, ops/, assets/, docs/.
  2. Eco Mode: Generates docker-compose.yml with strict RAM/CPU limits to prevent OOM kills on cheap VPS.
  3. Deployment Guide: Adds docs/COOLIFY_DEPLOY.md.

๐Ÿ› ๏ธ Usage

Trigger this skill when the user wants to "deploy", "go to cloud", or "standardize" the project.

bash
# Verify structure
python -c "import os; print('โœ… Ready' if os.path.exists('src') else 'โŒ Missing src/')"

๐Ÿ“œ The "Golden Standard" (The Truths)

  1. Code lives in src/: No exceptions. apps/ goes inside src/.
  2. Resources live in assets/: Not rsc/.
  3. Infrastructure lives in ops/: Firewall, Audits, Backups.
  4. Data Persistence: Only /app/data inside Docker.
  5. Limits are Mandatory: Every service MUST have deploy.resources.limits.

๐Ÿ”’ The Application of "Proof" (Verification Protocol)

Before considering a module "Cloud Ready", it must be Inhaled (Verified).

  1. Create Temporary Provers: Generate prove_module.py scripts at root.
  2. Check Importability: from src.module import App.
  3. Check Integrity: hasattr(App, 'app') or hasattr(Bot, 'run').
  4. Run Tests: Fix sys.path in runners (run_tests.py) to include src/.

๐Ÿงน The "Sanitization" (Exhale Protocol)

We never ship the crowbar with the crate.

  1. Delete Provers: del prove_*.py run_tests.py.
  2. Ignore Tests: Add tests/ and */tests/ to .dockerignore.
  3. Sanitize Git: Add prove_*.py and *.tmp to .gitignore.

Rule: Production Containers contain ONLY what is needed to run. No tests, no audit tools.

๐Ÿ“ฆ Output Artifacts

  • docker-compose.yml (Optimized)
  • Dockerfile (Python Slim with source mapping)
  • docs/COOLIFY_DEPLOY.md
  • docs/SWAP_GUIDE.md

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results