Nightingale is an open-source monitoring and alerting system that connects to stored metrics and log data, evaluates alert rules, and distributes notifications. Operations teams use it to manage alarms and explore observability data alongside existing data sources and collectors. Catalogue add-ons provide skills for operating Nightingale.
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 agentmods add skills/ccfos/nightingale/generate-message-templatenpx skills add ccfos/nightingale --skill generate-message-templategit clone --depth 1 https://github.com/ccfos/nightingaleWrote 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/ccfos/nightingale/generate-message-template)<a href="https://agentmods.dev/skills/ccfos/nightingale/generate-message-template"><img src="https://agentmods.dev/badge/skills/ccfos/nightingale/generate-message-template.svg" alt="Measured on agentmods" 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 | $0.00059 | $0.05258 |
| Opus 5 | $0.00030 | $0.02629 |
| Sonnet 5 | $0.00012 | $0.01052 |
| Haiku 4.5 | $0.00006 | $0.00526 |
Grade A, and why
generate-message-template 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 5d 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 — 415 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Nightingale (n9e) Notification Message Template Generation
Nightingale message templates use Go text/template / html/template syntax (email uses text/template, others use html/template and then escape). Users edit them on the "Notification Management → Message Templates" page; once saved they are referenced by notification rules, and when an alert fires the variables are substituted with rendered data and sent to each channel.
This skill focuses on writing/modifying the template fragment itself, and does not cover creating notification rules or channel configuration.
Render Context
The renderData passed in when the backend executes:
| key | type | description |
|---|---|---|
.events |
[]*AlertCurEvent |
The list of alert events in the current batch, usually just 1 |
.domain |
string |
The n9e site URL, used to build redirect links |
Automatically injected shorthands (no need to write by hand):
{{ $events := .events }}
{{ $event := index $events 0 }}
{{ $labels := $event.TagsMap }}
{{ $value := $event.TriggerValue }}
So inside the template you can directly use $event.xxx, $labels.agent_hostname, and $value.
Available $event Fields (*AlertCurEvent)
Common Fields
| field | type | description |
|---|---|---|
.Id |
int64 | Alert event ID (used to build the redirect link) |
.RuleId |
int64 | Alert rule ID |
.RuleName |
string | Rule name |
.RuleNote |
string | Rule note |
.Severity |
int | Alert severity: 1=Critical, 2=Warning, 3=Info |
.PromQl |
string | Alert trigger expression |
.RuleAlgo |
string | Rule algorithm type |
.TriggerTime |
int64 | Trigger time, unix seconds |
.TriggerValue |
string | Metric value at trigger time (already a string) |
.FirstTriggerTime |
int64 | First abnormal time (for consecutive alerts) |
.LastEvalTime |
int64 | Most recent evaluation time, used as the recovery time on recovery |
.IsRecovered |
bool | Whether it has recovered |
.NotifyCurNumber |
int | Which notification number this send is |
.TargetIdent |
string | Monitored object (usually agent_hostname) |
.TargetNote |
string | Object note |
.GroupId / .GroupName |
int64 / string | Business group |
.Cluster |
string | Data source cluster name |
.Cate |
string | Data source type (prometheus / host / mysql / ...) |
.RunbookUrl |
string | Runbook link |
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.
- 5d ago First seen · 415 lines · 59 tokens per session scan A 386c9ab2610f
generate-message-template is a skill published in the GitHub repository ccfos/nightingale (13,280 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 5,258 once invoked, about $0.0003 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-30.
Other skills, from other repositories
cis-aws-database-10.8
Ensure Monitoring and Alerting is Enabled.
review-pr
Review a GitHub pull request or local Git range against QuestDB coding standards.
fix-ci
Check CI status, analyze test failures, auto-fix obvious issues or discuss with user.
approve-pr
Approve the pull request for the currently checked-out branch. Posts the review from this conversation as an approving review and adds the "QUEUED FOR MERGE" label. Use after review-pr when you decide to approve.
reject-pr
Reject the pull request for the currently checked-out branch. Posts the review from this conversation as a change-request review that tags the PR author, sets the PR to "changes requested", and clears the READY label. Use after review-pr when you decide to reject.
fix-pr
Validate and fix pasted QuestDB pull-request review findings one at a time, with claim verification, a failing regression test where feasible, robust and performant implementation, testing, and an independent review/fix loop. Use when the user pastes Critical, Moderate, or other actionable PR review items.