helm-charts
Expert guidance for authoring and maintaining Helm charts following standardized conventions, global registry support, templating best practices, and…
от cosmonic-labs★ 22 звезды на GitHub
Установить helm-charts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Helm Chart Style Guide
This skill provides standardized conventions for authoring and maintaining Helm charts, with a focus on:
- Global registry override using
.Values.global.image.registry - Clear, minimal templating
- Consistent
image:blocks for all containers
When to Use
Activate this skill when:
- Creating new Helm charts
- Reviewing or modifying existing Helm charts
- Configuring image registries for air-gapped environments
- Setting up multi-chart deployments with Helmfile
Image Configuration Best Practices
All charts must support the top-level configuration for global image settings.
global:
image:
registry: registry.mycompany.com
This enables centralized control of image sources across all dependencies and microservices.
Consistent Image Blocks
All charts should follow a consistent image: block for every containerized application.
Fields should be templated for registry, repository, tag, pullPolicy, and pullSecrets for all containers.
Every chart must define all image values with reasonable defaults in values.yaml:
prometheus:
image:
registry: docker.io
repository: prom/prometheus
tag: v2.52.0
pullPolicy: IfNotPresent
Templating Pattern for Registry Override
Use a registry value at the top of the template. This pattern ensures ability to use internal registries (e.g., registry.mycompany.com) for air-gapped environments or mirrored image sources:
{{- $registry := .Values.prometheus.image.registry | default .Values.global.image.registry | default "docker.io" -}}
image:
registry: {{ $registry }}
repository: {{ .Values.prometheus.image.repository }}
tag: {{ .Values.prometheus.image.tag }}
pullPolicy: {{ .Values.prometheus.image.pullPolicy }}
Templating Conventions
Template only when necessary. Keep templates readable and manageable by avoiding over-templating.
Template:
- Labels
- Annotations
- Resource requests and limits for CPU and memory for each container
- Service port numbers and names
Avoid Templating:
- Most values already present in
values.yamlunless dynamically constructed
Linting & Validation
- Run
helm lintbefore commits - Use
helm templatefor rendering checks - Ensure
values.yamlandChart.yamlare fully in sync with templated expectations
Automated Chart Testing with ct
Use the chart-testing tool (ct) to automate linting, installation, and upgrade checks for charts.
Installing ct
Install ct (chart-testing) locally:
brew install helm/chart-testing/ct
# or via Docker:
# docker pull quay.io/helmpack/chart-testing
Using ct
ct lint --config charts/your-chart/ct.yaml
ct install --config charts/your-chart/ct.yaml
Typical workflow:
- Lint all charts:
ct lint --all - Install and test charts:
ct install --all - Test only changed charts:
ct lint --charts charts/your-chart
Best Practices
- Always run
ct lintandct installbefore submitting a PR - Ensure
ct.yamlis up to date with chart locations and test settings - Integrate
ctinto CI pipelines for automated validation - Address all errors and warnings before merging
Helmfile Multi-Chart Management
Helmfile enables declarative management of multiple Helm charts and environments.
Installing Helmfile
brew install helmfile
# or via Docker:
# docker run --rm -v $PWD:/apps -w /apps ghcr.io/helmfile/helmfile:latest helmfile --help
Using Helmfile
- Define releases and environments in
helmfile.yamlorhelmfile.d/*.yaml - Use
values:blocks to layer configuration and support overrides per environment - Run
helmfile lintto validate all releases and values - Apply changes with
helmfile apply(dry-run with--dry-runfirst) - Sync state with
helmfile syncto ensure all releases match the desired state
Helmfile Best Practices
- Keep environment-specific values in separate files (e.g.,
values-prod.yaml,values-dev.yaml) - Use
secrets:for sensitive values, leveraging helm-secrets if needed - Prefer referencing charts by version for reproducibility
- Use
helmfile diffbefore applying changes to preview impact - Document all environments and overrides clearly
- Validate with
helmfile lintand test deployments in CI where possible
Naming Conventions
Chart names must be lower case letters and numbers. Words may be separated with dashes (-).
Neither uppercase letters nor underscores can be used in chart names. Dots should not be used in chart names.
YAML files should be indented using two spaces (and never tabs).
CRDs
When working with Custom Resource Definitions (CRDs):
- There is a declaration of a CRD (YAML file with
kind: CustomResourceDefinition) - There are resources that use the CRD (resources with the CRD's
apiVersionandkind)
F
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл helm-charts?
Expert guidance for authoring and maintaining Helm charts following standardized conventions, global registry support, templating best practices, and Kubernetes deployment patterns. Use this skill when creating new Helm charts, reviewing or modifying existing charts, configuring image registries for air-gapped environments, setting up multi-chart deployments with Helmfile, or whenever the user mentions Helm, Chart.yaml, values.yaml, helmfile, or Kubernetes manifest templating.
Как установить скилл helm-charts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл helm-charts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…