author-alert

author-alert is a skill for Claude Code, Codex from last9/last9-mcp-server. It costs 22 tokens per session (1,032 once invoked), scanned A, original, Apache-2.0.

A workflow for creating or refining alert rules in Last9, an observability service that monitors application data and can notify teams about problems. It also validates the rule before creating or changing it.

In plain words
What is it for?
It helps define alerts from monitoring metrics, dashboard panels, or existing alert groups, and update or validate those rules.
Why use it?
It guides alert setup through the required checks and avoids attempting changes when the needed monitoring tools or permissions are unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps define alerts from monitoring metrics, dashboard panels, or existing alert groups, and update or validate those rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/last9/last9-mcp-server/author-alert
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 last9/last9-mcp-server --skill author-alert
Clone the repo
git clone --depth 1 https://github.com/last9/last9-mcp-server

Made for: Claude Code, Codex.

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 author-alert

README.md
[![agentmods](https://agentmods.dev/badge/skills/last9/last9-mcp-server/author-alert/github.svg)](https://agentmods.dev/skills/last9/last9-mcp-server/author-alert)
Your own site
<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.

agentmods 80×15 button for author-alert

Your own site · 80×15
<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>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 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.00022 $0.01032
Opus 5.5 $0.00009 $0.00413
Sonnet 5.5 $0.00004 $0.00206
Haiku 4.5 $0.00002 $0.00103

Measured today against content hash 73e99f4bac6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/amp/last9/references/skills/author-alert/SKILL.md · 33 lines

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:

  1. Find the alert group: call get_alert_groups(alert_group_name="<alert_group>") and take the matching group's id as entity_id.
  2. 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.
  3. 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.
  4. Call recommend_alert_config(signal, objective) for the design checklist, and choose a static or adaptive rule.
  5. 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.
  6. 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.
  7. 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.
  8. 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: .

  1. 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.
  2. 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.
  3. 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.

Read the full file on GitHub · 33 lines

Files

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.

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. today Changed · +6 lines 73e99f4bac6f
  2. yesterday First seen · 27 lines · 22 tokens per session scan A 39f75a29c71f

Subscribe to this mod's changes

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.

Related

author-alert compared with skills from other repositories

author-alert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
author-alertlast9/last9-mcp-serverSkill62todayApache-2.0A22Claude Code, Codex
ddtoolsetsdatadog-labs/cursor-pluginSkill122mo agoApache-2.0A43Cursor
Observability ChecklistNotysoty/openagentskillsSkill93mo agoMITA28Claude Code, Codex
ddconfigdatadog-labs/cursor-pluginSkill122mo agoApache-2.0A46Cursor
ddsetupdatadog-labs/cursor-pluginSkill122mo agoApache-2.0A139Cursor
datadog-appdatadog-labs/cursor-pluginSkill122mo agoApache-2.0A127Cursor
langsmith-observabilitysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A45Claude Code, Codex