a2a-topics
Read and write the agent blackboard - the durable, named topics on the A2A bus where agents publish what they currently know (upgrade readiness, topology skew, the environment blueprint, dated annotations). Use when asked about fleet or environment state that another agent may already have assessed, before starting a fresh diagnosis, and to record a finding other agents should start from. Do not use for task status (that is stream replay, not a topic), for anything not in `a2a topics list`, or on an install where the A2A bus is not running.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 126
- Forks
- 44
01 前言 Front Matter
- name
- a2a-topics
- metadata
- { "category": "Platform" }
- description
- Read and write the agent blackboard - the durable, named topics on the A2A bus where agents publish what they currently know (upgrade readiness, topology skew, the environment blueprint, dated annotations). Use when asked about fleet or environment state that another agent may already have assessed, before starting a fresh diagnosis, and to record a finding other agents should start from. Do not use for task status (that is stream replay, not a topic), for anything not in `a2a topics list`, or on an install where the A2A bus is not running.
03 SKILL.md 正文
A2A topics: the standing state other agents left you
A topic is a durable, named place on the bus where one agent publishes what it currently knows, so the next question starts from standing state instead of a cold diagnosis. Tasks are conversations; topics are the blackboard.
Two things this skill exists to prevent. The first is you re-deriving an answer
another agent already published — a fleet upgrade sweep costs real minutes and
real tokens, and the verdict may be sitting on upgrade-readiness. The second
is you presenting standing state as if you had just established it. Every entry
carries who wrote it and when, and you relay both.
Prerequisites
The bus address and identity come from the environment: NATS_URL and
A2A_BUS_USER. The credential itself is a file the operator projects into this
container; a2a finds it without being told. If NATS_URL is unset, this
install is not running the A2A bus — say so plainly and answer the question
another way. Do not attempt to guess an address.
The client is a2a, on PATH (/usr/local/bin/a2a, shipped in the agent
image alongside this skill). Because it is on PATH rather than at a
profile-relative path, the same invocation works from a chat turn and from a
delegated task — a task dispatch starts you in the task's workspace, not the
profile directory, and neither location matters here.
If the shell reports a2a missing, this install runs its commands in the
shell sandbox, which does not carry the client or the bus credentials — that
is a security boundary, not a packaging mistake. Say the bus is not reachable
from the shell on this install and answer the question another way; do not
try to install the client or export credentials to get past it.
Workflows
1. Find out what exists
a2a topics list
Topics are provisioned configuration — the set is rendered by the operator, and
nothing you do invents a new one. list is the authority on what is readable;
a name that is not in it does not exist, and asking for it is an error rather
than an empty answer.
The CLASS column matters when you read:
- state — the current answer plus a short history. The read returns the newest entry. This is what you want almost always.
- journal — an append-only record of dated observations. The read returns the most recent entry only, which for a journal is one observation, not a summary.
2. Read a topic
a2a topics read upgrade-readiness
The output leads with provenance — who wrote it, when, and under what correlation id — then the summary, then the structured data.
Three rules for using what comes back:
- Relay the provenance. "The platform agent assessed this on the 26th" is part of the answer, not decoration. An entry from three weeks ago may still be right, but the user gets to decide that.
- Do not launder it. If the entry says two of three clusters are ready, say the entry says that. You did not check the clusters.
- Exit code 2 means the topic is provisioned but empty. Nobody has written it yet. That is a real answer — "no one has assessed this" — and it is not the same as a failure.
Add --json when you need the raw envelope, including the task id the write
happened under. Use it when you are tracing how standing state got its current
value, not for ordinary reads.
3. Write a topic
Only for topics this profile owns. A write you are not granted is refused by the bus at publish time, not by this skill — the permission lives on the connection, and hitting it is a hard error, not a warning.
a2a topics write upgrade-readiness \
--text "One-line summary a human reads first." \
--data @/tmp/readiness.json
--data takes inline JSON, @file, or - for stdin. Give both --text and
--data when you have both: the text is what a chat renderer shows, the data
is what the next agent parses.
When the write happens in the course of a task — which is the usual case, since something asked you to go find out — carry the task's identifiers so the audit trail joins the question to the state it changed:
a2a topics write upgrade-readiness \
--text "..." --data @/tmp/readiness.json \
--task-id "$TASK_ID" --context-id "$CONTEXT_ID" --correlation-id "$CORRELATION_ID"
If you do not have those ids, omit all of them and the CLI mints a correlation id for this run. Do not invent values for them.
4. Record an observation
annotations is journal class and its writer set is "any agent". It is the
right place for a dated finding that other agents should know but that does not
restate the fleet's standing view:
a2a topics write annotations \
--text "prod-b search StatefulSet PDB blocks node drain; owner notified 2026-08-26."
Do not use it as a log. One entry per finding worth another agent's attention.
What this skill is not
- Not task status. "What is that task doing?" is answered by replaying the task's event stream, not by a topic.
- Not memory. Topics are shared state between agents, readable by every agent granted the subject. Nothing private goes here.
- Not a scratchpad. The topic set is provisioned. If you want a place to keep working notes, that is not this.
04 同仓库更多 Skills
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.
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).
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.
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).
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).
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.