agentleFS
vaquarkhanvaquarkhan/data-engineering-agent-skills/skills/incident-triage-and-pipeline-recovery/SKILL.md

incident-triage-and-pipeline-recovery

Skill49 starsChanged 6 months agoMITView on GitHub

Guides agents through production data incidents. Use when a pipeline fails, publishes bad data, misses an SLA, partially loads, corrupts state, or requires rollback, replay, or stakeholder communication.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when production behavior is already wrong and the team needs controlled recovery.

    line 10
  2. Distinctive:

    Do not jump to fixes before stabilizing the system and understanding impact.

    line 20
  3. Very specific:

    When replay or backfill is chosen, load safe-backfill-and-replay-orchestration and draft templates/backfill-plan.yaml before execution.

    line 49
  4. Distinctive:

    no attempt to contain blast radius

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Incident Triage And Pipeline Recovery

Overview

Use this skill when production behavior is already wrong and the team needs controlled recovery. It helps agents contain blast radius, diagnose quickly, restore trust, and avoid making the incident worse.

When to Use

  • failed production runs
  • bad or partial publishes
  • corrupted incremental state
  • freshness SLA breaches
  • emergency rollback or replay decisions

Do not jump to fixes before stabilizing the system and understanding impact.

Workflow

  1. Contain the incident. Decide whether to:
    • pause schedules
    • block downstream publish
    • isolate bad partitions
    • notify owners and consumers
  2. Pull live signals before mutation when possible. Load mcp-data-observability-integration to inspect lag, run state, or Spark stage metrics before reruns or replays.
  3. Classify impact. Identify:
    • affected datasets
    • time window
    • downstream consumers
    • whether data is late, missing, duplicated, or wrong
  4. Determine the safest recovery path. Options include:

    • rerun
    • replay
    • rollback
    • partial correction
    • full backfill

    When replay or backfill is chosen, load safe-backfill-and-replay-orchestration and draft templates/backfill-plan.yaml before execution.

  5. Validate recovery before reopening publish paths.
  6. Record the incident and add a guardrail. A fixed incident with no prevention work is unfinished.
  7. Turn high-value incidents into repeatable resilience tests. Load skills/data-resiliency-testing-and-failure-injection/SKILL.md or references/data-resiliency-testing-patterns.md when the same failure mode must be prevented from surprising the team again.

Common Rationalizations

RationalizationReality
"Let us rerun everything now."Blind reruns can duplicate data or destroy evidence.
"We can clean up downstream later."Downstream trust loss is often harder to recover than the pipeline itself.
"The root cause can wait."Without a guardrail, the same incident often returns quickly.

Red Flags

  • no attempt to contain blast radius
  • reruns happen before impact is understood
  • downstream consumers are not informed
  • recovery succeeds but no new guardrail is added

Verification

  • Impact scope and affected consumers are identified
  • The chosen recovery path is safer than the alternatives
  • Publish is reopened only after validation
  • Post-incident guardrails or checks are added

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.