sc-dokploy
Skill13 starsChanged 2 months agoMITView on GitHub
Dokploy CRUD, audit, and debug. List/create/update/delete projects, applications, compose services, and domains via REST API. Find stale domains, duplicate hosts, and *.traefik.me leftovers. Inspect status and recent deployments.
- Reads credentials
- Commits and pushes
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- si-coderSkill
- sc-allSkill
- sc-axSkill
- sc-buildSkill
- sc-cfSkill
- sc-clerkSkill
- sc-convex-cloudSkill
- sc-convexSkill
- sc-dokuSkill
- sc-dxSkill
- sc-feSkill
- sc-gitSkill
- sc-helpSkill
- sc-installSkill
- sc-n8nSkill
- sc-onboardingSkill
- sc-providerSkill
- sc-resendSkill
- scSkill
- sc-skillSkill
- sc-stripeSkill
- sc-supabaseSkill
- sc-syncSkill
- sc-uiSkill
- sc-uxSkill
- sc-vercelSkill
- use-si-coderSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when the user wants to inspect, change, or clean up Dokploy state directly (without redeploying code).
- Very specific: line 20
If missing, route to /sc-onboarding.
- Very specific: line 24
When Dokploy access is stored in an SI-Coder named source=sc connection, run credential-dependent commands through sc run -- ...
- Distinctive: line 52
Idempotency: after a duplicate error, inspect the existing domain and confirm host, service and port match.
- Very specific: line 53
Don't delete domains blindly: only delete domains via audit.js's selectDomainsToDelete — keep the desired canonical host, drop *.traefik.me …
- Distinctive: line 59
Prefer the repository's release function over generic deploy calls.
- Very specific: line 65
Follow the main sc delivery workflow for domain/auth/email and CI/CD acceptance.
- Distinctive: line 147
If the deployment/app already has a canonical domain and its DNS/TLS route is configured, preserve and prefer that domain for browser/UI …
- Very specific: line 148
If no domain is configured, do not block a healthy install solely for DNS.
- Distinctive: line 149
When both exist, the domain is the primary UI/embedded origin.
- Very specific: line 151
Verify an existing-domain conflict against the intended host/service/port before treating it as a no-op.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/sc-dokploy — Dokploy CRUD & Audit
Use this skill when the user wants to inspect, change, or clean up Dokploy state directly (without redeploying code).
Pre-requisites
DOKPLOY_API_URL,DOKPLOY_API_KEY— Dokploy admin- SSH fallback to the Dokploy host (for orphan swarm services / Traefik file CRUD the REST API does NOT expose):
ssh -i ~/.ssh/<your_key> <user>@<your-dokploy-host>with passwordless sudo.
If missing, route to /sc-onboarding.
Connection-safe local execution
When Dokploy access is stored in an SI-Coder named source=sc connection, run credential-dependent commands through sc run -- ... so the selected connection is injected only into that child process:
sc run -- node skills/sc-dokploy/scripts/projects.js listThe shorter node scripts/... examples below describe the script interface and are valid only when the required environment is already supplied by the caller. Do not export Dokploy credentials globally just to use them. External/provider-managed sources must execute through their own connection backend instead of sc run.
REST vs SSH
Dokploy REST API covers projects, applications, compose, domains, deploy/start/stop, monitoring read. It does NOT cover:
docker service rm(orphan swarm services)rm /etc/dokploy/traefik/dynamic/<file>.yml(orphan Traefik routers)- container exec / kill / log tail beyond the dashboard
For those, SSH in directly. Useful one-liners:
ssh -i ~/.ssh/<your_key> <user>@<your-dokploy-host> 'sudo -n docker service ls'
ssh -i ~/.ssh/<your_key> <user>@<your-dokploy-host> 'sudo -n ls /etc/dokploy/traefik/dynamic/'
ssh -i ~/.ssh/<your_key> <user>@<your-dokploy-host> 'sudo -n docker service rm <name>'
ssh -i ~/.ssh/<your_key> <user>@<your-dokploy-host> 'sudo -n rm /etc/dokploy/traefik/dynamic/<name>.yml' # Traefik file watcher reloads in ~5-10sOrphan-service pattern: when a Dokploy app is recreated, the old swarm service and its Traefik dynamic config can survive deletion. Both compete for the same Host(...) rule. Symptom: prod serves an old image even after a fresh deploy. Diagnosis: docker service ls shows two services for the same project, and two .yml files in traefik/dynamic/ bind the same domain. Fix: remove the orphan file + service.
CORE RULES
- Idempotency: after a duplicate error, inspect the existing domain and confirm host, service and port match. Only that verified duplicate is a no-op; do not swallow other 4xx errors.
- Don't delete domains blindly: only delete domains via
audit.js'sselectDomainsToDelete— keep the desired canonical host, drop*.traefik.meand duplicates. - Never rename the Dokploy control host: whatever hostname is in
DOKPLOY_API_URLis the control plane. Never rewrite it inside scripts — read it from env. x-api-keyheader, not Bearer: Dokploy usesx-api-key, NOTAuthorization: Bearer.
Release source and evidence
Prefer the repository's release function over generic deploy calls. Inspect Dokploy source mode: Git and drop-source releases have different contracts. For drop source, Git push alone does not update the source directory. Publish a clean archive of the verified commit, preserve server-managed env, project the revision metadata and queue one rollout. Serialize concurrent agent deployments. Require terminal rollout status and live health matching that commit. Follow the main sc delivery workflow for domain/auth/email and CI/CD acceptance.
Scripts
projects.js — Project CRUD
node scripts/projects.js list
node scripts/projects.js create <name>
node scripts/projects.js show <name>apps.js — Application CRUD
node scripts/apps.js list --project <name>
node scripts/apps.js show --project <name> --app <name>
node scripts/apps.js deploy --project <name> --app <name>compose.js — Compose service CRUD
node scripts/compose.js list --project <name>
node scripts/compose.js show --compose <composeName>
node scripts/compose.js env --compose <composeName>
node scripts/compose.js deploy --compose <composeName>domains.js — Domain CRUD
node scripts/domains.js list-app --app-id <id>
node scripts/domains.js list-compose --compose-id <id>
node scripts/domains.js create-app --app-id <id> --host <host> [--port N]
node scripts/domains.js create-compose --compose-id <id> --host <host> --port <n> --service <name>
node scripts/domains.js delete --domain-id <id>audit.js — Sweep
Reports across all projects:
*.traefik.meplaceholder hosts that should be removed- Duplicate hosts on the same service
- Applications with no domain configured
- Compose services missing INSTANCE_SECRET
node scripts/audit.js [--fix] # --fix removes stale domainsdebug.js — Status & recent deployments
node scripts/debug.js status --project <name> --app <name>
node scripts/debug.js status --compose <composeName>
node scripts/debug.js deployments --app-id <id>API endpoint reference (Dokploy)
| Action | Endpoint | Method |
| List projects | /project.all | GET |
| Create project | /project.create | POST { name } |
| Get application | /application.one?applicationId= | GET |
| Update application | /application.update | POST |
| Deploy application | /application.deploy | POST { applicationId } |
| Get compose | /compose.one?composeId= | GET |
| Update compose | /compose.update | POST |
| Deploy compose | /compose.deploy | POST { composeId } |
| Deploy compose template | /compose.deployTemplate | POST { environmentId, id } |
| Create domain | /domain.create | POST |
| Delete domain | /domain.delete | POST { domainId } |
| List GitHub providers | /github.githubProviders | GET |
| Save app GH provider | /application.saveGithubProvider | POST |
Auth: x-api-key: <DOKPLOY_API_KEY>.
Note on logs
Dokploy build logs are NOT exposed over the REST API (as of this skill's last update). On deployment failure, point the user at the Dokploy dashboard:
<DOKPLOY_API_URL without /api> → project → service → Deployments
Existing domain vs public-IP fallback
For a port-exposed managed service or webapp that can run without DNS, domain configuration is an enhancement, not an install dependency:
- If the deployment/app already has a canonical domain and its DNS/TLS route is configured, preserve and prefer that domain for browser/UI access. Never replace a working existing domain with a newly invented subdomain.
- If no domain is configured, do not block a healthy install solely for DNS. Keep the declared public port reachable on the server public IP when the app's security model allows it, and report
http://<public-ip>:<port>as the fallback. - When both exist, the domain is the primary UI/embedded origin; public IP is fallback/diagnostic only.
- Domain provider automation runs only for an explicit desired domain or an existing project domain that needs repair. Missing Hostinger/Cloudflare credentials must not cause an unrelated port-based runtime install to fail.
- Verify an existing-domain conflict against the intended host/service/port before treating it as a no-op. Do not delete or recreate a working route merely to make automation own it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

