Helm chart builder

From borghei/Claude-Skills · View interactive version

Helm chart builder is an AI agent skill from the GitHub repository borghei/Claude-Skills. Review an existing Helm chart and its values files: metadata, structure, dependency pinning, resources, security context, image tags, probes and plaintext secrets. Use when auditing a chart before release or adding chart checks to CI.

How to use this skill

Skill file

Helm Chart Builder

The agent reviews Helm charts that already exist: is the chart well-formed, are its dependencies pinned, and are its values safe to run in production. Despite the name, the tools analyse rather than generate; when a new chart is needed, start from helm create, then run this review.

When to Use

Clarify First

Before analyzing the chart, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Workflow

  1. Analyse the chart with chart_analyzer.py --path <chart>: required files, apiVersion: v2, SemVer version, appVersion, dependency pinning and Chart.lock, NOTES.txt, _helpers.tpl, README.
  2. Validate every values file with values_validator.py: resources, security context, image tag, replicas, service type, ingress TLS, probes, autoscaling and plaintext secrets.
  3. Fix critical findings first (missing required files, plaintext secrets), then warnings.
  4. Render and dry-run with helm lint, helm template and helm install --dry-run (or helm upgrade --install --dry-run=server against a cluster). The analysers read text; only rendering proves the manifests.
  5. Verify that both tools report no critical findings for every environment's values file and that the rendered manifests pass your policy checks.

Helm 4 (released late 2025) keeps chart apiVersion: v2, so v2 charts work with both Helm 3 and Helm 4. Check the Helm 4 release notes for changed CLI flags and plugin behaviour before upgrading CI.

Quick Start

python3 scripts/chart_analyzer.py --path examples                                  # apiVersion v1, loose dependency range, missing files
python3 scripts/values_validator.py --values examples/values.yaml                  # latest tag, plaintext passwords, no resources (exit 1)
python3 scripts/values_validator.py --values examples/values-production.yaml       # passes (exit 0)

For CI, write one JSON report per tool:

python3 scripts/chart_analyzer.py --path ./charts/my-app --format json --strict > chart-report.json
python3 scripts/values_validator.py --chart ./charts/my-app --values values-dev.yaml values-prod.yaml --format json > values-report.json

Tools Overview

| Tool | What it checks | Key flags | Exit codes |

|------|----------------|-----------|------------|

| chart_analyzer.py | Required files and dirs, Chart.yaml fields, apiVersion: v2, SemVer, appVersion, dependency version ranges and Chart.lock, template helpers, NOTES.txt, README | --path, --strict (warnings fail), --format text|json | 0, 1 critical (or warning with --strict), 2 not a chart directory |

| values_validator.py | Resources, security context, image tag (latest or empty), pull policy, replicaCount, service type, ingress TLS/class, probes, autoscaling, plaintext passwords/secrets/tokens and credentialed URLs | --values <files...>, --chart (only to locate relative paths), --format text|json | 0, 1 critical finding, 2 a values file not found |

Anti-Patterns

Mistake: Passwords and API keys in values.yaml.

Why it happens: It is the quickest way to make a chart install.

Instead: Values end up in git and in the release history Helm stores in the cluster. Reference an existing Secret (existingSecret), or use External Secrets or SOPS.

Mistake: Broad dependency ranges such as 12.x.x without a committed Chart.lock.

Why it happens: Ranges feel like they keep the chart current.

Instead: Pin dependency versions, commit Chart.lock, and update deliberately.

Mistake: Treating a clean analyser run as a working chart.

Why it happens: No findings looks like a pass.

Instead: Template logic and --set overrides are not evaluated. Render with helm template and dry-run the install.

Files

Scope & Limitations

In Scope:

Out of Scope:

Important Caveats:

Reference Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.