AGENT SKILL

review-chat-ux

Reviews a diff that changes what users read in Slack or Google Chat against the chat UX rules, and reports each violation with file:line and the rule it breaks.

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

01 前言 Front Matter

name
review-chat-ux
description
Reviews a diff that changes what users read in Slack or Google Chat against the chat UX rules, and reports each violation with file:line and the rule it breaks.

03 SKILL.md 正文

Task

Review a diff range for chat output that breaks .agents/rules/chat_ux.md. The rule file owns the rules and their reasons; this skill holds the method. When they disagree, the rule file wins and this skill needs fixing.

Run it in a context that did not write the change, as review-preflight arranges. Report; edit nothing.

Scope

The paths: frontmatter of chat_ux.md is the list of chat output files. The diff touches chat output when it changes a non-test file matching one of those globs, adds or rewords a string a user reads in chat anywhere else, or changes who may confirm, stop or press a button. Inside scope, skip hunks that change no user-visible string, layout, posting decision or click gate.

Workflow

1. Collect the user-facing surface

  • Run git diff <range> and list every hunk that adds or changes text a user reads: a string constant, a format string, a fixture's expected post, a Block Kit or Chat card builder, an instruction in a SOUL.md that shapes a reply.
  • Record for each: file:line, the exact text, and the moment it is read (ack, status, answer, question, failure, notice, button).
  • Follow a changed constant to its call sites; a reworded constant can break a rule only where it posts.

2. Check each rule

Test every surface item against each rule's paragraph in chat_ux.md, by its heading. The cues below say where violations hide; the paragraph is the test.

  • The answer comes first, as one bold line: Flag an answer whose first line is context, a heading or a restatement; flag a change that moves the verdict below the fold or drops the headline's bold; flag reasoning, a table or long detail above the fold.
  • The acknowledgement names its target: Flag an ack that is generic (on it), capitalised, multi-sentence, not ended by a period, a restatement, named by the change instead of what is checked, or carrying a task id, attribution or plan.
  • One live status line, updated in place: Flag a new post (Slack chat.postMessage, Google Chat messages.create) for a progress step where an edit would do; flag a progress line that survives the answer.
  • No plumbing in user text: Flag task ids, card ids, session keys, file paths, tool names, JSON, CLI flags, exit codes and roster ids used as names. Allow a cluster, a workload, a linked pull request, a specialist's name where SOUL.md asks for attribution, a board read's short task id, and the command and output fences of the evidence section kanban_complete renders from verified_claims.
  • Choices are buttons: Flag a choice offered without buttons, a button that does not send its answer, "reply X", "type X" or "say X" in a message body; flag more than 5 buttons in one row. Allow the text fallback listing the options.
  • A failure is one plain line: Flag an apology, a failure that does not lead with one plain line, a gateway notice longer than that line, a failure that does not say what would work instead, a retry or re-route offered as text rather than a button, or a retry promise; for each promise, find the code that retries and flag it when none runs on that path.
  • Speak up only when it matters: Flag a new message of its own that is not the acknowledgement, a pull request opened, a question only the user can answer, a failure, or done.
  • A destructive action needs the asker's confirm: Flag a destructive action reachable without stating the resolved target back and the asker's explicit confirm, or a confirm another participant can satisfy.
  • Renderers never compose: Flag a renderer that writes words of its own, reads text to fill a field or rewords; flag an invalid message rendered clipped or repaired instead of posting its text fallback whole. Allow what the rule's paragraph names as the backend's own.

3. Verify every candidate

  • Re-read the code path that posts the text; drop a candidate that never reaches a user (a log line, a metric label, an error returned to an API caller).
  • Check the SOUL.md section the rule file names; a wording the section requires is not a violation of this skill, and a conflict between them is a finding against the rule file.
  • Check both backends: a rule broken only on Google Chat is still broken.
  • Drop anything you cannot tie to a line in the diff.

Output

One row per surviving violation, ordered by how often a user meets the text:

file:line rule (chat_ux.md heading) text as posted fix

Above the table, list which rules were checked and which surface items were reviewed. "No violations" is complete only alongside that list.

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