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.
npx skills add hamzabellouch/agent-skills --skill agent-platform-alert-configurationgit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote 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.
[](https://agentmods.dev/skills/hamzabellouch/agent-skills/agent-platform-alert-configuration)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
- 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.
- 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:
- Latency (anomaly monitoring)
- Error Rate - Fast Burn SLO (1-Hour Window)
- Error Rate - Slow Burn SLO (3-Day Window)
- For Quality Monitoring: You MUST configure exactly three alerting
policies:
- Final Response Quality
- Tool Use Quality
- Hallucination
- For Reliability Monitoring: You MUST configure exactly three
alerting policies:
- 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.pyscript 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_languagewith PromQL. Do NOT use MQL or standardcondition_threshold. - Standard Threshold Filters for Agent Quality: For the 3 agent quality
metrics, you MUST use standard
condition_thresholdfilters matching the monitored resource typeaiplatform.googleapis.com/OnlineEvaluatorand metric typeaiplatform.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]"}ormetric.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_namefilter 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.
- For Reliability Metrics using PromQL: ALWAYS use grouping
aggregations (
- 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:
- GCP CLI Check: Run
gcloud beta monitoring metrics-scopes list projects/[PROJECT_ID]. If a parent scopelocations/global/metricsScopes/[SCOPING_PROJECT_ID]is returned, a Metric Scope is active; deploy policies there. - Infrastructure as Code Scan: Search Terraform configurations for
google_monitoring_monitored_projectresources and extract the scoping project from themetrics_scopeattribute. - 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
projectattribute in HCL), or default to the local project.
- GCP CLI Check: Run
- 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 recursivegrep) 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_tasktool with actionkill).
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/alerts_initial_duplicate.tf 655 B
- assets/draft_invalid_query.tf 411 B
- assets/mock_bursty.json 32 KB
- assets/mock_seasonal.json 34 KB
- assets/mock_steady.json 35 KB
- references/has_historical_traffic_data.md 3.7 KB
- references/no_historical_traffic_data.md 3.8 KB
- references/promql_queries.md 4.9 KB
- references/telemetry_enablement.md 2.5 KB
- scripts/analyze_traffic_test.py 6.3 KB runs code
- scripts/analyze_traffic.py 11 KB runs code
- scripts/check_telemetry_test.py 3.8 KB runs code
- scripts/check_telemetry.py 3.2 KB runs code
- scripts/create_online_monitor_test.py 6.0 KB runs code
- scripts/create_online_monitor.py 5.1 KB runs code
- scripts/requirements.txt 60 B
- scripts/validate_config_test.py 11 KB runs code
- scripts/validate_config.py 11 KB runs code
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.
- 11d ago First seen · 400 lines · 106 tokens per session scan A 0b64cb72362d
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.
Other skills, from other repositories
shipping-and-launch
Prepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.
cost-optimization
Identify and reduce cloud infrastructure costs — right-sizing, reserved capacity, waste detection, tagging for cost attribution.
drift-detection
Detect, classify, and automate Terraform drift detection in CI — scheduled plans, drift metrics, cloud-native audit log correlation.
prometheus-alertmanager
Write production-quality Prometheus alert rules, recording rules, and Alertmanager routing configs.
opa-policies
Write OPA/Gatekeeper and Kyverno admission policies for Kubernetes security guardrails.
state-management
Manage Terraform remote state — backend setup, state isolation, locking, import, mv, and state surgery.