agentleFS
loglylogly/mureo/skills/incident-postmortem/SKILL.md

incident-postmortem

Skill64 starsChanged 7 months agoApache-2.0View on GitHub

Close the learning loop after a rescue or incident — reconstruct the timeline from action_log, run root-cause analysis (platform / site / measurement / external), produce a structured postmortem document, distill reusable insights via /learn, and propose preventive guardrails. Use after a /rescue, a CPA spike, a conversion drop, or a runaway-spend event has been handled, or when the user asks for a postmortem, retrospective, root-cause writeup, or requests インシデント振り返り / ポストモーテム / 事後分析 / なぜ起きたのか / 再発防止策. Read-and-document only — makes no ad-platform writes.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use systematic-debugging.

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.
  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 1

    Distinctive

    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. Very specific:

    Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and …

    line 21
  2. Distinctive:

    Run a 5-whys chain until you reach a controllable cause (something the operator can change) or an honest unknown (say "root cause not …

    line 37

“Common” is measured: kept by at least 6 in 10 of the 15 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

Incident Postmortem

PREREQUISITE: Read ../_mureo-shared/SKILL.md for auth, security rules, output format, and Tool Selection (Read/Write on Code, mureo_strategy_* / mureo_state_* MCP on Desktop / Cowork).

After the fire is out, learn from it. A rescue that is never reflected on repeats: the same root cause resurfaces, the same scramble happens, and nothing in the account got more resilient. This skill reconstructs what happened, finds the controllable cause, and converts the episode into durable know-how and guardrails.

This skill makes NO ad-platform writes — it changes no campaigns, ads, budgets, bids, or targeting. It only reads platform and state data, writes a postmortem document, appends the postmortem to action_log, saves insights via /learn, and — with explicit approval — edits STRATEGY.md ## Guardrails. Say this up front to the operator so they know nothing in the ad accounts moves during this review.

Prerequisites

  • STRATEGY.md and STATE.json must exist (run the onboard skill first)

Steps

Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and consult advisors (mureo_consult_advisor) before drawing conclusions.

  1. Establish today: call mureo_state_get first, on every host (including Claude Code, where you would otherwise Read the file) and take server_now from its response — ISO 8601 with UTC offset, e.g. 2026-07-28T10:12:33+09:00. Its date is the only source of the current date for this run: the scan window in step 1, the detection lag in step 2, and every "has this action's observation_due window closed?" judgement are measured from it. Do not shell out (this skill must run in Bash-less headless hosts). The action_log timestamps and last_synced_at you reconstruct the timeline from are history — that is exactly what makes them useful here, and exactly why they are never "now". Never write server_now into STATE.json: it is a response field, and a persisted copy becomes tomorrow's stale "today".
  2. Identify the incident: Take the operator's description if given. Otherwise scan the action_log (via mureo_state_get) over the chosen window for the fingerprints of a handled incident: entries with command="/rescue", actions taken while Operation Mode was TURNAROUND_RESCUE, or a cluster of stabilization actions (budget cuts, bulk pauses, bid drops) around a CPA-spike / CV-drop / runaway-spend date. Confirm the incident's scope (which platform(s), campaign(s), and date range) with the operator before reconstructing.
  3. Reconstruct the timeline from action_log (mureo_state_get) plus STRATEGY.md/STATE.json notes (mureo_strategy_get). Lay out, in order:
    • Detection — when and how the problem surfaced (a daily-check flag, an operator report, an anomaly). Note the detection lag — how long the account was off before anyone noticed; a long lag is itself a finding.
    • Actions taken — each rescue action with its metrics_at_action baseline and timestamp.
    • Outcomes — for each action whose observation_due window has now closed (its date is on or before server_now's date), call mureo_outcome_evaluate (evaluation_of = that entry's index, after = the campaign's metrics object from mureo_state_get, unchanged (including period and fetched_at); pass before only when the entry recorded no metrics_at_action (beside one it is refused: evaluation_of_conflicts_with_before)) for a deterministic improved / regressed / inconclusive verdict per action, read off one primary metric. For an action whose observation is still open (no later evaluation_of record), then append the evaluation record via mureo_state_action_log_append: evaluation_of = the same index, evaluation = the evaluation object the tool returned, exactly as returned, and action = "Outcome evaluated" (a neutral label — the table carries the verdict, so do not restate it in action; do not pass summary — mureo builds it from the table). For actions still inside their window, mark them still observing — do not score them (respect ../_mureo-learning/SKILL.md).
  4. Root-cause analysis: Classify the cause into one (or a ranked combination) of four buckets, with the evidence for each:
    • Platform-side — a budget/CBO change, a disapproval, and on the platforms that price delivery by auction (Google Ads, Meta) a bid-strategy misfire or an auction shift. Evidence: change history, the platform's own unit-cost trend (CPC / CPM where it reports one), delivery diagnostics.
    • Site-side — a landing-page break, a checkout/lead-form failure, a speed regression. Evidence: CVR collapse with stable CTR, a deploy that lines up with the drop.
    • Measurement-side — a pixel/tag break, a conversion-action misconfig, an attribution change. Evidence: conversions flatlining while sessions/clicks hold (cross-check /tracking-health).
    • External — seasonality, a holiday, a demand shift, and on Google Ads / Meta a competitor entering the auction. Evidence: same-period-last-year, category-wide movement, and an impression-share change where the platform reports one. Run a 5-whys chain until you reach a controllable cause (something the operator can change) or an honest unknown (say "root cause not determinable from available data" rather than forcing a story). Do not stop at the first symptom.
  5. What-worked / what-didn't table — grade the response, not just the incident:

    Response actionIntentVerdictEvidence
    Cut prospecting budget 40%Stop the bleedWorkedSpend/day −38%, CPA back under target in 5d
    Paused top ad setReduce wasteBackfiredRemoved the only converting audience; CV fell
    Added negativesCut junk queriesInconclusiveStill observing (due in 6d)
  6. Output a structured postmortem document with these sections: Summary (one paragraph), Impact (spend wasted / conversions lost / days affected), Timeline (step 2), Root cause (step 3, with the 5-whys), What worked / what didn't (step 4), Insights (step 6), Preventive guardrails (step 7). On Code, offer to Write it to ./postmortems/YYYY-MM-DD-<slug>.md (create the postmortems/ directory if absent). On Desktop / Cowork, present it inline (no local filesystem). Keep it blameless and factual.
  7. Distill 1–3 generalized insights and run /learn for each: Convert the root cause and the response grading into reusable, account-agnostic lessons (e.g. "A CVR collapse with stable CTR points site-side — check the LP/tracking before touching bids"). Present each for explicit approval, then save it through the /learn flow — mureo learn add per that skill's conventions (do not duplicate its steps here). One approval per insight; never record account IDs, credentials, or personal data.
  8. Propose preventive guardrails where the root cause suggests one: if the incident was a runaway budget, propose a ## Guardrails max_total_daily_budget / max_daily_budget_increase_pct; if it was a measurement break, propose a recurring /tracking-health cadence; if detection lag was the problem, propose a tighter /daily-check rhythm. Editing STRATEGY.md ## Guardrails is a write — apply the approval gate: show the exact before/after of the ## Guardrails section and get explicit confirmation before saving (Write / Edit on Code, mureo_strategy_set on Desktop / Cowork). If the operator declines, leave STRATEGY.md untouched.
  9. Log the postmortem itself to action_log via mureo_state_action_log_append: command="/incident-postmortem", a summary naming the incident and its root-cause classification, and a metrics_at_action snapshot of the post-incident state. This is a context-layer record (STATE.json), not an ad-platform mutation — it has no observation_due because the postmortem itself is not an experiment to observe. It leaves a durable marker that this incident was reviewed, so it is not re-litigated later.

No mureo_state_report_set call: a postmortem is a one-off narrative document, not a recurring dashboard report — it is delivered as the document in step 5 and the action_log marker in step 8, not persisted to the reports section.

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.