generating-helm-charts
Execute use when generating Helm charts for Kubernetes applications. Trigger with phrases like "create Helm chart", "generate chart for app", "package Kubernetes deployment", or "helm template". Produces production-ready charts with Chart.yaml, values.yaml, templates, and best practices for multi-environment deployments.
- License 许可
- MIT
- 最近更新
- 2026-03-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- generating-helm-charts
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Execute use when generating Helm charts for Kubernetes applications. Trigger with phrases like "create Helm chart", "generate chart for app", "package Kubernetes deployment", or "helm template". Produces production-ready charts with Chart.yaml, values.yaml, templates, and best practices for multi-environment deployments.
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash(helm:*), Bash(kubectl:*)
- compatible-with
- claude-code, codex, openclaw
02 资源文件 5
- 资产文件assets/README.md393 B
- 资产文件assets/values_schema.json8.4 KB
- 参考文档references/README.md64 B
- 脚本scripts/helm_create.py3.6 KB
- 脚本scripts/README.md314 B
03 SKILL.md 正文
Generating Helm Charts
Overview
Generate production-ready Helm 3 charts for Kubernetes applications with Chart.yaml, values.yaml, Go templates, and helper functions. Support multi-environment deployments with values overrides, dependency management, security contexts, health probes, and resource limits following Helm best practices.
Prerequisites
- Helm 3.x installed (
helm version) kubectlconfigured with cluster access for testing chart installation- Container images available in a registry accessible from the cluster
- Understanding of application resource requirements (CPU, memory, ports, volumes)
- Chart repository access if publishing (ChartMuseum, OCI registry, or GitHub Pages)
Instructions
- Analyze the application: identify container images, ports, environment variables, volumes, and dependencies
- Scaffold the chart structure:
Chart.yaml,values.yaml,templates/,charts/,.helmignore - Create
Chart.yamlwithapiVersion: v2, name, version, appVersion, and dependency declarations - Define
values.yamlwith sensible production defaults: replica count, image config, resource limits, ingress settings - Build templates using Go template syntax with proper
.Valuesreferences and_helpers.tplfor reusable named templates - Add health checks:
livenessProbeandreadinessProbein the deployment template with configurable paths and thresholds - Configure security context:
runAsNonRoot: true,readOnlyRootFilesystem: true, and drop all capabilities - Create environment-specific values files:
values-dev.yaml,values-staging.yaml,values-prod.yaml - Add
NOTES.txtwith post-install instructions showing how to access the application - Validate with
helm lint .and test rendering withhelm template . --values values-prod.yaml
Output
- Complete Helm chart directory structure
Chart.yamlwith metadata and dependenciesvalues.yamlwith documented, configurable defaults- Template files:
deployment.yaml,service.yaml,ingress.yaml,configmap.yaml,serviceaccount.yaml,hpa.yaml _helpers.tplwith name, label, and selector helper templatesNOTES.txtwith post-install access instructions- Environment-specific values override files
Error Handling
| Error | Cause | Solution |
|---|---|---|
Chart.yaml: version is required |
Missing or malformed version field |
Add a valid SemVer version string to Chart.yaml |
parse error in template |
Go template syntax error (missing end, wrong function) |
Run helm template . to pinpoint the error; check bracket matching and function names |
dependency not found |
Chart dependency not downloaded | Run helm dependency update to fetch dependencies into charts/ |
release failed: timed out waiting for condition |
Pods not reaching ready state during install | Check pod logs; verify image exists, resource limits are sufficient, and probes are correct |
values override not applied |
Wrong values file path or key mismatch | Verify --values file path and that keys match the structure in values.yaml exactly |
Examples
- "Generate a Helm chart for a Node.js API with 3 replicas, an Nginx ingress, PostgreSQL subchart dependency, and environment-specific values for dev and prod."
- "Create a Helm chart for a stateful application with PersistentVolumeClaim, headless service, and configurable storage class."
- "Package an existing set of Kubernetes manifests into a Helm chart with parameterized image tag, replica count, and resource limits."
Resources
- Helm documentation: https://helm.sh/docs/
- Chart best practices: https://helm.sh/docs/chart_best_practices/
- Template function reference: https://helm.sh/docs/chart_template_guide/function_list/
- Artifact Hub (chart discovery): https://artifacthub.io/
04 同仓库更多 Skills
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.