apigee-agent-gateway-governance
Stands up an Apigee API proxy that a Google Cloud Agent Gateway calls as an ext-proc (Service Extension) callout on an agent's LLM traffic, to meter token…
Skill by googleOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/google-apigee-agent-gateway-governance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, cloud, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/apigee-agent-gateway-governance
What's inside
- Skill name
apigee-agent-gateway-governance- Description
- Stands up an Apigee API proxy that a Google Cloud Agent Gateway calls as an ext-proc (Service Extension) callout on an agent's LLM traffic, to meter token usage per model, extract caller identity, and apply Model Armor prompt screening or a semantic cache. Use when wiring Apigee in as an AI gateway behind an Agent Gateway, when an agent's model egress needs governing, or when a callout proxy returns no verdict and you need to find out why. The distinguishing question is whether Apigee forwards the traffic or only inspects it: this skill is inspect-only, and builds the proxy itself. Don't use it when Apigee is meant to receive a request and route it onward to a backend — including hosting an MCP server behind Apigee — which needs a proxy with a target instead. Don't use for governing the agent's calls to tools or MCP servers. Don't use for choosing or switching which model a request goes to. Don't use for creating the Agent Gateway itself, nor for Apigee hybrid.
- License
- Apache-2.0
- Metadata
- version: 1.0.0 · category: AiAndMachineLearning
- Instructions
- 500 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (25)
- SKILL.md
- apigee-agent-gateway-governance.example.yaml · assets/
- apigee-proxy-template.yaml · assets/
- authz-extension.example.yaml · assets/
- authz-policy.example.yaml · assets/
- feature-identity.yaml · assets/
- feature-model-armor.yaml · assets/
- feature-normalize.yaml · assets/
- feature-semantic-cache.yaml · assets/
- feature-token-enforce.yaml · assets/
- feature-token-metering.yaml · assets/
- gotchas.md · references/
- modes.md · references/
- networking-psc.md · references/
- recipes.md · references/
- setup.md · references/
- verify.md · references/
- assess_integration.sh · scripts/
- compile_check.py · scripts/
- deploy_proxy.sh · scripts/
- ensure_apigee_environment.sh · scripts/
- ensure_gateway_connectivity.sh · scripts/
- ensure_vector_search.sh · scripts/
- read_debug_session.sh · scripts/
- teardown_vector_search.sh · scripts/
SKILL.md (first lines)
# Apigee as an Agent Gateway Service Extension Wires an Apigee proxy in as an **ext-proc callout** on a GCP Agent Gateway. The proxy is a **processor, not an API proxy**: it has no backend, inspects the LLM request and response the gateway hands it, and returns a verdict. ## Usage Attribution **MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read and follow the instructions in [Usage Attribution](references/attribution.md). You build the proxy; the user does not. **Two modes, one schema. Decide which before anything else, and say which.** Input file present → **prod mode**: it is the contract, every value comes from it, and a missing or malformed field is a refusal, not a default. No input file and the user is describing an outcome → **dev mode**: apply the documented defaults, show a plan with durations and get approval, start with identity and metering only, write `apigee-agent-gateway-governance.yaml` at the end as the handoff. `assets/apigee-agent-gateway-governance.example.yaml` documents the schema both modes use. Modes, defaults, durations, cost disclosure and the interlocks that bind both: `references/modes.md`. **Read it before you start.** **Colour the plan's ACTION column** — green `REUSE`, cyan `CREATE`/`RESERVE`, yellow `APPEND`/`MODIFY`; full palette in `references/modes.md`. Yellow is the one that earns its place: it is the only signal that a resource the user already owns is being changed. Rendered plain, the one row that modifies something is indistinguishable from the dozen that do not — which is exactly the row the approval exists for. ## Prerequisite: where the agent runs Check this **before** building anything. It decides whether traffic can reach the gateway at all, and it is silent when wrong — every step below still succeeds while nothing arrives. **Use Agent Runtime**, created with `agent_gateway_config` / `agent_to_anywhere_config`. It is the supported path and the orchestrator builds the client-side PSC, routing, DNS and cert trust for you. There is no `gcloud` surface for this and no console path — it is SDK-only, at agent creation time. See [Route traffic through Agent Gateway](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/agent-gateway-runtime-deploy.md.txt) for the binding, and `references/networking-psc.md` for a worked example. **Set `GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES: "False"` in the agent's `env_vars`, or every invocation 401s** on the agent's own `sessions.create`, before user code runs. Deploy-time invisible. Full symptom and isolation: `references/gotchas.md`, Agent Gateway. Where the agent runs is otherwise settled — the premise is a working gateway and a working agent. Do not explain how to build one or list unsupported compute unprompted; `references/networking-psc.md` has the constraints if it turns out to matter. ## Tool versions Do not assume these are installed or current. Tool | Minimum | Why -------------------------------------------- | ----------- | --- `gcloud` | **588.0.0** | `apigee apis import --from-template` is on the GA track at this version; older SDKs need `gcloud beta` `google-cloud-aiplatform[agent_engines,adk]` | `>=2.1,<3` | Agent Runtime client used to bind the agent to the gateway `google-adk` | `>=2.9,<3` | only if you build the test agent with ADK **On gcloud >= 588.0.0: every feature must keep its `uid`, and the template must never declare `endpoints` or `targets`.** All six features set `uid` today and the template declares neither, so the shipped bundle is correct — but both are load-bearing now, and breaking either one still compiles, still deploys, and reports nothing. Mechanism and symptoms: `references/gotchas.md`, under Authoring (AFT). ```bash gcloud version | head -1 # confirm >= 588.0.0 gcloud components update # if older pip install "google-cloud-aiplatform[agent_engines,adk]>=2.1,<3" "google-adk>=2.9,<3" ``` `scripts/compile_check.py` needs PyYAML and names the interpreter if it is missing. `pip install pyyaml`, or run it with a Python 3 that has it; gcloud's bundled interpreter does not, and the SDK's vendored `yaml` is Python 2. ```bash python3 scripts/compile_check.py assets/apigee-proxy-template.yaml ``` ## Execution model Three layers, and the choice between them is not stylistic: Layer | Used for | Why --------------------- | ------------------------------------------------------ | --- **AFT YAML template** | the proxy itself | version-controlled, reviewable, diffable **`gcloud`** | PSC, DNS, AuthzExtension, AuthzPolicy | native commands exist **REST (`curl`)** | env properties, envgroups, deployments, debug sessions | no `gcloud` equivalent today The customer owns **one** input file (`assets/apigee-agent-gateway-governance.example.yaml`). It is the version-controlled artifact. Never hand-edit the generated proxy: regenerate it. **Run the Apigee-side sequence with the script, not by hand.** Steps 1, 3 and 4 below are order-dependent and each fails in a way that reads as a different problem. `scripts/deploy_proxy.sh` does all three, preserves the properties map, polls the async operation, and exits non-zero if the deployment does not come up `EXTENSIBLE`: ```bash scripts/deploy_proxy.sh --org "$ORG" --env "$ENV" --proxy "$PROXY" \ --template assets/apigee-proxy-template.yaml [--service-account "$SA"] --yes \ [--index-endpoint-id ID --index-id ID --sc-project P --sc-region R --embeddings-model M] ``` Run it without `--yes` first: it prints the plan and changes nothing. Show that plan, then re-run with `--yes` once the user agrees. **The vector-search flags are the one exception to "edit the default in every feature that declares it".** Those three ids are substituted at deploy time
From google/skills, Apache-2.0.
More from google/skills
- 0.865score
google-ads-api-account-diagnostics
google-ads-api-teamOfficial
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-triage
Google LLCOfficial
Expert guidance for security alert triage in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-detection-engineering
Google LLCOfficial
Author, validate, test, and deploy YARA-L 2.0 detection rules and evaluate end-to-end detection coverage gaps in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-hunt
Google LLCOfficial
Expert guidance for proactive threat hunting in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-cases
Google LLCOfficial
Manage Google Security Operations (SecOps) SOAR cases throughout their lifecycle.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-investigate
Google LLCOfficial
Expert guidance for deep security incident and entity investigations in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.824score
google-ads-api-quickstart
google-ads-api-teamOfficial
Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a…
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.819score
google-ads-api-mcp-setup
google-ads-api-teamOfficial
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-dai-sdk
Google LLCOfficial
Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-sdk-client-side
Google LLCOfficial
Supports Interactive Media Ads (IMA) SDK.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Signals
- Stars
- 21,542
- Forks
- 1,821
- Open issues
- 21
- Last commit (this folder)
- Oct 20, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- Apache-2.0
- Repository
- github.com/google/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from google
- 0.699score
retrieving-developer-knowledge
googleOfficial
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
data-manager-api-setup
googleOfficial
Guides developers through client library installation and authentication setup steps for the Data Manager API.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-migrate-from-ai-studio
googleOfficial
Guides agents and users through migrating from Gemini API in Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI).
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
google-cloud-recipe-onboarding
googleOfficial
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Cite this page
apigee-agent-gateway-governance skill. Agent Mart. https://agentmart.dev/skills/google-apigee-agent-gateway-governance (last updated 2026-10-24)