AGENT SKILL

upgrade-readiness-brief

Compose the upgrade readiness brief on request — which upgrade readiness findings need the user's decision now, what else the week found, and where the full report is — from the Saturday review's record and the findings queue, in the brief's fixed shape. Never the readiness table, never a summary of the report, never "nothing needs a decision" while a critical row is queued or surfaced.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 126
Forks
44

01 前言 Front Matter

name
upgrade-readiness-brief
description
Compose the upgrade readiness brief on request — which upgrade readiness findings need the user's decision now, what else the week found, and where the full report is — from the Saturday review's record and the findings queue, in the brief's fixed shape. Never the readiness table, never a summary of the report, never "nothing needs a decision" while a critical row is queued or surfaced.

03 SKILL.md 正文

upgrade-readiness-brief — The Week's Decisions, On Request

The Saturday job upgrade-readiness-weekly-review grades every cluster and registers each blocker and risk on the findings queue; the job upgrade-readiness-weekly-brief composes the week's brief from both under /opt/data/profiles/platform/governance/upgrade_readiness_brief_sop.md. This skill is that SOP's "On request" route: a user asks for the brief, or for what needs their decision, or for this week's report, and gets the same shape in chat. Read only. Register nothing, decide nothing, upgrade nothing.

Steps

  1. Read the review's copy:

    • cat /opt/data/upgrade-readiness/weekly/latest.json — the summary: generated_at, projects, clusters (reviewed, blocked, ready, unknown, unread), counts, findings (rows with id, severity, check, entry, project, cluster, namespace, object, title, action, outcome), new_ids, suppressed_ids, no_longer_reported_ids, project_failures, registration_errors, report_path.
    • cat /opt/data/upgrade-readiness/weekly/latest.md when a line needs more than the row says.
    • If the asked-for thing is the report, print latest.md as it is and stop; when the file is missing, say the review's copy is not there (the weekly review has not run, or its copy did not land; the review's own chat line, if any, says which) and offer the on-request readiness report (fleet-upgrade-verification, --readiness) instead of composing anything.
    • If generated_at is older than 48 hours, compose from the summary anyway and say its date and age in the headline: a stale brief with its date beats none.
    • If the file is missing, read the queue first (step 2). When it holds upgrade- rows, the review ran and its copy did not land: compose from the queue alone, with a headline that says the summary is unavailable, and leave out the counts only the summary gives. Only when the queue holds no upgrade- rows either compose a live brief: run the fleet-upgrade-verification skill with --readiness once over every project in scope, treat its blockers and risks as the findings (a budget over a single replica, a pool past the skew ceiling and a webhook in the upgrade's path are critical; a budget over several replicas, a webhook refusing only what it matches today and a pool at the ceiling are major; a covering exclusion is minor; a readiness rule's blocker is critical, and its risk is minor for catalogue entries 9, 10, 11, 13, 16 and 25 and major for every other entry, and minor for the plan-level rollout-sequence-precheck), name objects where the queue would give ids, say "live brief, composed now; the weekly review has not run" in the headline, and close with the live form of the last line: there is no report file and no id to reply with until the Saturday review registers them.
  2. Read the queue, with the platform_control tools:

    • get_ranked_findings: the open backlog. Keep the rows whose check starts with upgrade-. A row in state queued or surfaced is undecided: nobody has decided on it, whether or not the hourly nudge has named it yet. accepted is decided (being worked on).
    • get_findings with state=snoozed, then state=dismissed: the other decided rows; the backlog never carries them. Keep the upgrade- rows of these too. Pass limit=1000 and project=<id> for each project in the summary's projects (the default page is 200 rows across every source); a page of exactly 1000 rows is cut, so say "at least" before that count.
  3. Compose the brief in exactly this shape, at most twenty-five lines, ids verbatim in backticks:

    Upgrade readiness, week of <YYYY-MM-DD>: <n> clusters reviewed, <b> blocked, <r> ready<, u not read>. <new> new findings since last week, <gone> no longer reported.
    
    **Decide now** (critical, nobody has decided yet):
    1. `<id>` — <cluster>: <what blocks and what it costs, one clause>. Do: <the first action>.
    2. ...
    <one line per cluster, at most ten; then one line: "and <k> more critical findings await a decision, listed in the report.">
    
    **Also this week:** <one or two lines: counts by catalogue entry on which clusters, majors only; minors as one count>.
    
    **Decided earlier:** <a> accepted, <s> snoozed, <d> dismissed; nothing changes there.
    
    <when project_failures is not empty: "**Not read this week:** <project>: <reason>; last week's findings there stand.">
    
    Full report: /opt/data/upgrade-readiness/weekly/latest.md on the agent. Reply "show me this week's upgrade readiness report" to read it here, or reply with an id and `dismiss`, `snooze until <date>` or `accept` to decide.
    <for a live brief, instead: "No weekly record yet: the Saturday review registers these on <next Saturday>, and each gets an id you can decide with. Reply "show me the upgrade readiness report" for the table.">
    
    • Decide now lists the undecided criticals, worst first, one line per cluster and at most ten lines: every critical on one cluster is one problem, so the cluster's line names each of its ids and objects, and its worst finding sets its place. The queue's rank order is the default. Depart from it, among the criticals and only among them, when one of these holds: a critical on the cluster the agent runs on outranks the same one elsewhere; a critical whose clock is short (a target or a date within thirty days) outranks one with no date; a critical whose evidence says a serving workload goes down outranks one on a cluster the summary lists as unknown or whose evidence is inferred. No major or minor moves up: they have their own line below. Never leave the section empty while an undecided critical exists; when every critical row is accepted, snoozed or dismissed, the section reads **Decide now:** nothing; every critical finding has a decision. When nothing was found at all, the brief is the headline and the report line, two lines.
    • One clause of why ("budget pinned-batch-runner refuses eviction of its only pod, so the drain kills it"), one action (the row's action, shortened to the verb and the object).
    • Majors and minors go under Also this week as counts by catalogue entry; a suppressed row is never named. With nothing decided yet, the line is **Decided earlier:** none yet.
    • When a row's outcome is failed, the headline says how many findings are in the report but not on the queue, and a critical among them goes under Decide now by its object with "not on the queue" after it: there is no id to reply with. A registration_errors entry that says a completeness claim did not reach the queue is a cluster whose last week's rows stand at full confidence; count those clusters in the headline, not as findings.
    • Every id and every count comes from the summary or the queue; invent nothing, name no CVE, recommend no version.
  4. Answer with the brief and nothing else. When a card's report format asks for a bold opening sentence, bold the headline line; keep every other line as the shape gives it.

Red lines

  • A table, a prose summary of the report, a link to a GitHub ledger, or "no decision needed" with queued critical rows is the wrong answer.
  • Never call register_findings or update_finding from this skill; the review registers, the user decides, the queue remembers.

04 同仓库更多 Skills

gke-labs
gke-labs/kube-agents

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.

★ 126
gke-labs
gke-labs/kube-agents

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).

★ 126
gke-labs
gke-labs/kube-agents

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.

★ 126
gke-labs
gke-labs/kube-agents

gke-workload-identity

Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 "iam.serviceAccounts.getAccessToken" / 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/GSA bindings (`roles/iam.workloadIdentityUser`, `iam.gke.io/gcp-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).

★ 126
gke-labs
gke-labs/kube-agents

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/post-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/routing setup, or security policy configurations (use gke-basics or relevant GKE skills instead).

★ 126
gke-labs
gke-labs/kube-agents

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.

★ 126