learn-from-fix

Featured

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.

Code & Development 507 stars 35 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
90
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 /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 surrounding whitespace and lowercase the package name. Preserve underscores when forming directory names (`phoenix_live_view` becomes `hex-phoenix_live_view`). Validate the normalized name against `^[a-z][a-z0-9_]+$`. If it does not match, ask for a valid Hex package identifier inste...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category