[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720WFKRPE9WNMNJG9475HHT":3,"skill-same:01M720WFKRPE9WNMNJG9475HHT":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M720WFKRPE9WNMNJG9475HHT","gitops-helm-chart",null,"Installs or upgrades a third-party Helm chart (cert-manager, ingress-nginx, external-dns, an operator) on a cluster by adding it to the GitOps repository in the form the repository's reconciler already syncs: an Argo CD Application, a Flux HelmRelease, a Config Sync RootSync, or kustomize helmCharts. Opens one pull request through submit-suggestion, pins the chart version, and carries or names everything the chart needs outside the cluster. Never runs helm. Use when a request asks to install, add, deploy, or upgrade a chart or a packaged third-party component. Don't use for kube-agents itself (an operator upgrades it with the installer), plain workload YAML (use gke-manifest-generation), or Google Cloud resources (use gcp-config-connector, or gcp-terraform on a Terraform repository).","gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gitops-helm-chart\ndescription: >-\n  Installs or upgrades a third-party Helm chart (cert-manager, ingress-nginx,\n  external-dns, an operator) on a cluster by adding it to the GitOps\n  repository in the form the repository's reconciler already syncs: an Argo\n  CD Application, a Flux HelmRelease, a Config Sync RootSync, or\n  kustomize helmCharts. Opens one pull request through submit-suggestion,\n  pins the chart version, and carries or names everything the chart needs\n  outside the cluster. Never runs helm. Use when a request asks to install,\n  add, deploy, or upgrade a chart or a packaged third-party component. Don't\n  use for kube-agents itself (an operator upgrades it with the installer), plain\n  workload YAML (use gke-manifest-generation), or Google Cloud resources (use\n  gcp-config-connector, or gcp-terraform on a Terraform repository).\n---\n\n# Third-Party Helm Charts Through GitOps\n\nA chart reaches a cluster from this agent one way: as a declaration in the\nGitOps repository that the customer's reconciler renders and applies after a\nhuman merges it. This skill writes that declaration and opens the pull\nrequest through **submit-suggestion**. It never runs `helm`. The shell\nsandbox holds no cluster credential and has no route to a chart repository,\nso `helm install`, `helm upgrade`, `helm template` and `helm pull` all fail\nthere, and asking for a token to hand to `helm` is refused by the credential\nbroker. Those refusals are the design, not obstacles to route around.\n\n## When to Use\n\n- **Install a chart** on a cluster: \"install cert-manager on prod-east\",\n  \"add external-dns to the staging clusters\".\n- **Upgrade or reconfigure** a chart the repository already declares: a new\n  version, a changed value.\n- **A packaged third-party component** whose documented install is a Helm\n  chart, even when the user did not say \"Helm\".\n\n## When NOT to Use\n\n- **kube-agents itself**: an operator installs and upgrades it with the\n  installer (`upgrade.sh`), which this agent does not run.\n- **Plain Kubernetes YAML** you write yourself: `gke-manifest-generation`.\n- **Google Cloud resources** (buckets, service accounts, node pools,\n  clusters): `gcp-config-connector` for KCC repositories. They can ride in the\n  same pull request as the chart (Step 4).\n- **A request that asked for advice, not a change** (\"should we use\n  cert-manager?\"): answer it. `SOUL.md` §3 item 3 draws that line.\n\n## Workflow\n\n### Step 0: A stop ends the request\n\nEvery \"stop\" in this skill is the answer, not a reason to look for another\nway in. When one applies, report it in the words given, change nothing,\nand end: on a kanban card with `kanban_block(kind=\"needs_input\")` and the\nstop as the reason. Do not go on to check what you are allowed to create\n(`kubectl auth can-i create ...`), list Secrets, try another identity, or\nsearch the filesystem for credentials or a repository; a card that says\n\"install and verify\" is still answered by the stop.\n\nThe first stop comes before anything else: the install must have a GitOps\nrepository registered, and it must be reachable. One command answers both,\nand its one line is final:\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py\npython3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py --repo \"\u003Cowner>\u002F\u003Crepo>\"\n```\n\nRun the first form before anything else, and the second once you know which\nrepository the change goes to. `REGISTERED: ...` (exit 0) means go on. Any\nother line (`NO_REGISTERED_REPO`, `REPO_UNREACHABLE`, `STATE_UNREADABLE`,\n`BROKER_UNAVAILABLE`) is the stop: block with that line as the reason and\nchange nothing. Do not\nread the registry another way, check it again, or look for a repository\nanywhere else.\n\n### Step 1: Find what syncs the target cluster\n\nTwo places hold the answer, and you need both: the repository holds what the\nreconciler applies, and the reconciler's own objects, which often live only\non the cluster, say which directory of which repository it syncs.\n\nOpen the repository with **submit-suggestion** `prepare` (its Step 1) on\nbranch `platform-agent\u002Fhelm-\u003Cchart>-\u003Ccluster>`, then search its `workspace`\nfor declarations of the four forms:\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py prepare \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" --branch \"platform-agent\u002Fhelm-\u003Cchart>-\u003Ccluster>\"\ngrep -rlE \"^kind: (Application|ApplicationSet)$\" \u003Cworkspace>\ngrep -rlE \"^apiVersion: (helm|source|kustomize)\\.toolkit\\.fluxcd\\.io\u002F\" \u003Cworkspace>\ngrep -rlE \"^kind: (RootSync|RepoSync)$\" \u003Cworkspace>\ngrep -rl \"^helmCharts:\" \u003Cworkspace>\n```\n\nThen read the reconciler objects on the cluster, or on the hub that deploys\nto it, when your kubeconfig reaches one. A `NotFound` for the resource type\nmeans that reconciler is not installed there:\n\n```bash\nkubectl get applications.argoproj.io -A -o yaml\nkubectl get kustomizations.kustomize.toolkit.fluxcd.io -A -o yaml\nkubectl get rootsyncs.configsync.gke.io -A -o yaml\nkubectl get reposyncs.configsync.gke.io -A -o yaml\n```\n\nA `Forbidden` is a fact to report, not an absence: on the cluster this agent\nruns on, its role reads no reconciler API group. Fall back to the CRD, which\nevery reader can see, and to the repository; when they still leave the form\nopen, ask the user which reconciler syncs the cluster.\n\n```bash\nkubectl get crd applications.argoproj.io kustomizations.kustomize.toolkit.fluxcd.io rootsyncs.configsync.gke.io\n```\n\nMatch each object's source (`spec.source.repoURL` and `path` for Argo CD,\n`spec.sourceRef` and `spec.path` for Flux, `spec.git.repo` and `spec.git.dir`\nfor Config Sync) against `\u003Crepo>`, and its destination against the cluster.\nArgo CD usually runs on a hub, so its `spec.destination` (`server` or `name`)\nnames the target, not the cluster the object sits on.\n\n| What you found                                                                                                            | Form                   |\n| ------------------------------------------------------------------------------------------------------------------------- | ---------------------- |\n| An Argo CD `Application` or `ApplicationSet` deploying a directory of `\u003Crepo>` to the cluster                             | Argo CD                |\n| A Flux `Kustomization` syncing a directory of `\u003Crepo>` on the cluster, or `HelmRelease` objects already in that directory | Flux                   |\n| A Config Sync `RootSync` or `RepoSync` syncing a directory of `\u003Crepo>` on the cluster                                     | Config Sync            |\n| A `kustomization.yaml` with a `helmCharts:` list in a directory Argo CD or Config Sync builds                             | kustomize `helmCharts` |\n| No reconciler object syncs `\u003Crepo>` to the cluster: plain YAML that a CI job applies with `kubectl apply`                 | none (stop, below)     |\n\nA synced directory of plain YAML is enough: the form is the reconciler that\nsyncs it, and the chart's declaration goes into that directory\n(`references\u002Fforms.md` says how for each).\n\nDecide:\n\n- **Exactly one form targets the cluster.** Use it. When charts are already\n  declared, copy how the nearest one is written: its directory, file\n  naming, apiVersions, namespace, sync options.\n- **More than one form targets it,** or the repository holds forms for other\n  clusters and none for this one. Stop and name each candidate with its file\n  path; ask which one owns this cluster. Never pick one.\n- **None.** Stop with: \"Nothing that renders Helm charts syncs `\u003Ccluster>`\n  from `\u003Crepo>`: its pipeline applies plain YAML. Installing `\u003Cchart>`\n  through a pull request needs Argo CD, Flux or Config Sync syncing that\n  cluster, or a chart-rendering step in the pipeline. I have changed\n  nothing.\" Never install a reconciler as part of the request.\n\n### Step 2: The target cluster is created in the same pull request\n\nWhen the cluster does not exist yet and this pull request (or the one it is\npart of) creates it, no reconciler targets it until after merge.\n[references\u002Fnew-cluster.md](references\u002Fnew-cluster.md) lists which forms can\nstill declare the chart for it in the same pull request. Use one only when\nthe repository already uses that form for its other clusters. Otherwise stop\nwith: \"`\u003Cchart>` can only be declared for `\u003Ccluster>` after the cluster\nexists and is registered with `\u003Creconciler>`; the cluster creation can go\nahead without it.\"\n\n### Step 3: Pin the source and the version\n\n- **Source.** Take the chart repository URL and chart name from the\n  project's own install guide, read in full. Do these steps in order before\n  deciding on a source; skipping to a search is the failure this rule\n  exists for:\n  1. **The Developer Knowledge MCP, always first.** Its tools are deferred:\n     run `tool_search(\"developer_knowledge\")`, then call them through\n     `tool_call`:\n     - `mcp__developer_knowledge__search_documents` with\n       `query: \"\u003Cproject> install\"`. Each result's `parent` names a page.\n     - `mcp__developer_knowledge__get_documents` with\n       `names: [\"\u003Cparent>\"]` reads that page. The page you read is the\n       source; a search result's chunk is not. Never `answer_query`.\n\n     An empty result (`{}`) means it does not cover the project: go to 2.\n\n  2. **The project's own repository, through inspect-repository.** Open it\n     and read its README, install docs and chart directory:\n\n     ```bash\n     python3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Finspect-repository\u002Fscripts\u002Finspect_repository.py clone --repo \"\u003Cowner>\u002F\u003Crepo>\" --depth 1 --into \"\u002Fopt\u002Fdata\u002Fscratch\u002Frepos\u002F\u003Cowner>__\u003Crepo>__default\"\n     ```\n\n     The repository's name may come from a search result; its files, not\n     the result, are the source. A `clone` that exits non-zero left an\n     incomplete copy: never read it. When a `clone` reports its directory is\n     not empty (a retry, or another card on this pod), clone again into a\n     new `--into` name (`…__default-2`); never `--force`.\n\n  A search result is never a source: its snippets name forks, mirrors and\n  personal repositories as readily as the project. A chart found by search\n  on a mirror, a fork or a personal registry is not the project's chart;\n  when the guide and other sources disagree, the guide wins, and the PR body\n  names the document or repository path you read. Steps 1 and 2 gave no\n  guide that names a chart: stop and ask for the source.\n\n- **No chart at all.** When the project's documented install is an installer\n  script or CLI that fills in values and renders manifests itself (Agent\n  Substrate's `ate-setup deploy` is one), there is no declarative package to\n  pin. Stop with: \"`\u003Ccomponent>` has no Helm chart or manifest release; its\n  documented install is `\u003Cinstaller>`, which this agent does not run. I\n  have changed nothing.\" A chart by the same name from a fork is not a\n  substitute (for Substrate, `ghcr.io\u002Fkagent-dev` is a fork with different\n  images and snapshot storage).\n- **Version.** The version the user named. Otherwise the highest semantic\n  version with no `-rc`, `-alpha` or `-beta` suffix that the guide names, or\n  the chart's `Chart.yaml` at a release branch the guide names\n  (**inspect-repository** `clone --ref \u003Cbranch> --into \"\u002Fopt\u002Fdata\u002Fscratch\u002Frepos\u002F\u003Cowner>__\u003Crepo>__\u003Cbranch>\"`:\n  each ref into its own directory, because a second `clone` into the same\n  one is refused, and `--force` would mix two trees). Never the default branch's `Chart.yaml`:\n  it can carry an unreleased version. No released version you could read:\n  ask the user for it. Compare versions, not\n  dates: a backport patch to an older minor is often published last. Never a range, `latest`, or\n  an empty version: a reconciler re-resolves those and upgrades on its own.\n- **Values.** Read the chart's `values.yaml` at that version and set only\n  what the request or Step 4 needs. A copied default becomes a value someone\n  has to own.\n- Record each document, repository path or URL you read; the PR body cites them.\n\n### Step 4: Name what the chart needs outside the cluster\n\nRead the install guide's prerequisites and the chart's values for:\n\n- **Cloud resources**: a bucket, a Google service account and its Workload\n  Identity binding, an enabled API, a DNS zone, a static IP.\n- **Cluster settings**: GKE Standard versus Autopilot, a machine series, a\n  node label or taint, a beta API, Workload Identity, a minimum version.\n- **Other charts or CRDs** it depends on.\n\nFor each one, check the cluster (`gcloud container clusters describe`) or the\nrepository. Already met: say so in the PR body. Not met, and the repository\ncan declare it (KCC or Terraform under `provisioning\u002F`, through\n`gcp-config-connector` or `gcp-terraform`): put it in the same pull\nrequest. Not met and not declarable here (a setting that only\nexists at cluster creation, an allowlist, a manual step): stop and name\nevery such item. A partial install that fails after merge is worse than no\npull request.\n\n### Step 5: Author the declaration\n\nWrite it in the form Step 1 chose, beside the cluster's other synced\nmanifests. [references\u002Fforms.md](references\u002Fforms.md) has the shape of each\nform; [references\u002Fcert-manager.md](references\u002Fcert-manager.md) is a worked\nexample. In every form:\n\n- Pin the exact chart version from Step 3.\n- Install the chart's CRDs the way the chart documents (a value such as\n  `crds.enabled: true`, or the reconciler's CRD policy), never as a separate\n  hand-copied manifest.\n- Put the release in its own namespace, created by the reconciler's option\n  or by a `Namespace` manifest beside it, whichever the siblings use.\n- Validate each field against the reconciler's CRD with `kubectl explain`\n  when your kubeconfig reaches a cluster that has it:\n\n```bash\nkubectl explain helmrelease.spec.chart.spec --api-version=helm.toolkit.fluxcd.io\u002Fv2\nkubectl explain application.spec.source.helm --api-version=argoproj.io\u002Fv1alpha1\nkubectl explain rootsync.spec.helm --api-version=configsync.gke.io\u002Fv1beta1\n```\n\n### Step 6: Open the pull request\n\nSubmit through **submit-suggestion** `submit` with the branch from Step 1.\nUse this shape for the `--body-file` document, after the skill's standard\nheader, and pass the `--evidence-file` its Step 3 requires:\n\n```\n### Helm chart\n- **Chart:** `\u003Cchart>` `\u003Cversion>` from `\u003Crepository URL>`.\n- **Source:** \u003Cinstall guide: Developer Knowledge document or repository path>; version from \u003Cthe guide, or Chart.yaml at release branch \u003Cbranch>>.\n- **Form:** \u003CArgo CD Application | Flux HelmRelease | Config Sync RootSync | kustomize helmCharts>,\n  matching \u003Csibling file path>.\n- **Target:** cluster `\u003Ccluster>`, namespace `\u003Cnamespace>`.\n- **Values set:** \u003Ceach value and why>, or \"chart defaults\".\n- **Needs outside the cluster:** \u003Ceach item and where it is met: already on the cluster,\n  declared in this PR at \u003Cpath>>, or \"none\".\n- **Not run here:** `helm template` and any dry-run. The agent has no route to the chart\n  repository; the reconciler renders the chart after merge.\n- **After merge:** \u003Creconciler> installs the release; check its status in \u003Cwhere>.\n```\n\nRecord the PR URL for the user. On a kanban card, a stop from Steps 1 to 4\nends in `kanban_block(kind=\"needs_input\")` with the stop text as the reason, never in\n`kanban_complete` with advice.\n\n## Red Lines\n\n- No `helm` command of any kind, including `helm template`, `helm pull` and\n  `helm repo add`. No `kubectl apply`, `create`, `patch` or `delete`.\n- Never request, print or pass an access token, a kubeconfig or a\n  credential for `helm` or for any other tool.\n- Never install, enable or configure a reconciler, and never change the\n  repository's pipeline, to make a chart installable.\n- Never probe for a write path once a stop applies: no `kubectl auth can-i\ncreate`, no Secret listing, no `--as` impersonation, no other identity.\n- Never commit rendered chart output as plain YAML. It cannot be upgraded by\n  version and nothing reconciles it as a chart.\n- Never leave the version unpinned, and never take a chart from a source the\n  project's install guide does not name.\n","# Third-Party Helm Charts Through GitOps\n\nA chart reaches a cluster from this agent one way: as a declaration in the\nGitOps repository that the customer's reconciler renders and applies after a\nhuman merges it. This skill writes that declaration and opens the pull\nrequest through **submit-suggestion**. It never runs `helm`. The shell\nsandbox holds no cluster credential and has no route to a chart repository,\nso `helm install`, `helm upgrade`, `helm template` and `helm pull` all fail\nthere, and asking for a token to hand to `helm` is refused by the credential\nbroker. Those refusals are the design, not obstacles to route around.\n\n## When to Use\n\n- **Install a chart** on a cluster: \"install cert-manager on prod-east\",\n  \"add external-dns to the staging clusters\".\n- **Upgrade or reconfigure** a chart the repository already declares: a new\n  version, a changed value.\n- **A packaged third-party component** whose documented install is a Helm\n  chart, even when the user did not say \"Helm\".\n\n## When NOT to Use\n\n- **kube-agents itself**: an operator installs and upgrades it with the\n  installer (`upgrade.sh`), which this agent does not run.\n- **Plain Kubernetes YAML** you write yourself: `gke-manifest-generation`.\n- **Google Cloud resources** (buckets, service accounts, node pools,\n  clusters): `gcp-config-connector` for KCC repositories. They can ride in the\n  same pull request as the chart (Step 4).\n- **A request that asked for advice, not a change** (\"should we use\n  cert-manager?\"): answer it. `SOUL.md` §3 item 3 draws that line.\n\n## Workflow\n\n### Step 0: A stop ends the request\n\nEvery \"stop\" in this skill is the answer, not a reason to look for another\nway in. When one applies, report it in the words given, change nothing,\nand end: on a kanban card with `kanban_block(kind=\"needs_input\")` and the\nstop as the reason. Do not go on to check what you are allowed to create\n(`kubectl auth can-i create ...`), list Secrets, try another identity, or\nsearch the filesystem for credentials or a repository; a card that says\n\"install and verify\" is still answered by the stop.\n\nThe first stop comes before anything else: the install must have a GitOps\nrepository registered, and it must be reachable. One command answers both,\nand its one line is final:\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py\npython3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py --repo \"\u003Cowner>\u002F\u003Crepo>\"\n```\n\nRun the first form before anything else, and the second once you know which\nrepository the change goes to. `REGISTERED: ...` (exit 0) means go on. Any\nother line (`NO_REGISTERED_REPO`, `REPO_UNREACHABLE`, `STATE_UNREADABLE`,\n`BROKER_UNAVAILABLE`) is the stop: block with that line as the reason and\nchange nothing. Do not\nread the registry another way, check it again, or look for a repository\nanywhere else.\n\n### Step 1: Find what syncs the target cluster\n\nTwo places hold the answer, and you need both: the repository holds what the\nreconciler applies, and the reconciler's own objects, which often live only\non the cluster, say which directory of which repository it syncs.\n\nOpen the repository with **submit-suggestion** `prepare` (its Step 1) on\nbranch `platform-agent\u002Fhelm-\u003Cchart>-\u003Ccluster>`, then search its `workspace`\nfor declarations of the four forms:\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py prepare \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" --branch \"platform-agent\u002Fhelm-\u003Cchart>-\u003Ccluster>\"\ngrep -rlE \"^kind: (Application|ApplicationSet)$\" \u003Cworkspace>\ngrep -rlE \"^apiVersion: (helm|source|kustomize)\\.toolkit\\.fluxcd\\.io\u002F\" \u003Cworkspace>\ngrep -rlE \"^kind: (RootSync|RepoSync)$\" \u003Cworkspace>\ngrep -rl \"^helmCharts:\" \u003Cworkspace>\n```\n\nThen read the reconciler objects on the cluster, or on the hub that deploys\nto it, when your kubeconfig reaches one. A `NotFound` for the resource type\nmeans that reconciler is not installed there:\n\n```bash\nkubectl get applications.argoproj.io -A -o yaml\nkubectl get kustomizations.kustomize.toolkit.fluxcd.io -A -o yaml\nkubectl get rootsyncs.configsync.gke.io -A -o yaml\nkubectl get reposyncs.configsync.gke.io -A -o yaml\n```\n\nA `Forbidden` is a fact to report, not an absence: on the cluster this agent\nruns on, its role reads no reconciler API group. Fall back to the CRD, which\nevery reader can see, and to the repository; when they still leave the form\nopen, ask the user which reconciler syncs the cluster.\n\n```bash\nkubectl get crd applications.argoproj.io kustomizations.kustomize.toolkit.fluxcd.io rootsyncs.configsync.gke.io\n```\n\nMatch each object's source (`spec.source.repoURL` and `path` for Argo CD,\n`spec.sourceRef` and `spec.path` for Flux, `spec.git.repo` and `spec.git.dir`\nfor Config Sync) against `\u003Crepo>`, and its destination against the cluster.\nArgo CD usually runs on a hub, so its `spec.destination` (`server` or `name`)\nnames the target, not the cluster the object sits on.\n\n| What you found                                                                                                            | Form                   |\n| ------------------------------------------------------------------------------------------------------------------------- | ---------------------- |\n| An Argo CD `Application` or `ApplicationSet` deploying a directory of `\u003Crepo>` to the cluster                             | Argo CD                |\n| A Flux `Kustomization` syncing a directory of `\u003Crepo>` on the cluster, or `HelmRelease` objects already in that directory | Flux                   |\n| A Config Sync `RootSync` or `RepoSync` syncing a directory of `\u003Crepo>` on the cluster                                     | Config Sync            |\n| A `kustomization.yaml` with a `helmCharts:` list in a directory Argo CD or Config Sync builds                             | kustomize `helmCharts` |\n| No reconciler object syncs `\u003Crepo>` to the cluster: plain YAML that a CI job applies with `kubectl apply`                 | none (stop, below)     |\n\nA synced directory of plain YAML is enough: the form is the reconciler that\nsyncs it, and the chart's declaration goes into that directory\n(`references\u002Fforms.md` says how for each).\n\nDecide:\n\n- **Exactly one form targets the cluster.** Use it. When charts are already\n  declared, copy how the nearest one is written: its directory, file\n  naming, apiVersions, namespace, sync options.\n- **More than one form targets it,** or the repository holds forms for other\n  clusters and none for this one. Stop and name each candidate with its file\n  path; ask which one owns this cluster. Never pick one.\n- **None.** Stop with: \"Nothing that renders Helm charts syncs `\u003Ccluster>`\n  from `\u003Crepo>`: its pipeline applies plain YAML. Installing `\u003Cchart>`\n  through a pull request needs Argo CD, Flux or Config Sync syncing that\n  cluster, or a chart-rendering step in the pipeline. I have changed\n  nothing.\" Never install a reconciler as part of the request.\n\n### Step 2: The target cluster is created in the same pull request\n\nWhen the cluster does not exist yet and this pull request (or the one it is\npart of) creates it, no reconciler targets it until after merge.\n[references\u002Fnew-cluster.md](references\u002Fnew-cluster.md) lists which forms can\nstill declare the chart for it in the same pull request. Use one only when\nthe repository already uses that form for its other clusters. Otherwise stop\nwith: \"`\u003Cchart>` can only be declared for `\u003Ccluster>` after the cluster\nexists and is registered with `\u003Creconciler>`; the cluster creation can go\nahead without it.\"\n\n### Step 3: Pin the source and the version\n\n- **Source.** Take the chart repository URL and chart name from the\n  project's own install guide, read in full. Do these steps in order before\n  deciding on a source; skipping to a search is the failure this rule\n  exists for:\n  1. **The Developer Knowledge MCP, always first.** Its tools are deferred:\n     run `tool_search(\"developer_knowledge\")`, then call them through\n     `tool_call`:\n     - `mcp__developer_knowledge__search_documents` with\n       `query: \"\u003Cproject> install\"`. Each result's `parent` names a page.\n     - `mcp__developer_knowledge__get_documents` with\n       `names: [\"\u003Cparent>\"]` reads that page. The page you read is the\n       source; a search result's chunk is not. Never `answer_query`.\n\n     An empty result (`{}`) means it does not cover the project: go to 2.\n\n  2. **The project's own repository, through inspect-repository.** Open it\n     and read its README, install docs and chart directory:\n\n     ```bash\n     python3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Finspect-repository\u002Fscripts\u002Finspect_repository.py clone --repo \"\u003Cowner>\u002F\u003Crepo>\" --depth 1 --into \"\u002Fopt\u002Fdata\u002Fscratch\u002Frepos\u002F\u003Cowner>__\u003Crepo>__default\"\n     ```\n\n     The repository's name may come from a search result; its files, not\n     the result, are the source. A `clone` that exits non-zero left an\n     incomplete copy: never read it. When a `clone` reports its directory is\n     not empty (a retry, or another card on this pod), clone again into a\n     new `--into` name (`…__default-2`); never `--force`.\n\n  A search result is never a source: its snippets name forks, mirrors and\n  personal repositories as readily as the project. A chart found by search\n  on a mirror, a fork or a personal registry is not the project's chart;\n  when the guide and other sources disagree, the guide wins, and the PR body\n  names the document or repository path you read. Steps 1 and 2 gave no\n  guide that names a chart: stop and ask for the source.\n\n- **No chart at all.** When the project's documented install is an installer\n  script or CLI that fills in values and renders manifests itself (Agent\n  Substrate's `ate-setup deploy` is one), there is no declarative package to\n  pin. Stop with: \"`\u003Ccomponent>` has no Helm chart or manifest release; its\n  documented install is `\u003Cinstaller>`, which this agent does not run. I\n  have changed nothing.\" A chart by the same name from a fork is not a\n  substitute (for Substrate, `ghcr.io\u002Fkagent-dev` is a fork with different\n  images and snapshot storage).\n- **Version.** The version the user named. Otherwise the highest semantic\n  version with no `-rc`, `-alpha` or `-beta` suffix that the guide names, or\n  the chart's `Chart.yaml` at a release branch the guide names\n  (**inspect-repository** `clone --ref \u003Cbranch> --into \"\u002Fopt\u002Fdata\u002Fscratch\u002Frepos\u002F\u003Cowner>__\u003Crepo>__\u003Cbranch>\"`:\n  each ref into its own directory, because a second `clone` into the same\n  one is refused, and `--force` would mix two trees). Never the default branch's `Chart.yaml`:\n  it can carry an unreleased version. No released version you could read:\n  ask the user for it. Compare versions, not\n  dates: a backport patch to an older minor is often published last. Never a range, `latest`, or\n  an empty version: a reconciler re-resolves those and upgrades on its own.\n- **Values.** Read the chart's `values.yaml` at that version and set only\n  what the request or Step 4 needs. A copied default becomes a value someone\n  has to own.\n- Record each document, repository path or URL you read; the PR body cites them.\n\n### Step 4: Name what the chart needs outside the cluster\n\nRead the install guide's prerequisites and the chart's values for:\n\n- **Cloud resources**: a bucket, a Google service account and its Workload\n  Identity binding, an enabled API, a DNS zone, a static IP.\n- **Cluster settings**: GKE Standard versus Autopilot, a machine series, a\n  node label or taint, a beta API, Workload Identity, a minimum version.\n- **Other charts or CRDs** it depends on.\n\nFor each one, check the cluster (`gcloud container clusters describe`) or the\nrepository. Already met: say so in the PR body. Not met, and the repository\ncan declare it (KCC or Terraform under `provisioning\u002F`, through\n`gcp-config-connector` or `gcp-terraform`): put it in the same pull\nrequest. Not met and not declarable here (a setting that only\nexists at cluster creation, an allowlist, a manual step): stop and name\nevery such item. A partial install that fails after merge is worse than no\npull request.\n\n### Step 5: Author the declaration\n\nWrite it in the form Step 1 chose, beside the cluster's other synced\nmanifests. [references\u002Fforms.md](references\u002Fforms.md) has the shape of each\nform; [references\u002Fcert-manager.md](references\u002Fcert-manager.md) is a worked\nexample. In every form:\n\n- Pin the exact chart version from Step 3.\n- Install the chart's CRDs the way the chart documents (a value such as\n  `crds.enabled: true`, or the reconciler's CRD policy), never as a separate\n  hand-copied manifest.\n- Put the release in its own namespace, created by the reconciler's option\n  or by a `Namespace` manifest beside it, whichever the siblings use.\n- Validate each field against the reconciler's CRD with `kubectl explain`\n  when your kubeconfig reaches a cluster that has it:\n\n```bash\nkubectl explain helmrelease.spec.chart.spec --api-version=helm.toolkit.fluxcd.io\u002Fv2\nkubectl explain application.spec.source.helm --api-version=argoproj.io\u002Fv1alpha1\nkubectl explain rootsync.spec.helm --api-version=configsync.gke.io\u002Fv1beta1\n```\n\n### Step 6: Open the pull request\n\nSubmit through **submit-suggestion** `submit` with the branch from Step 1.\nUse this shape for the `--body-file` document, after the skill's standard\nheader, and pass the `--evidence-file` its Step 3 requires:\n\n```\n### Helm chart\n- **Chart:** `\u003Cchart>` `\u003Cversion>` from `\u003Crepository URL>`.\n- **Source:** \u003Cinstall guide: Developer Knowledge document or repository path>; version from \u003Cthe guide, or Chart.yaml at release branch \u003Cbranch>>.\n- **Form:** \u003CArgo CD Application | Flux HelmRelease | Config Sync RootSync | kustomize helmCharts>,\n  matching \u003Csibling file path>.\n- **Target:** cluster `\u003Ccluster>`, namespace `\u003Cnamespace>`.\n- **Values set:** \u003Ceach value and why>, or \"chart defaults\".\n- **Needs outside the cluster:** \u003Ceach item and where it is met: already on the cluster,\n  declared in this PR at \u003Cpath>>, or \"none\".\n- **Not run here:** `helm template` and any dry-run. The agent has no route to the chart\n  repository; the reconciler renders the chart after merge.\n- **After merge:** \u003Creconciler> installs the release; check its status in \u003Cwhere>.\n```\n\nRecord the PR URL for the user. On a kanban card, a stop from Steps 1 to 4\nends in `kanban_block(kind=\"needs_input\")` with the stop text as the reason, never in\n`kanban_complete` with advice.\n\n## Red Lines\n\n- No `helm` command of any kind, including `helm template`, `helm pull` and\n  `helm repo add`. No `kubectl apply`, `create`, `patch` or `delete`.\n- Never request, print or pass an access token, a kubeconfig or a\n  credential for `helm` or for any other tool.\n- Never install, enable or configure a reconciler, and never change the\n  repository's pipeline, to make a chart installable.\n- Never probe for a write path once a stop applies: no `kubectl auth can-i\ncreate`, no Secret listing, no `--as` impersonation, no other identity.\n- Never commit rendered chart output as plain YAML. It cannot be upgraded by\n  version and nothing reconciles it as a chart.\n- Never leave the version unpinned, and never take a chart from a source the\n  project's install guide does not name.\n",{"name":5,"description":7},"main","4544e0540d35535c4b9deb47d6f77abda58fee1b","agents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add gke-labs\u002Fkube-agents --skill gitops-helm-chart",{"tool":37,"command":38},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gitops-helm-chart",{"tool":40,"command":41},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gitops-helm-chart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcert-manager.md","REFERENCE","参考文档",4308,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart\u002Freferences\u002Fcert-manager.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fforms.md",5746,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart\u002Freferences\u002Fforms.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fnew-cluster.md",8857,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgitops-helm-chart\u002Freferences\u002Fnew-cluster.md",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]