Lessons Learned
Conduct a blameless post-incident review for "$ARGUMENTS" with incident timeline, root cause analysis, contributing factors, and corrective actions at three levels.
Prerequisites
Read .metapowers/security/$ARGUMENTS/00-govern.md. If this file does not exist, tell the user:
Phase 0 (Govern) has not been completed for "$ARGUMENTS". Run a Govern skill first (e.g., /security:security-policy $ARGUMENTS), or use --skip-checks to bypass.
If --skip-checks is present in $ARGUMENTS, skip this check and log to .metapowers/security/$ARGUMENTS/skip-log.md.
Process
Read context files:
- Read
plugins/security/shared/incident-response-template.md for post-incident review reference
- Read
.metapowers/security/$ARGUMENTS/00-govern.md for organizational context
- Read
.metapowers/security/$ARGUMENTS/04-respond.md if it exists, for incident response context
Facilitate blameless post-incident review:
- Establish blameless culture ground rules: focus on systems and processes, not individuals
- Gather all responders and stakeholders for input
- Collect artifacts: logs, chat transcripts, alerts, tickets, and status updates from the incident
- Set review scope: what happened, how we responded, what we can improve
Build incident timeline (detection to resolution):
- Document each event chronologically with timestamps (UTC)
- Key milestones: initial trigger, detection, first response, containment, eradication, recovery, closure
- Note time gaps between milestones (detection delay, response delay, escalation delay)
- Identify who did what at each stage
- Calculate key metrics: time to detect (TTD), time to respond (TTR), time to contain (TTC), time to recover
Apply 5 Whys for root cause analysis:
- Start with the incident symptom and ask "Why?" iteratively
- Continue until reaching the systemic root cause (typically 3–5 levels deep)
- Document each level with supporting evidence
- Identify both the technical root cause and the process root cause
- Validate root cause: if this cause were fixed, would the incident have been prevented?
Identify contributing factors:
- Process factors — missing runbooks, unclear escalation paths, insufficient monitoring coverage
- Technology factors — misconfiguration, unpatched vulnerability, inadequate tooling, missing automation
- People factors — insufficient training, knowledge gaps, fatigue, unclear responsibilities (not blame)
- Map contributing factors to the timeline to show where each factor increased severity or delayed response
Define corrective actions at three levels:
- Immediate fix — address the specific vulnerability or gap that caused this incident (patch, config change, access revocation)
- Prevent recurrence — implement controls to prevent the same type of incident (automated scanning, additional monitoring, policy update)
- Systemic improvement — address the underlying organizational or architectural weakness (security architecture redesign, training program, process overhaul)
- Each action must have: description, owner, deadline, priority, and success criteria
Assign owners and track completion:
- Assign each corrective action to a named owner
- Set realistic deadlines (immediate fixes: 1 week, prevent recurrence: 1 month, systemic: 1 quarter)
- Define tracking mechanism (ticket system, review meetings)
- Schedule follow-up review to verify completion
- Escalate overdue actions
Update playbooks based on findings:
- Identify gaps in existing playbooks revealed by the incident
- Add new detection rules for indicators discovered during investigation
- Update communication templates if communication was ineffective
- Add decision tree entries for scenarios encountered
- Document new forensic data sources identified during investigation
Write the artifact to .metapowers/security/$ARGUMENTS/04-respond.md with heading:
Lessons Learned
Include sections:
- Incident Summary — type, severity, duration, and impact
- Timeline — chronological event log with key metrics (TTD, TTR, TTC)
- Root Cause Analysis — 5 Whys analysis with supporting evidence
- Contributing Factors — process, technology, and people factors
- Corrective Actions — three-level action plan with owners and deadlines
- Playbook Updates — changes to existing playbooks and procedures
- Metrics — incident response performance metrics and trends
Output
The lessons learned review written to .metapowers/security/$ARGUMENTS/04-respond.md. Present a summary to the user highlighting:
- Root cause identified through 5 Whys analysis
- Key contributing factors by category
- Corrective actions at all three levels with owners
- Playbook and process updates recommended
1---2name: lessons-learned3description: Conduct post-incident review with root cause and improvement actions4---56# Lessons Learned78Conduct a blameless post-incident review for "$ARGUMENTS" with incident timeline, root cause analysis, contributing factors, and corrective actions at three levels.910## Prerequisites1112Read `.metapowers/security/$ARGUMENTS/00-govern.md`. If this file does not exist, tell the user:1314> Phase 0 (Govern) has not been completed for "$ARGUMENTS". Run a Govern skill first (e.g., `/security:security-policy $ARGUMENTS`), or use `--skip-checks` to bypass.1516If `--skip-checks` is present in $ARGUMENTS, skip this check and log to `.metapowers/security/$ARGUMENTS/skip-log.md`.1718## Process19201. **Read context files:**21 - Read `plugins/security/shared/incident-response-template.md` for post-incident review reference22 - Read `.metapowers/security/$ARGUMENTS/00-govern.md` for organizational context23 - Read `.metapowers/security/$ARGUMENTS/04-respond.md` if it exists, for incident response context24252. **Facilitate blameless post-incident review:**26 - Establish blameless culture ground rules: focus on systems and processes, not individuals27 - Gather all responders and stakeholders for input28 - Collect artifacts: logs, chat transcripts, alerts, tickets, and status updates from the incident29 - Set review scope: what happened, how we responded, what we can improve30313. **Build incident timeline (detection to resolution):**32 - Document each event chronologically with timestamps (UTC)33 - Key milestones: initial trigger, detection, first response, containment, eradication, recovery, closure34 - Note time gaps between milestones (detection delay, response delay, escalation delay)35 - Identify who did what at each stage36 - Calculate key metrics: time to detect (TTD), time to respond (TTR), time to contain (TTC), time to recover37384. **Apply 5 Whys for root cause analysis:**39 - Start with the incident symptom and ask "Why?" iteratively40 - Continue until reaching the systemic root cause (typically 3–5 levels deep)41 - Document each level with supporting evidence42 - Identify both the technical root cause and the process root cause43 - Validate root cause: if this cause were fixed, would the incident have been prevented?44455. **Identify contributing factors:**46 - **Process factors** — missing runbooks, unclear escalation paths, insufficient monitoring coverage47 - **Technology factors** — misconfiguration, unpatched vulnerability, inadequate tooling, missing automation48 - **People factors** — insufficient training, knowledge gaps, fatigue, unclear responsibilities (not blame)49 - Map contributing factors to the timeline to show where each factor increased severity or delayed response50516. **Define corrective actions at three levels:**52 - **Immediate fix** — address the specific vulnerability or gap that caused this incident (patch, config change, access revocation)53 - **Prevent recurrence** — implement controls to prevent the same type of incident (automated scanning, additional monitoring, policy update)54 - **Systemic improvement** — address the underlying organizational or architectural weakness (security architecture redesign, training program, process overhaul)55 - Each action must have: description, owner, deadline, priority, and success criteria56577. **Assign owners and track completion:**58 - Assign each corrective action to a named owner59 - Set realistic deadlines (immediate fixes: 1 week, prevent recurrence: 1 month, systemic: 1 quarter)60 - Define tracking mechanism (ticket system, review meetings)61 - Schedule follow-up review to verify completion62 - Escalate overdue actions63648. **Update playbooks based on findings:**65 - Identify gaps in existing playbooks revealed by the incident66 - Add new detection rules for indicators discovered during investigation67 - Update communication templates if communication was ineffective68 - Add decision tree entries for scenarios encountered69 - Document new forensic data sources identified during investigation70719. **Write the artifact** to `.metapowers/security/$ARGUMENTS/04-respond.md` with heading:7273 ## Lessons Learned7475 Include sections:76 - **Incident Summary** — type, severity, duration, and impact77 - **Timeline** — chronological event log with key metrics (TTD, TTR, TTC)78 - **Root Cause Analysis** — 5 Whys analysis with supporting evidence79 - **Contributing Factors** — process, technology, and people factors80 - **Corrective Actions** — three-level action plan with owners and deadlines81 - **Playbook Updates** — changes to existing playbooks and procedures82 - **Metrics** — incident response performance metrics and trends8384## Output8586The lessons learned review written to `.metapowers/security/$ARGUMENTS/04-respond.md`. Present a summary to the user highlighting:87- Root cause identified through 5 Whys analysis88- Key contributing factors by category89- Corrective actions at all three levels with owners90- Playbook and process updates recommended