agent-platform-alert-configuration

agent-platform-alert-configuration is a skill for Claude Code from hamzabellouch/agent-skills. It costs 106 tokens per session (4,762 once invoked), scanned A, original, MIT.

A configuration guide for alerting on Google Cloud Vertex AI agents running on Agent Runtime. It covers alerts for reliability measures such as latency and errors, and quality measures such as response quality, tool use, and hallucinations.

In plain words
What is it for?
Use it when analysing, writing, or deploying monitoring policies for Vertex AI agents. Creating cloud monitoring resources requires user approval because it can create billable resources.
Why use it?
It replaces fixed alert limits that may create too many warnings for changing AI workloads with thresholds based on recent behaviour.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when analysing, writing, or deploying monitoring policies for Vertex AI agents. Creating cloud monitoring resources requires user approval because it can create billable resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/agent-platform-alert-configuration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill agent-platform-alert-configuration
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-platform-alert-configuration

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-platform-alert-configuration

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.04762
Opus 5 $0.00053 $0.02381
Sonnet 5 $0.00021 $0.00952
Haiku 4.5 $0.00011 $0.00476

Measured 11d ago against content hash 0b64cb72362d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

agent-platform-alert-configuration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/analyze_traffic_test.py, scripts/analyze_traffic.py, scripts/check_telemetry_test.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AI API and Agent Platform/agent-platform-alert-configuration/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Platform Alert Configuration

This skill provides dynamic threshold alerting configurations for Google Cloud / Vertex AI Reasoning Engines (Agent Platform container deployments) using extended 1-week lookback retention baselines. Standard static thresholds (e.g., "latency > 2s") cause excessive alert noise for AI agents. Dynamic PromQL baselines solve this.

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:

  1. Tier R: Read-only (check_telemetry.py)
    • Rule: No confirmation needed. You may execute these scripts immediately to inspect the telemetry status of the Reasoning Engine.
  2. 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 ask the user directly for approval before proceeding.

