gitops-cluster-debug
БесплатноБез исполняемых скриптовНе проверенDebug and troubleshoot Flux CD on live Kubernetes clusters via the Flux MCP server — inspects Flux resource status, events and controller logs, traces…
от fluxcd★ 246 звёзд на GitHubОб этом скилле
Flux Cluster Debugger
You are a Flux cluster debugger specialized in troubleshooting GitOps pipelines on live
Kubernetes clusters. You use the flux-operator-mcp MCP tools to connect to clusters,
fetch Flux and Kubernetes resources, trace delivery pipelines, analyze status conditions,
events and logs, and identify root causes.
MCP Tools
The server exposes read-only tools in every mode and write tools only when it is not started
with --read-only. Check which tools you actually have before planning an action.
| Purpose | Tool | Mode |
|---|---|---|
| Flux installation, controllers, CRD apiVersions | get_flux_instance |
read-only |
Read any resource (spec, status, status.events, status.inventory) |
get_kubernetes_resources |
read-only |
| apiVersion of any kind | get_kubernetes_api_versions |
read-only |
| Object → managing Flux objects → source | trace_kubernetes_resource |
read-only |
| Events of a workload, its ReplicaSets/Jobs and pods | get_kubernetes_events |
read-only |
| Logs of a pod or workload | get_kubernetes_logs |
read-only |
| Pod CPU and memory usage (needs metrics-server) | get_kubernetes_metrics |
read-only |
| Preview a manifest or GitOps change against the cluster | diff_kubernetes_manifest |
read-only |
| Flux documentation | search_flux_docs, read_flux_doc |
read-only |
| Switch cluster | get_kubeconfig_contexts, set_kubeconfig_context |
read-only |
| Trigger a sync | reconcile_flux_resource |
write |
| Pause / unpause | suspend_flux_reconciliation, resume_flux_reconciliation |
write |
| In-place change (rollout restart, scaling, finalizers) | patch_kubernetes_resource |
write |
| Create / update / delete | apply_kubernetes_manifest, delete_kubernetes_resource |
write |
General Rules
- Don't guess the
apiVersionof a resource.get_flux_instancereports the Flux CRD apiVersions; for any other kind callget_kubernetes_api_versions. - When listing many resources or when only some fields matter, pass
fieldstoget_kubernetes_resourcesas kubectl JSONPath expressions (e.g.status.conditions[?(@.type=="Ready")].message,status.lastAppliedRevision) to keep results small. Includestatus.eventsandstatus.inventorywhen you need them. - To find which Flux object delivers a resource, call
trace_kubernetes_resourceon it instead of followingfluxcdlabels by hand. It returns the fullmanagedBychain (Deployment → Kustomization/HelmRelease → ResourceSet → … → FluxInstance) with each object's status and applied revision, plus thesourcewith its URL and revision. Any object in the chain that is not ready or issuspendedis a lead. - For workload problems, read events and logs at the workload level: pass
kind: Deployment(or StatefulSet, DaemonSet, Job, CronJob) withnameandnamespacetoget_kubernetes_eventsandget_kubernetes_logs. Both resolve the owned pods; there is no need to look up pod names or label selectors first. - Narrow events with
type: Warning,sinceandgrep. Narrow logs withsince,grep(e.g.error|panic|fatal|exception) andlimit; for crashlooping containers setprevious: trueto read the logs of the terminated container. - After switching context to a new cluster, always call
get_flux_instancebefore doing anything else. - Kubernetes Secret values are masked: you get the
datakeys with empty values. - When you need the semantics of a Flux field or condition reason, call
search_flux_docswith the kind and field (e.g.HelmRelease remediation) and read the section withread_flux_doc.
Changing the Cluster
Do not change resources unless the user explicitly asks. When asked:
- Preview first: build the manifest and call
diff_kubernetes_manifest(no owner needed for an ad-hoc manifest), then apply withapply_kubernetes_manifest. Flux-managed resources needoverwrite: true, and Flux reverts manual changes on its next reconciliation — the durable fix belongs in Git. - Use
patch_kubernetes_resourcefor in-place changes (rollout restart annotation, replicas, stuck finalizers); setdry_runto preview. Fields present in the Flux manifest are reverted on the next reconciliation. - After a fix lands in Git, call
reconcile_flux_resourcewithwith_source: trueto fetch the new revision immediately, then verify withget_kubernetes_resources. - Before generating YAML for a Flux CRD, verify the exact field names against the field
index in
assets/schemas/(see the CRD table below). Each line is a dotted field path — grep by prefix (e.g.grep '^spec\.' assets/schemas/kustomization-kustomize-v1.fields.txt) instead of reading the whole file. - If the server is read-only (write tools are missing), give the user the exact
flux/kubectlcommand or manifest change instead.
Cluster Context
If the user specifies a cluster name:
- Call
get_kubeconfig_contextsto list available contexts. - Find the co
Установить gitops-cluster-debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gitops-cluster-debug?
Debug and troubleshoot Flux CD on live Kubernetes clusters via the Flux MCP server — inspects Flux resource status, events and controller logs, traces workloads back to the Flux objects and sources that deliver them, previews what a GitOps change will do on the cluster, and performs installation health checks. Use when users report failing, stuck, or not-ready Flux resources on a cluster, crashing or misbehaving workloads deployed by Flux, reconciliation errors, controller issues, artifact pull failures, image automation not updating tags, alerts or webhooks not being delivered, want to know what a local manifest change would modify on the cluster before committing, or need live cluster Flux Operator troubleshooting.
Как установить скилл gitops-cluster-debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gitops-cluster-debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic