Agent skill

Phx Learn From Fix

by oliver-kriska in oliver-kriska/claude-elixir-phoenix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. An agent skill from oliver-kriska/claude-elixir-phoenix.

MITAuto-check passed

Install Phx Learn From Fix

skills CLI
$ npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oliver-kriska/claude-elixir-phoenix phx-learn-from-fix --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oliver-kriska/claude-elixir-phoenix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/targets/codex/skills/phx-learn-from-fix .claude/skills/phx-learn-from-fix && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
phx-learn-from-fix
GitHub stars
565
Token cost
~1.7k tokens
SKILL.md length
747 words
Files
2 (incl. references)
Skills in repo
109
Repo updated
First seen
Licence
MIT

At a glance

Capture Elixir/Ecto/LiveView lessons and Hex API rules. An agent skill from oliver-kriska/claude-elixir-phoenix.

  • Works in 3 steps: Verify the Lesson → Select the Route → Check Existing Knowledge
  • SKILL.md covers Usage, Workflow, Library Route and General Correction Route, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Phx Learn From Fix is an agent skill from oliver-kriska/claude-elixir-phoenix. Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning…

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/common-mistakes.md`).

It works with Elixir. The repository describes itself as: Claude Code plugin for Elixir/Phoenix/LiveView — 26 specialist agents, Iron Laws enforcement, and Tidewave MCP integration. Plan features with parallel research agents, execute… The licence is MIT.

Example prompts

  • “/phx-learn-from-fix”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Verify the Lesson
  2. Select the Route
  3. Check Existing Knowledge

What it can do on your machine

Read from SKILL.md and the folder at commit 9767a82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Phx Learn From Fix loads about 1.7k tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 33 tokens; SKILL.md has 747 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from oliver-kriska/claude-elixir-phoenix at commit 9767a82, republished under its MIT licence (© oliver-kriska). 747 words, ~1,744 tokens.

Download SKILL.mdSave it as .claude/skills/phx-learn-from-fix/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
phx-learn-from-fix
description
Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning…

Learn From Fix

After fixing a bug or receiving a correction, capture the lesson to prevent future mistakes.

Usage

$elixir-phoenix:phx-learn-from-fix Fixed N+1 query in user listing - was missing preload
$elixir-phoenix:phx-learn-from-fix String vs atom key mismatch in params handling
$elixir-phoenix:phx-learn-from-fix LiveView assign_async needs render_async in tests
$elixir-phoenix:phx-learn-from-fix --library ical --scope personal ICal.to_ics output needs CRLF line endings
$elixir-phoenix: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 $elixir-phoenix: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. 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 instead of replacing characters or inventing a name. Use the trimmed original identifier, not the normalized directory name, to look up mix.lock.

Without --library, use the General Correction Route.

Step 3: Check Existing Knowledge

Check if already documented:

  • Grep project CLAUDE.md and ~/.claude/CLAUDE.md for the pattern keyword
  • Check auto-memory files for similar lessons
  • For library lessons, inspect both ~/.claude/skills/hex-<package>/SKILL.md and .claude/skills/hex-<package>/SKILL.md
  • Read references/common-mistakes.md (read-only plugin reference)

Do not duplicate the same lesson across CLAUDE.md, memory, and a package skill. If the same rule exists, merge wording or report it as already captured.

Library Route

Plugin files are read-only: files under ~/.claude/plugins/ are cached and get overwritten on updates. Package skills are user-owned files, never plugin cache files.

Resolve Scope and Precedence
--scopeCanonical destination
personal~/.claude/skills/hex-<package>/SKILL.md
project.claude/skills/hex-<package>/SKILL.md

Personal skills override same-named project skills. If a personal hex-<package> skill exists, never unknowingly create or update a shadowed project skill: explain the conflict and ask whether to update personal scope or keep distinct project-only knowledge. If project scope already exists before a personal write, warn that the new skill will shadow it and offer to merge or move it. Maintain one canonical skill per package unless the user explicitly needs distinct scope-specific rules; never create one skill per lesson.

Read the Locked Version

Inspect mix.lock for the package. Record the exact locked version when found. If it is absent, say the lesson is not tied to a locally locked version and do not invent one. Qualify version-sensitive rules. When two verified rules conflict across versions, preserve both with explicit version ranges instead of replacing either.

Show full SKILL.md (330 more words)Show less
Create or Safely Update the Skill

For a new package skill, create:

markdown
---
name: hex-<package>
description: <Package/module/API/task trigger terms for this knowledge>
user-invocable: false
---

# <Package> Knowledge

## Verified Rules

- **<Rule>** (verified with <package> <version>): <actionable guidance>

Make the description precise: include the Hex package, Elixir module names, important APIs/file formats, and tasks that should trigger this knowledge. Activation is model-selected from this description; package presence in mix.lock does not guarantee activation.

Before updating an existing skill, read all of it. Preserve unrelated and hand-authored sections. Merge semantically identical rules. If safe merging is unclear, show the conflict and ask instead of overwriting content.

Do not add paths: to a personal package skill by default: it is a file-path activation gate, not a dependency predicate. Add paths: only to project scope when explicitly appropriate and meaningful package-specific paths exist.

General Correction Route

Choose the narrowest non-library destination:

ScopeWrite toExample
This projectProject CLAUDE.md"Never use raw SQL in this app"
This project across sessionsProject-keyed auto-memory"jsonb uses string keys"
All your projects~/.claude/CLAUDE.md personal instructions"Prefer explicit error tuples"
Detailed completed fix.claude/solutions/ via $elixir-phoenix:phx-compoundDebugging narrative

For project or personal instructions, preserve existing content and append **RULE NAME** — Do NOT [bad]. Instead [good] under the relevant category. Use personal instructions only for rules that should load in every project. For auto-memory, append to the project-keyed ~/.claude/projects/{project-hash}/memory/MEMORY.md:

markdown
### Lesson: [Title]
- **Pattern**: Do NOT [bad] — instead [good]
- **Why**: [root cause explanation]

If the lesson is universal to the plugin rather than one project or package, suggest a plugin contribution; never write it into cached plugin files.

Output

After capturing, confirm:

text
Lesson captured in [location]

Pattern: Do NOT [bad pattern] — instead [good pattern]
Category: [Ecto/LiveView/OTP/Testing/etc]
Version: [locked package version, not found, or not applicable]

For package skills, also state that description-based activation is model-selected, not guaranteed by mix.lock.

Iron Laws

  1. NEVER write generated knowledge to plugin cache — use only the user-owned destinations above
  2. DO NOT duplicate existing lessons — always check CLAUDE.md and memory before writing
  3. NEVER overwrite hand-authored content — read both package skill scopes and merge safely
  4. ONLY persist verified knowledge — completed fixes or explicit user-taught rules, never hypotheses
  5. DISCLOSE scope precedence — a global package skill shadows its project counterpart

References (READ-ONLY — do NOT edit)

  • references/common-mistakes.md — Common Elixir mistakes reference. Consult when checking for duplicates.

© oliver-kriska, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in targets/codex/skills/phx-learn-from-fix of oliver-kriska/claude-elixir-phoenix.

  • SKILL.md
  • references/common-mistakes.md

Open the folder on GitHubat commit 9767a82

Compare with similar skills

Phx Learn From Fix next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Phx Learn From Fix compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Phx Learn From Fix this skilloliver-kriska/claude-elixir-phoenix565—~1.7kAutomated safety check: PassMIT
Membrane Frameworkmembraneframework/membrane_core1.5k—~4.2kAutomated safety check: PassApache-2.0
Web Ng Docker Loopcarverauto/serviceradar921—~737Automated safety check: PassApache-2.0
Components Architectureoperately/operately578—~2.5kAutomated safety check: PassCustom licence
Ash Frameworkpodlove/radiator136—~2.1kAutomated safety check: PassMIT
Elixir Architectmaxim-ist/elixir-architect145—~7.6kAutomated safety check: PassMIT

Similar skills

  • Membrane Framework

    membraneframework/membrane_core

    Work with the Membrane multimedia streaming framework in Elixir.

    1.5k GitHub stars~4.2k tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Web Ng Docker Loop

    carverauto/serviceradar

    Run ServiceRadar elixir/web-ng locally against the Docker Compose CNPG database with copied mTLS certs and Docker secrets, then verify dashboard UI changes with Playwright.

    921 GitHub stars~737 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Components Architecture

    operately/operately

    Defines where UI components belong in Operately (TurboUI-first).

    578 GitHub stars~2.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Ash Framework

    podlove/radiator

    Use this skill working with Ash Framework or any of its extensions.

    136 GitHub stars~2.1k tokensUpdated 16 days ago
    AI & LLM EngineeringAuto-check passed
  • Elixir Architect

    maxim-ist/elixir-architect

    A skill your agent uses when designing or architecting Elixir/Phoenix applications, creating comprehensive project documentation, planning OTP supervision trees, defining domain models with Ash…

    145 GitHub stars~7.6k tokensUpdated 10 mo ago
    AI & LLM EngineeringAuto-check passed
  • Phoenix Framework

    podlove/radiator

    Use this skill working with Phoenix Framework. An agent skill from podlove/radiator.

    136 GitHub stars~562 tokensUpdated 16 days ago
    AI & LLM EngineeringAuto-check passed

More from oliver-kriska/claude-elixir-phoenix

All 109 skills in this repo
  • Codex Ab

    oliver-kriska/claude-elixir-phoenix

    Run an A/B codex review experiment — holistic codex review vs 3 focused dimension passes (security, ecto, liveview) on the branch diff, classify findings, report a panel-value verdict.

    565 GitHub stars~977 tokensUpdated 5 days ago
    Auto-check passed
  • Audit

    oliver-kriska/claude-elixir-phoenix

    Project health audit and health check — architecture, performance, tests, dependencies, code quality.

    565 GitHub stars~2k tokensUpdated 5 days ago
    Auto-check passed
  • Compound Docs

    oliver-kriska/claude-elixir-phoenix

    Searchable Elixir/Phoenix/Ecto solution documentation system with; Use when consulting past solutions…

    565 GitHub stars~528 tokensUpdated 5 days ago
    Auto-check passed
  • Compound Docs

    oliver-kriska/claude-elixir-phoenix

    Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter.

    565 GitHub stars~547 tokensUpdated 5 days ago
    Auto-check passed
  • Deploy

    oliver-kriska/claude-elixir-phoenix

    Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays.

    565 GitHub stars~1.1k tokensUpdated 5 days ago
    Auto-check passed
  • Deps Update

    oliver-kriska/claude-elixir-phoenix

    Bump outdated Hex deps — inventory, snapshot changelogs, update, fix breaks, split reviewable PRs (patches bundled, majors solo).

    565 GitHub stars~1.4k tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Phx Learn From Fix

What does Phx Learn From Fix do?

Capture Elixir/Ecto/LiveView lessons and Hex API rules. An agent skill from oliver-kriska/claude-elixir-phoenix. Phx Learn From Fix is an agent skill from oliver-kriska/claude-elixir-phoenix. Capture Elixir/Ecto/LiveView lessons and Hex API rules.

How do I install Phx Learn From Fix in Claude Code?

Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix -a claude-code`. Or copy the skill folder (targets/codex/skills/phx-learn-from-fix in oliver-kriska/claude-elixir-phoenix) into .claude/skills/phx-learn-from-fix in your project. Claude Code loads it when a task matches its description.

