[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7211PFJDPE8A6KFG68DGNRJ":3,"skill-same:01M7211PFJDPE8A6KFG68DGNRJ":51},{"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},"01M7211PFJDPE8A6KFG68DGNRJ","submit-suggestion",null,"Open a pull request (a merge request on GitLab) when the request asked for one, committing declarative configuration changes for SRE review; not for a request to \"propose a manifest\", which is answered in the reply. Covers a request to delete a resource, which its \"Deleting a resource\" section answers with a pull request that removes the declaring manifest, or a stated stop when the repository does not declare it. Not for fleet-audit finding fixes — the fleet-audit skill opens and tracks those PRs itself.","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\u002Fsubmit-suggestion\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: submit-suggestion\ndescription: Open a pull request (a merge request on GitLab) when the request asked for one, committing declarative configuration changes for SRE review; not for a request to \"propose a manifest\", which is answered in the reply. Covers a request to delete a resource, which its \"Deleting a resource\" section answers with a pull request that removes the declaring manifest, or a stated stop when the repository does not declare it. Not for fleet-audit finding fixes — the fleet-audit skill opens and tracks those PRs itself.\n---\n\n# submit-suggestion - Secure GitOps Pull Request Orchestrator\n\nThis skill equips the Platform Agent to propose declarative file updates, GKE infrastructure adjustments, or configuration changes securely by committing local repository changes and submitting pull requests (PRs; merge requests on GitLab) for human review. The repository is named as `owner\u002Fname` on github.com, `\u003Chost>\u002Fowner\u002Fname` on a GitHub Enterprise Server, or `\u003Chost>\u002F\u003Cpath>` — `gitlab.com\u002F\u003Cgroup>\u002F\u003Csubgroup>\u002F\u003Cproject>` — for one on another forge, exactly as it appears in the managed repository list.\n\n## When to Use\n\n- **Declarative File Provisioning:** Triggered when new GKE manifests or configs are requested.\n- **Configuration Upgrades:** Triggered when upgrading version configurations, security patches, or network policies.\n- **Governance Policy Syncs:** Triggered when compliance playbooks or settings require updates.\n- **Any change in the GitOps repository** reaches review through this skill, but a Terraform, Config Connector or Helm-chart change is written by its authoring skill first (Step 2's table).\n- **Deletions:** Triggered when someone asks to delete a resource. See [Deleting a resource](#deleting-a-resource) before Step 1: a declared object is removed in a pull request, anything else is a stated stop.\n\n_Crucially, you are strictly forbidden from executing direct, manual mutations. All changes must flow through a secure PR path — this skill, or the **fleet-audit** skill for fixes of its findings (below)._\n\n## When NOT to Use\n\n- **Answering a request that asked for a diagnosis, not a change.** \"Investigate\n  and report the root cause\", \"why is this crashlooping\", \"what would you\n  change\" are questions; their answer is the finding and the proposed manifest\n  in the reply, marked as a recommendation. Open the pull request only when the\n  request asks for one, or for the change to be submitted or fixed; `SOUL.md`\n  §3, item 3 draws the line, and the unattended case is `fleet-audit`'s own\n  promotion, which `finish` does on a scheduled run, never this skill. A pull\n  request nobody asked for is a write on their repository they now have to\n  triage.\n- **A fix that belongs in a repository this agent does not write.** When\n  reading the managed repository shows the value is defined somewhere else —\n  the chart a `HelmRelease` or `Application` installs, a Terraform module, a\n  tenant's own repository, a `context` repository — `SOUL.md` §3, item 8\n  applies: follow the reference read-only with **inspect-repository**, name\n  the repository, file and line in the reply with the change as a diff, and\n  open no pull request. Never stand in an edit here (an override, a\n  post-render patch, a second copy of the object) for the fix there. A\n  SOPS-encrypted file in the workspace is read for its metadata only: never\n  decrypt it, and never ask for or offer to wait for its key.\n- **Fixing a fleet-audit finding.** The bullets above match audit fixes too — a\n  security patch, a policy update — which is exactly why this warning exists. If\n  the change addresses a fleet-audit finding (it carries a finding id, or an\n  `[audit]` ledger issue lists that exact deviation as a finding), the\n  **fleet-audit** skill opens that pull request itself, through its `remediate`\n  subcommand — see `\u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit\u002Freferences\u002Fremediation.md` for the invocation. That path\n  keys the branch on the files the fix touches, so a rerun cannot open a\n  duplicate: a live PR is left untouched rather than force-pushed over, and one\n  the harness withdrew as stale is re-proposed on the same branch. It applies\n  the audit labels, links the ledger, and closes the PR when the finding stops\n  reproducing. A PR opened through _this_ skill gets none of that — nothing\n  dedupes it and nothing ever closes it, which is how one workload's findings\n  once became five near-duplicate PRs.\n\n  Two cautions when you take that path. `remediate` consumes the findings\n  document the audit run wrote (`start` prints its path); if it no longer\n  exists, stop and say the fix should be requested as `\u002Fremediate \u003Cfinding-id>`\n  on the ledger — do **not** run `start` yourself to mint a fresh document (it\n  scrubs that stream's workspace, possibly under a scheduled run), and never\n  hand-write one. And a change a user asked for on its own terms is not an\n  audit fix, even when the same file appears in a ledger — this section is\n  about fixes _of findings_, not about files findings happen to mention.\n\n## Execution Instructions\n\nFollow these steps to make, commit, and submit your GitOps suggestions asynchronously:\n\n### Step 1: Prepare\n\nNever run the plain `git` on this machine and never work from wherever your\nshell happens to start. That `git` is a different program: it reaches the\nnetwork with a credential, and it is not the one your working copy answers to.\n`prepare` brings the repository down and stands you on the branch this change\ngoes on.\n\nThe script path is spelled out from `$HERMES_HOME` rather than as `.\u002Fskills\u002F…`\nbecause this skill is reached from a kanban card as well as from a cron turn,\nand a card dispatch starts you in the task's workspace, not the profile\ndirectory. `$HERMES_HOME` is the profile directory in both. Use that form\neverywhere below, including for `vcs.py` in Step 5.\n\nIf you do meet a `No such file or directory` on one of these scripts, do **not**\nrecover by writing the absolute path out: `\u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002F…` is\nrefused by the gateway lifecycle guard, under an error about restarting the\ngateway that has nothing to do with what you ran. Observed live — the refusal\nsent one worker on to report a change it had not made.\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py prepare \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" \\\n  --branch \"platform-agent\u002F\u003Cchange_type>-\u003Ctarget_id>\"\n```\n\n_(Example: `--repo \"acme\u002Ffleet\" --branch \"platform-agent\u002Fprovision-mercury-09\"` or `--repo \"acme\u002Ffleet\" --branch \"platform-agent\u002Fupgrade-policy-baseline\"`)_\n\nIn a multi-repository environment, pass `--repo \"\u003Cowner>\u002F\u003Crepo>\"` for the repository your task targets (identified from cluster annotations or task context per SOUL.md §3, item 6).\n\nPass `--repo` as the repository registration names it: `\u003Cowner>\u002F\u003Crepo>` on\nGitHub, or `\u003Chost>\u002F\u003Cowner>\u002F\u003Crepo>` on another declared forge (such as GitLab or\nGitea). `prepare` echoes the canonical repository name in `repo`; pass that\n`repo` value to every later `--repo` in this skill and in `version-control`\ncalls so installs that serve more than one forge do not have to guess which\nhost a bare slug belongs to.\n\nIt prints one JSON line. **Keep it — Step 2 works inside its `workspace`.** The\n`workspace` is named for your branch as well as the repository, because\n`\u002Fopt\u002Fdata\u002Fscratch` is shared with every other card: another card suggesting a\nchange to the same repository right now derives a different branch name for it,\nso it works in a different directory. Different, not protected — every card here\nruns as the same account and the whole tree is readable and writable from all of\nthem. What keeps two suggestions apart is that no two of them share a branch\nname, which is why the name has to describe the change.\n\n```json\n{\n  \"workspace\": \"\u002Fopt\u002Fdata\u002Fscratch\u002Fvcs\u002Fgithub__acme__fleet__platform-agent__provision-mercury-09\",\n  \"repo\": \"acme\u002Ffleet\",\n  \"branch\": \"platform-agent\u002Fprovision-mercury-09\",\n  \"base\": \"main\",\n  \"started_from\": \"main\",\n  \"proposal\": \"\"\n}\n```\n\n`base` is what the change merges into: the branch the operator configured for\nthis repository when there is one (the broker refuses a pull request onto any\nother), else the repository's own default branch, not a hardcoded `main` — or,\nwhen a pull request for this branch is already open, whatever that one is\nalready targeting. It comes from the broker, never from your environment:\nexporting `GITOPS_BASE_BRANCH` or any other variable does not change it.\nIf `prepare` is refused with `BASE_BRANCH_MISSING`, the configured base named\nin the message does not exist on the repository. That is for an operator to\nfix; report it and stop rather than naming another branch.\n\n`started_from` and `proposal` are two halves of one answer — whether this is new\nwork or another round on a change already under review. `prepare` asks the forge\nrather than taking your word for it. When a pull request is open for the branch,\nits URL is in `proposal`, the copy is taken **of that branch** so every reviewed\nrevision comes down with it, and `started_from` is the branch itself. Otherwise\n`proposal` is empty, the copy is taken of the base, and `started_from` is the\nbase.\n\nThere is one working copy per repository **and branch**, so preparing a second\nchange to the same repository does not disturb the first. If the copy for this\nbranch holds revisions that were never published, `prepare` refuses to replace\nit. Finishing them is the way past, not the flag: go to the copy the refusal\nnames, publish what is in it and open the proposal, and this `prepare` becomes a\nsecond round on that branch instead of a replacement. `--force` deletes those\nrevisions; it is the answer only once you have read them and decided they should\nnot exist.\n\nA name can also be spent: the proposal it was last used for is closed or\nsquash-merged, and its revisions are not in the history you just cloned. If the\nforge still holds that branch, a change cut fresh from the base does not build\non it and `submit` would be refused as `BRANCH_DIVERGED`. `prepare` handles this\nitself: it asks the forge whether the branch is still there and, when it is,\ndeletes it — the broker allows that only for a branch under `platform-agent\u002F`,\nwith no open proposal, whose tip is exactly what a closed proposal from this\nrepository carried, and every proposal on it opened by this install's\ncredential. A credential that cannot name its own login cannot show the last\npart, so for it the prefix and the same-repository rule are the whole bar.\nThe log line says which happened. Nothing is lost: on GitHub and on GitLab the\nrevisions stay reachable from the closed proposal.\n\nIf the broker refuses the delete, `prepare` refuses the name and names the\ncode. `NOT_SPENT` means the branch moved on after its proposal closed;\n`BRANCH_MOVED` means something pushed to it a moment ago — run `prepare` once\nmore, which reads it again; if a person or a sibling card on the same name added\nto it, that second run refuses it as `NOT_SPENT`. `OPEN_PROPOSAL` means a\nproposal was opened on the name since `prepare` looked; run `prepare` once\nmore, and it adds to that proposal's branch. `BRANCH_NOT_OURS` means a proposal from it was\nnot this install's, or the name is not under `platform-agent\u002F`, or it has\ncarried a full page of proposals, too long a history to read, or an open\nproposal targets it (the message says which). Either way, do not delete it another way. `DELETE_REFUSED` means the\nrepository itself refuses to delete the branch (a branch rule, a hook, or a\ncredential without the right), and it will refuse again. Choose a different name where\nthe derived one is only a default, or report the refusal and stop where the name\nis fixed. `FORGE_CALL_FAILED`, `GIT_FAILED`, or a delete refused with no code\nis different: the delete did not complete (it may have landed before the\nfailure), and running `prepare` once more, which reads the branch afresh, is\nthe move; a second failure is reported, not retried. `FORGE_RATE_LIMITED` or\n`FORGE_UNAVAILABLE` from the delete is the forge turning it away for now: wait\na few minutes, then run `prepare` once more. The same codes from the read of\nthe branch that comes before the delete get the same moves, and `prepare` says\nwhich one. A proxy older than the\nsandbox cannot read the branch at all; `prepare` then refuses the name with\n`BROKER_ROUTE_UNSUPPORTED` and says so — use another name, or report it where the name is fixed.\n\n### Step 2: Make the Changes\n\n**First, hand the edit to the skill that writes its format.** `prepare` is\noften the first time you see what the change is written in, and this skill\nis the transport, not the author. Before you edit, look at the file or\ndirectory the change lands in:\n\n| The change is                                                                                                                        | Load and follow first    |\n| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |\n| a Terraform file (`.tf`, `.tf.json`, `.tfvars`), wherever it sits                                                                    | **gcp-terraform**        |\n| a Config Connector object (`apiVersion: *.cnrm.cloud.google.com\u002F*`)                                                                  | **gcp-config-connector** |\n| a Helm chart's declaration (a Helm-sourced `RootSync`, a Flux `HelmRelease`, an Argo CD Helm `Application`, kustomize `helmCharts:`) | **gitops-helm-chart**    |\n\nLoad it with `skill_view` and follow it from its Step 1, its own `prepare`\nand checks included (the CRD check for Config Connector, the reconciler form\nfor a chart, the owning files and pins for Terraform, then `tofu fmt`). You\nhave edited nothing yet, so nothing is lost: its `prepare` opens the copy\nunder its own branch name, and its last step submits that branch through\nStep 3 here. Leave the copy you prepared here unused. A plain Kubernetes\nmanifest has no authoring skill; write it here.\n\n**When the branch is already decided, stay on it.** In a review round\n(Step 5), or when `prepare` returned a non-empty `proposal`, the revisions\nunder review are on this copy's branch. Take the authoring skill's reads,\nwriting rules and checks, but not its Step 1 `prepare`, its branch name or\nits submit: edit in this `workspace` and submit from Step 3 here, onto the\nsame branch. Starting from its Step 1 would open a second pull request.\n\n**Implement only the chosen option.** When the request comes from a multi-option\ntriage or audit report (or a single-fix triage report), implement only the\noption the caller chose (the one marked Recommended when none was named, the\nsingle proposed fix, or the `Option \u003CX>` the user selected) and edit only the\nfile(s) that option calls for; if the repository holds both a GitOps sync source\npath and cluster bootstrap or provisioning copies of the workload, check the\nrepository's GitOps sync declaration for the namespace or workload and edit only\nthe synced workload manifest(s). Never bundle unchosen options\nor optional hardening into the same pull request, and never touch unrelated\nmanifests or infrastructure definitions.\n\nGenerate or edit the files **inside the returned `workspace`**.\n\nWhen modifying an existing Kubernetes object, edit the file that declares it in place. When\ncreating a new Kubernetes object (such as a `PodDisruptionBudget` for a `Deployment` or a\n`NetworkPolicy` for a `Namespace`), write it to a new, standalone file in that same directory.\nNever append a new object to an existing manifest file. If that directory uses Kustomize, add the\nnew filename to `resources:` in `kustomization.yaml` in the same pull request.\n\n`git` here holds no credential and cannot reach a forge; it works on the\nworking copy and nothing else, and `submit` is what sends the result.\n\n```bash\ncd \u003Cworkspace>\n# create or edit the declarative files here\ngit add \u003Cfile_path_1> \u003Cfile_path_2>\ngit commit -m \"\u003Cconventional_commit_message>\"\n```\n\n**CRITICAL SECURITY RULE:** explicitly stage only the targeted declarative files\nyou generated or modified. **Never use `git add .` or `git add -A`** — this is a\nreal clone on a filesystem you also scratch in, and a blanket add sweeps\ntransient debugging output, logs and anything else that landed there into a\npublic pull request.\n\n_(Example: `git add config\u002Fmanifest.yaml && git commit -m \"feat(fleet): provision GKE operator for mercury-09\"`)_\n\nCommitting here is optional. Uncommitted changes **to files the copy already\ntracks** are recorded as a single revision under the `--title` you pass when you\nrun Step 3, which is what a single-purpose change wants. Commit yourself when\nthe change deserves more than one revision, or a message that is not the pull\nrequest's headline.\n\nThe rule above still holds at Step 3: a file the copy has never seen is not\nswept in for you. `submit` refuses and names it, because it cannot tell a\nmanifest you generated from a log you left behind. Stage the ones that belong\n(`git add \u003Cpath>`) and delete the rest.\n\n### Deleting a resource\n\nA request to delete something (a namespace, a Deployment, a ConfigMap) reaches\nreview the same way as any other change, and the only delete a pull request\ncan carry is the removal of a manifest the repository already has. Never add a\nfile, an annotation or a label to say \"delete\": nothing reads one you invent,\nand a manifest you add declares its object, so merging it keeps the object.\n\n1. **The repository first.** Before Step 1:\n\n   ```bash\n   python3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py\n   ```\n\n   Any line other than `REGISTERED: ...` is the answer: block with that line as\n   the reason (`kanban_block(kind=\"needs_input\")`), change nothing, and do not\n   look for another way to delete it.\n\n2. **Find the declaration.** After Step 1's `prepare`, search the `workspace`\n   for the object's name, then read each file found and keep the one whose\n   `kind`, `metadata.name` and, for a namespaced object, `metadata.namespace`\n   match. A namespace is also declared without a Namespace manifest: by\n   objects placed in it, a `kustomization.yaml` whose `namespace:` names it, a\n   Flux `HelmRelease` or `Kustomization` whose `targetNamespace:` names it, a\n   `namespaces\u002F\u003Cname>\u002F` directory (Config Sync's hierarchical layout), or an\n   Argo CD `Application` with `CreateNamespace=true` deploying into it. Any of\n   those counts as declared. The search matches the key anywhere on the line,\n   so JSON and flow-style manifests are found too. Search only the target\n   cluster's directory (`clusters\u002F\u003Ccluster>\u002F`, or the path its reconciler\n   syncs): the same name under another cluster's directory is another\n   cluster's object. When the repository has no per-cluster layout and the\n   name is declared in more than one place, or you cannot tell which\n   directory is the target's, stop and name each file; never remove a\n   declaration you have not tied to the target cluster:\n\n   ```bash\n   grep -rlE \"[\\\"' {,]?(name|namespace|targetNamespace)[\\\"']?: *[\\\"']?\u003Cname>[\\\"']?([ ,}#]|$)\" \u003Cworkspace>\u002Fclusters\u002F\u003Ccluster>\n   find \u003Cworkspace>\u002Fclusters\u002F\u003Ccluster> -type d -path \"*\u002Fnamespaces\u002F\u003Cname>\"\n   ```\n\n3. **The repository declares it.** A delete needs the user's confirmation\n   first (`SOUL.md`); with it in the request, go ahead. Remove only what\n   declares the object, read document by document, never by file name or by\n   a `grep` hit alone:\n   - A file whose every document is the object (for a namespace: the\n     Namespace or an object in it) is `git rm`'d, and its line comes out of\n     the directory's `kustomization.yaml` `resources:` list.\n   - A file that also holds other documents keeps them: delete only the\n     matching documents from it.\n   - For a namespace, everything step 2 found goes in the same pull request,\n     each named in its body, because any one left behind recreates it: the\n     objects in it, its directory, and the `kustomization.yaml` that lists\n     only them.\n   - **The listing above it is an edit.** A removed file or directory that a\n     parent `kustomization.yaml` names in its `resources:` (for example\n     `- gitops-owned-scratch\u002F` in `clusters\u002F\u003Ccluster>\u002Fnamespaces\u002Fkustomization.yaml`)\n     loses that one line in the same pull request; left in, the parent no\n     longer renders and the whole synced path stops applying. Read the parent\n     directory's `kustomization.yaml` `resources:` list itself (an entry may\n     be `\u003Cname>\u002F`, `.\u002F\u003Cname>`, `\u003Cname>\u002F\u003Cfile>.yaml` or part of a flow list),\n     remove only the entries that name what this pull request removes, and\n     name the edit in the body.\n   - **A shared declaration is a stop.** A `kustomization.yaml`, Argo CD\n     `Application`, Flux `Kustomization` or Flux `HelmRelease` that also\n     creates objects outside the request, or a `namespaces\u002F\u003Cname>\u002F` directory with namespaces under it\n     (Config Sync's hierarchical abstract namespace), would delete those too.\n     Stop with: \"`\u003Cfile>` also declares `\u003Cother objects>`; removing it would\n     delete them as well. I have changed nothing.\" Never remove an\n     `Application` or a `HelmRelease`: an Application's resources finalizer\n     deletes everything it deploys, and helm-controller uninstalls a removed\n     release, cluster-scoped objects included. A request that would need one\n     removed is a stop that names it.\n\n   Then continue with Step 3. A delete's pull request body ends with what\n   step 5 read about the reconciler, in place of the template's closing line\n   about triggering a rollout.\n\n4. **The repository does not declare it.** Stop with: \"`\u003Crepo>` does not\n   declare `\u003Ckind>\u002F\u003Cname>`, so a pull request cannot delete it: removing a\n   declaration is the only delete a pull request carries. Someone with write\n   access to `\u003Ccluster>` has to run the delete. I have changed nothing.\"\n   Block with that line as the reason. Do not write a manifest for it.\n\n5. **Say what merging will do, from what you read.** Removing the file deletes\n   the object only if a reconciler syncs that directory and prunes. Read the\n   reconciler objects on the target cluster, and on the hub that deploys to it\n   when your kubeconfig reaches one (Argo CD usually runs on a hub). Your\n   default context is the cluster this agent runs on, not the target: pass\n   the target's own kubeconfig, `$HERMES_HOME\u002F.kubeconfigs\u002Fkubeconfig_\u003Cproject>_\u003Ccluster>_\u003Clocation>.yaml`,\n   with `--kubeconfig` on every read. When that file is not there yet,\n   fetch the target's credentials into it first (**gke-basics**, \"Cluster\n   Credentials\"). An answer of\n   `the server doesn't have a resource type` means that reconciler is not\n   installed on the context you read, and on this agent's own cluster it\n   says nothing about the target. Match each object's source against\n   `\u003Crepo>` and the file's directory:\n\n   ```bash\n   kubectl get applications.argoproj.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get kustomizations.kustomize.toolkit.fluxcd.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get rootsyncs.configsync.gke.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get reposyncs.configsync.gke.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   ```\n\n   - Argo CD prunes only with `spec.syncPolicy.automated.prune: true`; without\n     it the Application goes OutOfSync and someone syncs with prune. A\n     namespace Argo CD created through `CreateNamespace=true` is never pruned,\n     even with the Application deleted: for that shape, say merging leaves the\n     namespace in place.\n   - A Flux `Kustomization` prunes only with `spec.prune: true`.\n   - Config Sync deletes the objects it applied when their file goes.\n   - Pruning skips an object that opts out, so read the live object's\n     annotations (`kubectl get \u003Ckind> \u003Cname> -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"`) before saying it will\n     be deleted: `argocd.argoproj.io\u002Fsync-options: Prune=false`,\n     `kustomize.toolkit.fluxcd.io\u002Fprune: disabled`,\n     `configmanagement.gke.io\u002Fmanaged: disabled` or\n     `client.lifecycle.config.k8s.io\u002Fdeletion: detach` (which Config Sync sets\n     on a namespace it created only because objects sat in it) each mean\n     merging leaves it in place. An object with no reconciler's labels or\n     annotations was put there some other way, and no prune touches it.\n   - **A reconciler that syncs the path but is failing still counts as\n     present.** A `RootSync` or `RepoSync` with entries under\n     `status.source.errors`, `status.rendering.errors` or `status.sync.errors`,\n     an Application whose sync status is `Unknown` or health `Degraded`, or a\n     Kustomization with `Ready=False`: name it, quote its error, and say\n     merging deletes nothing until it syncs again.\n\n   A `Forbidden` is not an absence: say you could not read the reconcilers,\n   and fall back to their CRDs, which this agent's role can read:\n\n   ```bash\n   kubectl get crd applications.argoproj.io kustomizations.kustomize.toolkit.fluxcd.io rootsyncs.configsync.gke.io reposyncs.configsync.gke.io --kubeconfig \"\u003Ctarget kubeconfig>\"\n   ```\n\n   Name a reconciler in the reply or the pull request body only if you found\n   it syncing that directory. When one prunes, syncs, and the object does\n   not opt out, say it will delete the object after merge. Never write that\n   merging \"triggers\" a delete you have not read a healthy reconciler for. Otherwise say: \"Merging removes the declaration only. I found\n   nothing on `\u003Ccluster>` that deletes what is removed from `\u003Crepo>`, so\n   `\u003Ckind>\u002F\u003Cname>` stays until someone deletes it.\"\n\n6. **Words.** After the confirmation, say \"I'll propose this as a pull request\",\n   and report the pull request you opened and the files it removes. Never\n   describe the request as an action under way or done (\"deleting\",\n   \"deleted\"): the pull request only proposes it.\n\n### Step 3: Call the Secure Submit Suggestion Script\n\nThe same helper with `submit` publishes the branch and opens the pull request —\nor updates the one already open. It finds the working copy Step 1 made, so the\nonly thing to pass back is the branch name.\n\nWrite the description to a file first and pass the path. Inside double quotes\nbash expands backticks and `$(...)`, and a pull request body is full of\nbackticks — through `--body` a benign one silently deletes its own text and a\nhostile one runs in the working copy you are about to publish:\n\n```bash\nBODY=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_body.XXXXXX.md)\ncat > \"$BODY\" \u003C\u003C'EOF'\nThis Pull Request was generated automatically by the **Platform Agent** control plane.\n\n### 🚀 Functional Impact:\n\u003Cdetailed_markdown_bulleted_impact_description>\n\nPlease review the code diffs and merge this PR to trigger the GitOps CI\u002FCD rollout!\nEOF\n```\n\nThe quoted `\u003C\u003C'EOF'` matters as much as `--body-file`: unquoted, the heredoc\nexpands the same constructs the argument would have. `mktemp` matters because\n`\u002Fopt\u002Fdata\u002Fscratch` is shared with every other card running right now, and a\nfixed name there is two cards writing one file — one card's description on the\nother's pull request. Keep the file directly in `\u002Fopt\u002Fdata\u002Fscratch`, the only\ndirectory `--body-file` reads from, and **not** inside the `workspace`: a file\nwritten there is untracked, and `commit` refuses rather than guess — it names\nthe file and tells you to name the paths that belong in the change — so a\ndescription left in the working copy stops the submit instead of riding along\nin it.\n\nWrite the evidence to a second file the same way. `submit` refuses a body\nwithout it, before anything is published, and appends it to the body as an\n`## Evidence` section:\n\n```bash\nEVIDENCE=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_evidence.XXXXXX.json)\ncat > \"$EVIDENCE\" \u003C\u003C'EOF'\n{\n  \"finding\": \"\u003Cwhat is wrong, on which cluster and object>\",\n  \"checks\": [\n    {\"command\": \"\u003Cread-only command you ran>\", \"output\": \"\u003Cexcerpt of what it printed>\"}\n  ],\n  \"change\": \"\u003Cwhat merging this changes>\",\n  \"verify\": [\n    {\"command\": \"\u003Cread-only command to run after merge>\", \"expect\": \"\u003Cwhat it should show>\"}\n  ]\n}\nEOF\n```\n\n- `checks`: commands you ran this session, each with the output lines that show\n  the finding. Read-only commands only (`kubectl get`, `kubectl describe`,\n  `gcloud ... describe`). Long output is clipped.\n- `verify`: what a reviewer runs after merge to see the fix took. `expect` is\n  optional.\n- A requested change with no defect: `finding` is the request; `checks` is the\n  read that shows the current state.\n- No secret values in any field: name a Secret and its keys, never its\n  `data`. `submit` refuses any field holding a Secret manifest, a `data:` value,\n  key material or a `kubectl get secret -o …` read, and redacts known token\n  shapes; do not rely on either.\n- At most five entries per list. JSON escaping applies: `\\n` for a newline,\n  `\\\"` for a quote.\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py submit \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" \\\n  --branch \"platform-agent\u002F\u003Cchange_type>-\u003Ctarget_id>\" \\\n  --title \"\u003Cpr_title>\" \\\n  --body-file \"$BODY\" \\\n  --evidence-file \"$EVIDENCE\"\n```\n\nA refusal naming `--evidence-file` or an evidence field: fix the file and run\nthe same `submit` again. Nothing was published.\n\n`--base \u003Cbranch>` names what the change merges into, for the rare case where it\nis not the `base` Step 1 reported. It may not name the branch you are\nsubmitting: a head branch that is its own base carries nothing for anyone to\nreview, and `prepare`, `submit` and the broker each refuse it. That covers the\nrepository whose trunk is called something other than `main` — the name is read\nfrom the remote, not from a list. On a repository with a configured base, a new\npull request may only target that base: a `--base` naming anything else is\nrefused with `TARGET_NOT_BASE` before anything is published, and the message\nnames the configured base. If you passed `--base`, drop it and submit again.\nIf you did not, the copy was prepared before the base was configured or moved:\nread the change in the old copy, run `prepare --force` with the same\n`--branch`, reapply the change, and submit from the new copy. `submit` recorded\nthe change as a revision before the publish was refused, so a plain `prepare`\nrefuses to replace that copy. `--force` is safe here: the revision it deletes\nis the one you have read and are about to reapply. Do not try another target,\nand do not pass the named branch as `--base` from the old copy: it was cut from\nanother branch, and the broker refuses it `BASE_MOVED`.\n\nThe script returns the clean, live pull request URL. If a pull request for this\nbranch is already open, it updates that one's title and body in place and\nreturns its URL — resubmitting is not an error. `--keep-description` (Step 5) is\nthe one exception: it leaves the open pull request's title and body as their\nauthor wrote them.\n\nOlder invocations carried `--workspace`, `--lease`, `--handle`, `--from`,\n`--delete` and `--base-sha`, and had `list` and `fetch` as commands of their\nown. The flags are still accepted, and read and ignored with a line saying so;\nthe two commands refuse with a line saying where the files are now. That is all\nany of it buys: a command written against the old shape fails on what is\nactually wrong with it — there is no working copy here, take the branch with\n`prepare` — rather than on \"unrecognized arguments\" or \"invalid choice\", which\nsay nothing and hide the real cause. A card that prepared before an upgrade\ncannot submit after one; its clone was on a volume this script no longer has.\nPrepare again. Do not write new commands with these flags.\n\n### Step 4: Confirm Suggestion\n\nRecord the PR link returned by the script, update the pending status inside your local state registry (if applicable), and present a clean, human-readable confirmation containing the PR URL link back to the user.\n\n### Step 5: Addressing Review Feedback on an Existing PR\n\nWhen you are asked to **address review comments \u002F reviewer feedback** on an\nexisting PR, **read the comments yourself — never expect them pasted into the\ntask.** The `version-control` skill reads and writes them through the same\nbroker this skill publishes through; there is no forge CLI to authenticate and\nno token to refresh.\n\n1. **Read the pull request and all its feedback** — the conversation and the\n   inline review comments arrive together, each carrying the file and line it\n   sits on where it has one:\n\n   ```bash\n   V=\"$HERMES_HOME\"\u002Fskills\u002Fversion-control\u002Fscripts\u002Fvcs.py\n   python3 \"$V\" proposal view \u003CPR_NUMBER> --repo \"\u003Cowner>\u002F\u003Crepo>\" --comments\n   ```\n\n   Add `--diff` for the change under discussion. The `source` field of that\n   answer is the branch to work on in the next step.\n\n2. **Apply the requested changes on the PR's own branch.** Run Step 1 against\n   that branch — `prepare --repo \"\u003Cowner>\u002F\u003Crepo>\" --branch \u003Csource>` — then\n   Steps 2 and 3 exactly as written. Two things differ from a first submission\n   and both are handled for you: the copy comes down with the revisions already\n   under review on it and yours go on top, and `submit` adds to the branch\n   rather than replacing it, refusing outright if somebody else has moved it in\n   the meantime.\n\n   Edit the files the reviewer commented on in the `workspace` — what is on the\n   branch is what you are being asked to change, and rewriting a file from\n   memory loses the rest of it. A Terraform, Config Connector or Helm-chart\n   file is edited by its authoring skill's rules here too (Step 2's table),\n   its checks included: `tofu fmt` after any `.tf` edit. Its Step 1 and its\n   submit do not apply: stay on `\u003Csource>` in this copy. Stage only those specific files\n   (**never `git add .` \u002F `-A`**).\n\n   Pass `--title`, `--body-file` and `--evidence-file` again so the description\n   matches the revisions now on the branch — or `--keep-description` and neither\n   file, when\n   what you were asked for does not alter what the pull request is for. That\n   flag keeps the title along with the body, so a `--title` passed beside it\n   does **not** reach the pull request, and the run says so. It is not inert,\n   though: it is still the message any uncommitted edits are recorded under, so\n   pass the one you would want on that revision and not a placeholder. Pass one\n   whenever you left edits uncommitted at Step 2 — without it the run is refused\n   for having changes and no message to record them under. `--keep-description`\n   also needs the pull request to still be open: a merged or closed one is not a\n   description to keep, and the script refuses before publishing anything rather\n   than opening a fresh pull request with no description at all.\n\n3. **Reply on the PR** summarizing what changed, then relay a clean\n   confirmation (PR URL + what you changed) back through your kanban result.\n\n   Through a file, for the reason Step 3 gives. A reply is a summary of edits\n   you just made and often quotes the comment you are answering — backticks in\n   your own text, and `$(...)` in somebody else's. `proposal comment` takes no\n   `--body-file`, so the file is read by a command substitution you write\n   yourself; what it expands to is an argument and is not expanded again.\n\n   ```bash\n   REPLY=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_reply.XXXXXX.md)\n   cat > \"$REPLY\" \u003C\u003C'EOF'\n   \u003Cwhat changed>\n   EOF\n   python3 \"$V\" proposal comment \u003CPR_NUMBER> --repo \"\u003Cowner>\u002F\u003Crepo>\" --body \"$(cat \"$REPLY\")\"\n   ```\n\nNever ask the requester to paste the comment text — fetching it and addressing it is your job.\n","# submit-suggestion - Secure GitOps Pull Request Orchestrator\n\nThis skill equips the Platform Agent to propose declarative file updates, GKE infrastructure adjustments, or configuration changes securely by committing local repository changes and submitting pull requests (PRs; merge requests on GitLab) for human review. The repository is named as `owner\u002Fname` on github.com, `\u003Chost>\u002Fowner\u002Fname` on a GitHub Enterprise Server, or `\u003Chost>\u002F\u003Cpath>` — `gitlab.com\u002F\u003Cgroup>\u002F\u003Csubgroup>\u002F\u003Cproject>` — for one on another forge, exactly as it appears in the managed repository list.\n\n## When to Use\n\n- **Declarative File Provisioning:** Triggered when new GKE manifests or configs are requested.\n- **Configuration Upgrades:** Triggered when upgrading version configurations, security patches, or network policies.\n- **Governance Policy Syncs:** Triggered when compliance playbooks or settings require updates.\n- **Any change in the GitOps repository** reaches review through this skill, but a Terraform, Config Connector or Helm-chart change is written by its authoring skill first (Step 2's table).\n- **Deletions:** Triggered when someone asks to delete a resource. See [Deleting a resource](#deleting-a-resource) before Step 1: a declared object is removed in a pull request, anything else is a stated stop.\n\n_Crucially, you are strictly forbidden from executing direct, manual mutations. All changes must flow through a secure PR path — this skill, or the **fleet-audit** skill for fixes of its findings (below)._\n\n## When NOT to Use\n\n- **Answering a request that asked for a diagnosis, not a change.** \"Investigate\n  and report the root cause\", \"why is this crashlooping\", \"what would you\n  change\" are questions; their answer is the finding and the proposed manifest\n  in the reply, marked as a recommendation. Open the pull request only when the\n  request asks for one, or for the change to be submitted or fixed; `SOUL.md`\n  §3, item 3 draws the line, and the unattended case is `fleet-audit`'s own\n  promotion, which `finish` does on a scheduled run, never this skill. A pull\n  request nobody asked for is a write on their repository they now have to\n  triage.\n- **A fix that belongs in a repository this agent does not write.** When\n  reading the managed repository shows the value is defined somewhere else —\n  the chart a `HelmRelease` or `Application` installs, a Terraform module, a\n  tenant's own repository, a `context` repository — `SOUL.md` §3, item 8\n  applies: follow the reference read-only with **inspect-repository**, name\n  the repository, file and line in the reply with the change as a diff, and\n  open no pull request. Never stand in an edit here (an override, a\n  post-render patch, a second copy of the object) for the fix there. A\n  SOPS-encrypted file in the workspace is read for its metadata only: never\n  decrypt it, and never ask for or offer to wait for its key.\n- **Fixing a fleet-audit finding.** The bullets above match audit fixes too — a\n  security patch, a policy update — which is exactly why this warning exists. If\n  the change addresses a fleet-audit finding (it carries a finding id, or an\n  `[audit]` ledger issue lists that exact deviation as a finding), the\n  **fleet-audit** skill opens that pull request itself, through its `remediate`\n  subcommand — see `\u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit\u002Freferences\u002Fremediation.md` for the invocation. That path\n  keys the branch on the files the fix touches, so a rerun cannot open a\n  duplicate: a live PR is left untouched rather than force-pushed over, and one\n  the harness withdrew as stale is re-proposed on the same branch. It applies\n  the audit labels, links the ledger, and closes the PR when the finding stops\n  reproducing. A PR opened through _this_ skill gets none of that — nothing\n  dedupes it and nothing ever closes it, which is how one workload's findings\n  once became five near-duplicate PRs.\n\n  Two cautions when you take that path. `remediate` consumes the findings\n  document the audit run wrote (`start` prints its path); if it no longer\n  exists, stop and say the fix should be requested as `\u002Fremediate \u003Cfinding-id>`\n  on the ledger — do **not** run `start` yourself to mint a fresh document (it\n  scrubs that stream's workspace, possibly under a scheduled run), and never\n  hand-write one. And a change a user asked for on its own terms is not an\n  audit fix, even when the same file appears in a ledger — this section is\n  about fixes _of findings_, not about files findings happen to mention.\n\n## Execution Instructions\n\nFollow these steps to make, commit, and submit your GitOps suggestions asynchronously:\n\n### Step 1: Prepare\n\nNever run the plain `git` on this machine and never work from wherever your\nshell happens to start. That `git` is a different program: it reaches the\nnetwork with a credential, and it is not the one your working copy answers to.\n`prepare` brings the repository down and stands you on the branch this change\ngoes on.\n\nThe script path is spelled out from `$HERMES_HOME` rather than as `.\u002Fskills\u002F…`\nbecause this skill is reached from a kanban card as well as from a cron turn,\nand a card dispatch starts you in the task's workspace, not the profile\ndirectory. `$HERMES_HOME` is the profile directory in both. Use that form\neverywhere below, including for `vcs.py` in Step 5.\n\nIf you do meet a `No such file or directory` on one of these scripts, do **not**\nrecover by writing the absolute path out: `\u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002F…` is\nrefused by the gateway lifecycle guard, under an error about restarting the\ngateway that has nothing to do with what you ran. Observed live — the refusal\nsent one worker on to report a change it had not made.\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py prepare \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" \\\n  --branch \"platform-agent\u002F\u003Cchange_type>-\u003Ctarget_id>\"\n```\n\n_(Example: `--repo \"acme\u002Ffleet\" --branch \"platform-agent\u002Fprovision-mercury-09\"` or `--repo \"acme\u002Ffleet\" --branch \"platform-agent\u002Fupgrade-policy-baseline\"`)_\n\nIn a multi-repository environment, pass `--repo \"\u003Cowner>\u002F\u003Crepo>\"` for the repository your task targets (identified from cluster annotations or task context per SOUL.md §3, item 6).\n\nPass `--repo` as the repository registration names it: `\u003Cowner>\u002F\u003Crepo>` on\nGitHub, or `\u003Chost>\u002F\u003Cowner>\u002F\u003Crepo>` on another declared forge (such as GitLab or\nGitea). `prepare` echoes the canonical repository name in `repo`; pass that\n`repo` value to every later `--repo` in this skill and in `version-control`\ncalls so installs that serve more than one forge do not have to guess which\nhost a bare slug belongs to.\n\nIt prints one JSON line. **Keep it — Step 2 works inside its `workspace`.** The\n`workspace` is named for your branch as well as the repository, because\n`\u002Fopt\u002Fdata\u002Fscratch` is shared with every other card: another card suggesting a\nchange to the same repository right now derives a different branch name for it,\nso it works in a different directory. Different, not protected — every card here\nruns as the same account and the whole tree is readable and writable from all of\nthem. What keeps two suggestions apart is that no two of them share a branch\nname, which is why the name has to describe the change.\n\n```json\n{\n  \"workspace\": \"\u002Fopt\u002Fdata\u002Fscratch\u002Fvcs\u002Fgithub__acme__fleet__platform-agent__provision-mercury-09\",\n  \"repo\": \"acme\u002Ffleet\",\n  \"branch\": \"platform-agent\u002Fprovision-mercury-09\",\n  \"base\": \"main\",\n  \"started_from\": \"main\",\n  \"proposal\": \"\"\n}\n```\n\n`base` is what the change merges into: the branch the operator configured for\nthis repository when there is one (the broker refuses a pull request onto any\nother), else the repository's own default branch, not a hardcoded `main` — or,\nwhen a pull request for this branch is already open, whatever that one is\nalready targeting. It comes from the broker, never from your environment:\nexporting `GITOPS_BASE_BRANCH` or any other variable does not change it.\nIf `prepare` is refused with `BASE_BRANCH_MISSING`, the configured base named\nin the message does not exist on the repository. That is for an operator to\nfix; report it and stop rather than naming another branch.\n\n`started_from` and `proposal` are two halves of one answer — whether this is new\nwork or another round on a change already under review. `prepare` asks the forge\nrather than taking your word for it. When a pull request is open for the branch,\nits URL is in `proposal`, the copy is taken **of that branch** so every reviewed\nrevision comes down with it, and `started_from` is the branch itself. Otherwise\n`proposal` is empty, the copy is taken of the base, and `started_from` is the\nbase.\n\nThere is one working copy per repository **and branch**, so preparing a second\nchange to the same repository does not disturb the first. If the copy for this\nbranch holds revisions that were never published, `prepare` refuses to replace\nit. Finishing them is the way past, not the flag: go to the copy the refusal\nnames, publish what is in it and open the proposal, and this `prepare` becomes a\nsecond round on that branch instead of a replacement. `--force` deletes those\nrevisions; it is the answer only once you have read them and decided they should\nnot exist.\n\nA name can also be spent: the proposal it was last used for is closed or\nsquash-merged, and its revisions are not in the history you just cloned. If the\nforge still holds that branch, a change cut fresh from the base does not build\non it and `submit` would be refused as `BRANCH_DIVERGED`. `prepare` handles this\nitself: it asks the forge whether the branch is still there and, when it is,\ndeletes it — the broker allows that only for a branch under `platform-agent\u002F`,\nwith no open proposal, whose tip is exactly what a closed proposal from this\nrepository carried, and every proposal on it opened by this install's\ncredential. A credential that cannot name its own login cannot show the last\npart, so for it the prefix and the same-repository rule are the whole bar.\nThe log line says which happened. Nothing is lost: on GitHub and on GitLab the\nrevisions stay reachable from the closed proposal.\n\nIf the broker refuses the delete, `prepare` refuses the name and names the\ncode. `NOT_SPENT` means the branch moved on after its proposal closed;\n`BRANCH_MOVED` means something pushed to it a moment ago — run `prepare` once\nmore, which reads it again; if a person or a sibling card on the same name added\nto it, that second run refuses it as `NOT_SPENT`. `OPEN_PROPOSAL` means a\nproposal was opened on the name since `prepare` looked; run `prepare` once\nmore, and it adds to that proposal's branch. `BRANCH_NOT_OURS` means a proposal from it was\nnot this install's, or the name is not under `platform-agent\u002F`, or it has\ncarried a full page of proposals, too long a history to read, or an open\nproposal targets it (the message says which). Either way, do not delete it another way. `DELETE_REFUSED` means the\nrepository itself refuses to delete the branch (a branch rule, a hook, or a\ncredential without the right), and it will refuse again. Choose a different name where\nthe derived one is only a default, or report the refusal and stop where the name\nis fixed. `FORGE_CALL_FAILED`, `GIT_FAILED`, or a delete refused with no code\nis different: the delete did not complete (it may have landed before the\nfailure), and running `prepare` once more, which reads the branch afresh, is\nthe move; a second failure is reported, not retried. `FORGE_RATE_LIMITED` or\n`FORGE_UNAVAILABLE` from the delete is the forge turning it away for now: wait\na few minutes, then run `prepare` once more. The same codes from the read of\nthe branch that comes before the delete get the same moves, and `prepare` says\nwhich one. A proxy older than the\nsandbox cannot read the branch at all; `prepare` then refuses the name with\n`BROKER_ROUTE_UNSUPPORTED` and says so — use another name, or report it where the name is fixed.\n\n### Step 2: Make the Changes\n\n**First, hand the edit to the skill that writes its format.** `prepare` is\noften the first time you see what the change is written in, and this skill\nis the transport, not the author. Before you edit, look at the file or\ndirectory the change lands in:\n\n| The change is                                                                                                                        | Load and follow first    |\n| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |\n| a Terraform file (`.tf`, `.tf.json`, `.tfvars`), wherever it sits                                                                    | **gcp-terraform**        |\n| a Config Connector object (`apiVersion: *.cnrm.cloud.google.com\u002F*`)                                                                  | **gcp-config-connector** |\n| a Helm chart's declaration (a Helm-sourced `RootSync`, a Flux `HelmRelease`, an Argo CD Helm `Application`, kustomize `helmCharts:`) | **gitops-helm-chart**    |\n\nLoad it with `skill_view` and follow it from its Step 1, its own `prepare`\nand checks included (the CRD check for Config Connector, the reconciler form\nfor a chart, the owning files and pins for Terraform, then `tofu fmt`). You\nhave edited nothing yet, so nothing is lost: its `prepare` opens the copy\nunder its own branch name, and its last step submits that branch through\nStep 3 here. Leave the copy you prepared here unused. A plain Kubernetes\nmanifest has no authoring skill; write it here.\n\n**When the branch is already decided, stay on it.** In a review round\n(Step 5), or when `prepare` returned a non-empty `proposal`, the revisions\nunder review are on this copy's branch. Take the authoring skill's reads,\nwriting rules and checks, but not its Step 1 `prepare`, its branch name or\nits submit: edit in this `workspace` and submit from Step 3 here, onto the\nsame branch. Starting from its Step 1 would open a second pull request.\n\n**Implement only the chosen option.** When the request comes from a multi-option\ntriage or audit report (or a single-fix triage report), implement only the\noption the caller chose (the one marked Recommended when none was named, the\nsingle proposed fix, or the `Option \u003CX>` the user selected) and edit only the\nfile(s) that option calls for; if the repository holds both a GitOps sync source\npath and cluster bootstrap or provisioning copies of the workload, check the\nrepository's GitOps sync declaration for the namespace or workload and edit only\nthe synced workload manifest(s). Never bundle unchosen options\nor optional hardening into the same pull request, and never touch unrelated\nmanifests or infrastructure definitions.\n\nGenerate or edit the files **inside the returned `workspace`**.\n\nWhen modifying an existing Kubernetes object, edit the file that declares it in place. When\ncreating a new Kubernetes object (such as a `PodDisruptionBudget` for a `Deployment` or a\n`NetworkPolicy` for a `Namespace`), write it to a new, standalone file in that same directory.\nNever append a new object to an existing manifest file. If that directory uses Kustomize, add the\nnew filename to `resources:` in `kustomization.yaml` in the same pull request.\n\n`git` here holds no credential and cannot reach a forge; it works on the\nworking copy and nothing else, and `submit` is what sends the result.\n\n```bash\ncd \u003Cworkspace>\n# create or edit the declarative files here\ngit add \u003Cfile_path_1> \u003Cfile_path_2>\ngit commit -m \"\u003Cconventional_commit_message>\"\n```\n\n**CRITICAL SECURITY RULE:** explicitly stage only the targeted declarative files\nyou generated or modified. **Never use `git add .` or `git add -A`** — this is a\nreal clone on a filesystem you also scratch in, and a blanket add sweeps\ntransient debugging output, logs and anything else that landed there into a\npublic pull request.\n\n_(Example: `git add config\u002Fmanifest.yaml && git commit -m \"feat(fleet): provision GKE operator for mercury-09\"`)_\n\nCommitting here is optional. Uncommitted changes **to files the copy already\ntracks** are recorded as a single revision under the `--title` you pass when you\nrun Step 3, which is what a single-purpose change wants. Commit yourself when\nthe change deserves more than one revision, or a message that is not the pull\nrequest's headline.\n\nThe rule above still holds at Step 3: a file the copy has never seen is not\nswept in for you. `submit` refuses and names it, because it cannot tell a\nmanifest you generated from a log you left behind. Stage the ones that belong\n(`git add \u003Cpath>`) and delete the rest.\n\n### Deleting a resource\n\nA request to delete something (a namespace, a Deployment, a ConfigMap) reaches\nreview the same way as any other change, and the only delete a pull request\ncan carry is the removal of a manifest the repository already has. Never add a\nfile, an annotation or a label to say \"delete\": nothing reads one you invent,\nand a manifest you add declares its object, so merging it keeps the object.\n\n1. **The repository first.** Before Step 1:\n\n   ```bash\n   python3 \"$HERMES_HOME\"\u002Fscripts\u002Fgitops_preflight.py\n   ```\n\n   Any line other than `REGISTERED: ...` is the answer: block with that line as\n   the reason (`kanban_block(kind=\"needs_input\")`), change nothing, and do not\n   look for another way to delete it.\n\n2. **Find the declaration.** After Step 1's `prepare`, search the `workspace`\n   for the object's name, then read each file found and keep the one whose\n   `kind`, `metadata.name` and, for a namespaced object, `metadata.namespace`\n   match. A namespace is also declared without a Namespace manifest: by\n   objects placed in it, a `kustomization.yaml` whose `namespace:` names it, a\n   Flux `HelmRelease` or `Kustomization` whose `targetNamespace:` names it, a\n   `namespaces\u002F\u003Cname>\u002F` directory (Config Sync's hierarchical layout), or an\n   Argo CD `Application` with `CreateNamespace=true` deploying into it. Any of\n   those counts as declared. The search matches the key anywhere on the line,\n   so JSON and flow-style manifests are found too. Search only the target\n   cluster's directory (`clusters\u002F\u003Ccluster>\u002F`, or the path its reconciler\n   syncs): the same name under another cluster's directory is another\n   cluster's object. When the repository has no per-cluster layout and the\n   name is declared in more than one place, or you cannot tell which\n   directory is the target's, stop and name each file; never remove a\n   declaration you have not tied to the target cluster:\n\n   ```bash\n   grep -rlE \"[\\\"' {,]?(name|namespace|targetNamespace)[\\\"']?: *[\\\"']?\u003Cname>[\\\"']?([ ,}#]|$)\" \u003Cworkspace>\u002Fclusters\u002F\u003Ccluster>\n   find \u003Cworkspace>\u002Fclusters\u002F\u003Ccluster> -type d -path \"*\u002Fnamespaces\u002F\u003Cname>\"\n   ```\n\n3. **The repository declares it.** A delete needs the user's confirmation\n   first (`SOUL.md`); with it in the request, go ahead. Remove only what\n   declares the object, read document by document, never by file name or by\n   a `grep` hit alone:\n   - A file whose every document is the object (for a namespace: the\n     Namespace or an object in it) is `git rm`'d, and its line comes out of\n     the directory's `kustomization.yaml` `resources:` list.\n   - A file that also holds other documents keeps them: delete only the\n     matching documents from it.\n   - For a namespace, everything step 2 found goes in the same pull request,\n     each named in its body, because any one left behind recreates it: the\n     objects in it, its directory, and the `kustomization.yaml` that lists\n     only them.\n   - **The listing above it is an edit.** A removed file or directory that a\n     parent `kustomization.yaml` names in its `resources:` (for example\n     `- gitops-owned-scratch\u002F` in `clusters\u002F\u003Ccluster>\u002Fnamespaces\u002Fkustomization.yaml`)\n     loses that one line in the same pull request; left in, the parent no\n     longer renders and the whole synced path stops applying. Read the parent\n     directory's `kustomization.yaml` `resources:` list itself (an entry may\n     be `\u003Cname>\u002F`, `.\u002F\u003Cname>`, `\u003Cname>\u002F\u003Cfile>.yaml` or part of a flow list),\n     remove only the entries that name what this pull request removes, and\n     name the edit in the body.\n   - **A shared declaration is a stop.** A `kustomization.yaml`, Argo CD\n     `Application`, Flux `Kustomization` or Flux `HelmRelease` that also\n     creates objects outside the request, or a `namespaces\u002F\u003Cname>\u002F` directory with namespaces under it\n     (Config Sync's hierarchical abstract namespace), would delete those too.\n     Stop with: \"`\u003Cfile>` also declares `\u003Cother objects>`; removing it would\n     delete them as well. I have changed nothing.\" Never remove an\n     `Application` or a `HelmRelease`: an Application's resources finalizer\n     deletes everything it deploys, and helm-controller uninstalls a removed\n     release, cluster-scoped objects included. A request that would need one\n     removed is a stop that names it.\n\n   Then continue with Step 3. A delete's pull request body ends with what\n   step 5 read about the reconciler, in place of the template's closing line\n   about triggering a rollout.\n\n4. **The repository does not declare it.** Stop with: \"`\u003Crepo>` does not\n   declare `\u003Ckind>\u002F\u003Cname>`, so a pull request cannot delete it: removing a\n   declaration is the only delete a pull request carries. Someone with write\n   access to `\u003Ccluster>` has to run the delete. I have changed nothing.\"\n   Block with that line as the reason. Do not write a manifest for it.\n\n5. **Say what merging will do, from what you read.** Removing the file deletes\n   the object only if a reconciler syncs that directory and prunes. Read the\n   reconciler objects on the target cluster, and on the hub that deploys to it\n   when your kubeconfig reaches one (Argo CD usually runs on a hub). Your\n   default context is the cluster this agent runs on, not the target: pass\n   the target's own kubeconfig, `$HERMES_HOME\u002F.kubeconfigs\u002Fkubeconfig_\u003Cproject>_\u003Ccluster>_\u003Clocation>.yaml`,\n   with `--kubeconfig` on every read. When that file is not there yet,\n   fetch the target's credentials into it first (**gke-basics**, \"Cluster\n   Credentials\"). An answer of\n   `the server doesn't have a resource type` means that reconciler is not\n   installed on the context you read, and on this agent's own cluster it\n   says nothing about the target. Match each object's source against\n   `\u003Crepo>` and the file's directory:\n\n   ```bash\n   kubectl get applications.argoproj.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get kustomizations.kustomize.toolkit.fluxcd.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get rootsyncs.configsync.gke.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   kubectl get reposyncs.configsync.gke.io -A -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"\n   ```\n\n   - Argo CD prunes only with `spec.syncPolicy.automated.prune: true`; without\n     it the Application goes OutOfSync and someone syncs with prune. A\n     namespace Argo CD created through `CreateNamespace=true` is never pruned,\n     even with the Application deleted: for that shape, say merging leaves the\n     namespace in place.\n   - A Flux `Kustomization` prunes only with `spec.prune: true`.\n   - Config Sync deletes the objects it applied when their file goes.\n   - Pruning skips an object that opts out, so read the live object's\n     annotations (`kubectl get \u003Ckind> \u003Cname> -o yaml --kubeconfig \"\u003Ctarget kubeconfig>\"`) before saying it will\n     be deleted: `argocd.argoproj.io\u002Fsync-options: Prune=false`,\n     `kustomize.toolkit.fluxcd.io\u002Fprune: disabled`,\n     `configmanagement.gke.io\u002Fmanaged: disabled` or\n     `client.lifecycle.config.k8s.io\u002Fdeletion: detach` (which Config Sync sets\n     on a namespace it created only because objects sat in it) each mean\n     merging leaves it in place. An object with no reconciler's labels or\n     annotations was put there some other way, and no prune touches it.\n   - **A reconciler that syncs the path but is failing still counts as\n     present.** A `RootSync` or `RepoSync` with entries under\n     `status.source.errors`, `status.rendering.errors` or `status.sync.errors`,\n     an Application whose sync status is `Unknown` or health `Degraded`, or a\n     Kustomization with `Ready=False`: name it, quote its error, and say\n     merging deletes nothing until it syncs again.\n\n   A `Forbidden` is not an absence: say you could not read the reconcilers,\n   and fall back to their CRDs, which this agent's role can read:\n\n   ```bash\n   kubectl get crd applications.argoproj.io kustomizations.kustomize.toolkit.fluxcd.io rootsyncs.configsync.gke.io reposyncs.configsync.gke.io --kubeconfig \"\u003Ctarget kubeconfig>\"\n   ```\n\n   Name a reconciler in the reply or the pull request body only if you found\n   it syncing that directory. When one prunes, syncs, and the object does\n   not opt out, say it will delete the object after merge. Never write that\n   merging \"triggers\" a delete you have not read a healthy reconciler for. Otherwise say: \"Merging removes the declaration only. I found\n   nothing on `\u003Ccluster>` that deletes what is removed from `\u003Crepo>`, so\n   `\u003Ckind>\u002F\u003Cname>` stays until someone deletes it.\"\n\n6. **Words.** After the confirmation, say \"I'll propose this as a pull request\",\n   and report the pull request you opened and the files it removes. Never\n   describe the request as an action under way or done (\"deleting\",\n   \"deleted\"): the pull request only proposes it.\n\n### Step 3: Call the Secure Submit Suggestion Script\n\nThe same helper with `submit` publishes the branch and opens the pull request —\nor updates the one already open. It finds the working copy Step 1 made, so the\nonly thing to pass back is the branch name.\n\nWrite the description to a file first and pass the path. Inside double quotes\nbash expands backticks and `$(...)`, and a pull request body is full of\nbackticks — through `--body` a benign one silently deletes its own text and a\nhostile one runs in the working copy you are about to publish:\n\n```bash\nBODY=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_body.XXXXXX.md)\ncat > \"$BODY\" \u003C\u003C'EOF'\nThis Pull Request was generated automatically by the **Platform Agent** control plane.\n\n### 🚀 Functional Impact:\n\u003Cdetailed_markdown_bulleted_impact_description>\n\nPlease review the code diffs and merge this PR to trigger the GitOps CI\u002FCD rollout!\nEOF\n```\n\nThe quoted `\u003C\u003C'EOF'` matters as much as `--body-file`: unquoted, the heredoc\nexpands the same constructs the argument would have. `mktemp` matters because\n`\u002Fopt\u002Fdata\u002Fscratch` is shared with every other card running right now, and a\nfixed name there is two cards writing one file — one card's description on the\nother's pull request. Keep the file directly in `\u002Fopt\u002Fdata\u002Fscratch`, the only\ndirectory `--body-file` reads from, and **not** inside the `workspace`: a file\nwritten there is untracked, and `commit` refuses rather than guess — it names\nthe file and tells you to name the paths that belong in the change — so a\ndescription left in the working copy stops the submit instead of riding along\nin it.\n\nWrite the evidence to a second file the same way. `submit` refuses a body\nwithout it, before anything is published, and appends it to the body as an\n`## Evidence` section:\n\n```bash\nEVIDENCE=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_evidence.XXXXXX.json)\ncat > \"$EVIDENCE\" \u003C\u003C'EOF'\n{\n  \"finding\": \"\u003Cwhat is wrong, on which cluster and object>\",\n  \"checks\": [\n    {\"command\": \"\u003Cread-only command you ran>\", \"output\": \"\u003Cexcerpt of what it printed>\"}\n  ],\n  \"change\": \"\u003Cwhat merging this changes>\",\n  \"verify\": [\n    {\"command\": \"\u003Cread-only command to run after merge>\", \"expect\": \"\u003Cwhat it should show>\"}\n  ]\n}\nEOF\n```\n\n- `checks`: commands you ran this session, each with the output lines that show\n  the finding. Read-only commands only (`kubectl get`, `kubectl describe`,\n  `gcloud ... describe`). Long output is clipped.\n- `verify`: what a reviewer runs after merge to see the fix took. `expect` is\n  optional.\n- A requested change with no defect: `finding` is the request; `checks` is the\n  read that shows the current state.\n- No secret values in any field: name a Secret and its keys, never its\n  `data`. `submit` refuses any field holding a Secret manifest, a `data:` value,\n  key material or a `kubectl get secret -o …` read, and redacts known token\n  shapes; do not rely on either.\n- At most five entries per list. JSON escaping applies: `\\n` for a newline,\n  `\\\"` for a quote.\n\n```bash\npython3 \"$HERMES_HOME\"\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py submit \\\n  --repo \"\u003Cowner>\u002F\u003Crepo>\" \\\n  --branch \"platform-agent\u002F\u003Cchange_type>-\u003Ctarget_id>\" \\\n  --title \"\u003Cpr_title>\" \\\n  --body-file \"$BODY\" \\\n  --evidence-file \"$EVIDENCE\"\n```\n\nA refusal naming `--evidence-file` or an evidence field: fix the file and run\nthe same `submit` again. Nothing was published.\n\n`--base \u003Cbranch>` names what the change merges into, for the rare case where it\nis not the `base` Step 1 reported. It may not name the branch you are\nsubmitting: a head branch that is its own base carries nothing for anyone to\nreview, and `prepare`, `submit` and the broker each refuse it. That covers the\nrepository whose trunk is called something other than `main` — the name is read\nfrom the remote, not from a list. On a repository with a configured base, a new\npull request may only target that base: a `--base` naming anything else is\nrefused with `TARGET_NOT_BASE` before anything is published, and the message\nnames the configured base. If you passed `--base`, drop it and submit again.\nIf you did not, the copy was prepared before the base was configured or moved:\nread the change in the old copy, run `prepare --force` with the same\n`--branch`, reapply the change, and submit from the new copy. `submit` recorded\nthe change as a revision before the publish was refused, so a plain `prepare`\nrefuses to replace that copy. `--force` is safe here: the revision it deletes\nis the one you have read and are about to reapply. Do not try another target,\nand do not pass the named branch as `--base` from the old copy: it was cut from\nanother branch, and the broker refuses it `BASE_MOVED`.\n\nThe script returns the clean, live pull request URL. If a pull request for this\nbranch is already open, it updates that one's title and body in place and\nreturns its URL — resubmitting is not an error. `--keep-description` (Step 5) is\nthe one exception: it leaves the open pull request's title and body as their\nauthor wrote them.\n\nOlder invocations carried `--workspace`, `--lease`, `--handle`, `--from`,\n`--delete` and `--base-sha`, and had `list` and `fetch` as commands of their\nown. The flags are still accepted, and read and ignored with a line saying so;\nthe two commands refuse with a line saying where the files are now. That is all\nany of it buys: a command written against the old shape fails on what is\nactually wrong with it — there is no working copy here, take the branch with\n`prepare` — rather than on \"unrecognized arguments\" or \"invalid choice\", which\nsay nothing and hide the real cause. A card that prepared before an upgrade\ncannot submit after one; its clone was on a volume this script no longer has.\nPrepare again. Do not write new commands with these flags.\n\n### Step 4: Confirm Suggestion\n\nRecord the PR link returned by the script, update the pending status inside your local state registry (if applicable), and present a clean, human-readable confirmation containing the PR URL link back to the user.\n\n### Step 5: Addressing Review Feedback on an Existing PR\n\nWhen you are asked to **address review comments \u002F reviewer feedback** on an\nexisting PR, **read the comments yourself — never expect them pasted into the\ntask.** The `version-control` skill reads and writes them through the same\nbroker this skill publishes through; there is no forge CLI to authenticate and\nno token to refresh.\n\n1. **Read the pull request and all its feedback** — the conversation and the\n   inline review comments arrive together, each carrying the file and line it\n   sits on where it has one:\n\n   ```bash\n   V=\"$HERMES_HOME\"\u002Fskills\u002Fversion-control\u002Fscripts\u002Fvcs.py\n   python3 \"$V\" proposal view \u003CPR_NUMBER> --repo \"\u003Cowner>\u002F\u003Crepo>\" --comments\n   ```\n\n   Add `--diff` for the change under discussion. The `source` field of that\n   answer is the branch to work on in the next step.\n\n2. **Apply the requested changes on the PR's own branch.** Run Step 1 against\n   that branch — `prepare --repo \"\u003Cowner>\u002F\u003Crepo>\" --branch \u003Csource>` — then\n   Steps 2 and 3 exactly as written. Two things differ from a first submission\n   and both are handled for you: the copy comes down with the revisions already\n   under review on it and yours go on top, and `submit` adds to the branch\n   rather than replacing it, refusing outright if somebody else has moved it in\n   the meantime.\n\n   Edit the files the reviewer commented on in the `workspace` — what is on the\n   branch is what you are being asked to change, and rewriting a file from\n   memory loses the rest of it. A Terraform, Config Connector or Helm-chart\n   file is edited by its authoring skill's rules here too (Step 2's table),\n   its checks included: `tofu fmt` after any `.tf` edit. Its Step 1 and its\n   submit do not apply: stay on `\u003Csource>` in this copy. Stage only those specific files\n   (**never `git add .` \u002F `-A`**).\n\n   Pass `--title`, `--body-file` and `--evidence-file` again so the description\n   matches the revisions now on the branch — or `--keep-description` and neither\n   file, when\n   what you were asked for does not alter what the pull request is for. That\n   flag keeps the title along with the body, so a `--title` passed beside it\n   does **not** reach the pull request, and the run says so. It is not inert,\n   though: it is still the message any uncommitted edits are recorded under, so\n   pass the one you would want on that revision and not a placeholder. Pass one\n   whenever you left edits uncommitted at Step 2 — without it the run is refused\n   for having changes and no message to record them under. `--keep-description`\n   also needs the pull request to still be open: a merged or closed one is not a\n   description to keep, and the script refuses before publishing anything rather\n   than opening a fresh pull request with no description at all.\n\n3. **Reply on the PR** summarizing what changed, then relay a clean\n   confirmation (PR URL + what you changed) back through your kanban result.\n\n   Through a file, for the reason Step 3 gives. A reply is a summary of edits\n   you just made and often quotes the comment you are answering — backticks in\n   your own text, and `$(...)` in somebody else's. `proposal comment` takes no\n   `--body-file`, so the file is read by a command substitution you write\n   yourself; what it expands to is an argument and is not expanded again.\n\n   ```bash\n   REPLY=$(mktemp -p \u002Fopt\u002Fdata\u002Fscratch pr_reply.XXXXXX.md)\n   cat > \"$REPLY\" \u003C\u003C'EOF'\n   \u003Cwhat changed>\n   EOF\n   python3 \"$V\" proposal comment \u003CPR_NUMBER> --repo \"\u003Cowner>\u002F\u003Crepo>\" --body \"$(cat \"$REPLY\")\"\n   ```\n\nNever ask the requester to paste the comment text — fetching it and addressing it is your job.\n",{"name":5,"description":7},"main","4544e0540d35535c4b9deb47d6f77abda58fee1b","agents\u002Fplatform\u002Fskills\u002Fsubmit-suggestion",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 submit-suggestion",{"tool":37,"command":38},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill submit-suggestion",{"tool":40,"command":41},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill submit-suggestion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fsubmit-suggestion\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fsubmit_suggestion.py","SCRIPT","脚本",66242,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fsubmit-suggestion\u002Fscripts\u002Fsubmit_suggestion.py",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"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":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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",[],[]]