openshift-api

仓库创建 2026年7月22日最近提交 8 天前SkillHot 收录 4 天前
这个 Skill 做什么

在对集群提交或审查 manifest 前,用它去发现并核验 Kubernetes/OpenShift 的 API 资源、served group‑versions、字段和 CRD schema,避免因为 apiVersion 或字段不匹配被拒绝。适合做 schema 驱动的诊断、选择 apiVersion/kind、或在调用通用 oc/MCP 操作前确认实时 API 行为。特点是读-only 的实时发现,要求显式单一上下文 kubeconfig,输出是真实集群的权威参考。

▸ 展开 SKILL.md 英文原文

Discover and verify Kubernetes and OpenShift API resources, served group versions, fields, and CRD schemas from the target cluster. Use before creating or reviewing manifests, choosing apiVersion/kind pairs, diagnosing rejected fields, or calling generic oc or MCP resource operations when the exact live API schema matters.

0
Stars
0
Forks
3
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/msilich/openshift-skill/main/.agents/skills/openshift-api/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/msilich/openshift-skill/main/.agents/skills/openshift-api/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# OpenShift API Discovery

Use read-only discovery against the intended cluster. Establish the expected cluster and context first, then pass the same explicit, single-context kubeconfig to every command as `oc --kubeconfig <path> ...`. Never switch context or rely on the ambient `oc` configuration. The command forms below omit that common prefix only for readability. Treat live cluster output as authoritative for what that cluster serves.

## Follow the fixed discovery order

1. Find the canonical resource name, group, kind, scope, and verbs:
   `oc api-resources -o wide`
2. Verify that the selected group/version is served:
   `oc api-versions`
3. Read the resource schema with an explicit ve
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有