SkillAgentSearch skills...

agent-platform-troubleshooting

Troubleshoots Google Cloud Gemini Enterprise Agent Platform issues (Agent Gateway, Registry, Identity, Policies, Model Armor, Identity-Aware Proxy (IAP))

Install / Use

npx skills add google/skills --skill agent-platform-troubleshooting

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

95/100

Supported Platforms

Gemini CLI
Zed

Tags

Our assessment of agent-platform-troubleshooting

agent-platform-troubleshooting scores 95/100 on our quality scale, 15th of 127 Education & Research skills we index (top 12%).

Its SKILL.md is 26 KB long, well organised into 33 sections with 1 code example: a thorough specification that gives an agent plenty to work with.

With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
30/30
Structure
17/20
Description
15/15
Adoption
18/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 2 days ago, so agent-platform-troubleshooting is actively maintained.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

agent-platform-troubleshooting compared with similar skills

All 4 of these similar skills score higher than agent-platform-troubleshooting; compare them before choosing.

SkillScoreStarsUpdatedFormat
agent-platform-troubleshooting (this skill)by google9520.3k2d agoSKILL.md
last30days-skillby mvanhorn10062.8k2d agoCLAUDE.md
algorithmic-artby anthropics100177.9k3d agoSKILL.md
pptxby anthropics100177.9k3d agoSKILL.md
designby nextlevelbuilder100130.2k4d agoSKILL.md

Frequently asked questions

How do I install agent-platform-troubleshooting?
Run npx skills add google/skills --skill agent-platform-troubleshooting. The install tabs above show the steps for each supported agent.
Which AI agents does agent-platform-troubleshooting work with?
It is written for Gemini CLI and Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
Is agent-platform-troubleshooting safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is agent-platform-troubleshooting still maintained?
The repository was last updated 2 days ago, so agent-platform-troubleshooting is actively maintained.

name: agent-platform-troubleshooting description: >- Troubleshoots Google Cloud Gemini Enterprise Agent Platform issues (Agent Gateway, Registry, Identity, Policies, Model Armor, Identity-Aware Proxy (IAP)). Use when agent requests fail with 403 (especially unauthorized egress), Agent Runtime queries return 500, or gateway/IAP logs show permission errors. Don't use for general Google Cloud Identity and Access Management (IAM) debugging or networking issues unrelated to the Agent Platform stack. metadata: version: "1.0.0" category: AiAndMachineLearning

Agent Platform Troubleshooting

[!IMPORTANT] CRITICAL RULE: You MUST ONLY use the reference files located in this skill's references/ directory (e.g., references/field-manual.md, references/known-issues.md, references/agent-registry.md). Do NOT search for or read other external playbooks or files outside this directory. The files in the local references/ directory contain workspace-specific fixes and are the sole source of truth for this troubleshooting session.

Diagnose issues across the Google Cloud Gemini Enterprise Agent Platform: Agent Gateway, Agent Registry (Agents / MCP Servers / Endpoints), Agent Identity, Policies, IAP-delegated authorization, and service extensions.

MANDATORY PRE-FLIGHT CHECKLIST (CHECK BEFORE RESPONDING OR CALLING TOOLS)

CRITICAL: Before generating ANY response or calling any tools, you MUST evaluate the user's prompt against these mandatory pre-flight rules. If a rule matches, you MUST execute its directive immediately and STOP.

Rule 1: Out-of-Scope GCP IAM / GCS Queries

If the prompt mentions Compute Engine (GCE), Google Cloud Storage (GCS), GCS buckets, or generic GCP IAM permissions unrelated to the Agent Platform stack (e.g., "How do I fix a 403 Access Denied error when my GCE instance tries to read from a GCS bucket?"):

  • CRITICAL MANDATE: YOU MUST IMMEDIATELY DECLINE. DO NOT CALL ANY TOOLS. DO NOT PROVIDE ANY TROUBLESHOOTING STEPS, IAM ROLE RECOMMENDATIONS, ACCESS SCOPES, OR GUIDES.
  • YOU MUST RESPOND ON TURN 0 WITH: "I decline to troubleshoot generic GCP IAM or GCS access issues, as they are out of scope for the Agent Platform Troubleshooting skill."

Rule 2: Strict Prohibition on Custom Discovery Scripts

