HomeUse CasesFrom Red CI to Resolved Incident
New

From Red CI to Resolved Incident

Turn a failing pipeline into a fixed build and, when it matters, a blameless postmortem. This workflow triages the CI failure, hardens the workflow so it does not recur, and drafts the incident write-up from your evidence.

1 Plugin
3 Steps
01

Triage the failure

CMci-incident-medic

Classify the failing run against a taxonomy of GitHub Actions failure modes - permissions and GITHUB_TOKEN scope, missing secrets, matrix expansion, cache misses, trigger mismatches - and pinpoint the offending step with the exact YAML fix.

$/gha-triage.github/workflows/ci.yml
Failure classOffending stepCorrected YAML
02

Harden the workflow

CMci-incident-medic

Review the workflow for the security and speed issues that cause recurring failures: unpinned actions, over-broad permissions, missing concurrency cancellation, no dependency caching, and missing timeouts. Get a severity-ranked findings table with fixes.

$/workflow-review.github/workflows/ci.yml
Security findingsSpeed improvementsPinned & least-privilege config
03

Draft the postmortem

CMci-incident-medic

When the incident had real impact, turn your timeline, logs, and alerts into a blameless postmortem: summary, impact, UTC timeline, contributing factors, and owner-assigned action items - written to a file your team can reference.

$/postmortemincident-notes.md
Blameless writeupContributing factorsAction items

Getting the most out of this workflow

Paste the failing job log alongside the workflow file. The triager correlates the exact failing step to the config line that caused it.

Run /workflow-review even after the fix. Most CI failures trace back to the same handful of issues - unpinned actions, over-broad permissions, no caching - and hardening the workflow stops the next one.

Only write a postmortem when the incident had real impact. When you do, keep it blameless: the /postmortem command focuses on systems and contributing factors, never individuals.

Plugins in this workflow

CM
ci-incident-medic
All steps - Triage, harden & document
Install all at once
/plugin install ci-incident-medic

Prerequisites

Claude Code installed and running
ClaudeRegistry marketplace added
~
A failing CI run and its workflow file (or pasted logs)
i
Covers GitHub Actions, GitLab CI, and CircleCI

Tags

ci-cddevopssreincidentgithub-actions

Have a workflow to share?

Submit your own use case and help other developers discover powerful plugin combinations.

Submit a Workflow →