К основному содержанию
скилл CX Codex

huawei-cloud-kubectl-cce-installer — скилл для Claude Code

Скилл huawei-cloud-kubectl-cce-installer для Claude Code запрашивает ресурсы Kubernetes в кластерах Huawei Cloud CCE через kubectl cce. Он также проверяет и устанавливает локальные компоненты, если их не хватает.

MIT 141 установок ★ 59 обновлён 2026-11-12

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code
Открыть на GitHub

Что делает huawei-cloud-kubectl-cce-installer

Скилл получает сведения о Pod, Deployment, Service, ConfigMap, узлах и других ресурсах CCE с помощью kubectl cce. Запросы только читают данные: доступны get, describe и logs.

Перед обращением к кластеру нужны его UUID и регион. Для ресурса в пространстве имён указывают --namespace и, когда возможно, точное имя; для ресурса уровня кластера требуется точное имя. Широкие запросы по всему кластеру запрещены. Установка kubectl или kubectl-cce требует предварительного показа плана и явного подтверждения: без него скилл не запускает установщик с --execute.

Какие задачи решает

  • получить сведения о конкретном Pod в кластере CCE
  • описать Deployment в заданном пространстве имён
  • посмотреть конфигурацию Service или ConfigMap
  • проверить локальные kubectl и kubectl-cce
  • подготовить установку недостающих компонентов после подтверждения

Примеры запросов агенту

  • Покажи YAML для Pod api-7d9c в пространстве имён production кластера CCE.
  • Опиши Deployment web в пространстве имён staging и укажи его состояние.
  • Проверь, установлены ли локально kubectl и kubectl-cce, и покажи план установки недостающего компонента.

Как установить huawei-cloud-kubectl-cce-installer

1Через Skills CLI (Vercel)

npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code

2Вручную: положить файлы

~/.claude/skills/huawei-cloud-kubectl-cce-installer/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/huawei-cloud-kubectl-cce-installer/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о huawei-cloud-kubectl-cce-installer

Как установить huawei-cloud-kubectl-cce-installer в Claude Code?

Выполните npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code. Файл скилла появится по пути ~/.claude/skills/huawei-cloud-kubectl-cce-installer/SKILL.md.

Что делает huawei-cloud-kubectl-cce-installer?

Скилл запрашивает конкретные ресурсы Kubernetes в Huawei Cloud CCE через kubectl cce. Он также проверяет локальные зависимости и помогает установить отсутствующие после подтверждения.

Какие данные нужны для запроса к кластеру CCE?

Нужны UUID кластера, регион и тип ресурса. Для ресурса в пространстве имён укажите пространство имён; для ресурса уровня кластера требуется точное имя.

Исходный текст

SKILL.md · MIT
---
name: huawei-cloud-kubectl-cce-installer
description: >
  Query specific Kubernetes resources in Huawei Cloud CCE clusters through kubectl cce. Trigger when users ask to get, describe, inspect, or view a Pod,
  workload, Service, ConfigMap, node, namespace, or other CCE Kubernetes resource, or when they ask to install or repair the local kubectl-cce
  prerequisites. Install kubectl and kubectl-cce only when they are missing locally.
tags: [kubectl, kubectl-cce, cce, kubernetes, resource-query]
version: 1.0.0
---

# Huawei Cloud CCE Kubectl Resource Query

Use this skill to retrieve specific CCE Kubernetes resources through `kubectl cce`. Resource access is the primary task. Local installation is only a
prerequisite recovery step when `kubectl` or the `kubectl-cce` plugin is unavailable.

## Overview And Safety

- Use `kubectl cce`; do not use a direct Kubernetes API client.
- Read-only commands only: `get`, `describe`, and `logs`.
- Never use `-A`, `--all-namespaces`, or another whole-cluster resource query.
- For namespaced resources, require `--namespace <namespace>` and, where feasible, a specific resource name.
- For cluster-scoped resources such as `node`, `namespace`, `persistentvolume`, and `storageclass`, require an exact resource name. Do not list every
  instance.
- Never run `apply`, `create`, `delete`, `edit`, `patch`, `replace`, `scale`, `rollout`, `cordon`, `drain`, or `exec`.
- Do not print credentials, tokens, kubeconfig content, or Secret data.

## Prerequisites And Required Context

