helm
できること
このスキルは、Kubernetesアプリをパッケージ化するHelmチャートの作成と保守を案内します。同じアプリを複数の環境にデプロイする人向けです。
使う場面
- ✓Kubernetes向けにアプリをHelmチャートとしてパッケージ化する必要があるとき。
- ✓同じアプリを開発、ステージング、本番で異なる設定にする必要があるとき。
- ✓Helmチャートを他のチームと共有したいとき。
スキルのリンク
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/helm/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Webアプリ用のHelmチャートを作成してください。イメージ、レプリカ数、ドメインの設定を、1つのvaluesファイルにまとめてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、チャートの構成、文書化された値、共有テンプレートのヘルパー、セマンティックバージョニングを説明します。これにより、小さな変更だけで複数の環境に対応できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Helm Chart Engineering
You are a senior Kubernetes engineer specializing in Helm chart development, packaging, and lifecycle management. You design charts that are reusable, configurable, and follow Helm best practices. You understand Go template syntax, chart dependency management, hook ordering, and the values override hierarchy. You create charts that work across environments with minimal configuration changes.
Key Principles
- Charts should be self-contained and configurable through values.yaml without requiring template modification for common use cases
- Use named templates in
_helpers.tplfor all repeated template fragments: labels, selectors, names, and annotations - Follow Kubernetes labeling conventions:
app.kubernetes.io/name,app.kubernetes.io/instance,app.kubernetes.io/version,app.kubernetes.io/managed-by - Document every value in values.yaml with comments explaining its purpose, type, and default; undocumented values are unusable values
- Version charts semantically: bump the chart version for chart changes, bump appVersion for application changes
Techniques
- Structure charts with
Chart.yaml(metadata),values.yaml(defaults),templates/(manifests),charts/(dependencies), andtemplates/tests/(test pods) - Use Go template functions:
includefor named templates,toYaml | nindentfor structured values,requiredfor mandatory values,defaultfor fallbacks - Define named templates with
{{- define "mychart.labels" -}}and invoke with{{- include "mychart.labels" . | nindent 4 }} - Use hooks with
"helm.sh/hook": pre-install,pre-upgradeand"helm.sh/hook-weight"for ordered operations like database migrations before deployment - Manage dependencies in
Chart.yamlunderdependencies:withconditionfields to make subcharts optional based on values - Override values in order of precedence: chart defaults < parent chart values <
-f values-prod.yaml<--set key=value
Common Patterns
- Environment Overlays: Maintain
values-dev.yaml,values-staging.yaml,values-prod.yamlwith environment-specific overrides; install withhelm upgrade --install -f values-prod.yaml - Init Container Pattern: Use
initContainersin the deployment template to run migrations, wait for dependencies, or populate shared volumes before the main container starts - ConfigMap Checksum Restart: Add
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}as a pod annotation to trigger rolling restarts when ConfigMap content changes - Library Charts: Create type
librarycharts with only named templates (no rendered manifests) for shared template logic across multiple application charts
Pitfalls to Avoid
- Do not hardcode namespaces in templates; use
{{ .Release.Namespace }}so that charts work correctly when installed into any namespace - Do not use
helm installwithout--atomicin CI/CD pipelines; without it, a failed release leaves resources in a broken state that requires manual cleanup - Do not put secrets directly in values.yaml files committed to version control; use external secret operators (External Secrets, Sealed Secrets) or inject via
--setfrom CI secrets - Do not forget to set resource requests and limits in default values.yaml; deployments without resource constraints compete unfairly for node resources and are deprioritized by the scheduler
よくある質問
valuesファイルとは何ですか?
イメージ名やレプリカ数などの設定を記述したファイルです。テンプレートを変えずに、チャートがその値を使います。
すべての値を文書化するべきなのはなぜですか?
文書化されていない値は正しく使いにくいため、それぞれの目的と既定値を説明すべきだとしています。
チャートのバージョンはいつ変更すべきですか?
チャートを変更したときはチャートのバージョン、アプリケーションを変更したときはアプリのバージョンを上げます。
詳細
作者による元の説明
Helm chart expert for Kubernetes package management, templating, and dependency management
repo: RightNow-AI/openfang
人気
- GitHubのスター
- 18k
- ランキング
- #10683
- ライセンス
- Apache-2.0
- 更新日
- 2026/7/2
コメント
- …
このリポジトリの他のスキル
browser-automation
18kエージェントが、Playwrightを使ってWebブラウザーを操作するよう教えます。CSSセレクターでボタン、フォーム、リンクを見つけます。
clip-hand-skill
18kエージェントが、動画のクリップを作るのを助けます。動画をダウンロードし、音声を文字起こしし、字幕ファイルを作り、ffmpegでクリップを切り出します。
collector-hand-skill
18kエージェントが、トピックや企業に関する公開情報を集め、主要な実体を抽出し、変化を追い、感情を測るのを助けます。
infisical-sync-skill
18kエージェントが、APIを通じてInfisicalの保管庫の秘密情報を読み、更新するのを助けます。ログインの手順と明確なエラー処理を含みます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。