Capture lessons after fixing a bug or receiving a correction - ecto, liveview, oban, iron law mistakes. Use when the user corrects your approach or teaches a pattern.
---
name: phx:learn-from-fix
description: Capture lessons after fixing a bug or receiving a correction — ecto, liveview, oban, iron law mistakes. Use when the user corrects your approach or teaches a pattern.
effort: low
argument-hint: <description of what was fixed>
---
# Learn From Fix
After fixing a bug or receiving a correction, capture the lesson
to prevent future mistakes.
## Usage
```
/phx:learn-from-fix Fixed N+1 query in user listing - was missing preload
/phx:learn-from-fix String vs atom key mismatch in params handling
/phx:learn-from-fix LiveView assign_async needs render_async in tests
```
## Workflow
### Step 1: Identify the Pattern
Look at recent conversation context. Ask yourself:… install to load the full skill