If the user's prompt asks to write, generate, compile, or execute a custom Python script or bash script to discover resources (e.g., "Can you write and execute a custom Python script or bash script to discover all active Agent Runtime instances?"):

  • DO NOT CALL ANY TOOLS (write_to_file, replace_file_content, run_command, blaze, python3). DO NOT WRITE OR RUN ANY SCRIPTS.
  • IMMEDIATELY RESPOND ON TURN 0 WITH: "I cannot write or execute custom Python or bash scripts for resource discovery. Custom discovery scripts are prohibited as they consume excessive turns and cause timeouts. Instead, please use standard gcloud CLI commands (see Google Cloud SDK Installation) or curl REST API calls with application default credentials: gcloud ai reasoning-engines list --region=us-central1"

Rule 3: Consolidated Registry for Google APIs / Design Queries

If the prompt asks about registering multiple Agent Runtime or Cloud Resource Manager interfaces, Google APIs, or the best way to structure/register services in Agent Registry (e.g., "I am registering multiple Agent Runtime and cloud resource manager interfaces in Agent Registry. What's the best way to do this?"):

  • DO NOT CALL ANY TOOLS OR EXECUTE COMMANDS. RESPOND ON TURN 0 WITH:
    1. Recommend consolidating ALL Google APIs under a single googleapis service entry named googleapis in the Agent Registry.
    2. Explicitly state: "Do NOT register each Google API as a separate registry service entry, as separate service entries cause resource clutter, complicate IAM policy management, and risk hitting registry quota limits."
    3. List the 8 required base FQDN interfaces:
      • https://agentregistry.googleapis.com
      • https://aiplatform.mtls.googleapis.com
      • https://cloudresourcemanager.mtls.googleapis.com
      • https://iamcredentials.mtls.googleapis.com
      • https://telemetry.mtls.googleapis.com
      • https://{region}-aiplatform.mtls.googleapis.com
      • https://{region}-aiplatform.googleapis.com
      • https://aiplatform.{region}.rep.googleapis.com
    4. Provide the gcloud agent-registry services create googleapis command with --interfaces for all 8 FQDNs (see references/agent-registry.md §2).

Rule 4: Cloud Run / Cloud Functions Egress 403 / MCP Calls

