Hyperping incidents

From datagouv/apistration · View interactive version

Hyperping incidents is an AI agent skill from the GitHub repository datagouv/apistration. Manage the lifecycle of incidents on the API Entreprise / API Particulier Hyperping status pages (entreprise.api.gouv.fr, particulier.api.gouv.fr). Use to list, read, open, update, resolve or delete incidents, post progress updates, and look up monitor or status-page uuids. Triggers — "ouvre/crée un

How to use this skill

Skill file

Hyperping Incidents

Drive incidents on the two Hyperping status pages from the CLI. Wraps the

Hyperping API (read-only listing + full incident lifecycle).

Setup

.hyperping_token at the repo root. It is gitignored — never commit it.

run it from anywhere inside the repo.

CLI

All operations go through scripts/hyperping (Ruby, no gems). Commands that

write take their JSON body on stdin.

hyperping incidents [sp_xxx]            # list (optionally filter by status page)
hyperping incident <uuid>               # full incident JSON
hyperping create   < body.json          # open an incident
hyperping add-update <uuid> < up.json   # post a progress update / resolve
hyperping update   <uuid> < fields.json # edit title/type/components/pages (PUT)
hyperping delete   <uuid>               # delete (no confirmation prompt)
hyperping monitors [filter]             # list monitors, optional name filter
hyperping status-pages                  # the two known status pages

Reference

Read references/api_reference.md for the API contract: endpoints, the create

/ update / add-update body schemas, enum values, and the status-page uuids.

Read it before constructing any write body.

Key facts (do not relearn)

Particulier. There is no API to list status pages.

hyperping monitors <filter>.

now). To backdate, set the first update's date.

Workflows

Open an incident

  1. Resolve the monitor uuid(s): hyperping monitors <name>.
  2. Ask the user whether it is an outage or an incident unless they

already said so explicitly. Do not guess type — it sets the severity

shown publicly. Use AskUserQuestion: outage = service down/unusable,

incident = degradation, partial failure or data-quality issue.

  1. Pick the status page (Entreprise vs Particulier).
  2. Build the body (see reference), then:

```

hyperping create <<'JSON'

{ "title": {"fr": "..."}, "type": "incident",

"statuspages": ["sp_..."], "affectedComponents": ["mon_..."],

"updates": [{"type":"investigating","date":"<ISO8601>","text":{"fr":"..."}}] }

JSON

```

  1. To backdate the start, set updates[0].date to the real start (UTC).

Post an update / resolve

hyperping add-update <uuid> <<'JSON'
{ "type": "resolved", "date": "<ISO8601>", "text": {"fr": "Service rétabli."} }
JSON

Update type progression: investigating → identified → update →

monitoring → resolved.

Cautions

page before create, add-update or delete.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.