k8s-core

k8s-core is a skill for Claude Code, Codex from yindia/rootcause. It costs 0 tokens per session (2,528 once invoked), scanned A, original, MIT.

A reference guide for inspecting and tracing core Kubernetes resources, such as pods, services, deployments, nodes, and namespaces. Kubernetes is a system for running and managing containerised applications.

In plain words
What is it for?
Checking cluster state, examining workloads, reading logs and events, and tracing problems across common Kubernetes resources.
Why use it?
It gives investigations a consistent, read-first process and helps prevent conclusions based on the wrong cluster or incomplete evidence.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/yindia/rootcause/k8s-core
Any agent
npx skills add yindia/rootcause --skill k8s-core
Clone the repo
git clone --depth 1 https://github.com/yindia/rootcause

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-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/yindia/rootcause/k8s-core.svg)](https://agentmods.dev/skills/yindia/rootcause/k8s-core)
Your own site
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-core"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-core.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.02528
Opus 5 $0.00000 $0.01264
Sonnet 5 $0.00000 $0.00506
Haiku 4.5 $0.00000 $0.00253

Measured 4d ago against content hash 22c0d77b0aaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

k8s-core 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 4d 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.

skills/claude/k8s-core/SKILL.md · 550 lines

How it starts

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

Skill: k8s-core

Comprehensive read-first Kubernetes reference using RootCause MCP tool names.

Use this skill when the task is to inspect, query, explain, and trace core resources.

Mission

Deliver high-signal cluster state with minimal noise.

Default flow:

  1. verify context and connectivity
  2. scope namespace and selectors
  3. list/get/describe resources
  4. correlate logs and events
  5. summarize facts and open questions

Core Resources Covered

  • Pods
  • Deployments
  • Services
  • ConfigMaps
  • Secrets
  • Namespaces
  • Nodes

Core Tool Set

Read and discovery tools:

  • k8s.ping
  • k8s.overview
  • k8s.get
  • k8s.list
  • k8s.describe
  • k8s.logs
  • k8s.events
  • k8s.events_timeline
  • k8s.context
  • k8s.api_resources
  • k8s.crds
  • k8s.explain_resource
  • k8s.exec
  • k8s.port_forward

Priority Rules

Priority Rule Reason
P0 Run k8s.context then k8s.ping before data collection prevent wrong-cluster conclusions
P1 Start broad with k8s.overview for unknown scope quick health baseline
P2 Prefer k8s.list with selectors before k8s.get loops less API chatter, cleaner outputs
P3 Use k8s.describe for state transitions and owner chains richer operational context
P4 Use k8s.events_timeline for chronology, k8s.events for raw detail time ordering matters

Parameter Examples By Tool

k8s.context list contexts:

{
  "action": "list"
}

k8s.context current context:

{
  "action": "current"
}

k8s.ping:

{}

k8s.overview cluster scope:

{}

k8s.overview namespace scope:

{
  "namespace": "payments"
}

k8s.get by kind:

{
  "kind": "Pod",
  "name": "api-6fd5d4f7fb-9w2rc",
  "namespace": "payments"
}

k8s.get by resource + apiVersion:

{
  "apiVersion": "apps/v1",
  "resource": "deployments",
  "name": "api",
  "namespace": "payments"
}

k8s.list pods with label selector:

{
  "namespace": "payments",
  "labelSelector": "app=api,tier=backend",
  "resources": [
    { "kind": "Pod" }
  ]
}

Read the full file on GitHub · 550 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. 4d ago First seen · 550 lines · 0 tokens per session scan A 22c0d77b0aaf

Subscribe to this mod's changes

k8s-core is a skill published in the GitHub repository yindia/rootcause (42 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,528 tokens. 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.