How do I install Phx Learn From Fix in Codex?

Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix -a codex`. Or copy the skill folder (targets/codex/skills/phx-learn-from-fix in oliver-kriska/claude-elixir-phoenix) into .agents/skills/phx-learn-from-fix in your project. Codex loads it when a task matches its description.

Can I use Phx Learn From Fix in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-learn-from-fix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/phx-learn-from-fix, .gemini/skills/phx-learn-from-fix, .github/skills/phx-learn-from-fix and .opencode/skills/phx-learn-from-fix in your project.

What does Phx Learn From Fix need to run?

SKILL.md names no scripts, command-line tools or credentials: Phx Learn From Fix is instructions for the agent only.

Does Phx Learn From Fix access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Phx Learn From Fix safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Phx Learn From Fix use?

Phx Learn From Fix is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Phx Learn From Fix use?

About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Phx Learn From Fix?

Skills that share tags, products or a category with Phx Learn From Fix: Membrane Framework (membraneframework/membrane_core, 1.5k stars), Web Ng Docker Loop (carverauto/serviceradar, 921 stars), Components Architecture (operately/operately, 578 stars) and Ash Framework (podlove/radiator, 136 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Phx Learn From Fix?

oliver-kriska (a GitHub user) maintains it in oliver-kriska/claude-elixir-phoenix, which has 565 GitHub stars. The repository holds 109 skills in this directory. The repository was last updated on October 5, 2026.

Source: oliver-kriska/claude-elixir-phoenix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.