k8s-capi

k8s-capi is a skill for Claude Code, Codex from rohitg00/kubectl-mcp-server. It costs 31 tokens per session (1,521 once invoked), scanned A, original, MIT.

A guide for using Cluster API, a Kubernetes project that creates and manages clusters, to provision, scale, and upgrade clusters. It also covers checking cluster and machine status and retrieving access credentials.

In plain words
What is it for?
Use it to create workload clusters, list and inspect clusters, scale worker machines, upgrade Kubernetes versions, and retrieve a cluster's kubeconfig.
Why use it?
It provides an ordered way to inspect the cluster before changing infrastructure and to monitor machines during scaling or upgrades.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create workload clusters, list and inspect clusters, scale worker machines, upgrade Kubernetes versions, and retrieve a cluster's kubeconfig.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohitg00/kubectl-mcp-server/k8s-capi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rohitg00/kubectl-mcp-server --skill k8s-capi
Clone the repo
git clone --depth 1 https://github.com/rohitg00/kubectl-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-capi

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohitg00/kubectl-mcp-server/k8s-capi/github.svg)](https://agentmods.dev/skills/rohitg00/kubectl-mcp-server/k8s-capi)
Your own site
<a href="https://agentmods.dev/skills/rohitg00/kubectl-mcp-server/k8s-capi"><img src="https://agentmods.dev/badge/skills/rohitg00/kubectl-mcp-server/k8s-capi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-capi

Your own site · 80×15
<a href="https://agentmods.dev/skills/rohitg00/kubectl-mcp-server/k8s-capi"><img src="https://agentmods.dev/badge/skills/rohitg00/kubectl-mcp-server/k8s-capi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 30
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 38
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 74
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 75
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 77
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 214
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 71
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01521
Opus 5 $0.00015 $0.00760
Sonnet 5 $0.00006 $0.00304
Haiku 4.5 $0.00003 $0.00152

Measured 10d ago against content hash 21fa162dc0db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

k8s-capi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

kubernetes-skills/claude/k8s-capi/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cluster API Lifecycle Management

Manage Kubernetes clusters using kubectl-mcp-server's Cluster API tools (11 tools).

When to Apply

Use this skill when:

  • User mentions: "Cluster API", "CAPI", "cluster lifecycle", "machine", "workload cluster"
  • Operations: provisioning clusters, scaling nodes, upgrading Kubernetes versions
  • Keywords: "provision cluster", "scale workers", "machine deployment", "cluster class"

Priority Rules

Priority Rule Impact Tools
1 Detect CAPI installation first CRITICAL capi_detect_tool
2 Check cluster phase before operations HIGH capi_cluster_get_tool
3 Monitor machines during scaling HIGH capi_machines_list_tool
4 Get kubeconfig after provisioning MEDIUM capi_cluster_kubeconfig_tool

Quick Reference

Task Tool Example
Detect CAPI capi_detect_tool capi_detect_tool()
List clusters capi_clusters_list_tool capi_clusters_list_tool(namespace)
Get cluster kubeconfig capi_cluster_kubeconfig_tool capi_cluster_kubeconfig_tool(name, namespace)
Scale workers capi_machinedeployment_scale_tool capi_machinedeployment_scale_tool(name, namespace, replicas)

Check Installation

capi_detect_tool()

List Clusters

# List all CAPI clusters
capi_clusters_list_tool(namespace="default")

# Shows:
# - Cluster name
# - Phase (Provisioning, Provisioned, Deleting)
# - Infrastructure ready
# - Control plane ready

Get Cluster Details

capi_cluster_get_tool(name="my-cluster", namespace="default")

# Shows:
# - Spec (control plane, infrastructure)
# - Status (phase, conditions)
# - Network configuration

Get Cluster Kubeconfig

# Get kubeconfig for workload cluster
capi_cluster_kubeconfig_tool(name="my-cluster", namespace="default")

# Returns kubeconfig to access the cluster

Machines

List Machines

capi_machines_list_tool(namespace="default")

# Shows:
# - Machine name
# - Cluster
# - Phase (Running, Provisioning, Failed)
# - Provider ID
# - Version

Read the full file on GitHub · 257 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 257 lines · 31 tokens per session scan A 21fa162dc0db

Subscribe to this mod's changes

k8s-capi is a skill published in the GitHub repository rohitg00/kubectl-mcp-server (956 stars, last pushed 5mo ago), licensed MIT. It adds 31 tokens to every session and 1,521 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.