agentleFS
RoboFinSystemsRoboFinSystems/robosystems/.claude/skills/incident/SKILL.md

incident

Skill31 starsChanged 15 days agoApache-2.0View on GitHub

Triage a production signal (a customer report, an alarm email, a spike) to a likely subsystem, gather the state that confirms or rules it out, and hand back an incident picture: impact, likely cause, next action. Use for \"something is wrong in prod\", \"incident\", \"this alarm fired\", or \"a customer says X is broken\".

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use runbook, perf and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 4 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 4 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 6 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 3 projects that use this

  • mijunriSkill

    database

    数据库脚本与操作规范。脚本放在 db_scripts 目录,遵循查询优化、事务、安全等实践。

    Also in 3 projects that use this

  • anujdutt9Skill

    handover

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep it tight enough to paste into a status update.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

A signal says something is wrong — a customer report, an internal user, an alarm email, a spike. This skill gives you a fast, ordered headstart on where to look: triage the signal to a likely subsystem, gather the state that confirms or rules it out, and hand back a crisp picture (impact, likely cause, next action). Pairs with the incident-triage runbook in the private design vault's runbooks/ for the account's known failure classes and exact log groups — read it alongside this file.

Goal

Compress time-to-orientation. You're not expected to fix everything from here — you're expected to answer, quickly and with evidence: what's broken, how bad, since when, and what changed. Breadth before depth: check the obvious surfaces in parallel, then drill into the one that lights up.

Scope & guardrails

  • Read-only triage. describe-* / list-* / get-*, log reads, gh reads. Any remediation — restarting a service, cycling an instance, rolling back, editing data — is a separate, confirmed step, not part of triage. Never get-secret-value.
  • Output is sensitive — never commit it. Incident notes name live hostnames, resource IDs, error contents, maybe customer identifiers. Keep them in the scratchpad or a private channel; never in the repo, never in a public Artifact.
  • State the confidence. Distinguish confirmed (you saw the error/alarm) from suspected (fits the pattern). A wrong confident diagnosis sends everyone the wrong way.

1. Pin the signal

Get concrete before searching. From whoever/whatever raised it: what is failing (an endpoint? a product surface? everything?), who is affected (one tenant or all?), when it started, and what changed near then. A single-tenant issue and a platform-wide outage need completely different first moves.

Immediately check "what changed". A recent deploy is the highest-prior cause — but it is not the only kind of change, and the other kinds are invisible to gh:

gh run list --workflow=prod.yml --limit 5      # last deploys: when, success/fail, by whom

Runtime configuration changes without a deploy. Feature flags and tuning parameters live in SSM Parameter Store under a per-environment path and are re-read at runtime on a short TTL — a change reaches production within minutes and leaves no GitHub Actions trace. They cover exactly the things incidents are made of: pool sizing, timeouts, load-shedding pressures, admission thresholds, query limits. Check them alongside the deploy list:

aws ssm describe-parameters --region us-east-1 \
  --parameter-filters "Key=Path,Option=Recursive,Values=/robosystems/<env>" \
  --query 'reverse(sort_by(Parameters,&LastModifiedDate))[:10].[Name,LastModifiedDate]' --output text

A parameter modified near the incident start is as strong a signal as a deploy; CloudTrail PutParameter gives you the actor. An agent that runs only gh run list, finds no recent deploy, and concludes "not a release" will take the wrong branch.

The customer-facing web apps deploy from separate repositories on their own pipeline — this repo's workflow list will never show them. If the signal is "the site is down" rather than "the API is erroring," check those repos' runs before concluding it's a backend release.

2. Is the platform up? (breadth, in parallel)

Sweep the front-to-back surfaces at once; whichever is unhealthy narrows everything. Fan these out:

  • API liveness — the status endpoint (/v1/status); is the API answering HTTP at all? It's a liveness probe only — a 200 says the process is up, not that its dependencies are healthy, so don't stop here.
  • Active alarms — aws cloudwatch describe-alarms --state-value ALARM — what's already firing, and since when. (The response splits MetricAlarms from CompositeAlarms; read both keys.)
  • App/orchestrator services — running-vs-desired counts; anything crash-looping, or scaled to zero unexpectedly. Note at least one orchestrator service is designed to sit at desired 0 and is scaled up on demand by the tunnel tooling — zero there is normal, not a symptom. Confirm intent before reporting it.
  • Datastores — the primary platform database and the extensions database (a separate database with its own migration head and schema-per-graph tenancy; they fail independently, and a ledger/investor-only outage localizes there), the cache, and the graph tier.
  • Graph-tier fleet capacity — the graph tier is EC2 behind Auto Scaling groups, so its capacity check is aws autoscaling describe-auto-scaling-groups (desired vs in-service) — a different API from the container services' running-vs-desired. A partially drained graph ASG is invisible to the bullet above.
  • Search cluster — the managed search domain's cluster health. It backs document and text search and the search MCP tools, and fails independently of the primary database — a search-only outage won't show up anywhere else in this sweep.
  • Recent errors — the API, worker, orchestrator, and graph-tier log groups for an error spike aligned to the start time. The orchestrator log is where migration aborts surface, and a crash-looping daemon right after a release is one of the highest-prior causes here.

A denied/empty read is itself information (permission gap, or the thing genuinely isn't there) — say which.

3. Drill into the surface that lit up

Follow the one unhealthy signal down. Correlate its onset to the deploy timeline from step 1 — an error wall that starts at a deploy time points at that release (roll forward/back); one with no deploy nearby points at infra, a dependency, data, or load. The runbook lists this system's recurring failure classes and the tell for each — consult it, because the same handful of issues recur and each has a known fingerprint and fix.

4. Hand back a picture

Produce a short incident summary:

  • Impact — what's broken, who's affected, blast radius.
  • Timeline — when it started; what changed near then (deploy? config? load?).
  • Evidence — the alarms/log lines/health results you actually saw (confirmed vs suspected).
  • Likely cause — best current hypothesis, with confidence.
  • Recommended next action — roll back, restart, scale, escalate — framed as a proposal for the user to approve, not an action already taken.

Keep it tight enough to paste into a status update. If triage is inconclusive, say so and name the next diagnostic — don't force a conclusion.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.