Analyze session context to identify and document issues encountered for systematic fixing
Analyzes the current session to identify and document unresolved issues, root causes, and systematic fixes. Use this after completing work to capture lessons learned and prevent recurring problems.
/plugin marketplace add lpasqualis/lpclaude/plugin install lpclaude-config@lpclaude-marketplaceoptional focus area or specific issuesConduct a postmortem analysis of the current session to identify and document all issues encountered, their root causes, and next steps for systematic resolution.
Focus on the following area. If this section is empty, decided what to focus on:
<focus-area> $ARGUMENTS </focus-area>Extract and document problems discovered during work in the focus area; examine true issues and root causes rather than workarounds. The goal is to produce a report that can be used to systematically fix underlying issues withou any additional context or logs. The report should NOT contain problems that were fully resolved permanently, if there is nothing left to do to improve the situation.
Analyze the session context for:
Use these methods:
For each identified issue:
Group issues by:
Present a structured postmortem report:
# Session Postmortem Report
Date: [current date]
Session Context: $ARGUMENTS
## Executive Summary
[Brief overview of major issues found]
## Issues Identified, in order of severity
### Issue #1: [Descriptive Title]
- **Severity**: [Critical/Major/Minor]
- **Domain**: [Category]
- **Symptom**: [What happened]
- **Root Cause**: [Why it happened]
- **Reproduction**:
1. [Step 1]
2. [Step 2]
...
- **Evidence**:
- File(s): [path]
- Error(s): [message]
- Command: [what was run]
- **Workarounds**: [list of workaround that were implemented]
- **Recommended Fix**: [Specific action needed]
[Repeat for each issue]
## Patterns and Trends
[Common themes across multiple issues]
## Key Learnings
[Important insights to remember from this session]
## Next Steps
Priority order for fixing:
1. [Most critical issue] - [Brief fix description]
2. [Next issue] - [Brief fix description]
...
## Prevention Recommendations
[Suggestions to prevent similar issues in the future - avoid speculative suggestions]
Focus on actionable information that enables systematic fixes, not temporary workarounds. Present the complete report to the user without saving to file.