detect-environment
Classify the target cluster and check CLIs, version, sizing, LoadBalancer, and permissions before an evaluation. Use at the start of a session and after the…
от solo-io★ 21 звезда на GitHub
Установить detect-environment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Detect the environment
Run from the repo root:
./e2e/lib/detect-env.sh
It prints one key: value line per field and writes e2e/.work/env.json. Read that file and tell the user what it found.
Fields
class: the cluster type (for exampleeks,gke,aks,openshift,vind,kind). It selects which labs apply; pass it as--env <class>.server_version: the Kubernetes API server version.version_supported: whether that version is in the range the labs support.nullmeans the range could not be read, and the script prints a note; say the version was not checked.nodes: node count.cpu_allocatable,memory_allocatable: total allocatable CPU cores and memory in GiB.meets_sizing: whether those totals meet the POC sizing inlabs/installation/system-requirements.md.loadbalancer: whether a Service of type LoadBalancer received an address. The labs need one.skippedmeans the probe was not run (the teardown check passes--skip-lb-probe).existing_install: an Enterprise Agentgateway install already on the cluster. Empty means a clean cluster.identity: the Kubernetes identity running the session. The report records it.permissions:ok, or the list of missing permissions.clis: versions ofkubectl,helm,jq,python3,bash(the first on PATH, which must be 4 or later), andpyyaml, ormissing.namespaces: the namespaces that existed when detection ran.--uninstall-basecompares against its own record,e2e/.work/base-install.json, which--install-basewrites before it installs anything.detected_at: when detection ran.signals: the evidence behindclass. Entries likecan-i-unchecked:<label>mean a permission rule could not be checked yet because its CRD does not exist. That is expected on a fresh cluster.
Exit codes
- 0: the session can run. Summarize the fields above in a few sentences.
- 1: detection hit an error it cannot classify. Show the error. It is usually the cluster being unreachable, so ask the user to check their kubeconfig and context; when the error names something else (for example the LoadBalancer probe Service), say that instead.
- 2: the session must stop. Show the message. A missing CLI, missing PyYAML, a bash older than 4 first on PATH, an unsupported server version, or no LoadBalancer is the user's to fix. Missing permissions come with the instruction to run
kubectl apply -f rbac/evaluator.yaml, which needs an admin identity; point atrbac/README.md. Do not continue until a re-run exits 0.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл detect-environment?
Classify the target cluster and check CLIs, version, sizing, LoadBalancer, and permissions before an evaluation. Use at the start of a session and after the base install is removed.
Как установить скилл detect-environment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл detect-environment запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…