ankraio/ankra-cli/ankra-alerts-webhooks
Claude Code and agent skill by ankraio/ankra-cli
- community
Checking that the SKILL.md file is still in the repository.
Route Ankra's platform notifications to Slack, Microsoft Teams, Discord, PagerDuty or a custom webhook - creating destinations (webhook URLs or bot channels), routing rules that filter by kind, severity and cluster with include/exclude modes and priorities, previewing which destinations a notification would reach, testing delivery before relying on it, the AI analysis attached to every firing, and the ingest credentials external Alertmanagers deliver into Ankra with. Use when the user wants alerting, notifications, incident routing, on-call integration, webhook delivery from Ankra, asks why a notification did or did not reach a channel, or wants every alert in one on-call channel.
Install
npx vskill@latest install ankraio/ankra-cli/ankra-alerts-webhooksSKILL.md
The same SKILL.md was published earlier as ankraio/ankra-cli/ankra-alerts-webhooks.
Ankra alerts and webhooks
Ankra emits notifications (a failed execution, a degraded resource, a firing alert trigger, a GitOps sync failure, an offline agent, new severe CVEs). Destinations are where they can be delivered; routes decide which notification reaches which destination. Both are managed with ankra alerts.
Recommended path
- Golden path 3, the estate: every alert reaches one on-call channel. Declare it once at
organisation level - one destination, a critical route with --stop-on-match, one route for the platform kinds - so every cluster, including ones created later, is covered.
- Send the hub's Alertmanager to the same channel (
ankra-observability), so platform and
workload alerts arrive in one place.
test-urlbefore storing,destinations testafter,routes previewbefore trusting a route.- Day 2 (golden path 4): each firing carries Ankra AI's analysis; work it from there
(ankra-troubleshooting, ankra-ai-agents) rather than starting from raw logs.
- Avoid: fanning every kind to every channel, a filterless route by accident, and webhook URLs
committed to Git.
Destinations
Two shapes: a webhook URL, or a bot channel for Slack/Teams workspaces connected to the organisation.
--type(slack,teams,discord,pagerduty,custom; defaultslack) records the
receiver and selects the default payload format; --template-file overrides the payload with your own template.
- A Teams channel destination needs both
--channel-idand--teams-tenant-id. - In
channels, a provider reading "not connected" means the workspace/tenant is not linked to
the organisation, and "not available" means the bot service is not configured on the platform. Neither is an error - connect the integration first (ankra-ai-gateway).
--disabledcreates a destination without it receiving anything yet.
Test before relying on it - both forms exit non-zero on a failed delivery, so CI can gate on them:
test-url sends to an ad-hoc URL without storing a destination - the right way to validate a webhook before it goes anywhere near configuration.
Routes
Every filter is optional; a route with no filters matches every notification.
Filters and mechanics:
- Kinds include
execution_failed,resource_deployment_failed,resource_health_degraded,
alert_trigger_fired, gitops_sync_failed, agent_offline, security_new_severe_cves, and the other platform notification kinds. --kind (one), --kinds (list), or --exclude-kinds (everything except these).
- Severities:
critical,warning,info. - `--mode include` (default) delivers matches; `--mode exclude` withholds them - the way to
mute one noisy kind from a destination that otherwise gets everything.
- `--priority` orders evaluation (lowest first, default 100), and `--stop-on-match` stops
lower-priority routes once this one matches. Together they express "critical goes to on-call and only on-call".
--source-idscopes to one emitting source;--cluster-idto one cluster. Pipeline
notifications belong to the organisation, not a cluster, so a --cluster-id route never matches them - scope those with the next two flags.
--application <name-or-id>scopes to one application's notifications (pipeline runs, image
gates, previews, approval requests).
--reference-patternscopes to the branches, tags or pull requests a glob matches:main(or
refs/heads/main) is pushes to main and never a pull request targeting main; pull/* is every pull request; release/* one path segment, release/** any depth; refs/tags/v* tags.
- Repeats are delivered. A failing reference announces every new failing run; a condition that
stays broken is reminded about (critical after 1h, 4h, 12h, then daily; warning after 4h, then daily; info never); a card that resolves and comes back is announced again. The built-in Slack card marks repeats "Still firing" or "Reopened", and templates can read {{delivery_reason}}.
Preview and test routing
preview is the answer to "where would this go?" - and to "why did that page fire?":
Nothing is delivered by preview and nothing changes - it prints the destinations a hypothetical notification would reach and the reason each matched. Pass `--alert-id` whenever previewing an alert firing: an alert can carry its own destination list, a destination reached by both that list and a routing rule is delivered to once, and without the id the preview cannot tell you which rule that affects.
routes test queues a real sample; delivery is asynchronous, so it returns the delivery id once queued, not once the receiver accepted it - destinations test is the synchronous check.
A sane starting layout
Critical pages on-call and stops; warnings and platform events land in chat. With a single on-call channel, point both route sets at the same destination. For the estate, add the kinds that matter on every cluster:
Alert rules, AI analysis and alerts from outside
- Alert rules (the conditions behind
alert_trigger_fired: cluster offline, a resource
degraded, AND/OR conditions) are authored in the portal under Alerts or with ankra alerts rules create -f alert.yaml (the platform's create body, YAML or JSON). ankra alerts rules list|get|update|delete manage them (alerts.manage to change one); ankra alerts rules disable <id> mutes one and keeps its history (alerts.write), and ankra alerts triggers acknowledge|snooze <alert-id> <trigger-id> act on one firing.
- Silences on a cluster's own Alertmanager (kube-prometheus-stack or the Alertmanager
chart, found by its labels) mute the in-cluster alerts it routes, not Ankra's alert rules: ankra cluster alertmanager silences list (clusters.read), silences create --matcher alertname=KubeVersionMismatch --duration 2w --comment "why" (name=~regex for a regex, at least one exact matcher, 5m to 30d) and silences expire <id> (alerts.write; asks first). --namespace/--service name the Alertmanager when a cluster runs several.
- Every firing gets an AI analysis - pod status, warning events, recent logs, node conditions,
root cause and recommended actions - on the firing and in AI → Inbox. A firing can also start auto-remediation; read its envelope with ankra ai remediation policy (changing it is an admin action in the portal).
- External Alertmanagers and log monitors deliver into Ankra with an ingest credential: the
notifier posts to <platform>/webhooks/alerts/<credential-id> with the token as a Bearer Authorization header (or X-Ankra-Alert-Token). create prints the webhook URL and the token once; --token-file writes the token to a new 0600 file instead, so it never reaches a terminal. A rebind moves the cluster pin or scope without touching the token:
Destinations and routes are also Terraform resources (ankra_alert_destination, ankra_alert_route) - pick one source of truth per object (ankra-terraform).
Rules
- `test-url` before storing, `test` after storing, `preview` before trusting a route.
- Severity-route: critical → on-call, warning → chat. Do not fan everything everywhere - noisy
alerts get ignored, which is worse than no alerts.
- A filterless route matches everything. Make that a deliberate choice, not an accident.
- Use `--mode exclude` to mute a kind, not deletion of the broad route.
- Webhook URLs and integration keys are secrets. Pass them to the CLI, never commit them to
Git; a custom endpoint must be HTTPS and validate the payload.
- `--alert-id` on previews of alert firings, or the dedup against the alert's own destinations
is invisible.
Related skills
ankra-observability- the Prometheus/Grafana stack producing the underlying signals.ankra-troubleshooting- what to do with the notification once it lands.ankra-ai-gateway- connecting the Slack workspace / Teams tenant the bot posts into.ankra-security- scoping who can manage destinations and routes.ankra-ai-agents- the AI Inbox and auto-remediation a firing can start.
Security
- Security scanPassed, 64 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/embedded/skills/ankra-alerts-webhooks/SKILL.md
Popularity
- Repository stars
- 29
- Repository forks
- 2
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ankraio/ankra-cli/ankra-alerts-webhooks)