generate-template

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/.

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/bergerx/kubectl-status/generate-template
Any agent
npx skills add bergerx/kubectl-status --skill generate-template
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00030 $0.00993
Opus 5 $0.00015 $0.00496
Sonnet 5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00099

Measured 6d ago against content hash aeda0b405dc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 (122 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 993 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.

Related

Other skills, from other repositories

timoni

Use when deploying applications to Kubernetes with Timoni. Covers installing and upgrading module instances from OCI registries, composing multi-app deployments with bundles, injecting values from clusters or CI with runtimes, targeting multiple clusters, and authoring, testing, signing and publishing modules with CUE.

stefanprodan/timoni · 59 tokens

startup-chain-change

Modifies the local startup chain including image build, container serve/bootstrap logic, and canonical smoke test behavior. Use when changing vllm-sr serve behavior, image selection or pull policy, container startup sequences, local Docker/Make bootstrap, or canonical smoke config.

vllm-project/semantic-router · 59 tokens

implementing-opa-gatekeeper-for-policy-enforcement

Enforce Kubernetes admission policies using OPA Gatekeeper with ConstraintTemplates, Rego rules, and the Gatekeeper policy library.

xalgorix/xalgorix · 37 tokens

detecting-container-drift-at-runtime

Detect unauthorized modifications to running containers by monitoring for binary execution drift, file system changes, and configuration deviations from the original container image.

xalgorix/xalgorix · 34 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens

implementing-kubernetes-network-policy-with-calico

Implement Kubernetes network segmentation using Calico NetworkPolicy and GlobalNetworkPolicy for zero-trust pod-to-pod communication.

xalgorix/xalgorix · 33 tokens