Claude Code elixir-idioms skill: Review Elixir validation and error flow
Review Elixir code for pattern matching, with chains, tagged results, and appropriate use of OTP processes. The skill provides references for common choices.
中文Install in Claude Code
Use a local Claude Code session with an Elixir practice project. Keep the skill's references directory. Claude can load it for a matching review.
- Download the repository snapshot at the linked commit. Copy plugins/elixir-phoenix/skills/elixir-idioms/ into .claude/skills/elixir-idioms/ in your practice project and keep its reference files.
- Check that SKILL.md is directly inside .claude/skills/elixir-idioms/. Open Claude Code from the project root.
- Describe a matching task using the example below. Claude can load the skill when it recognizes the task.
Example task
Give Claude a form handler that checks a name, parses a quantity, and returns {:error, reason} from either failed step. Ask whether with would make the flow clearer and request success and invalid-quantity examples.What to check
The review preserves distinct error reasons, provides an {:ok, value} example, and identifies a plain function as sufficient for the sample.
Original SKILL.md on GitHub · Updated
Frequently asked question
When is with a good fit for validation?
Use it when a successful step passes a value to the next one and each step has a clear success or failure result.