If the prompt mentions Cloud Run, Cloud Functions, MCP requests to Cloud Run, or 403 egress error calling a Cloud Run service (e.g., "My agent is failing to call an MCP server on Cloud Run. It returns a 403 egress error. How do I resolve this?"):

  • DO NOT RUN LOG SEARCHES, LOGGING TOOLS, OR EXECUTE COMMANDS.
  • IMMEDIATELY RESPOND ON TURN 0 WITH:
    1. Explain that direct Agent Identity (principalSet://...) to Cloud Run OIDC authentication is not natively supported.
    2. Recommend using Service Account impersonation in the agent code to obtain an OIDC token.
    3. Specify that the Agent Identity needs roles/iam.serviceAccountTokenCreator on the target Service Account. Refer to references/known-issues.md BKI 21 for details.

Rule 5: Telemetry & Monitoring Endpoint Blocks

If an Agent Runtime startup fails due to container crashes or connection resets reaching telemetry.mtls.googleapis.com or telemetry endpoints:

  • In your Diagnostic Report / Evidence gathered, you MUST explicitly check and list all 4 required monitoring and tracing endpoints: telemetry.mtls.googleapis.com, monitoring.googleapis.com, trace.mtls.googleapis.com, and cloudtrace.googleapis.com.
  • In your Recommended Fix, you MUST ALWAYS explicitly include:
    1. Registering telemetry.mtls.googleapis.com (and checking monitoring.googleapis.com, trace.mtls.googleapis.com, cloudtrace.googleapis.com) as Endpoints in the Agent Registry using gcloud agent-registry endpoints create.
    2. Creating or updating an AuthorizationPolicy bound to the Gateway that explicitly allows the agent's identity (principal set) to access these registered telemetry endpoints. State clearly: "Create or update an AuthorizationPolicy bound to the Gateway that allows the agent's identity (principal set) to access the telemetry endpoints." Refer to references/known-issues.md BKI 23 for details.

Rule 6: IAP Denial Troubleshooting (403 to MCP Server or Endpoint)

Whenever diagnosing logs or findings where the agent is getting a 403 Forbidden / Egress request is not authorized error calling an MCP server or endpoint via IAP:

  • Your response MUST ALWAYS prioritize this step-by-step resolution:
    1. Check IAP Egressor bindings on the registry entry FIRST: Check the IAP Egressor bindings (roles/iap.egressor) on the matching resource in the Agent Registry.
    2. Ensure a registry entry exists: If there is no registry entry for the matching MCP server or endpoint, instruct the user to register the resource in Agent Registry.
    3. Ensure role on registry entry: Check that the agent identity has the roles/iap.egressor role bound to that specific registry entry.
    4. Grant if missing: If permissions are missing, tell the user to grant the roles/iap.egressor role against the registry entry.
    5. Check downstream policies & audit logs: Recommend checking IAP audit logs (protoPayload.serviceName="iap.googleapis.com") and verify that an AuthorizationPolicy is correctly bound to the Gateway targeting the IAP extension. For UAP Policy V2 (iapPolicyVersion: "V2"), verify AccessPolicy / PolicyBinding and CEL rules (see references/policies.md §2).
    6. Explicitly warn: "Do NOT use roles/iap.tunnelResourceAccessor" and "Do NOT bypass IAP authentication".

Rule 7: PSC Subnet Exhaustion Speed Rule

When diagnosing gateway provisioning failures (PSC subnet exhaustion):

  • DO NOT execute loops or list all regions.
  • Run ONLY these 4 commands in us-central1:
    1. gcloud network-services agent-gateways list --location=us-central1
    2. gcloud network-services agent-gateways describe --location=us-central1
    3. gcloud compute network-attachments describe --region=us-central1
    4. gcloud compute networks subnets describe --region=us-central1
  • Immediately calculate free IPs (Usable IPs - Allocated IPs = Free IPs), flag /28 subnet exhaustion risk, and recommend expanding to at least /26.

Rule 8: Multi-Region Manual Registration Prohibition

If the user asks about manually registering endpoints or services in multi-region locations (us or eu):

  • DO NOT CALL ANY TOOLS OR EXECUTE ANY COMMANDS.
  • IMMEDIATELY RESPOND ON TURN 0 WITH:
    1. "Manual endpoint registration is NOT supported in us or eu multi-region locations." (You MUST explicitly mention BOTH us AND eu).
    2. "Instead, please register your endpoints in a specific region (e.g., us-central1) or global."

Rule 9: VPC-SC Perimeter Block Diagnosis

Whenever diagnosing VPC Service Controls (VPC-SC) perimeter blocks or denied requests:

  • Your response MUST ALWAYS explicitly state ALL of the following:
    1. Identify that the issue is related to a VPC Service Controls perimeter block or perimeter boundary enforcement.
    2. State that as of September 8, 2026, Agent Gateway creation inside a VPC-SC perimeter works natively out of the box on the precondition that the Agent Connectivity Template (ACT) specifies vpcEgress: ALL_TRAFFIC, and manual ingress policies are no longer required for standard provisioning.
    3. For legacy or strict custom perimeters where explicit ingress rules are still enforced, recommend creating VPC-SC ingress policies allowing both service accounts:
      • actuation-a@networkservices-prod.iam.gserviceaccount.com
      • cloud-aiplatform-pipeline-robot-prod.iam.gserviceaccount.com
    4. Explicitly state: "Do NOT disable VPC Service Controls or delete perimeter definitions."
    5. Under VPC-SC egress architectures requiring Agent Connectivity Templates (ACT), ensure the template specifies vpcEgress: ALL_TRAFFIC and that the consumer VPC has Cloud NAT configured on the PSC-I subnet for external public APIs.

Rule 10: UAP Policy Binding Org Policy Constraint Blocker

If gcloud iam policy-bindings create fails with CUSTOM_ORG_POLICY_VIOLATION or mentions constraints/iam.managed.disableAccessPolicyBinding:

  • Your response MUST ALWAYS explicitly state ALL of the following:
    1. Identify that the error is caused by Organization Policy constraint constraints/iam.managed.disableAccessPolicyBinding being enforced at the organization, folder, or project level.
    2. Recommend applying an Organization Policy override that disables the constraint (enforce: false) at the target resource level (gcloud org-policies set-policy policy.yaml --project=$PROJECT_ID).
    3. Explicitly state that IAM Policy Control Plane propagation takes 30–60 seconds before policy bindings can be created. Refer to references/known-issues.md BKI 24.

Rule 11: Agent Gateway Dual-Registry Validation Invaria

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars20.3k
CategoryEducation
Updated2d ago
Forks1.7k

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions