agent-platform-alert-configuration
Qué hace
Escribe políticas de alertas de Terraform que vigilan las métricas OpenTelemetry de un agente de IA, como la latencia y las tasas de error. Es para equipos que ejecutan agentes de IA instrumentados y quieren recibir un aviso antes de que los problemas crezcan.
Cuándo usarla
- ✓Cuando quieres una alerta si sube la tasa de error o la latencia de tu agente de IA.
- ✓Cuando quieres vigilar el uso de tokens de un agente para que los costes no te sorprendan.
- ✓Cuando quieres políticas de alerta escritas en Terraform para tu proyecto de Google Cloud.
Link de la skill
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-alert-configuration/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Escribe alertas de Terraform que me avisen si la tasa de error o la latencia de mi agente de IA son demasiado altas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Primero comprueba que la telemetría funciona y reúne los datos del agente, y después escribe los archivos de configuración de las alertas. Crear monitores o recursos necesita tu confirmación previa.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Agent Platform Alert Configuration
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:agent-platform-alert-configuration)"
and append
agent-skills/1.0 (skill:agent-platform-alert-configuration)
to User-Agent headers.
Critical Steps
1. Safety & Confirmation Tiers (CRITICAL)
Before executing any commands or writing configurations on behalf of the user, you MUST adhere to the following safety tiers based on the action requested:
- Tier R: Read-only (
check_telemetry.py/gather_agent_info.py)- Rule: No confirmation needed. You may execute these scripts immediately to inspect telemetry status or gather agent configuration details.
- Tier B: Billing & Resource Creation (
create_online_monitor.py/ provisioning)- Rule: Explicit User Confirmation Required. These actions incur additional billing charges and create cloud resources. The agent MUST ALWAYS warn the user explicitly about the potential extra billing costs of BOTH the Online Monitor (specifically mentioning LLM evaluations) and Telemetry (specifically mentioning Cloud Trace/Cloud Logging export). You MUST STOP and ask for explicit approval before proceeding with provisioning or providing setup commands.
2. Prerequisites & Dependencies
Agent Telemetry
- Disclaimer: For Reliability, Cost, Safety, and Security alerts to function, the underlying agent MUST be instrumented to emit OpenTelemetry (OTel) metrics. If the agent does not emit these metrics, the alerting policies will have no data stream to evaluate.
Python Environment
Before executing any python script in this skill you MUST install the required dependencies in your environment. Run this command first:
pip install -r scripts/requirements.txt
3. Input Assumptions
- Explicit Project Adherence: You must ONLY configure alerts, query telemetry, or interact with the Google Cloud Project(s) explicitly provided by the user in the prompt. Do NOT assume or use other projects from your environment or history unless the user explicitly directs you to do so.
- Sequential File Transformations: If the user explicitly asks to copy a file and then modify it, you MUST perform these actions sequentially (copy first, then modify) rather than writing the final content directly.
4. Execution Steps
- Mandatory Prerequisite Execution Protocol (SEQUENTIAL): Before
generating or writing ANY configuration, you MUST execute these steps in
order:
- Step 1: Streamlined Discovery (Mandatory): Run
gather_agent_info.pyto automatically identify agent runtime, verify telemetry, metric scopes, linked datasets, and more. This script covers most of the manual verifications listed in subsequent steps.- Command:
python3 scripts/gather_agent_info.py --project-id {project_id} --agent-name {agent_name} - Note: If this script fails, returns partial data, or doesn't produce everything you need, you MUST satisfy requirements by running the manual fallback steps listed in Step 2 and then perform Step 3 below. If Step 1 succeeds and provides all info, SKIP to Step 3 (Pre-existing Policies Verification).
- Command:
- Step 2: Metric Scope Verification (Fallback): Run this ONLY if Step
1 failed to determine the metric scope.
- Action A (CLI): Run
gcloud beta monitoring metrics-scopes list projects/{project_id}. If a scoping project is returned, you MUST deploy policies there. - Action B (Code Scan): Search Terraform configurations for
google_monitoring_monitored_projectresources to extract the scoping project. - Action C (Fallback): If ambiguous, ASK the user: "Are you using a multi-project Cloud Monitoring Metric Scope? If so, what is the scoping project ID?"
- Action A (CLI): Run
- Step 3: Pre-existing Policies Verification: Avoid duplicates.
- Action: Scan the target directory
- Step 1: Streamlined Discovery (Mandatory): Run
Preguntas frecuentes
¿Crea recursos de inmediato?
No. Crear monitores y recursos necesita tu confirmación explícita, porque puede generar cargos de facturación.
¿Qué cargos debo esperar?
La skill avisa de costes adicionales por los monitores online, incluidas las evaluaciones de LLM, y por la telemetría.
¿Sirve para infraestructura que no es de IA?
No. Solo es para agentes de IA instrumentados con OpenTelemetry.
Detalles
Descripción original del autor
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for standard infrastructure monitoring unrelated to AI agents, or when the agent is not instrumented with OpenTelemetry (for Reliability, Cost, Safety, Security alerts). NOTE: Reliability, Cost, Safety, and Security alerts use generic OTel metrics and work across runtimes (such as Cloud Run, Vertex AI). Q
repo: google/skills
Popularidad
- Estrellas en GitHub
- 22 mil
- Posición en el ranking
- #10199
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
finding-google-skills
22 milAyuda a tu agente a encontrar las guías de Google adecuadas para una tarea de configuración, como alojamiento, bases de datos, almacenamiento, inicio de sesión o servicio de modelos de IA.
gcloud
22 milAyuda a tu agente a escribir y comprobar comandos gcloud de Google Cloud, consultando la sintaxis exacta antes de ejecutar nada para no adivinar los parámetros.
google-cloud-recipe-auth
22 milGuía a tu agente por la identidad y el acceso en Google Cloud, incluido cómo inician sesión las personas y los servicios y qué permisos reciben.
google-cloud-recipe-onboarding
22 milGuía a un desarrollador nuevo en sus primeros pasos en Google Cloud, incluida la elección de un proyecto, la vinculación de la facturación y el despliegue de un primer recurso.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.