Deliver the app to a Coolify instance — register the Coolify environment, then run `spectoflow deliver`, which triggers the deploy through Coolify's API, follows it until Coolify says it finished, and health-checks the result.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Deploy Coolify?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/georgesmomo-deploy-coolify)
---
name: deploy-coolify
description: Deliver the app to a Coolify instance — register the Coolify environment, then run `spectoflow deliver`, which triggers the deploy through Coolify's API, follows it until Coolify says it finished, and health-checks the result.
capability: operations
inputs: A project that already builds, and what the USER gives you about their Coolify — the instance address and the UUID of the application or service to deploy. The API token is theirs and stays in their shell.
outputs: A `coolify` environment in `.spectoflow/config.json` and a delivery result — Coolify finished and the app is healthy, or the failure code with its cause.
standard: Coolify API reference (coolify.io/docs/api-reference), The Twelve-Factor App
---
# Deploy to Coolify
Coolify builds and runs the app itself (from the Git repository or image it is connected to); spectoflow only asks it to
deploy and waits for its verdict. Never push the user's secrets anywhere, never create Coolify resources on your own.
## When to use
The Deliver step with a target of `platform` and a Coolify instance, or the user says "deploy it on my Coolify". Not for a
plain server over ssh or local Docker (skill `deploy`), not for Dokploy or Vercel (their own skills).
## Method
1. **Ask for what only the user knows**: the Coolify address (`https://coolify.example.com`) and the **UUID** of the
resource (Coolify → the application → its URL, or Webhooks tab). Do not guess either.
2. **Check what Coolify will deploy.** It deploys what is **pushed** to the connected repository, not this working
folder: `git status` and the branch must be pushed first. Say so if they are not and stop — pushing is the user's call.
3. **Register it**: `spectoflow env add <name> --type=coolify --api=https://… --uuid=… --url=https://<the app's public url> --health=/health`
(`--token-env=NAME` if the variable is not `COOLIFY_TOKEN`). The command allows it on this machine.
4. **The token is the user's.** Tell them to create an API token in Coolify (Keys & Tokens → API tokens, with the
`deploy` and `read` permissions; a self-hosted instance must have API access enabled) and `export COOLIFY_TOKEN=…` in
the shell that runs spectoflow. Never ask them to paste it to you, never write it to a file.
5. **Deliver**: `spectoflow deliver --env=<name>` (a policy gate may ask the user first — wait for it).
6. **On failure, act on the code**: `untrusted-platform` → the user runs `spectoflow env trust <name>`; `platform-auth` → the
token is missing or lacks a permission; `platform-not-found` → wrong UUID; `platform-unreachable` → address or network;
`deploy-failed` → read the log tail in the output (Coolify keeps the full log); `deploy-timeout` → Coolify may still
finish, look at it before delivering again; `health-failed` → the app is up in Coolify but the url or health path is wrong.
At most **three** attempts for the same code, then report it blocked with the last output.
## Output contract
```
::spectoflow role=operations kind=summary msg=<delivered to <name> (Coolify finished, healthy at <url>) — or the code and the cause>
```
A delivery that did not end healthy is never reported as done: end with `REJECTED: <code> — <one-line cause>`.
## Quality bar
- [ ] `spectoflow deliver` exited 0 in this session, not an earlier one.
- [ ] No token, key or password was written to a file or printed.