kubectl-status: Skill for Claude Code

.claude/skills/generate-template/SKILL.md

generate-template is a skill for Claude Code from bergerx/kubectl-status. It costs 30 tokens per session (993 once invoked), scanned A, original, Apache-2.0.

A helper for creating kubectl-status display templates for Kubernetes resource types. Kubernetes is a system for running and managing containers, and kubectl-status shows information about those running resources.

In plain words
What is it for?
Use it when you need a kubectl-status template for a built-in Kubernetes resource or a custom resource defined by a CRD, such as an operator-managed object.
Why use it?
It removes the need to write and place Go template files by hand while following the project's formatting rules and available fields.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is bergerx/kubectl-status's own configuration. It tells Claude Code how to work on kubectl-status itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kubectl-status configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bergerx/kubectl-status. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bergerx/kubectl-status/master/.claude/skills/generate-template/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bergerx/kubectl-status

Made for: Claude Code.

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 generate-template

README.md
[![agentmods](https://agentmods.dev/badge/skills/bergerx/kubectl-status/generate-template/github.svg)](https://agentmods.dev/skills/bergerx/kubectl-status/generate-template)
Your own site
<a href="https://agentmods.dev/skills/bergerx/kubectl-status/generate-template"><img src="https://agentmods.dev/badge/skills/bergerx/kubectl-status/generate-template/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 generate-template

Your own site · 80×15
<a href="https://agentmods.dev/skills/bergerx/kubectl-status/generate-template"><img src="https://agentmods.dev/badge/skills/bergerx/kubectl-status/generate-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 993 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: 2 findings, up to medium

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 →

  • medium Rogue Agent · line 4
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 52
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00030 $0.00993
Opus 5.5 $0.00012 $0.00397
Sonnet 5.5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00099

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

Security

Grade A, and why

generate-template 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 2mo 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.

.claude/skills/generate-template/SKILL.md · 87 lines

How it starts

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

kubectl-status Template Generator

Generate kubectl-status Go template files for resource kinds and write them to ~/.kubectl-status/templates/<Kind>.tmpl.

Reference material — read before writing

  • CONVENTIONS.md — output philosophy, color rules, and all template design conventions. Read this first.
  • pkg/plugin/templates/common.tmpl — all shared sub-templates and available functions.
  • pkg/plugin/templates/ — built-in templates as style examples.
  • ~/.kubectl-status/templates/ — user CRD template examples.

Steps

1. Identify the resource

kubectl api-resources | grep -i <name>

Note the exact Kind string (case-sensitive — used as the template define name) and the APIVERSION column value.

2. Read the full CRD schema

kubectl get crd <full-crd-name> -o json | jq '.spec.versions[0].schema.openAPIV3Schema.properties'

Read spec and status sub-schemas in full — not just top-level keys. For each field, check its description to understand what it means. Use that meaning to decide whether it warrants inclusion, applying the output philosophy in CONVENTIONS.md.

Pay specific attention to:

  • Timestamps — apply the date formatting rules in CONVENTIONS.md § Dates.
  • Booleans and enums — never emit raw true/false; emit a meaningful label only when the value is operationally interesting.
  • required lists — note them, but do not treat them as a render-time guarantee. Third-party CRD schemas are looser than their docs, they change between operator versions, and --local/-f renders manifests that never passed API-server validation. See CONVENTIONS.md § Never trust a field to be present — a nil reaching a color function aborts the render of the whole object.

3. Sample live instances

kubectl get <resource> -A --no-headers | head -5
kubectl get <resource> <name> -n <ns> -o json

Cross-reference the schema against what is actually populated. Skip status fields that are never set and spec fields always at their default.

Read the full file on GitHub · 87 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. 2mo ago First seen · 87 lines · 30 tokens per session scan A aeda0b405dc2

Subscribe to this mod's changes

generate-template is a skill published in the GitHub repository bergerx/kubectl-status (124 stars, last pushed 3d ago), licensed Apache-2.0. It adds 30 tokens to every session and 993 once invoked, about $0.0001 per session on Opus 5.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.

Related

generate-template compared with skills from other repositories

generate-template next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-templatebergerx/kubectl-statusSkill1243d agoApache-2.0A30Claude Code
mirrord-kafkametalbear-co/mirrordSkill5.4kyesterdayMITA189Claude Code, Codex
mirrord-propagation-discoverymetalbear-co/mirrordSkill5.4kyesterdayMITA273Claude Code, Codex
timonistefanprodan/timoniSkill2.0k7d agoApache-2.0A59Claude Code, Codex
detecting-container-drift-at-runtimexalgorix/xalgorixSkill1.3kyesterdayApache-2.0A34Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.3kyesterdayApache-2.0A40Claude Code, Codex
implementing-kubernetes-pod-security-standardsxalgorix/xalgorixSkill1.3kyesterdayApache-2.0A54Claude Code, Codex