k8s-storage

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

A Kubernetes diagnostic guide for persistent storage, which keeps data available across pod restarts. It covers claims, volumes, storage classes, snapshots, and mount problems.

In plain words
What is it for?
Use it to investigate pending PVCs, failed mounts, multi-attach errors, CSI problems, snapshot restores, read-only filesystems, and full disks.
Why use it?
It helps find why stateful workloads cannot start, recover, scale, or delete because of storage issues.

Skill for Claude CodeCodex

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

Good fit Use it to investigate pending PVCs, failed mounts, multi-attach errors, CSI problems, snapshot restores, read-only filesystems, and full disks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yindia/rootcause/k8s-storage
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 yindia/rootcause --skill k8s-storage
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-storage

README.md
[![agentmods](https://agentmods.dev/badge/skills/yindia/rootcause/k8s-storage/github.svg)](https://agentmods.dev/skills/yindia/rootcause/k8s-storage)
Your own site
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-storage"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-storage/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-storage

Your own site · 80×15
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-storage"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-storage.svg" alt="Reviewed on agentmods" width="80" 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 1,980 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.
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.00000 $0.01980
Opus 5.5 $0.00000 $0.00792
Sonnet 5.5 $0.00000 $0.00396
Haiku 4.5 $0.00000 $0.00198

Measured 3mo ago against content hash 78d07b196ae6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k8s-storage 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 3mo 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-storage/SKILL.md · 308 lines

How it starts

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

Skill: k8s-storage

Comprehensive Kubernetes persistent storage diagnostics covering PVC lifecycle, StorageClass behavior, snapshot workflows, mount failures, and attach/detach errors.

Scope

Use this skill for stateful workload issues where data volume behavior blocks scheduling, startup, recovery, scaling, or deletion.

Trigger Phrases

Use this skill when the user mentions:

  • pvc pending
  • pv not bound
  • volume mount failed
  • multi attach error
  • volumeattachment issue
  • storage class misconfiguration
  • csi error
  • ebs or efs issue
  • snapshot restore failed
  • pod stuck containercreating
  • filesystem readonly
  • disk full in statefulset

RootCause Tools Allowed

Only use these tool names in this skill:

  • k8s.storage_debug
  • k8s.describe
  • k8s.list
  • k8s.events
  • k8s.events_timeline

PVC Lifecycle Reference

Typical lifecycle states

PVC Phase Meaning Typical Next Step
Pending Not yet bound to a volume Inspect StorageClass and provisioning events
Bound Successfully attached to PV Validate pod mount and filesystem
Lost Underlying PV unavailable/reclaimed unexpectedly Trace reclaim events and backend health

PV lifecycle states commonly observed

PV Phase Meaning Operator Concern
Available Unclaimed static volume Match claim requirements
Bound Claimed by PVC Confirm claimRef is expected
Released PVC removed, reclaim pending Reclaim policy and cleanup process
Failed Provisioning/reclaim failed Storage backend or driver issue

StorageClass Configuration Checklist

When diagnosing provisioning behavior, verify:

  • provisioner value maps to installed CSI driver.
  • volumeBindingMode is expected (Immediate or WaitForFirstConsumer).
  • reclaimPolicy aligns with retention policy (Delete or Retain).
  • allowVolumeExpansion matches growth requirements.
  • parameters match cloud-specific constraints.

Use k8s.describe on StorageClass for all checks.

Read the full file on GitHub · 308 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. 3mo ago First seen · 308 lines · 0 tokens per session scan A 78d07b196ae6

Subscribe to this mod's changes

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

Related

k8s-storage compared with skills from other repositories

k8s-storage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k8s-storageyindia/rootcauseSkill426mo agoMITA0Claude Code, Codex
bazel-k8s-expertkinhluan/rules-quarkus-skillsSkill35mo agoMITA45Claude Code, Codex
kubernetes-reviewcamilooscargbaptista/cto-toolkitSkill98mo agoMITA104Claude Code
service-meshwilliamzujkowski/standardsSkill223mo agoMITA36Claude Code, Codex
kubernetes-operatorAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA30Claude Code, Codex
securing-helm-chart-deploymentsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A34Claude Code, Codex
k8s-network-policyautomateyournetwork/netclawSkill740todayApache-2.0A60Claude Code