| Input | Requirement |
| --- | --- |
| `cluster_id` | Required standard UUID. An exact name may be resolved with `hcloud CCE ListClusters`, but never run `kubectl cce` until it resolves to one UUID. |
| `region` | Required. Obtain it from the request or current context, then `HW_REGION_NAME`; otherwise ask the user. |
| Resource kind | Required, for example `pod`, `deployment`, `service`, `configmap`, or `node`. |
| Namespace or exact name | At least one is required. Namespaced resources require a namespace; cluster-scoped resources require an exact name. |

Credentials follow the plugin rules in [plugin-usage.md](references/plugin-usage.md). Use explicit `--cli-access-key`, `--cli-secret-key`, and optional
`--cli-security-token` only when the caller supplies them. Do not fall back to other credentials in that case.

## Workflow

1. Before any resource query, validate the target region and cluster ID. If either is missing, or the cluster ID cannot be resolved to one existing UUID in that
   region, do not run `kubectl cce`; ask the user to provide the correct region and cluster ID.
2. Confirm the resource kind, namespace, and exact resource name when required.
3. Check local prerequisites:

   ```bash
   bash scripts/install_kubectl_cce.sh --check
   ```

4. When both `kubectl` and `kubectl-cce` are available, query the requested resource.
5. When either executable is missing, read [installation.md](references/installation.md), then show the installer plan. Installation or replacement is an R1
   local change and requires explicit confirmation:

   ```bash
   bash scripts/install_kubectl_cce.sh --bin-dir <directory>
   sudo bash scripts/install_kubectl_cce.sh --execute --bin-dir <directory>
   ```

6. Verify installation with `kubectl version --client` and `kubectl plugin list`, then run only the requested read-only resource query.

## Core Commands

Use one explicit namespace per namespaced query:

```bash
kubectl cce --cluster-id <cluster-id> --region <region> \
  get pod <pod-name> --namespace <namespace> -o yaml

kubectl cce --cluster-id <cluster-id> --region <region> \
  describe deployment <deployment-name> --namespace <namespace>

kubectl cce --cluster-id <cluster-id> --region <region> \
  get service <service-name> --namespace <namespace> -o yaml
```

For a cluster-scoped resource, use an exact name:

```bash
kubectl cce --cluster-id <cluster-id> --region <region> \
  get node <node-name> -o yaml
```

For credential modes, command forms, and x509 retry behavior, read [plugin-usage.md](references/plugin-usage.md). For Windows usage and installation
fallbacks, read [installation.md](references/installation.md). If a command fails with an x509 upstream TLS validation error, retry that same command once
with `--cce-insecure-upstream-tls=true` immediately after `cce`.

## Risk Levels

| Operation | Level | Guidance |
| --- | --- | --- |
| Resource query and local prerequisite check | R3 | May run automatically. |
| Local binary installation, source build, or plugin replacement | R1 | Preview first and require explicit confirmation before `--execute`. |

## IAM Permissions

The installer does not call any Huawei Cloud OpenAPI and needs no IAM permissions or Huawei Cloud credentials. Only local directory write permission and
outbound network reachability to the public download sources are required. See [iam-policies.md](references/iam-policies.md) for the equivalent access
controls.

## Output Format

Return the cluster ID, region, resource kind, namespace when applicable, resource name, and requested status or fields. State clearly whether the resource is
not found, access is denied, prerequisites are missing, or an installation confirmation is needed.

## Parameters And Confirmation

Confirm `cluster_id`, `region`, resource kind, namespace, and exact resource name before issuing a query. If `cluster_id` is missing or cannot be resolved in
the supplied region, stop and ask the user for the correct region and cluster ID. Confirm the target installation directory before any `--execute` action.

## Verification

After installation, run `kubectl version --client` and `kubectl plugin list`; after a query, verify that the returned resource identity matches the requested cluster, namespace, and name.

## Best Practices

Use the narrowest requested resource query and avoid broad list operations even when the caller can access the whole cluster.

## Notes

When the requested resource cannot be scoped to a namespace or exact name, ask the user to narrow the target instead of expanding to a cluster-wide query.

## References

