Agent skill

Generate Template

by bergerx in bergerx/kubectl-status

A skill your agent uses when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context.

Apache-2.0Auto-check passedDevOps & Cloud

Install Generate Template

skills CLI
$ npx skills add bergerx/kubectl-status --skill generate-template -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bergerx/kubectl-status generate-template --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bergerx/kubectl-status.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/generate-template .claude/skills/generate-template && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-template
GitHub stars
123
Token cost
~1k tokens
SKILL.md length
438 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context.

  • Works in 5 steps: Identify the resource → Read the full CRD schema → Sample live instances → …
  • The user asks to create a kubectl-status template for one
  • SKILL.md covers Reference material — read… and Steps
  • Calls kubectl and jq

What it does

Generate Template is an agent skill from bergerx/kubectl-status. Use when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Container orchestration. It works with Kubernetes. The repository describes itself as: A kubectl plugin to print a human-friendly output that focuses on the status fields of the resources in kubernetes. The licence is Apache-2.0.

When your agent uses it

  • The user asks to create a kubectl-status template for one
  • More Kubernetes resource kinds found in the current kubectl context

Example prompts

  • “/generate-template”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Identify the resource
  2. Read the full CRD schema
  3. Sample live instances
  4. Write the template
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 8883d71. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • kubectl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use kubectl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Template loads about 1k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 438 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bergerx/kubectl-status at commit 8883d71, republished under its Apache-2.0 licence (© bergerx). 438 words, ~1,013 tokens.

Download SKILL.mdSave it as .claude/skills/generate-template/SKILL.md (or your agent's skills folder).
name
generate-template
description
Use when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context.

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

Show full SKILL.md (207 more words)Show less
4. Write the template

File: ~/.kubectl-status/templates/<Kind>.tmpl

Copy the define wrapper and bookend sections from any existing template. The GVK comment ({{- /* GVK: group/version, Kind=<Kind> */ -}}) must follow the gotype comment immediately after define. Section order and what status_summary_line already covers are in CONVENTIONS.md § Section order.

All design rules are in CONVENTIONS.md. Implementation pointers:

  • Label selectors — use selector_with_health_summary from common.tmpl; only hand-roll when custom health logic is needed.
  • Reference fields — HTTPRoute.tmpl has worked examples of both single-ref and list-of-refs forms.
  • Nil safety — normal with/if guards cover almost everything; don't pre-emptively wrap every field in default. Add it where a guard can't reach: values handed to a shared sub-template, sub-fields of an item inside a range, and anything reaching toString. Let step 5 tell you the rest.
5. Verify
bash
kubectl status <resource> <name> -n <ns>

Test at least two different instances to confirm optional fields appear and disappear correctly.

Then verify against a partial object, which live instances never exercise:

bash
cat > /tmp/partial.yaml <<'EOF'
apiVersion: <group>/<version>
kind: <Kind>
metadata:
  name: bare
  namespace: default
  creationTimestamp: "2026-06-27T09:12:04Z"
spec: {}
EOF
kubectl status -f /tmp/partial.yaml --local --shallow

Add further documents that drop individual required sub-fields from each list and reference the template renders — e.g. a ref with name but no kind, a list entry with only one of its fields. Any Failed to render: line, or a literal <nil> in the output, is a bug: fix it before finishing, and re-run all three renders.

© bergerx, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/generate-template of bergerx/kubectl-status.

Open the folder on GitHubat commit 8883d71

Compare with similar skills

Generate Template next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Template compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Template this skillbergerx/kubectl-status123—~1kAutomated safety check: PassApache-2.0
KubeSphere Multi-Tenant Managementkubesphere/kubesphere17k1 repos~3.1kAutomated safety check: PassCustom licence
Azure Diagnosticsmicrosoft/azure-skills1.5k1 repos~1.6kAutomated safety check: PassMIT
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
Sim Helmsimstudioai/sim30k—~2.2kAutomated safety check: PassApache-2.0
Helm Chart ScaffoldingCybereason-Public/owLSM28013 repos~381Automated safety check: PassGPL-2.0

Similar skills

  • Creates and queries KubeSphere users, workspaces and projects and assigns built-in roles, defaulting to least privilege and never deleting anything.

    17k GitHub starsUsed in 1 repo~3.1k tokens
    DevOps & CloudAuto-check passed
  • Azure Diagnostics

    microsoft/azure-skills

    Official

    Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage.

    1.5k GitHub starsUsed in 1 repo~1.6k tokens
    DevOps & CloudAuto-check passed
  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Helm Chart Scaffolding

    Cybereason-Public/owLSM

    Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications.

    280 GitHub starsUsed in 13 repos~381 tokens
    DevOps & CloudAuto-check passed
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated today
    DevOps & CloudAuto-check passed

Works with

Categories

Questions about Generate Template

What does Generate Template do?

A skill your agent uses when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context. Generate Template is an agent skill from bergerx/kubectl-status. Use when the user asks to create a kubectl-status template for one or more Kubernetes resource kinds found in the current kubectl context.

When should I use Generate Template?

Generate Template fits situations like: the user asks to create a kubectl-status template for one; more Kubernetes resource kinds found in the current kubectl context.

How do I install Generate Template in Claude Code?

Run `npx skills add bergerx/kubectl-status --skill generate-template -a claude-code`. Or copy the skill folder (.claude/skills/generate-template in bergerx/kubectl-status) into .claude/skills/generate-template in your project. Claude Code loads it when a task matches its description.

How do I install Generate Template in Codex?

Run `npx skills add bergerx/kubectl-status --skill generate-template -a codex`. Or copy the skill folder (.claude/skills/generate-template in bergerx/kubectl-status) into .agents/skills/generate-template in your project. Codex loads it when a task matches its description.

Can I use Generate Template in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bergerx/kubectl-status --skill generate-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-template, .gemini/skills/generate-template, .github/skills/generate-template and .opencode/skills/generate-template in your project.

What does Generate Template need to run?

Going by SKILL.md and its folder, Generate Template needs the command-line tools its instructions call (kubectl and jq).

Does Generate Template access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generate Template safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Template use?

Generate Template is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Template use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Template?

Skills that share tags, products or a category with Generate Template: KubeSphere Multi-Tenant Management (kubesphere/kubesphere, 17k stars), Azure Diagnostics (microsoft/azure-skills, 1.5k stars), Kubeshark Installer (kubeshark/kubeshark, 12k stars) and Sim Helm (simstudioai/sim, 30k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Template?

bergerx (a GitHub user) maintains it in bergerx/kubectl-status, which has 123 GitHub stars. The repository was last updated on September 30, 2026.

Source: bergerx/kubectl-status on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.