Skip to content
Skills Library
DevOps & cloud · Automation

site-alert

/site-alert

Post, edit, extend, end and list site alerts — the incident banners shown at the top of civitai.com pages that match a path. Use when a feature is broken or degraded and visitors on its pages should be told, or to lift or check such a notice.

Repository
civitai ↗
Licence
Apache-2.0
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: site-alert.mjs

What it does and when to use it

Post, edit, extend, end and list site alerts — the incident banners shown at the top of civitai.com pages that match a path. Use when a feature is broken or degraded and visitors on its pages should be told, or to lift or check such a notice.

Original author description

Post, edit, extend, end and list site alerts — the incident banners shown at the top of civitai.com pages that match a path. Use when a feature is broken or degraded and visitors on its pages should be told, or to lift or check such a notice.

How it works

  1. Setup
  2. Commands
  3. Paths
  4. Example
Original SKILL.md headings · 55 lines, 328 words
SKILL.md preview
---
name: site-alert
description: Post, edit, extend, end and list site alerts — the incident banners shown at the top of civitai.com pages that match a path. Use when a feature is broken or degraded and visitors on its pages should be told, or to lift or check such a notice.
---

# Site alerts

A site alert is a strip at the top of every page whose path matches one of its globs, for a set
time. Moderators manage the same alerts at `/moderator/site-alerts`.

## Setup

The script uses the `mod-actions` skill's configuration: a moderator's API key in
`.claude/skills/mod-actions/.env` (see that skill's `.env.example`). `CIVITAI_API_URL` picks the
site; it defaults to production, so set it to your dev server while testing.

## Commands

```bash
node .claude/skills/site-alert/site-alert.mjs <command> [id] [options]
```

| Command | What it does |
|---------|--------------|
| `list` | Every alert, active and ended in the last 7 days |
| `active` | What the public endpoint serves now (no key needed) |
| `post --title <t> --hours <n>` | Post an alert |
| `edit <id>` | Change copy, severity, paths, domains or dismissibility |
| `extend <id> --minutes <n>` (or `--hours`) | Push the end time out |
| `end <id>` | End it now |

Options: `--message`, `--severity info|warning|outage|resolved` (default `warning`),
`--paths "/a,/b/**"`, `--domains all|blue|green|red`, `--starts <iso>`, `--dismissible` /
`--not-dismissible` (outages default to not dismissible), `--dry-run`, `--json`.

## Paths

Globs against the page path; the query string is ignored and case does not matter.

- `*` matches exactly one segment: `/models/*/edit` matches `/models/12/edit`, not `/models/edit`.
- `**` matches any number of segments, including none: `/generate/**` matches `/generate`.
- No paths means every page. There are no regexes, and `*` inside a segment is rejected.

An alert runs for at most 7 days and must have an end time. A scheduled alert (`--starts`) is in
the public response before it starts, so do not schedule copy that must stay private until then.

## Example

```bash
node .claude/skills/site-alert/site-alert.mjs post --severity outage \
  --title "Model upload is broken" \
  --message "We know about it and a fix is rolling out." \
  --paths "/models/create,/models/*/wizard,/models/*/model-versions/**" --hours 2

node .claude/skills/site-alert/site-alert.mjs end 12
```

Visitors see a change on their next action on the site (any request to the API), not instantly.
Files in this package (2)
  • SKILL.md 2 KB
  • site-alert.mjs 6 KB

Versions

The database has no other skills named site-alert.

Database snapshot: 13.11.2026 · package version 5ee8145f5f8a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90incident-response
    Use when production is down or degraded now — outage, alert firing, users report errors, "site is down", disk full, OOM storm, restart storm, cascading failure — or when writing a postmortem or incident report. Root cause after the service is stable → systematic-debugging.
  • 100query-alert-events
    Query alert events in a Nightingale (n9e) environment. Use this when the user asks to view alerts, query active alerts, search historical alerts, view alert details, or count alert events.
  • 100cx-alerts
    This skill should be used when the user asks to "manage alerts", "create alert", "list alerts", "delete alert", "check alert status", "enable alert", "disable alert", "investigate firing alerts", "check which alerts are active", "find alerting rules", "set up an alert",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.