kubesphere-cluster-management
它能做什么
这个技能让 AI 智能体读取 KubeSphere 集群的信息。适合希望使用只读命令快速检查集群状态或版本的运维人员。
适用场景
- ✓当你想获取 KubeSphere 环境中的集群列表及其状态时。
- ✓当你需要某个集群的 KubeSphere 或 Kubernetes 版本时。
- ✓当你想检查某个集群是否显示为就绪状态时。
技能链接
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-cluster-management/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我列出我们的 KubeSphere 集群,告诉我哪些已就绪,以及它们运行的版本。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会运行只读的 kubectl 命令来列出集群并显示其详细信息。它会报告名称、连接类型、版本和就绪状态,并且不做任何更改。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
KubeSphere Cluster Query
⚠️ Security: Read-only only. Never use kubectl to create, update, or delete cluster resources. Use KubeSphere console instead.
When to Use
List or get KubeSphere cluster information: list clusters, get details, check status, identify host/member.
Commands
# List clusters
kubectl get cluster
# Get cluster details
kubectl get cluster <name> -o yaml
# Get cluster summary (name, connection type, version, status)
kubectl get cluster -o go-template='
{{printf "%-12s %-12s %-12s %-15s %-13s %-12s\n" "NAME" "CONN_TYPE" "KS_VERSION" "K8S_VERSION" "ClusterReady" "KSCORE_READY"}}
{{range .items}}{{printf "%-12s %-12s %-12s %-15s" .metadata.name .spec.connection.type .status.kubeSphereVersion .status.kubernetesVersion}}{{range .status.conditions}}{{if eq .type "Ready"}}{{printf "%-13s" .status}}{{end}}{{end}}{{range .status.conditions}}{{if eq .type "KSCoreReady"}}{{printf "%-12s" .status}}{{end}}{{end}}{{"\n"}}{{end}}'
Out of Scope
Cluster installation/upgrade/remove, any write operations. Use KubeSphere console.
常见问题
智能体能用这个技能创建或删除集群吗?
不能。该技能是只读的,并说明更改应通过 KubeSphere 控制台进行。
它会显示集群的哪些信息?
它会显示名称、连接类型、KubeSphere 版本、Kubernetes 版本和就绪状态。
它能安装集群吗?
不能。安装、升级或移除集群不在该技能的范围之内。
详情
作者的原始描述
KubeSphere cluster query Skill (read-only). Use when user requests to view cluster list, cluster status, cluster details, or cluster version info. Do not perform any write operations (create, delete, update). Use KubeSphere Console for management operations.
repo: kubesphere/kubesphere
热度
- GitHub 星标
- 17k
- 排名
- #10766
- 许可证
- —
- 更新时间
- 2026/7/14
评论
- …
同一仓库的更多技能
frontend-forge-fe-operations
17k帮你的智能体在 KubeSphere 中管理 FrontendExtension 资源,包括构建、发布和调试。
frontend-forge-fi-operations
17k帮你的智能体在 KubeSphere 中创建、更新、启用、禁用和检查 FrontendIntegration 资源及 frontend-forge 扩展。
frontend-integration-yaml
17k帮你的智能体为一个菜单及其一个或多个页面,创建可直接提交的 FrontendIntegration YAML。
kubeeye
17k帮你的智能体安装 KubeEye,设置集群巡检规则和计划,并阅读巡检报告。