src/orchestrator/plugins/coolify/SKILL.md
Deploys applications, databases, and services on self-hosted Coolify instances, manages environments and env vars, runs infrastructure diagnostics, and performs batch operations. Use when deploying apps to Coolify, managing Coolify servers, debugging deployment issues, setting up databases, or managing Coolify infrastructure.
npx skillsauth add etylsarin/opencastle coolify-deploymentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read the matching reference before working on any of these topics:
| Topic | Reference |
|-------|-----------|
| Application deployment | references/applications.md |
| Database & service management | references/databases-services.md |
| Infrastructure & diagnostics | references/infrastructure.md |
| Docker Compose templates | references/docker-compose.md |
| CI/CD & Docker image deploys | references/ci-cd-webhooks.md |
Project Structure
get_infrastructure_overview to understand the current state before making changesprojects tool with action params (list, get, create) — one tool, multiple operationsApplication Deployment
application create to avoid unhealthy deploymentsdeploy with force_rebuild: true only when cache issues are suspected — normal deploys are fasterdeployment action list_for_app after triggering a deployDiagnostics
diagnose_app accepts name or domain (e.g., "my-app" or "example.com") — not just UUIDsdiagnose_server accepts name or IP address — use for connectivity and resource issuesfind_issues scans all infrastructure — use as a health check before and after changesEnvironment Variables
env_vars tool with resource: "application" or resource: "service" — supports list, create, update, deletebulk_env_update updates a variable across multiple apps at once — use for shared config like API URLscontrol with action: "restart" after updatesDatabase Management
database_backups with action: "create" — set frequency and retentionSecurity
COOLIFY_ACCESS_TOKEN in .env — never commit to source controlprivate_keys tool, never hardcodevalidate_server to verify SSH connectivity before deployingDocker Compose
build:) and Repository (git URL, full features)SERVICE_PASSWORD_*, SERVICE_URL_*) for auto-generated credentials and proxy URLs — never hardcodeports: for proxied services — Traefik handles routing via SERVICE_URL_NAME_PORTCI/CD Integration
create_dockerimage) skip the build step — use for pre-built images from registriesget_infrastructure_overview → identify target server and projectprojects action create with name and descriptionenvironments action create in the target projectapplication action create_public (or create_github / create_dockerimage) with health check configdeployment action list_for_app → wait for finished status; if failed → application_logs → fix → redeployenv_vars resource application action create → control action restartdiagnose_app by name → confirm status running and health check passingfind_issues → list all unhealthy resourcesdiagnose_app or diagnose_server with name/domain/IPapplication_logs for the affected appcontrol resource application action restartdiagnose_app again → confirm status runningDeploy failed → check status
├── Health check failing → verify health check path returns 200 → fix app → redeploy
├── Build error → application_logs → fix Dockerfile/build config → deploy with force_rebuild
├── Port conflict → check server_resources → update port mapping → redeploy
├── SSH key invalid → validate_server → private_keys action update → retry
└── Out of resources → server diagnostics → scale server or stop unused apps
# 1. Create app from public repo
application(
action="create_public",
project_uuid="proj-abc",
environment_name="production",
server_uuid="srv-xyz",
repository_url="https://github.com/org/my-app",
branch="main",
build_pack="dockerfile",
health_check_path="/health",
health_check_interval=30,
health_check_retries=3
)
# → returns { uuid: "app-123", status: "deploying" }
# 2. Set env vars
env_vars(resource="application", action="create", uuid="app-123", key="DATABASE_URL", value="postgres://...", is_preview=false)
# 3. Restart to pick up env vars
control(resource="application", action="restart", uuid="app-123")
# 4. Verify
diagnose_app(identifier="my-app")
# → status: "running", health_check: "healthy"
{
"servers": {
"Coolify": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@masonator/coolify-mcp"],
"envFile": "${workspaceFolder}/.env"
}
}
}
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.