/llmctl-ops:helm-templatesfrom llmctl Ops
Authoring Helm chart templates: _helpers.tpl named templates, Go template patterns, whitespace control, hooks, and template testing. ALWAYS invoke when creating or modifying files under templates/, writing _helpers.tpl, using Go template functions (include, toYaml, nindent), implementing Helm hooks, or linting/unit-testing templates. Do not write or edit a file under templates/ without this skill — for chart structure and dependencies use helm-charts, for values.yaml use helm-values. Keywords: helm, templates, _helpers.tpl, named templates, Go template, include, toYaml, nindent, hooks, helm lint.
Ships in llmctl Ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Conventions for writing templates that are readable, reusable, and correct.
_helpers.tpl ConventionsAll charts must (at a minimum) define these named templates in _helpers.tpl. Use include (not template) everywhere so output can be piped:
| Template name | Purpose |
|---|---|
<chart>.name | Chart name, truncated to 63 chars |
<chart>.fullname | Release-scoped full name, truncated to 63 chars |
<chart>.chart | name-version label value |
<chart>.labels | Full set of recommended labels |
<chart>.selectorLabels | Selector-safe subset (name + instance only) |
<chart>.serviceAccountName | Resolves service account name with create flag |
<chart>.image | Renders repository:tag, defaulting tag to appVersion |
Enforce the 63-char Kubernetes label limit on all name templates:
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace }}
with{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 2 }}
image: {{ required "image.repository is required" .Values.image.repository }}
port: {{ .Values.port | default 8080 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
...
{{- end }}
tpl is a valid tool for rendering values that are meant to contain template expressions — but think about the edge cases before reaching for it. tpl evaluates every {{ ... }} it finds in the content, so files that legitimately carry template-like or ${...} placeholder syntax get corrupted or fail to render.
For general file or config passthrough, emit the content verbatim. Choose based on intent:
data:
{{- range $name, $content := .Values.configFiles }}
{{ $name }}: |
{{- $content | nindent 4 }} # safe default — content emitted as-is
# {{- tpl $content $ | nindent 4 }} # only when users are meant to write template expressions
{{- end }}
When you do want interpolation, prefer a dedicated, opt-in input so the tpl path is reserved for content the user knowingly writes as template expressions — and where their braces won't collide with arbitrary file syntax.
{{- to trim leading whitespace/newlines; use -}} to trim trailingnindent N over indent N — it adds a leading newline which keeps YAML structure correct when the block is non-emptynindent after toYaml to avoid off-by-one indentation bugsAnnotate hook resources with helm.sh/hook and always set a delete policy:
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-5" # lower = runs first
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
Common hook use cases: database migrations (pre-upgrade), secret seeding (pre-install), cleanup jobs (post-delete).
# Lint for errors and best practices
helm lint mychart/
# Render templates locally
helm template myrelease mychart/ -f values.yaml
# Simulate upgrade (server-side dry-run)
helm upgrade myrelease mychart/ -f values.yaml --dry-run --debug
Pass any value containing Go-template syntax ({{ }}), commas, or other special characters via a -f values.yaml file, NEVER --set. The --set parser splits on commas and chokes on braces (e.g. Error: failed parsing --set data: key "}" has no value). This matters most when testing tpl-rendered values and embedded config blobs.
For template function reference, consult the Helm template function list and the bundled Sprig functions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siegenthalerroger/.llmctl-marketplace --plugin llmctl-ops6 skills in this plugin
/helm-chartsHelm chart structure, dependency management, library charts, and install/upgrade troubleshooting. ALWAYS invoke when creating or adapting chart structure (Chart.yaml, subcharts), managing chart dependencies, using third-party or library charts, or debugging why a Helm install/upgrade isn't taking effect. Do not hand-edit Chart.yaml, add a dependency, or diagnose a failed release without this skill — for templates/ authoring use helm-templates, for values.yaml use helm-values. Keywords: helm, chart, Chart.yaml, dependencies, library chart, helm install, helm upgrade, helm template, troubleshoot./helm-valuesAuthoring values.yaml in Helm charts with mandatory helm-docs documentation comments and helm-schema type annotations. ALWAYS invoke when creating or editing values.yaml, adding value descriptions, generating values.schema.json or README docs, setting up helm-docs/helm-schema pre-commit hooks, or reviewing values for missing annotations. Do not add or edit a values.yaml entry without this skill — every value needs its annotation; for chart structure use helm-charts, for templates/ use helm-templates. Keywords: helm, values.yaml, helm-docs, helm-schema, values.schema.json, annotations, documentation, schema, pre-commit.Other plugins' skills for the same job