Guide · Agent skill
How to use the Agent Platform Alert Setup agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
This guide explains how to install and use the agent-platform-alert-configuration skill, a set of instructions and helper scripts that lets an AI assistant set up monitoring alerts for an AI agent you run on Google Cloud. It is written for readers who have not used agent skills before. By the end you will know what the skill does, how to add it to your assistant, how to phrase a request that triggers it, and what to check before anything is created in your cloud project.
Quick start
- 1Download the ZIP. Get the skill ZIP from this page.
- 2Unzip into the skills folder. Unzip into ~/.claude/skills/ for all projects or into a project's .claude/skills/ folder for one project.
- 3Install Python dependencies. Run pip install -r scripts/requirements.txt before running any script.
- 4Confirm your agent emits OpenTelemetry metrics. Ask the assistant to check telemetry first, which is a read-only step.
- 5Ask for alerts with a clear request. Name the agent and the project in a natural request.
- 6Review the cost warning and approve. Read the billing warning about LLM evaluations and trace or log export before approving provisioning.
- 7Review and apply the Terraform. Check the generated .tf files before applying them with Terraform.
What does the skill make the agent do?
When you ask your AI assistant to set up monitoring for an AI agent you run on Google Cloud, the skill makes it follow a fixed process. It first checks that the agent is emitting telemetry, then looks for existing alerts so it does not create duplicates, and then writes alert rules as Terraform configuration files.
The rules cover latency, errors, cost, safety, security and, for Vertex AI agents, quality. The skill is built around OpenTelemetry (OTel) metrics, so the agent must already emit those metrics for the alerts to have data to evaluate.
- Reliability: latency, fast and slow burn error-rate SLOs, model call error rate, tool call error rate
- Quality (Vertex AI agents only): final response quality, tool use quality, hallucination
- Cost: rapid token burn rate
- Safety: high Model Armor safety policy trigger rate
- Security: high IAM permission denied trigger rate
Install the skill from the ZIP or the Claude apps
You can install the skill in one of two ways. For Claude Code, download the ZIP from the skill's page on this directory, then unzip it into ~/.claude/skills/ to make it available to all your projects, or into a project's .claude/skills/ folder to limit it to that project.
In the Claude apps, download the same ZIP and upload it under Settings → Capabilities → Skills.
- Personal install: unzip into ~/.claude/skills/
- Project install: unzip into the project's .claude/skills/ folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Set up the prerequisites
The skill's scripts need Python 3 and a few client libraries. Install them from the requirements file that ships with the skill before running any script. The skill also needs the gcloud CLI with credentials that can access your target project, and Terraform to apply the generated configuration.
Your agent must be instrumented with OpenTelemetry metrics. Without them, the Reliability, Cost, Safety and Security policies have no data to evaluate.
- Python 3 with the dependencies in scripts/requirements.txt (Google Cloud monitoring and aiplatform client libraries, google-auth)
- gcloud CLI with Google Cloud credentials for the target project
- Terraform for the generated configuration
- An agent instrumented with OpenTelemetry metrics
pip install -r scripts/requirements.txtTrigger the skill with a natural request
You do not need to type a special command. Describe the outcome you want and name the agent and project. The skill is meant to be used when you are analyzing, writing or deploying alerting policies for an agent's latency, error rates, token usage or quality.
The skill only works on the projects you name in the request. It will not reuse a project from earlier in your session unless you direct it to.
- "Set up alerting for my agent support-bot in project my-project."
- "Check whether my Vertex AI agent is emitting OpenTelemetry metrics, then write alert policies for latency and errors."
- "Write Terraform alerts for token usage spikes on agent billing-assistant in project my-project."
What happens during a run
The skill runs a discovery script first. It identifies the agent runtime, verifies telemetry, and finds metric scopes and linked datasets. If that fails or returns partial data, the assistant falls back to manual checks: it lists metric scopes with gcloud, searches Terraform for scoping projects, and asks you if the scoping project is still unclear.
Before writing anything, the assistant scans for existing policies that target the same metrics. Unless you ask for specific alert types, it configures all of them, and it writes the output only as Terraform.
Safety notes: billing, scripts and network access
Read-only checks run without confirmation. Anything that creates billable resources needs your explicit approval. The assistant must warn you about extra costs from LLM evaluations for the online monitor, and about Cloud Trace or Cloud Logging export for telemetry, and must stop and ask before provisioning.
The skill runs scripts and uses the network. Review the scripts and the generated Terraform before applying it. Do not apply the output to production without review, because it creates cloud resources and charges.
- Read-only scripts run without confirmation
- Provisioning requires your explicit approval
- Review all generated Terraform before applying it to production
Tips for better results
Name one project and one agent per request. If you run several agents in a Cloud Monitoring metrics scope, say so, so the policies go to the scoping project. Quality alerts only work for Vertex AI deployments, so tell the assistant where your agent runs.
- Give the project ID and agent name in the same message
- Say if you use a multi-project metrics scope and name the scoping project
- Ask for specific alert types if you do not want all of them
- Check telemetry first with a read-only request
What people use it for
- Adding latency and error-rate alerts to a Cloud Run agent before a launch
- Setting up token usage alerts to catch unusual cost spikes on a Vertex AI agent
- Standardising alert coverage across several agents in one Cloud Monitoring metrics scope
- Checking whether an existing agent is emitting OpenTelemetry metrics before writing any alerts
Frequently asked questions
How do I install the agent-platform-alert-configuration skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
What do I need to run this skill?
You need Python 3 with the packages in scripts/requirements.txt, the gcloud CLI with credentials for your project, Terraform, and an agent instrumented with OpenTelemetry metrics.
Is the agent-platform-alert-configuration skill free?
The skill is licensed under Apache-2.0. The source does not cover pricing, but running it can create Google Cloud resources that incur billing, including from LLM evaluations and trace or log export.
Does this skill work for agents that are not on Vertex AI?
Yes for Reliability, Cost, Safety and Security alerts, which use generic OTel metrics and work across runtimes such as Cloud Run. Quality alerts depend on Vertex AI Online Monitors and only apply to Vertex AI deployments.
Why won't the skill create alerts for my agent?
The most likely cause is that the agent does not emit OpenTelemetry metrics, so the policies have no data to evaluate. Ask the assistant to run the telemetry check first. It may also fail if the gcloud credentials cannot access the target project.
Can I use this skill for general server or infrastructure monitoring?
No. The skill is for alerting on AI agents and says it should not be used for standard infrastructure monitoring unrelated to AI agents.
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
Use this skill if you run AI agents on Google Cloud and want consistent alert coverage written as Terraform without hand-writing every policy. Pick something else if your agent does not emit OpenTelemetry metrics, if you need general infrastructure monitoring, or if you cannot review generated Terraform before it touches production.
Download the skill