phxlearn-from-fix

Solid

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.

AI & Automation 437 stars 25 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: - What was the root cause? (not the symptom) - Is this a common mistake others might make? - Can it be prevented with a simple rule? ### Step 2: Check Existing Knowledge Check if already documented: - Grep project CLAUDE.md for the pattern keyword - Check auto-memory files for similar lessons - Read `${CLAUDE_SKILL_DIR}/references/common-mistakes.md` (READ-ONLY plugin reference — do NOT edit this file) If already documented, tell the user and stop. ### Step 3: Decide Where to Save **CRITICAL: NEVER edit plugin files.** Files under `~/.claude/plugins/` are cached and get overwritten on updates. Always write to project or memory locations. | Scope | Write to | Example | |-------|----------|---------| | This project only | Project CLAUDE.md | "Never use raw SQL in this app" | | All Elixir projects | Auto-memory MEMORY.md | "jsonb always uses string keys" | | Detailed fix with context | `.claude/solutions/` via `/phx:compound` | Complex debugging story | ### Step 4: Write the Lesson **For project CLAUDE.md** — append a concise rule: ``...

Details

Author
oliver-kriska
Repository
oliver-kriska/claude-elixir-phoenix
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category