quality-postmortem
Runs a blameless postmortem for an escaped defect: timeline, impact, five whys, why the tests and monitoring missed it, and actions with owners. Use when the user says 'postmortem', 'incident review', 'escaped bug' or asks 'why did our tests miss this'. Not for the defect report itself (use bug-report).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- quality-postmortem
- license
- Apache-2.0
- description
- Runs a blameless postmortem for an escaped defect: timeline, impact, five whys, why the tests and monitoring missed it, and actions with owners. Use when the user says 'postmortem', 'incident review', 'escaped bug' or asks 'why did our tests miss this'. Not for the defect report itself (use bug-report).
- argument-hint
- [incident, defect or release]
03 SKILL.md 正文
quality-postmortem
Objective
An escaped defect shows a gap in the quality system, not only a bug in the code. This skill finds why each safety net missed it, and turns that into actions that stop the whole class of defect, not only this one.
Context
- Read
.agents/qa-project-context.mdif it exists. Use its test levels, pipeline and risk areas. - If it does not exist, collect the facts from the incident, the change history and the tests. Do not stop the work for the context file.
Discovery questions
- What happened, when, and who was affected? How was it found?
- Which change introduced it, and when?
- Which tests, reviews and monitors existed for that area?
Workflow
- Timeline: introduced, deployed, detected, mitigated, fixed. Note the time to detect and to fix.
- Impact: users, money, data, reputation.
- Root cause: ask "why" until you reach a cause in the process or the system, not a person.
- Safety net analysis. The nets are: requirements, design review, unit, API, integration, contract, end-to-end and exploratory tests, code review, pipeline gates and monitoring. For each net, answer: did it exist, did it run, why did it not catch the defect?
- Right level: the cheapest level that could have caught this class of defect.
- Actions, each with an owner and a date:
- a regression test at the right level that fails without the fix
- a change to test design or the checklist for this defect class
- a gate or a monitor where it was missing
- a requirement or review rule
- Follow up: check later that the actions are done, and that the regression test fails on the old code.
Output
## Quality postmortem: <incident>
Timeline: ... Impact: ...
Root cause: ...
| Safety net | Existed? | Ran? | Why it missed |
|---|---|---|---|
Right level to catch it: ...
Actions: <action> - owner - date
Anti-patterns
- Blame. People act within the system; fix the system.
- "Add more tests" as the only action. Name the test, the level and the defect class.
- Only this bug. Look for the same pattern elsewhere.
- Actions without owners or dates.
Done when
- The timeline, impact and root cause are stated.
- Each safety net is analyzed.
- Each action has an owner and a date, and the regression test fails on the old code.
Related skills
bug-report: the defect itself.test-strategy: when the analysis shows a strategy gap.risk-based-testing: update the risk scores.test-coverage-map: find the same gap elsewhere.
04 同仓库更多 Skills
unit-testing
Writes, fixes or improves unit tests for rules, calculations, validation and state logic: arrange-act-assert, exact oracles, boundary sets, doubles only at boundaries, controlled clock and randomness. Use when the user says 'write unit tests', 'TDD this' or 'mock this dependency'. Not for HTTP endpoints (use api-testing).
ui-automation
Writes, fixes or structures browser end-to-end tests for critical journeys: role, label or test ID locators, auto-waiting assertions, API data setup, page objects, auth reuse and traces. Use when the user says 'UI test', 'end-to-end test' or 'our UI tests are brittle'. Not for business rules (use unit-testing).
testcase-reviewer
Reviews automated tests or manual test cases like a senior test architect: scores fidelity, oracles, assertion depth, edge cases and determinism, and finds tests that pass on wrong code. Use when the user says 'review my tests', 'test smells' or 'review AI-written tests'. Not for fault injection (use mutation-probe).
testability-review
Scores how testable a feature, module or design is before tests exist (seams for clock, randomness and network, hidden state, observability) and gives the smallest production change per blocker. Use when the user asks 'is this testable' or 'why is this hard to test'. Not for writing the tests (use unit-testing).
test-strategy
Writes a test strategy for a product, system or team: quality goals, test levels and their share, environments, data, automation scope, non-functional testing, metrics and a roadmap. Use when the user says 'test strategy' or 'QA strategy'. Not for one sprint or release plan (use test-planning).
test-runner
Finds how a project runs its tests, runs the right subset, and triages each failure as product bug, test defect, environment problem or flaky test, with evidence. Use when the user says 'run the tests' or asks 'which tests fail and why'. Not for pipeline design (use ci-cd-integration).