/cpln:workload-troubleshootingfrom cpln
Diagnoses unhealthy Control Plane workloads by mapping symptoms (OOMKilled, ImagePullBackOff, 502s, health check failures) to platform-specific causes and fixes.
Ships in cpln. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Maps a symptom to its platform-specific cause and a fix the schema accepts. Diagnosis is read-only. Most failures trace to a Control Plane rule a generic engineer would not guess; the most common is OOMKilled.
mcp__cpln__diagnose_workload first: one call reads the deployments, events, and error log lines, matches them against this catalog, and returns the likely cause with its evidence. When it is not conclusive:
list_deployments, with location for one location in full detail.get_workload_events (needs ?toolsets=full) for event history past the 10 newest events diagnose_workload returns: image pulls, crashes, scheduling, probe failures, and OOMKilled.get_workload_logs; the _accesslog container holds HTTP status codes and latency.query_metrics, first without a query to list the metric names, for memory, CPU, and latency pressure.query_traces, then again with one trace's traceId, for a slow request; needs tracing on the GVC (metrics-observability skill).cpln skill).memory is a hard cap per container, sidecars included: app, runtime, GC, and buffers together. Usual culprits: Java without -Xmx, Node without --max-old-space-size, Python loading large datasets. Capacity AI can downsize a spiky workload too far; set minMemory as a floor.
Fix: measure with query_metrics, then raise memory, and raise cpu with it: memory in MiB stays within 8 times CPU in millicores, so the default 50m caps memory at 400Mi.
ImagePullBackOff, ErrImagePull)Check the reference form, the architecture (linux/amd64 on managed locations; BYOK allows more), and the pull secret: a private external registry needs a secret of type docker, ecr, or gcp in the GVC's pullSecretLinks, created with create_secret and values: "user", attached with update_gvc. Org //image/ images need none. Detail: image skill.
Empty env vars or secret errors in events mean the identity, reveal policy, or reference is missing or wrong. grant_workload_secret_access fixes the identity and policy in one call; reference formats per type: setup-secret skill.
PORT and rejects a PORT env var that differs from the exposed port.Fix with update_workload: external.inboundAllowCIDR for inbound, external.outboundAllowCIDR or outboundAllowHostname for outbound (hostname rules reach only ports 80, 443, and 445), and internal.inboundAllowType or allow_workload_access for other workloads. Detail: firewall-networking skill.
Serverless gets TCP readiness and liveness on the container port; standard, stateful, and cron get none. For a slow start raise initialDelaySeconds (0 to 600); for an over-eager probe raise periodSeconds (1 to 600) or timeoutSeconds (1 to 600, default 1); an HTTP path must return 200 to 399. A readiness failure takes the replica out of rotation and pauses the rollout; a liveness failure restarts it. An autoscaled workload without a real readiness probe takes traffic before it is ready and returns 502 on scale-up: add an httpGet readiness probe. Detail: workload-security skill.
maxScale times the per-replica resources is enforced at scheduling. A quota error names its quota (a workload's total CPU or memory error means cpu-per-workload or memory-per-workload); request_quota_increase asks for a higher max when the user wants one.cpu metric or multi-metric scaling; check the stored spec.defaultOptions.capacityAI first. On cron a new reservation lands at the next run.defaultOptions and in every localOptions entry: minCpu to cpu at most 4 to 1 and 4000m apart; minMemory to memory at most 4 to 1 and 4096Mi apart.runAsUser to another UID from 1 to 65534; root is rejected.istio-proxy, queue-proxy, istio-validation, and any starting with cpln- or debugger-.CPLN_, and K_SERVICE, K_CONFIGURATION, K_REVISION, are rejected; each value is at most 4096 characters.spec.defaultOptions.suspend: true stops the workload: clear it, or cpln workload start WORKLOAD --gvc GVC.Serverless has no latency or multi-metric scaling; standard and stateful have no concurrency; cron has no autoscaling. Scale to zero: serverless with rps or concurrency; standard and stateful only with metric: keda; never cron. 502 on scale-up is the readiness probe above. Detail: autoscaling-capacity skill.
sleep is missing from any container, every container is killed at once with no drain; distroless images often lack it (which sleep). Add sleep or a custom preStop.preStop in any container kills all of them.sleep 45) the container gets SIGTERM, then SIGKILL once terminationGracePeriodSeconds (default 90; at most 900 without the cpln/relaxGracePeriodMax tag) elapses. An app that ignores SIGTERM drops requests.Sequence and rollout options: workload-security skill.
reveal policy.*.amazonaws.com, *.googleapis.com, *.blob.core.windows.net, *.file.core.windows.net, *.azure.com). Only identity auth works; embedded keys do not. Read-only except Azure Files.filesystemGroupId defaults to 0 (root) when unset: set it from 1 to 65534 for a non-root app.Volume sets: stateful-storage skill.
allow_workload_access); listing a workload needs view on it.http://WORKLOAD.GVC.cpln.local:PORT over plain HTTP. An omitted port means the target's first container port; only listed ports are reachable.Host (the custom domain arrives in X-Forwarded-Host); standard and stateful receive the custom domain.Detail: domain and ipset-load-balancing skills.
A fix the validator rejects wastes a round trip. Before a resource or option change, check:
minCpu and minMemory never above cpu and memory.runAsUser and filesystemGroupId from 1 to 65534.terminationGracePeriodSeconds at most 900, unless the cpln/relaxGracePeriodMax tag is set.capacityAI is rejected with metric: cpu and with a GPU container.minScale: 0 needs metric: keda; cron and vm cannot scale to zero.A restart without a spec change (fresh secret values, wedged replicas) is restart_workload. After a fix, diagnose_workload confirms the symptom cleared.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub controlplane-com/ai-plugin --plugin cpln32 skills in this plugin
/access-controlPrimary skill for access control, policies, and RBAC on Control Plane. Use when the user asks about permissions, policies, service accounts, user access, group membership, bindings, who can do what, least-privilege, or IAM./audit-complianceAudit trail and compliance on Control Plane. Use when the user asks about audit logs, who changed what, change tracking, audit contexts, writing custom audit events, security monitoring, SOC 2, HIPAA, or PCI compliance./autoscaling-capacityWorkload autoscaling and Capacity AI on Control Plane. Use when the user asks about scaling up/down, min/max replicas, scale-to-zero, concurrency/RPS/CPU/memory/latency scaling, KEDA, event-driven scaling, or right-sizing./cdn-rate-limitingCDN caching and request rate limiting for Control Plane workloads. Use when the user asks about CDN, Cloudflare, CloudFront, edge caching, rate limiting, request throttling, per-key or per-route limits, or DDoS protection./cplnWrites cpln CLI commands and workflows for Control Plane. Use when the user asks about cpln login, cpln apply, cpln workload, CLI or CI/CD deploys, container debugging with cpln exec/logs, or any cpln resource command./create-appWrites, builds, and deploys an app the user asks for in the chat, with no repository and no image yet. Use when the user asks to create, generate, write, vibe-code, prototype, or scaffold an app, API, site, bot, game, or service and run it on Control Plane, or to change an app made this way.Other plugins' skills for the same job