Skip to content
Back to skills

Monitoring Workflow

ASecurity

Route \"monitor X\" or alerting asks to the team's provider and wire alerts to Triggers.

  • 843 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsgonodeawsapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add nuphos/nuphos --skill monitoring-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Monitoring Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Monitoring Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuphos-monitoring-workflow/badge)](https://www.skillsdirectory.com/skills/nuphos-monitoring-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: monitoring-workflow
description: "Route \"monitor X\" or alerting asks to the team's provider and wire alerts to Triggers."
---

# Generic monitoring workflow

## Monitoring & uptime

When the user asks for monitoring of any kind — "monitor X", "add uptime for Y", "alert me when Z goes down", "health check", "is my API being watched" — route the request to one of the team's bound observability providers and do the work with that provider's native skill. Nuphos has no monitoring engine of its own; the Desktop "Monitoring" page is a read-only aggregation of whatever exists in the providers.

Routing procedure:

1. Discover what the team has bound (both calls are cheap): `GET /teams/$TEAM/betterstack-integrations` for Better Stack bindings, `GET /teams/$TEAM/grafana-instances` for Grafana instances.
2. Exactly one provider bound → use it without asking. Multiple → ask the user which one, once. None → explain that a team admin can connect Better Stack or Grafana under Integrations.
3. Do the work with the provider's native vocabulary and APIs:
   - **Better Stack** → the `betterstack` skill. HTTP/TCP uptime monitors, heartbeats, incidents. Typical create: `POST https://uptime.betterstack.com/api/v2/monitors` with `{"url": ..., "monitor_type": "status", "check_frequency": 180}`.
   - **Grafana** → the `grafana` skill (Nuphos proxy). Alert rules via `/api/v1/provisioning/alert-rules`; the target must be observable through one of the instance's existing datasources — check `/api/datasources` first and don't invent metrics that aren't there.
4. Defaults when the user doesn't specify: public HTTPS targets get a Better Stack `status` monitor with `verify_ssl: true` and a 3-minute frequency; pick `keyword` only when the user wants content matching.
5. Summarize what you're about to create (provider, target, type, frequency) and get the user's confirmation before the mutating call — same confirmation rule the provider skills already state.
6. Cluster-internal resources (Deployments, Nodes, CronJobs, anything without a public endpoint): do NOT invent per-resource probes. The supported path is the kube-prometheus-stack recipe (kube-state-metrics + Prometheus + Alertmanager wired to the team's Better Stack Prometheus webhook) — load the `k8s-monitoring` skill, which walks the full install/verify flow. If that pipeline isn't set up yet, say so and offer to set it up rather than creating a misleading external monitor.

After creating or changing anything, mention that the team's Monitoring page in Nuphos aggregates all providers, so the new monitor will appear there within ~30 seconds.

Use this skill whenever the user asks to create, watch, or connect a monitoring
condition and notify or investigate through Nuphos. This is the workflow owner.
A provider-specific skill is optional supporting material, not a prerequisite.

The target architecture is always:

```text
provider-native condition
  -> provider webhook / notification destination
  -> Nuphos webhook trigger, bound to one existing conversation
  -> that conversation investigates every firing
  -> optional first-party slack_post updates
```

Every Trigger needs `targetSessionId`. Use the current conversation
(`$NUPHOS_SESSION_ID`) unless the user names another of theirs.

The provider-side sender is the provider's resource, not Nuphos's: Nuphos does
not record, verify, or clean it up. Deleting the trigger leaves it in place.

Load the `triggers` skill and use its `trigger-api.sh` wrapper for every Nuphos
Trigger operation below. Trigger bound tools are not available
in the native runtime; the canonical REST API is the source of truth.

Do not use Slack Incoming Webhooks, AWS Chatbot / Amazon Q Developer, or another
provider-native Slack integration unless the user explicitly asks for that
architecture. Slack delivery belongs to Nuphos.

## 1. Discover capabilities, do not enumerate vendors

1. Inspect the authenticated tools and CLIs available in this session.
2. If a provider skill exists, load it for exact commands and special protocol
   details.
3. If it does not exist, continue by inspecting:
   - CLI `help` and machine-readable command output;
   - an OpenAPI/API schema exposed by the provider;
   - official provider documentation;
   - the current live alert and notification configuration;
   - a provider-generated non-investigating test payload.
4. Determine whether the provider can:
   - create or read the requested alert condition;
   - add a webhook/notification destination without replacing existing ones;
   - send a stable event identity and distinguish firing from recovery;
   - authenticate delivery with `X-Webhook-Secret`, a `?secret=` query value,
     or a protocol Nuphos explicitly supports.

The absence of a named provider skill is not a blocker. Missing credentials,
API permissions, a usable webhook/polling surface, or an unsupported mandatory
signature protocol are real blockers.

## 2. Revalidate the request

- Existing alert/rule/policy: re-read the exact provider resource and bind only
  that resource.
- Dashboard widget or bare metric: it is not an alert condition. Propose the
  exact filter, reducer, comparison, threshold, duration, missing-data
  behavior, and incident closure behavior. Ask for approval and **STOP**.
  Create nothing until the user explicitly accepts that exact proposal.
- Preserve every pre-existing notification destination unless the user
  explicitly authorizes replacing one.

If the user wants Slack updates, call `slack_list_destinations` before creating
the trigger:

- If connected, use the exact DM or channel the user selected and write it
  into the message template.
- If it returns `slack_not_connected`, ask the user to connect the Nuphos Slack
  App and stop. Preserve the requested provider, condition, and destination in
  the explanation so the workflow can resume without redesign.
- Never interpret `slack_not_connected` as “Nuphos has no Slack API”.

## 3. Create the Nuphos receiver

First `GET` the existing triggers bound to this conversation and reuse one that
already receives this alert instead of creating a duplicate. Otherwise create
the trigger with `POST /teams/{teamId}/agent-triggers` using:

- `triggerType: "webhook"` when the provider can push;
- `targetSessionId`: the conversation that handles every firing;
- a flood guard appropriate for the provider.

The message template is delivered into the bound conversation on every firing,
so it must make sense between earlier firings and operate on the provider's
real payload:

1. A provider test/drill payload must STOP without investigating or posting.
2. A real firing first checks the earlier firings in this conversation — has
   this alert gone off before, and was it already reported?
3. Then investigate.
4. If the user wants Slack updates, call `slack_post` once per firing that is
   worth telling people about — a new problem, a material change, or its
   recovery — to the exact approved destination. An unchanged repeat needs no
   post.
5. When it recovers, say so and stop. Nothing needs closing.

Use explicit documented payload fields when available. If the schema is not
documented, require the provider's test delivery, inspect its exact payload,
and only then finish the template. Do not guess field names.

## 4. Wire the provider with its own API or CLI

Use the provider's authenticated API/CLI yourself:

1. Snapshot the current condition and notification destinations.
2. Create the narrowest webhook/contact point/channel/topic pointing at the
   trigger's `webhookUrl`, passing the secret as `X-Webhook-Secret` or
   `?secret=` when the sender cannot set headers.
3. Attach it additively to the exact condition.
4. Read back the condition and destination.
5. Verify unrelated destinations and condition semantics are unchanged.
6. Run the provider's cheapest non-investigating delivery test.
7. `POST /{triggerId}/test-fire` with a representative `test: true` payload to prove
   the Agent template's STOP branch.

If the provider can only be queried, use a cron trigger as an explicit polling
fallback. Polling must persist/compare state and notify only on transitions; it
must not post every poll.

## 5. Atomicity

If any provider write, read-back, event mapping, or drill fails:

1. Disable/delete the new Nuphos trigger.
2. Use the same provider API/CLI to undo resources created in this attempt.
3. Restore modified routing from the snapshot.
4. Report the exact blocker.

Never call a workflow live merely because trigger creation returned a webhook
URL.

When the workflow is live, tell the user which provider resources you created
or changed, so they can find them later: removing the trigger does not remove
them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.