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 last9/last9-mcp-server --skill author-alertgit clone --depth 1 https://github.com/last9/last9-mcp-serverWrote 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/last9/last9-mcp-server/author-alert)<a href="https://agentmods.dev/skills/last9/last9-mcp-server/author-alert"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/author-alert/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/last9/last9-mcp-server/author-alert"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/author-alert.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.00022 | $0.01032 |
| Opus 5.5 | $0.00009 | $0.00413 |
| Sonnet 5.5 | $0.00004 | $0.00206 |
| Haiku 4.5 | $0.00002 | $0.00103 |
Grade A, and why
author-alert 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 today.
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 — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workflow: author a Last9 alert rule for: (alert group "<alert_group>").
Before starting, confirm this session exposes the tools needed for this workflow: get_alert_groups, get_entity_kpis, prometheus_range_query, recommend_alert_config, validate_alert_expression, create_alert, get_entity_alert_rules and patch_alert. create_kpi is needed only if no suitable KPI exists; get_dashboard is also needed when dashboard_id is provided. If a required tool is unavailable, tell the user which toolset or permission is needed and stop without attempting that call.
Read last9://reference/alerting first for the expression grammar, the static vs adaptive fields, units and rule templates. Each gate below is mandatory; do not skip one to save a call.
Scope: this workflow authors rules on alert-group KPIs, including custom dashboard panels. An alert on a Discover chart (service or exceptions page) is not authored here: use describe_alert_chart, then create_alert_from_chart with one of its signal_key values; if this session does not expose them, tell the user and stop. Never rebuild a Discover chart's query with create_kpi or create_alert, even when the user supplies a custom query; those tools refuse it. If no signal fits, tell the user the chart alert supports only its catalog signals.
Steps:
- Find the alert group: call get_alert_groups(alert_group_name="<alert_group>") and take the matching group's id as entity_id.
- Alert from a dashboard panel: call get_dashboard(id="<dashboard_id>"), pick the panel "", take its PromQL expr and resolve any dashboard variables ($service, $env, ...) to concrete values. Then call get_entity_kpis(entity_id) and reuse a KPI with the same query; only if none exists, call create_kpi once with that PromQL and the panel's unit, and keep the returned id. Never invent a KPI id.
- Ground the threshold in real data: call prometheus_range_query on each KPI's query over a representative window (at least the last 24h) and note typical and peak values in the KPI's unit. The threshold compares against the raw query value; the unit converts nothing.
- Call recommend_alert_config(signal, objective) for the design checklist, and choose a static or adaptive rule.
- Call validate_alert_expression(entity_id, expression=<inner metric expression, never the adaptive_std_cmp wrapper>, indicators_used={KPI name: KPI id}); key each indicator by its KPI's exact name, as create_alert requires the same names in expression_args. If it returns valid:false, fix the cause and call it again. Do not continue until it returns {"valid":true}. If a multi-indicator expression returns "data source client not in context", do not retry; run the expression with each indicator replaced by its KPI's query through prometheus_range_query over the last hour, and continue once it returns at least one series.
- Call create_alert once with entity_id and the full alert_rule. It saves a disabled draft; keep the returned rule id. To change the rule afterwards use update_alert (keep the replacement id it returns) or patch_alert on that id; never call create_alert again for this rule.
- Read it back: call get_entity_alert_rules(entity_id) and confirm the saved expression, condition, alert_condition, eval_window and indicators match what you intended. Fix any difference with update_alert.
- Show the user the draft: rule id, expression, threshold with its unit, and evaluation window. Call patch_alert(entity_id, id, is_disabled=false) only after the user explicitly confirms; otherwise stop and report the draft id.
Do not call mute_alert_group, and do not change notification channels, in this workflow.
Additional rendered branches: Workflow: author a Last9 alert rule for: .
- Find the alert group: call get_alert_groups and pick the group that owns this signal as entity_id; if more than one fits, ask the user.
- Call get_entity_kpis(entity_id) and pick the KPI(s) whose query measures the goal. Only if none fits, check the query you need returns data with prometheus_range_query, then call create_kpi once and keep the returned id. Never invent a KPI id.
- Alert from a dashboard panel: call get_dashboard(id="<dashboard_id>"), pick the panel, take its PromQL expr and resolve any dashboard variables ($service, $env, ...) to concrete values. Then call get_entity_kpis(entity_id) and reuse a KPI with the same query; only if none exists, call create_kpi once with that PromQL and the panel's unit, and keep the returned id. Never invent a KPI id.
What ships with it
1 file 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.
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.
- today Changed · +6 lines 73e99f4bac6f
- yesterday First seen · 27 lines · 22 tokens per session scan A 39f75a29c71f
author-alert is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 1,032 once invoked, about $0.0001 per session on Opus 5.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-12-05.
author-alert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| author-alertlast9/last9-mcp-server | Skill | 62 | today | Apache-2.0 | A | 22 | Claude Code, Codex |
| ddtoolsetsdatadog-labs/cursor-plugin | Skill | 12 | 2mo ago | Apache-2.0 | A | 43 | Cursor |
| Observability ChecklistNotysoty/openagentskills | Skill | 9 | 3mo ago | MIT | A | 28 | Claude Code, Codex |
| ddconfigdatadog-labs/cursor-plugin | Skill | 12 | 2mo ago | Apache-2.0 | A | 46 | Cursor |
| ddsetupdatadog-labs/cursor-plugin | Skill | 12 | 2mo ago | Apache-2.0 | A | 139 | Cursor |
| datadog-appdatadog-labs/cursor-plugin | Skill | 12 | 2mo ago | Apache-2.0 | A | 127 | Cursor |
| langsmith-observabilitysynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 45 | Claude Code, Codex |