CRITICAL RULES

  • Always configure both Reliability and Quality alerting policies for the target agent (6 policies in total):
    • For Reliability Monitoring: You MUST configure exactly three alerting policies:
      1. Latency (anomaly monitoring)
      2. Error Rate - Fast Burn SLO (1-Hour Window)
      3. Error Rate - Slow Burn SLO (3-Day Window)
    • For Quality Monitoring: You MUST configure exactly three alerting policies:
      1. Final Response Quality
      2. Tool Use Quality
      3. Hallucination
  • Online Monitor Provisioning & Cost Warning: Quality alerting policies rely on metrics exported by Online Monitors. You MUST ensure the Online Monitor is provisioned for the agent and telemetry is enabled:
    • Ask for Approval: Both Online Monitors and Telemetry incur separate billing charges. Before provisioning them, you MUST warn the user about these extra costs. If not pre-approved in the prompt, you MUST ask a direct question in your response requesting confirmation/approval to proceed (e.g., "Please confirm if you approve the extra billing costs for the Online Monitor and Telemetry to proceed.").
    • Verify Telemetry First: Before generating any alerting policy plan or provisioning Online Monitors, you MUST always verify the telemetry status of the Reasoning Engine first using the check_telemetry.py script as detailed in Verify Telemetry Status below.
    • Follow the Guide: Follow the step-by-step instructions in the Online Monitor & Telemetry Provisioning section below.
  • Brand New Agents (No Traffic History): When setting up alerts for a brand new agent, you MUST explicitly ask the user what traffic pattern they expect (Steady, Seasonal, or Bursty) in your response. If immediate setup is requested, ask the question but proceed using the default Steady/Consistent (Short-Window Z-Score) pattern. Follow no_historical_traffic_data.md.
  • PromQL for Reliability (No MQL or Threshold Filters): For the 3 reliability metrics, you MUST use condition_prometheus_query_language with PromQL. Do NOT use MQL or standard condition_threshold.
  • Standard Threshold Filters for Agent Quality: For the 3 agent quality metrics, you MUST use standard condition_threshold filters matching the monitored resource type aiplatform.googleapis.com/OnlineEvaluator and metric type aiplatform.googleapis.com/online_evaluator/scores. Do NOT use PromQL.
  • Install Terraform if Necessary: You should use terraform to deploy and must install terraform if you can't find a valid install.
  • Terraform Only: Write the generated observability configuration ONLY as Terraform (.tf) files (e.g., alerts.tf, variables.tf).
  • Dynamic Multi-Resource Alerting (No Single-Resource Pinning): You MUST NOT hardcode specific agent IDs or resource name filters (e.g., {reasoning_engine_id="[AGENT_ID]"} or metric.labels.agent_resource_name="[AGENT_NAME]") in alerting conditions unless explicitly requested. Alerting policies must be written to cover all active agents in the project dynamically:
    • For Reliability Metrics using PromQL: ALWAYS use grouping aggregations (by (reasoning_engine_id)) instead of filtering to a single ID. This allows a single alert policy to dynamically track each reasoning engine instance separately.
    • For Quality Metrics using Standard Threshold Filters: Omit the agent_resource_name filter entirely. Configure the condition filter to only target the monitored resource type (aiplatform.googleapis.com/OnlineEvaluator) and metric type (aiplatform.googleapis.com/online_evaluator/scores) globally for the project.
  • Check for Pre-existing Policies: Avoid creating duplicate alert policies for a reasoning engine: scan the target directory or workspace to see if a policy already exists that targets the same metrics using aggregations grouped by reasoning_engine_id.
  • Metric Scope Discovery & Project Inference: Centralize alert policies in a Metric Scope (scoping project) to save costs. Identify if a scope is used and where policies should live by checking:
    1. GCP CLI Check: Run gcloud beta monitoring metrics-scopes list projects/[PROJECT_ID]. If a parent scope locations/global/metricsScopes/[SCOPING_PROJECT_ID] is returned, a Metric Scope is active; deploy policies there.
    2. Infrastructure as Code Scan: Search Terraform configurations for google_monitoring_monitored_project resources and extract the scoping project from the metrics_scope attribute.
    3. Ambiguity Fallback: If unable to determine, ask the user: "Are you using a multi-project Cloud Monitoring Metric Scope? If so, what is the scoping project ID?" Deploy policies to the deduced scoping project (setting the project attribute in HCL), or default to the local project.
  • Directory Inference: Deploy configuration files to target Terraform or SRE folders (e.g. monitoring/, ops/, sre/). Use tools to locate where alert policies or state pointers exist in the project, rather than blindly writing to the current working directory.
  • Notification Channels: By default, never configure any notification channels without user input. If the user explicitly provides a notification channel in their prompt, configure the alerts to use it. If no notification channel is provided, you MUST explicitly ask the user in your final response if they would like to configure notification channels. This is a mandatory question and you MUST NOT omit it from your response. IMPORTANT Do NOT make assumptions about notification channels. If you search the codebase for a notification channel you must ALWAYS confirm with the user before using it.
  • Plain English Response: You MUST include a plain English explanation for what the alerts do in your response. This must explain in plain English what the alert measures, how the algorithm works, and what a trigger indicates.
  • Avoid Recursive Directory Operations: You MUST NOT run recursive listing or search commands (such as ls -R, find ., or raw recursive grep) from the google3 workspace root, as this will hang your session. Always target specific subdirectories.
  • Background Task Cleanup: You MUST check the status of all background tasks that you spawn. Before completing your execution and returning your final response, you MUST terminate or kill any active or hanging background tasks (using the manage_task tool with action kill).

Read the full file on GitHub · 400 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 400 lines · 106 tokens per session scan A 0b64cb72362d

Subscribe to this mod's changes

agent-platform-alert-configuration is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 4,762 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.