| Document | Use |
| --- | --- |
| [Plugin Usage](references/plugin-usage.md) | Credentials, command forms, and x509 retry. |
| [Installation](references/installation.md) | Local prerequisites, installer parameters, Windows usage, source fallback, confirmation, and troubleshooting. |
| [IAM Policies](references/iam-policies.md) | No IAM permissions required; equivalent local and network access controls. |
| [Acceptance Criteria](references/acceptance-criteria.md) | Resource-query and installation acceptance checks. |

© huaweicloud · MIT · huaweicloud/huaweicloud-skills

Похожие скиллы

Все скиллы по теме «DevOps и инфраструктура» →
Kubectl rohitg00 MCP-сервер Kubectl для управления кластерами Kubernetes через диалог с ИИ. Помогает разбирать сбои подов, проверять RBAC и распределять ресурсы. CX Codex +1 agent-install datadog-labs Скилл agent-install разворачивает Datadog Agent в кластере Kubernetes через Datadog Operator. Готовит кластер к включению Single Step Instrumentation без правок в коде приложений. CX Codex +1 477установок kubernetes-ops devops-skills Скилл kubernetes-ops для работы с кластером Kubernetes: манифесты деплойментов, сервисов и ингрессов, масштабирование и разбор упавших подов. CX Codex +1 454установок tencentcloud-tke acedatacloud Скилл tencentcloud-tke для Claude Code управляет кластерами Tencent Kubernetes Engine и нагрузками через SDK и kubectl. Перезапускает деплои и масштабирует поды. CX Codex +1 217установок agent-kubernetes-specialist Tony363 Скилл agent-kubernetes-specialist помогает проектировать и сопровождать Kubernetes-кластеры: от развёртывания рабочих нагрузок до настройки безопасности и производительности. CX Codex +1 101установок k8s-backup rohitg00 Скилл k8s-backup управляет резервным копированием и восстановлением кластеров Kubernetes через Velero и MCP-сервер kubectl. CX Codex +1 1установок

Из того же набора80

Весь набор →
huawei-cloud-ecs-sqlbot-deploy Скилл huawei-cloud-ecs-sqlbot-deploy создаёт X-инстанс на Huawei Cloud и разворачивает SQLBot — приложение для умных SQL-запросов. За один проход: сервер, группы безопасности, деплой через COC. CX Codex +1 149установок huawei-cloud-rds-smart-service Скилл huawei-cloud-rds-smart-service для Claude Code разбирает медленные SQL-запросы и выполняет повседневные операции с Huawei Cloud RDS. Диагностирует экземпляры и работает с резервными копиями. CX Codex +1 147установок huawei-cloud-doris-sql-check Скилл huawei-cloud-doris-sql-check проверяет SQL для Apache Doris в двух режимах: синтаксис и правила разработки. Пригодится перед запуском DDL или LOAD на кластере. CX Codex +1 144установок huawei-cloud-flexus-l-server-flexusagent-deployment Скилл huawei-cloud-flexus-l-server-flexusagent-deployment для Claude Code разворачивает Dify на Huawei Cloud Flexus L. Срабатывает на deploy flexusagent, change password и add maas provider. CX Codex +1 143установок huawei-cloud-icp-rule-consult Скилл huawei-cloud-icp-rule-consult консультирует по правилам некоммерческой регистрации ICP в Huawei Cloud. Помогает проверить требования к сайтам и приложениям до запуска серверов в материковом Китае. CX Codex +1 140установок huawei-cloud-modelarts-notebook-management Скилл huawei-cloud-modelarts-notebook-management управляет блокнотами Huawei Cloud ModelArts через CLI hcloud. Помогает запускать, останавливать, переконфигурировать инстансы и подключать хранилища прямо в чате с агентом. CX Codex +1 132установок huawei-cloud-mrs-hive-sql-check Скилл huawei-cloud-mrs-hive-sql-check проверяет Hive SQL на синтаксис, соответствие правилам и риски перехвата тяжёлых запросов. Пригодится перед запуском SQL в кластере Huawei Cloud MRS. CX Codex +1 132установок huawei-cloud-modelarts-training-diagnosis Скилл huawei-cloud-modelarts-training-diagnosis разбирает сбои, тайм-ауты и зависшие задания обучения в Huawei Cloud ModelArts. Он собирает сведения через hcloud и предлагает диагноз с оценкой уверенности. CX Codex +1 129установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой