Skip to content

Guide · Agent skill

How to use the Agent Gateway Multi-Agent Security agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

This is an agent skill: a folder of instructions, templates and scripts that you add to an AI agent so it can follow a specific playbook. The Agent Gateway Multi-Agent Security skill helps an agent design and draft security for AI agents running on Google Cloud, including ingress and egress traffic, Model Armor content filtering and IAP access policies. After this guide you will know how to install the skill, how to ask for what you need, what your environment must provide, and which safety checks to do before running anything against a real project.

Agent Gateway Multi-Agent Securitygoogle/skills · Apache-2.0

Quick start

  1. 1Download the ZIP. Download the skill ZIP from this page. It contains SKILL.md plus the assets, references and scripts folders.
  2. 2Install the skill. Unzip it into ~/.claude/skills/ for personal use or into .claude/skills/ in a project. In the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills.
  3. 3Set environment variables. Set PROJECT_ID and REGION, and optionally DNS_ZONE, for the Google Cloud project you plan to use.
  4. 4Ask for your architecture. Describe your agents and whether you need ingress, egress or both, mentioning Model Armor, IAP or Agent Registry where relevant.
  5. 5Review the generated files. Check each YAML and JSON file, replace placeholder values such as gke-tools.example.com and 10.0.1.50, and confirm filter settings are enforced.
  6. 6Read the scripts. Open scripts/deploy_infrastructure.sh and any DNS script to see which gcloud commands will change resources.
  7. 7Test before production. Run the import steps in a non-production project first, following the order of enabling APIs, importing gateways, the authz extension and the authz policy.

What the skill makes the agent do

The skill gives an AI agent a detailed playbook for securing AI agents on Google Cloud. It guides the agent to draft a security architecture for traffic coming into agents (CLIENT_TO_AGENT) and going out from them (AGENT_TO_ANYWHERE), then produce configuration files for Agent Gateway, Model Armor and IAP.

Model Armor covers content filtering for prompt injection and sensitive data. The skill also includes deployment scripts that run gcloud commands to enable APIs and import these configurations into a Google Cloud project.

  • Ingress config (agw-ingress-config.yaml) for CLIENT_TO_AGENT traffic over HTTP and MCP
  • Egress config (agw-egress-config.yaml) for AGENT_TO_ANYWHERE traffic over MCP
  • Authz extension and authz policy files for IAP authorization and ALLOW rules
  • Model Armor config with prompt injection/jailbreak and sensitive data filters set to ENFORCE
  • IAP policy and Natural Language Constraint policy templates

Install the skill in Claude

Download the ZIP file from this page. Then choose one of two routes. For a personal setup, unzip it into ~/.claude/skills/. For a single project, unzip it into the project's .claude/skills/ folder. Alternatively, in the Claude apps you can upload the ZIP under Settings → Capabilities → Skills.

After unzipping, the skill folder should contain SKILL.md at its top level alongside the assets/, references/ and scripts/ folders.

  • Personal: ~/.claude/skills/
  • Project: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

Trigger the skill with natural requests

You do not need a special command. The skill's description says it is used when you need to configure multi-agent security, ingress (CLIENT_TO_AGENT) or egress (AGENT_TO_ANYWHERE) patterns involving Model Armor, IAP and Agent Registry. Mention those topics in plain language. Be specific about your goal, such as drafting ingress policies or reviewing egress rules.

The skill says it should not be used for general Cloud Load Balancing or basic VPC setup unrelated to Agent Gateways, so keep requests focused on agent security.

  • Draft ingress and egress Agent Gateway configs for my multi-agent system with Model Armor and IAP.
  • Create a model-armor-config.yaml with prompt injection and sensitive data filters enforced.
  • Write an IAP policy that only lets a read-only MCP tool be called by the billing agent.
  • Show me the gcloud steps to import the gateway configs into my project.

Examples of what you can ask for

The skill's deployment section lists the order of work. It enables the required APIs, imports the two Agent Gateways, imports the authz extension and then imports the authz policy. The source describes the ingress validation step as a copy-pasteable curl test that sends an unauthenticated POST request, which the skill expects to be rejected with a 403. Ask the agent to walk through these steps in order and to explain each command before you run it.

  • Review my agw-egress-config.yaml and tell me whether it targets AGENT_TO_ANYWHERE over MCP.
  • Explain why my deployment needs modelarmor.googleapis.com in the API list.
  • Create the subnet settings I need for an egress gateway's Private Service Connect attachment.

What you need before you start

