service-status

When a git push, gh, pnpm install or API call fails because GitHub, npm or Anthropic is having an incident, coding agents usually treat it as their own bug. They retry in loops, split queries, delete lockfiles and rewrite working code. This plugin helps them recognize the outage, check the provider's status page with one ~200-byte request, and stop.
It has three parts and needs no server:
- A skill (
service-status). It triggers on outage-shaped failures (5xx, RPC failed, ECONNRESET, 529 overloaded, release-download timeouts) and stays out of lookalikes (sandbox denials, 401/404, rate limits, mocked 500s in tests). It contains minimal-fetch recipes for every status-page format and worked scenarios drawn from real agent sessions.
- A hook (
PostToolUse / PostToolUseFailure on Bash). It makes no network calls. When a network command fails like an outage, it adds one line telling the agent which service is likely affected and to use the skill before changing code. It repeats at most once per service every 10 minutes.
- An open directory of status endpoints:
services.json. It has 173 services, and every URL is checked live. PRs are welcome. See CONTRIBUTING.md.
Install
# Claude Code
/plugin marketplace add jonathanong/service-status
/plugin install service-status@service-status
# Codex
codex plugin marketplace add jonathanong/service-status
codex plugin add service-status@service-status
The skill uses curl and jq, and the hook needs Node 24+. In a sandboxed session, allow the status host for the check. For example, list it in the Bash tool's allowed_domains. A sandbox refusal of a status host says nothing about the vendor.
What the agent sees
$ pr-shepherd apply review https://github.com/acme/app/pull/123 --reply-thread-ids A,B,C
A: GitHub GraphQL request failed: 502 <html>
[service-status] This failure looks like a third-party outage or flaky network, not a code problem:
"A: GitHub GraphQL request failed: 502 <html>". Likely service: GitHub
(https://www.githubstatus.com/api/v2/status.json). Before changing code or retrying repeatedly, use the
service-status skill to check the provider's status page. If an incident is confirmed, stop and tell the
user instead of working around it.
Then one request answers the question:
curl -s https://www.githubstatus.com/api/v2/status.json | jq -r .status.indicator # none | minor | major | critical
The directory
services.json maps each service to its status endpoints, the hosts and CLIs that appear in its error messages, the component names agents care about, and caveats. Its format is defined by services.schema.json:
{
"id": "github",
"name": "GitHub",
"category": "source-control",
"statusPage": "https://www.githubstatus.com",
"adapter": "statuspage",
"endpoints": {
"status": "https://www.githubstatus.com/api/v2/status.json",
"unresolved": "https://www.githubstatus.com/api/v2/incidents/unresolved.json"
},
"hosts": ["github.com", "api.github.com", "*.githubusercontent.com", "ghcr.io"],
"commands": ["git", "gh"],
"components": ["Git Operations", "API Requests", "Actions", "Packages", "Pull Requests"]
}
adapter tells you how to read the endpoints. There are 13 adapters: Atlassian Statuspage, incident.io, status.io, instatus, Better Stack, AWS, Google Cloud, Azure, Azure DevOps, Slack, Heroku, Apple, and feed-only. references/adapters.md has a tested cheapest-possible query for each, with measured response sizes. For example, use status.json (215 bytes) instead of summary.json (227 KB on Cloudflare). Never call unresolved.json on incident.io pages: it returns a 404 plus 296 KB of HTML. Use HTTP Range to read the head of an Atom feed.
The data is plain JSON, so anything can use it, not just this plugin.
Accuracy
These numbers come from sessions mined from real Claude Code and Codex use, rewritten as minimal reproductions in test/fixtures/mined-cases.json: