Oncall

From wallkop/opc-develop · View interactive version

Oncall is an AI agent skill from the GitHub repository wallkop/opc-develop. Use when something is wrong in production (or on the test environment): triages severity, investigates through correlation-ID logs, read-only DB queries, traces, and recent releases, produces a root-cause/blast-radius report, executes rollback, a Lite-or-Build hotfix through ship/deploy, or mitigati

How to use this skill

Skill file

oncall

Production diagnosis with the same evidence discipline as development: no cause claimed without

the log chain and state that prove it, no fix without a covering test.

Load

Process

  1. Triage: capture the symptom (alert, user report, anomaly), when it started, who is

affected. Classify severity: data loss / money / security ⇒ propose rollback or kill-switch

FIRST, investigate second; degraded-but-safe ⇒ investigate first.

  1. Investigate through observe: first establish expected behavior from the living spec

(docs/opc/specs/, when it exists) — regression vs works-as-specified is the first fork.

Reconstruct the failing action's causal chain by correlation ID; query state read-only; check

traces; diff behavior against the last known-good release — recent release ledger entries,

merge commits, and release manifests are the change candidates. Reproduce on local/test with the matching seed when possible.

  1. Diagnostic report — docs/opc/incidents/<date>-<slug>.md: timeline, blast radius, root

cause with the evidence chain (log lines, queries, commits), contributing factors, and the

options considered. No root cause ⇒ say so explicitly and record the leading hypotheses with

what would confirm each.

Render and lint the same-basename .html. Lead with conclusion, user impact, evidence and next

action; explain specialist terms beside their first occurrence.

  1. Decide the path (five-piece set to the human when contested):

the same engineering triggers as ordinary work. A localized fix stays lite; a complete

capability, shared-core refactor, breaking evolution, broad regression surface, or coordinated

rollout uses build. Preserve RED/GREEN evidence and targeted regression, then ship →

deploy with the incident referenced. Expedited ≠ unverified;

  1. Always, after stabilization:

recurrence detection like any other failure);

case proving GREEN → RED → GREEN, or record a human-approved waiver;

lite task, one build increment, or an explicit brainstorm/architect decision task;

link it in the report;

missing prod-safe spec) — these become harness backlog.

Fail-open / fail-closed

Investigation is read-only and fails open (missing observability = recorded gap + stated

confidence caps). Interventions follow deploy's rules: production mutations, restarts, and

rollbacks all require explicit human confirmation.

Output

Diagnostic report, stabilized system via the chosen path, error-ledger record, long-term

proposal, harness gaps.

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.