external-dependencies
Following a failure out of the workload — a Service with no selector or of type ExternalName, a URL or IP in the workload's env, an address of another cluster…
от clm-cloud-solutions★ 20 звёзд на GitHub
Установить external-dependencies в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Do not infer "missing workload" from a zero pod count. Before concluding a workload is absent because a namespace has 0 pods / 0 Deployments, inspect the Service that fronts it. A selectorless Service (no .spec.selector) backed by manual Endpoints / EndpointSlice, or a Service of type ExternalName, is a deliberate external dependency — a database, cache, or API running outside the cluster. The fix for an unreachable external dependency is to restore or repair that external endpoint (the host it points at, the network path, credentials). It is NEVER to deploy an in-cluster workload to "replace" it, nor to rewrite the Service to use a selector — that would silently abandon the real backing store. When a service-no-endpoints situation involves a selectorless Service, say "the external endpoint X is unreachable", not "the selector matches no pods".
Identify any IP before you reason about it — never guess that an address is a node. To call an Endpoints / EndpointSlice address a node IP, you MUST have listed nodes (list_resources type=nodes) THIS turn and matched the address to a node's InternalIP — do not name a node from memory or inference. An address that is neither a listed node's InternalIP nor inside a pod CIDR is an external target; name it as external. Contradiction guard: a node you can read through the API is, by definition, reachable by the control plane — so if a connectivity probe reports a "node" as entirely unreachable on every port, your IP labeling is wrong, not the cluster network. Evidence hierarchy: endpoint / Service / readiness evidence outweighs a single connectivity probe to a possibly-misidentified target; when a one-off probe (e.g. nc) seems to contradict a root cause you already established from endpoints and logs, re-verify the probe's target before overturning the conclusion — a probe to a stopped external host returns "unreachable" on every port, which confirms the dependency is down, it does NOT indicate a cluster networking fault.
When there is no Service fronting the dependency at all, it may be wired as a raw URL/IP in the failing workload's own config (an env var or arg, e.g. ORDERS_URL=http://1.2.3.4:8080, or a hostname). There is no Service or Endpoints to inspect and the namespace legitimately has 0 of that workload — do NOT conclude it is missing and must be created. Read the failing workload's YAML (get_resource_yaml), find the dependency target in its env/args, and classify that target the same way: an IP that is neither a listed node's InternalIP (list_resources type=nodes) nor inside a node's pod CIDR is external; a hostname in the cluster domain (.svc.cluster.local) names a Service: in-cluster unless that Service is ExternalName or selectorless, so read it before you classify the target (get_external_connections follows it when the flows do not already show the dependency); any other FQDN is external. A dependency's locality is decided by its address, not by whether a Service fronts it — an external URL in an env var is a deliberate external dependency, same as a selectorless Service, and the fix is to restore/repoint that endpoint, never to create a workload in this cluster. To call an IP in-cluster you MUST call list_resources(type=nodes) and match the target EXACTLY to a node's InternalIP — being in the same private/docker subnet as a node (another 172.x address, or a NodePort target you have not confirmed belongs to THIS cluster's node) does NOT make it that node. If the target IP is not an exact InternalIP of a listed node and not inside a listed node's spec.podCIDR, it is external; when unsure, external.
An external address may belong to another cluster of this organization. When get_external_connections gives a destination or dependency host an inFleet that names another cluster, that address is a Service, Ingress or Gateway there: do not call it unattributable. When the failing calls go to it (errors, timeouts, 5xx or drops toward that address), the failure is that workload's — offer the switch with offer_cluster_switch to its inFleet.clusterContext, with a question that names what to investigate there, since the other cluster does not run the caller: the operator's words first, then the symptom, the caller and the cluster it runs in, and every workload there the symptom may come from, as namespace/name from their inFleet rows. In established, put the evidence: what you measured and the addresses called. An inFleet with sameCluster true is a workload of this cluster reached through its own external address: follow it here.
Connection failures — diagnose down the dependency graph before blaming the network. When a flow fails with a connection error (connection refused, host unreachable, EPERM / "operation not permitted", timeout) or an upstream 5xx, diagnose down the Kubernetes dependency graph before invoking any network-layer cause:
- Destination Service endpoints first. Does the target Service have ready
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл external-dependencies?
Following a failure out of the workload — a Service with no selector or of type ExternalName, a URL or IP in the workload's env, an address of another cluster of the organization, a managed cloud service behind it. Load it before you call a dependency missing, external or the cause, before you blame the network for a connection failure, and before your first cloud connector call.
Как установить скилл external-dependencies?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл external-dependencies запускает скрипты?
Нет, скилл состоит только из инструкций (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…