The skill assumes a working Google Cloud setup. Check these items before you ask the agent to deploy anything. Note that the configs are templates with placeholder values, such as gke-tools.example.com and 10.0.1.50, that you must replace.

  • A Google Cloud project with billing enabled and permission to enable APIs and create networking resources
  • The gcloud CLI with alpha and beta components installed
  • Environment variables PROJECT_ID and REGION, and optionally DNS_ZONE
  • Terraform, which the skill references for subnet settings
  • An agent runtime that can read and execute the skill's instructions and files
echo $PROJECT_ID $REGION $DNS_ZONE

Safety notes: scripts and network access

The skill runs scripts and uses the network. The included scripts, such as scripts/deploy_infrastructure.sh and scripts/create_gke_dns_record.sh, make real changes to cloud resources and to billing-relevant services. Read each script before running it, and do not run them against a production project without review. The skill's own rules say not to run gcloud, kubectl, terraform or curl against real resources during design, so expect the agent to generate plans first.

The skill also requires Egress policy verification to use scripts/verify_egress_policies.py instead of curl, and says that Subnet Private Access must be enabled in Terraform for subnets hosting Private Service Connect attachments for Egress Gateways. The skill's attribution file asks the agent to prefix each gcloud command with a metrics environment variable that identifies only the skill and its version.

  • Read deploy_infrastructure.sh and create_gke_dns_record.sh before running them
  • Test in a non-production project first
  • Replace all placeholder values before import
  • Review IAM roles, especially roles/iap.egressor, before applying
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-solution-multi-agent-security)" gcloud <command> [flags]

Tips for better results

Give the agent your real context: the agent names (for example BillingAgent, SupportAgent or FraudAgent), the tools each agent calls and whether those tools are read-only. The IAP example in the source is built around a get_account_balance tool with a read-only condition, so describing your tools clearly helps the agent produce useful policies.

Ask for the required filenames. The skill expects exact names such as agw-ingress-config.yaml and model-armor-payload.json, and it reads its templates from assets/ before writing new files. Keep the generated files and review them against your own environment.

  • Name your agents and tools explicitly
  • Ask for the exact filenames the skill uses
  • Review every placeholder and every gcloud flag
  • Ask the agent to explain any command you do not understand

What people use it for

  • Drafting ingress and egress Agent Gateway configs for a multi-agent system on Google Cloud
  • Reviewing an existing Model Armor config to confirm prompt injection and sensitive data filters are enforced
  • Writing an IAP policy that limits a billing agent to a read-only tool
  • Producing a checklist of gcloud API enablement and import steps for a security review

Frequently asked questions

How do I install the Agent Gateway Multi-Agent Security skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or into .claude/skills/ inside a project. In the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.

What do I need to use this skill?

You need a Google Cloud project with billing enabled, permission to enable APIs and create networking resources, the gcloud CLI with alpha and beta components, the PROJECT_ID and REGION environment variables, Terraform for subnet settings, and an agent runtime that can read and run the skill's files.

Is the Agent Gateway Multi-Agent Security skill free?

The skill is listed under the Apache-2.0 licence. This page does not state any price, and Google Cloud usage of the resources you create is billed under your own Google Cloud account.

Does the skill deploy to my Google Cloud project automatically?

No. The skill's rules tell the agent to generate plans and configuration files rather than run deployment commands against real resources during design. The included scripts do run gcloud commands when you execute them, so review them first.

Why do the configs contain placeholder values?

The configs are templates. Values such as gke-tools.example.com and 10.0.1.50 are examples that you must replace with your own. The skill is not tested against your environment, so verify every value.

What is the difference between ingress and egress in this skill?

Ingress covers CLIENT_TO_AGENT traffic coming into your agents, governed by an Agent Gateway with HTTP and MCP protocols. Egress covers AGENT_TO_ANYWHERE traffic going out from agents, governed by an Agent Gateway with the MCP protocol.

Can I use curl instead of the Python script for egress checks?

No, according to the skill. It says egress policy verification requires the Python script scripts/verify_egress_policies.py, because egress gateways rely on runtime SDK lifecycle handling and JWT context that a standard curl command cannot simulate correctly.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits cloud engineers and security teams who are building multi-agent systems on Google Cloud and want starter Agent Gateway, Model Armor and IAP templates to review and adapt. It is not a turnkey production solution, so it is a poor fit if you expect verified, ready-to-deploy configs or if you plan to run its scripts against production without reading them first. For general load balancing or basic VPC setup, pick a tool built for that job instead.

Download the skill