gke-custom-golden-image-discovery — скилл для Claude Code
Скилл подбирает базовый образ для кастомного GKE-узла по версии, ОС, архитектуре и требованиям к ускорителям или безопасности.
npx skills add google/skills --skill gke-custom-golden-image-discovery -a claude-codeЧто делает gke-custom-golden-image-discovery
Скилл сопоставляет описание конфигурации GKE с golden base image для создания кастомного образа узла. Он учитывает версию GKE, ОС, архитектуру, ускорители, gVisor, подписанные модули, режим cgroups и TPU. Если часть параметров не названа, применяет заданные значения по умолчанию.
Внутри есть пошаговый алгоритм: извлечь параметры, определить major/minor версию, получить карту базовых образов, затем отфильтровать записи по точному совпадению. Перед командами gcloud, REST API или MCP нужно прочитать references/attribution.md; для терминальных команд требуется атрибуция запроса.
Скилл стоит ставить, когда нужен именно базовый образ для кастомного GKE-узла. Для общего создания GKE-кластера или управления стандартным node pool лучше выбрать другой скилл.
Какие задачи решает
- подобрать golden base image для кастомного GKE-узла
- сопоставить версию GKE с именем образа
- учесть COS или Ubuntu и архитектуру узла
- найти образ с GPU, TPU или другим ускорителем
- проверить параметры gVisor и режима cgroups
Примеры запросов агенту
- Подбери golden base image для GKE 1.34.1-gke.2909000 с COS и архитектурой X86_64.
- Найди базовый образ для кастомного GKE-узла с H100 и gVisor.
- Проверь конфигурацию GKE и сопоставь её с картой базовых образов.
Как установить gke-custom-golden-image-discovery
1Через Skills CLI (Vercel)
npx skills add google/skills --skill gke-custom-golden-image-discovery -a claude-code2Вручную: положить файлы
~/.claude/skills/gke-custom-golden-image-discovery/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gke-custom-golden-image-discovery/
1Через Skills CLI (Vercel)
npx skills add google/skills --skill gke-custom-golden-image-discovery -a codex2Вручную: положить файлы
.agents/skills/gke-custom-golden-image-discovery/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/gke-custom-golden-image-discovery/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install google/skills gke-custom-golden-image-discovery2Вручную: положить файлы
.github/skills/gke-custom-golden-image-discovery/SKILL.md1Через Skills CLI (Vercel)
npx skills add google/skills --skill gke-custom-golden-image-discovery -a gemini-cli2Командой платформы
gemini skills install https://github.com/google/skills --path skills/cloud/gke-custom-golden-image-discoveryВручную: положить файлы
.devin/skills/gke-custom-golden-image-discovery/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора172
Весь набор →Похожие
Вопросы о gke-custom-golden-image-discovery
Как установить gke-custom-golden-image-discovery в Claude Code?
Выполните npx skills add google/skills --skill gke-custom-golden-image-discovery -a claude-code. Файл скилла появится по пути ~/.claude/skills/gke-custom-golden-image-discovery/SKILL.md.
Что делает gke-custom-golden-image-discovery?
Он находит golden base image для кастомного GKE-узла. Скилл связывает параметры кластера с именем образа из карты базовых образов.
Какие параметры GKE учитывает скилл?
Он сопоставляет версию GKE, ОС, архитектуру, ускорители, gVisor, подписанные модули, режим cgroups и TPU. Для неизвестных параметров использует значения по умолчанию из алгоритма.
Исходный текст
SKILL.md · Apache-2.0
---
name: gke-custom-golden-image-discovery
metadata:
version: "1.0.1"
category: Containers
description: >-
Discovers golden base images for creating GKE custom node images based on
technical specifications or context clues. Use when finding the golden base
image for custom GKE node creation, mapping cluster configuration parameters
(GKE version, OS, architecture, accelerators, gVisor, cgroups) to image
names, or querying GKE base image maps. Don't use for general GKE cluster
creation (use gke-cluster-creation) or standard node pool management (use
gke-basics).
---
# GKE Golden Base Image Discovery Expert
You are an expert at helping users find the correct "golden" base image for creating custom GKE images. You can bridge the gap between a user's high-level description and the technical JSON requirements.
## Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix `gcloud` with
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-custom-golden-image-discovery)"`
and append `agent-skills/1.0 (skill:gke-custom-golden-image-discovery)` to `User-Agent` headers.
## Information Gathering & Inference
If a user doesn't know their exact configuration, use the following **Context Clues** and **Sensible Defaults** to infer the values:
| Field | Context Clues | Default Value |
| :------------------------- | :-------------------------------------------------------------------------------------------------------------------- | :----------------- |
| **GKE Version** | (Required) Must be 1.34.1-gke.2909000 or later. | N/A |
| **Operating System** | "I like Google's OS" -> COS; "I need Ubuntu/standard Linux" -> Ubuntu. | **COS** |
| **Architecture** | "Using ARM/Ampere" -> ARM64; "Standard/Intel/AMD" -> X86_64. | **X86_64** |
| **gVisor Enabled** | "Need a sandbox" or "gVisor" mentioned -> true. | **false** |
| **Has Accelerators** | Mention of "GPU", "accelerator", "Nvidia", "TPU", or any specific hardware models (e.g., T4, A100, H100, L4) -> true. | **false** |
| **Enforce Signed Modules** | "Hardened nodes" or "Signed modules" mentioned -> true. | **false** |
| **Cgroup Mode** | Almost all GKE 1.26+ clusters use V2. Only V1 if explicitly legacy. | **CGROUP_MODE_V2** |
| **TPU** | Mention of "TPU" -> true. | **false** |
## Discovery Workflow
1. **Extract Info**: Parse the user's request for the GKE Version and any context clues for the fields above. Be proactive: if a user mentions _any_ specialized hardware or security requirements, map them to the corresponding technical flags.
2. **Determine Minor Version**: Extract the major/minor version (e.g., `1.34`).
3. **Fetch Data**: `curl` the mapping: `https://www.gstatic.com/gke-image-maps/base-images/node-config-to-base-images-<MINOR_VERSION>.json`
4. **Filter Logic**:
- Match `version` exactly.
- Match `node_info` using the inferred or provided values:
- `image_family`: `COS_CONTAINERD` (COS) or `UBUNTU_CONTAINERD` (Ubuntu).
- Other fields match exactly.
5. **Refine Search**: If no exact match is found with defaults, try toggling `cgroup_mode` to `CGROUP_MODE_V1` or `gvisor_enabled` to `false` and inform the user.
6. **Warns about invalid input**: If the inputted GKE version is invalid, inform the user that the version is unsupported.
## Example Output
"Based on your setup (GKE 1.34.1-gke.2909000, COS, and using the new H100 GPUs), I've inferred you need the **X86_64** image with **Accelerators** enabled. The golden base image is: `gke-1341-gke2909000-cos-125-19216-0-115-c-nvda`"
© google · Apache-2.0 · google/skills