/fullstack-skills:post-mortemfrom fullstack-skills
Use this skill to write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Audience is other engineers (and future-you); code identifiers are first-class. Trigger on "/post-mortem", "write the post-mortem / postmortem / RCA / root cause analysis", "document this fix", "write up the root cause", "close out this bug with a writeup", or after a debug session has landed and validated a real fix.
Ships in fullstack-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The canonical engineering record of a bug fix. Written after debugging has landed a real, validated fix — for other engineers (and future-you, who will have forgotten everything in 6 months). Code identifiers are welcome here: this is the artifact that lets the next person recover the mental model fast.
For the leadership / non-eng version of the same content, hand the finished post-mortem
to management-talk. They compose: post-mortem owns the
engineering truth; management-talk reframes it for the channel and the audience.
../../../RULES.md and apply it as the behavior, safety, validation,
and communication baseline — including the two HARD GATES and the three-iteration rule.management-talk's job.bug-debugging session has clearly landed a fix, proactively offer to draft one.Before writing a single line, confirm all four. If any are missing, list what's missing and stop. Do not draft a placeholder.
These map 1-to-1 to the four phases of the Rigid Debugging Gate in bug-debugging. If
you came in via bug-debugging, pull from its Phase-4 ledger — that is the raw material.
Use these blocks in this order. Summary, Root cause, Fix, and Validation are mandatory. The rest are conditional but usually present.
One paragraph. What broke, in user / workload terms. What fixed it, in one sentence. Ticket key, PR number, owner. A reader who stops here should have the right answer.
What was actually observed. Test output, error message, log line, perf number, customer report. Concrete identifiers — don't paraphrase the failure mode.
The actual bug mechanism. Code identifiers welcome and expected — function names, file paths, struct fields, branch conditions, commit SHAs of the offending change. Walk the cause chain end-to-end. This is the most expensive section and the reason the post-mortem exists at all. Future-you will live or die by how clearly you write this.
Link the root cause to the symptom. Often non-obvious — the bug is in function A but
the visible failure is in function Z minutes / hours later. Walk the chain so a reader
who only knows the symptom can connect it back to the cause without re-deriving it.
What changed and why this change addresses the root cause rather than hiding the symptom. Link to PR / commit. If a previous fix attempt papered over the symptom, name it and explain what was wrong with it — that history is part of the cause.
Short. The debugging path:
bug-debugging cascade).This section is for the next debugger — make it learnable.
What allowed this bug to reach the branch / release / customer. Pick the real reason:
If the honest answer is "no good reason — we should have caught this," say so. Blameless — describe the gap, not the person.
How we know the fix works. Concrete:
If you only validated one configuration, say so explicitly — "validated on <config>; not retested on <other configs>." Don't imply broader coverage than you actually have.
Concrete next steps that are not in the fix PR itself. Each item: what + owner + tracking artifact.
If there are no action items, write "None — the fix is sufficient and no class-of-bug follow-up is warranted." Don't manufacture action items to look thorough.
This is engineer-to-engineer. Different from management-talk:
docs/postmortems/
file, internal wiki). The shape is the same; only the wrapping changes.management-talk." Don't do it automatically.Summary. The webhook retry worker double-processed events for ~6 hours because the idempotency key was computed from a mutable field that the producer rewrote between the first attempt and the retry. Affected 412 customer events on 2026-05-22, no data loss but ~80 duplicate notifications sent. Fixed by switching the key to an immutable
event.id. Ticket WEBHOOK-1042, PR app/services#2871, owner Sarah.Symptom. Customers reported receiving two confirmation emails for single purchases. Log search showed paired
webhook.delivered event_id=<X>entries with differentrequest_ids but the sameevent_id, within 30–90 s of each other.Root cause.
WebhookRetryWorker::idempotencyKey()inapp/Jobs/WebhookRetryWorker.php:84hashedpayload['updated_at']. The producer (OrderConfirmedListener::handle) normalises and overwritesupdated_aton republish, so the retry computed a different key than the first attempt — the dedupe set (redis://retry-dedupe) missed the match, and the worker treated the retry as a brand-new event.Why it produced the symptom. Dedupe miss → second handler invocation → second email sent. No exception, no log warning — the failure was silently "two emails" instead of "one."
Fix. PR #2871 changes
idempotencyKey()to hashevent.id(immutable, assigned at event creation inOrderEvent::boot). Adds an assertion in the worker thatevent.idis present; missing-id events go to a dead-letter queue instead of being silently retried with a degraded key.A prior fix (PR #2790, March 2026) added a "prefer event.id when present" fallback but kept the old hash path as default — that change papered over the symptom in one code path while leaving the bug live everywhere else. The old path is now removed entirely.
How it was found. Customer report → repro built from production log replay (deterministic in <5 s). Initial hypothesis: queue redelivery before the dedupe set was written. Disproved with Redis MONITOR showing the key was written — just with a different value. Second hypothesis: payload mutation between attempts. Confirmed by logging the computed key on both attempts and diffing. Single experiment that nailed it: pinning
updated_atto a constant in the producer made the bug disappear.Why it slipped through. Latent code. The mutable hash had been in place for ~14 months. No real workload triggered a retry that overlapped with a republish until May, when retry attempts increased after a Redis latency spike on 2026-05-22. CI had no test for the "republish during retry" interleaving.
Validation. Original 412 affected events re-ran against the fixed worker in a staging replay; zero duplicates. New regression test
tests/Feature/WebhookRetryDedupeTest.phpcovers the interleaving case. Production canary deployed 2026-05-23 06:00 UTC, watched for 12 h: 4,318 webhooks delivered, zero duplicates. Not retested under the original Redis latency spike conditions — those have not recurred.Action items.
- Regression test merged:
WebhookRetryDedupeTest. (Sarah, in PR #2871.)- CI gap closed: nightly job replays a 1 % sample of yesterday's webhook events through the worker, asserts no dedupe collisions. (Sarah, WEBHOOK-1043.)
- Runbook entry added:
docs/runbooks/webhook-dedupe.md. (Sarah, PR #2872.)- Audit ticket: other queues using mutable-payload-derived keys. Filed as WEBHOOK-1044.
What this example does that a management-talk version would not:
WebhookRetryWorker::idempotencyKey(),
OrderConfirmedListener::handle, redis://retry-dedupe,
OrderEvent::boot).updated_at).management-talk's job, not yours.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skills81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.