/dokploy-dev:debug app-name-or-id|compose-idfrom dokploy-dev
Debug a failed or stuck Dokploy deployment with full decision-tree analysis
Ships in dokploy-dev. Installing the plugin adds it to Claude Code.
Run the full debug-deploy workflow against an application or compose stack — locate the failed run, read build logs, inspect container state, check Traefik, optionally AI-summarise, and recover.
Format: [app-name-or-id|compose-id] (optional)
applicationId or composeId and disambiguate by calling application-one first, falling back to compose-one.project-all to resolve.mcp__plugin_dokploy-dev_dokploy__deployment-allCentralized and mcp__plugin_dokploy-dev_dokploy__deployment-queueList, list the recent error / stuck deployments, and ask the user which to investigate.Parse from "$ARGUMENTS".
Read ${CLAUDE_PLUGIN_ROOT}/skills/debug-deploy/SKILL.md and follow every step in order. Do not skip.
Key checkpoints:
settings-health, checkInfrastructureHealth (returns postgres / traefik status), getDockerDiskUsage, and on v0.30+ the read-only host check docker-getServerHealth (disk, memory, inotify, network IP pools, daemon errors) plus docker-getEvents { minutes } for recent daemon activity. If any fail, fix server before deploy issue.deployment-all filtered by the resource ID. Save deploymentId.read-logs skill). Build failure → deployment-readLogs { deploymentId, tail }. Runtime crash → application-readLogs { applicationId, tail, since, search } for an app, or read every container of a compose stack: docker-getContainersByAppNameMatch { appName, appType: "docker-compose" } then compose-readLogs { composeId, containerId, tail, since, search } per container (or /dokploy-dev:compose-logs). Match against the build-failure pattern table.docker-getContainersByAppLabel { appName, type: "standalone" } for state/health. docker-getConfig for command/mounts/networks (its Env is [REDACTED] by default since @dokploy/mcp 0.30.0 — diagnose env problems from the logs, see the debug-deploy skill "Env and credentials"). Use docker-restartContainer / killContainer if wedged.application-readTraefikConfig, check port, network, listen address.killBuild / cancelDeployment / cleanQueues / deployment-removeDeployment / rollback-rollback. Confirm destructive ops with the user.ai-getEnabledProviders is non-empty, pass the log text from Step 2 to ai-analyzeLogs { aiId, logs, context: "build" | "runtime" } and present the result. Otherwise note that AI is not configured and continue manually.application-redeploy (or compose-redeploy), poll deployment-all until status: done, validate domains, hit the endpoint with curl.Report findings in this structure:
## Diagnosis: <appName / composeName>
**Failed deployment:** <deploymentId> (status: error, started: <timestamp>)
**Build log:** <logPath>
### Root cause
<one-paragraph plain-language explanation>
### Evidence
- <log excerpt 1>
- <container state observation>
- <traefik / domain observation if relevant>
### AI summary (if available)
<ai-analyzeLogs output, condensed>
### Recommended fix
<concrete action, with the exact MCP call(s) needed>
### Recovery commands
<list of MCP calls to apply the fix and redeploy>
After applying a fix, re-verify before declaring the issue resolved.
/dokploy-dev:debug
/dokploy-dev:debug web-frontend
/dokploy-dev:debug abc123-def456
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub agents-store/claude-plugins --plugin dokploy-dev14 commands in this plugin
/add-domainAdd DomainAdd a custom domain to a Dokploy application/analyzeAI-Analyse a FailureAI-summarise a failed Dokploy deployment or a crashing container via the configured ai provider/cleanupDokploy Server CleanupReclaim disk space on the Dokploy server with a guided cleanup chain/compose-logsRead All Compose Container LogsRead the logs of EVERY container in a Dokploy Docker Compose stack and highlight errors/create-appCreate ApplicationCreate a new application in a Dokploy project/create-dbCreate DatabaseCreate and deploy a database in a Dokploy projectOther plugins' commands for the same job