remediation
Choosing what to propose once the cause is known — which propose_* verb fits the symptom and when none does, presenting the range of options from least to…
от clm-cloud-solutions★ 20 звёзд на GitHub
Установить remediation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Available proposal tools:
- propose_restart_workload — rollout restart for Deployment / StatefulSet / DaemonSet
- propose_debug_pod — attach an ephemeral debug container to a running Pod (kubectl debug). For triage when the container is distroless / has no shell, or you need tools (curl, ps, netstat) inside the pod. Persists until the pod is recreated. Prefer a non-interactive command: pass a single read-only diagnostic (e.g. "dig +short shop-db.shop-data; nc -zv shop-db.shop-data 5432; echo exit=$?") so the container runs it, exits, and leaves the output in its logs — which you can then read back with get_pod_logs (container = the debug container's name from the result). Only OMIT the command when the operator must drive the Terminal tab themselves; if you do, say so explicitly — you cannot run interactive shells, and a command-less debug container produces no output you can read. The command must be read-only diagnostics (dig, nc -z, curl, cat, ps), never a mutation.
- propose_scale_workload — scale Deployment or StatefulSet to N replicas (0 to pause)
- propose_rollback_deployment — revert a Deployment to a previous revision (kubectl rollout undo). Always call get_workload_history first; this only works when the deployment has >= 2 revisions.
- propose_set_resources — update container CPU/memory requests and/or limits on Deployment/StatefulSet/DaemonSet. Always call get_resource_detail (current spec) AND get_workload_metrics (trend + utilizationPercent over at least 15m) BEFORE proposing. The patched values must be grounded in summary.max and utilizationPercent, not guesses. Triggers a rolling update.
- propose_set_image — update one or more container images on Deployment/StatefulSet/DaemonSet. PREFER propose_rollback_deployment first when the previous revision was healthy. Triggers a rolling update.
- propose_set_env — add/update/remove environment variables on Deployment/StatefulSet/DaemonSet. Literal values only — credential-shaped names (password/secret/token/key/credential) are refused server-side; bind those via Secret refs in the YAML editor instead. Triggers a rolling update.
- propose_patch_hpa — update minReplicas and/or maxReplicas on an HPA. Server-side cap: maxReplicas <= 1000. Does NOT trigger a rolling update — only changes scaling math.
- propose_delete_resource — DESTRUCTIVE, IRREVERSIBLE. Delete a resource from the whitelist (deployments, statefulsets, daemonsets, services, configmaps, secrets, jobs, cronjobs, pods, ingresses, hpas). Default risk=high; the card requires typing the resource's namespace/name to confirm. Only propose when the operator EXPLICITLY asks to delete something, OR when a resource is clearly orphaned/zombie AND the operator has confirmed it is no longer needed. Never propose delete as a default remediation — restart, scale, and rollback are almost always better. The tool returns a computed blast radius (owned pods, affected services, orphaned HPAs, used-by pods, ingress backends) — read it and explicitly summarize the consequences in your text response so the operator knows what they are accepting before they confirm.
Remediation matrix — pick the right tool for the symptom. When an insight rule or a clear symptom maps cleanly to one of the propose_* tools, prefer that tool over generic restart. Restart treats only transient causes; for shape problems (memory limit, image tag, env config, HPA bound) restart just replays the same crash.
- OOMKilled → propose_set_resources to raise the memory limit. Restart alone is NOT a fix — same crash on the next pod.
- CPU throttling (cpuThrottleRiskRule) → propose_set_resources to raise CPU limit and/or request.
- Memory pressure near limit (memoryPressureRule) → propose_set_resources to raise the memory limit.
- Under-requested workload (resourceUnderrequestRule) → propose_set_resources to raise requests in line with observed steady-state usage.
- Frequent restarts caused by resource starvation (visible in the per-container resources + recent OOMKill / throttling) → propose_set_resources.
- ImagePullBackOff / ErrImagePull WITH a known-good prior image → propose_rollback_deployment first; it's strictly safer (reverts the entire pod template, not just the image).
- ImagePullBackOff with no good prior image, OR operator explicitly provides a new tag → propose_set_image.
- Crash-loop whose root cause is env-config (logs literally say "missing env X", "invalid LOG_LEVEL=foo", "panic: DATABASE_URL not set") → propose_set_env (literal values only — never put credentials in a literal value).
- HPA pinned at maxReplicas with sustained pressure (hpaMaxedOutRule) → propose_patch_hpa raising maxReplicas. Lowering minReplicas as a response to a max-pinned HPA is the WRONG direction.
- Zero replicas (zeroReplicasRule) → propose_scale_workload to N>0.
- Evicted pods piling up (evictedPodsRule) → propose_delete_resource for the terminal pods (they're already done; deletion just cleans up).
- NodeNotReady (nodeNotReadyRule) → DO NOT
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл remediation?
Choosing what to propose once the cause is known — which propose_* verb fits the symptom and when none does, presenting the range of options from least to most impact, what a delete's blast radius must say, and the risk level of the card. Load it before your first proposal in a conversation.
Как установить скилл remediation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл remediation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…