phx-learn-from-fix
Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.
npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 phx-learn-from-fix --library ical --scope personal ICal.to_ics output needs CRLF line endings phx-learn-from-fix --library ical --scope project Use method: "PUBLISH" for calendar feeds ``` ## Workflow ### Step 1: Verify the Lesson Persist only one of: - A completed fix verified by tests, reproduction, or user confirmation - An explicit rule the user taught or asked to save Stop without writing if neither condition is met. Do not save a hypothesis, unverified workaround, investigation narrative, or unsolved error. Use `phx-compound` for a detailed completed investigation. Capture the root cause as a concise actionable rule, not the symptom. ### Step 2: Select the Route When both `--library <package>` and `--scope personal|project` are present, use the [Library Route](#library-route). Require both flags; do not guess scope. For the skill directory only, trim
- Usage
- Workflow
- Step 1: Verify the Lesson
- Step 2: Select the Route
- Step 3: Check Existing Knowledge
- Library Route
- Resolve Scope and Precedence
- Read the Locked Version
- Create or Safely Update the Skill
- General Correction Route
- Output
- Iron Laws
- References (READ-ONLY — do NOT edit)
What does the phx-learn-from-fix skill do?
Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.
How do I install it?
Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From oliver-kriska/claude-elixir-phoenix, a repository with 515 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
