Elixir Skill banner
BadBeta BadBeta

Elixir Skill

Git community

Description

Superseded by elixir-phase-skills (https://github.com/BadBeta/elixir-phase-skills) — three-phase split with hooks for active skill use.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

This has been superseded by [elixir-phase-skills](https://github.com/BadBeta/elixir-phase-skills)

Elixir skill for Claude

This is a rather ambitious project to make Claude do idiomatic Elixir both in architecture and code. The skill has a hub structure with a core skill aiming to cover the most crucial and daily bits, and with referenced supporting files covering more specialized topics. Only the core skill is loaded into the context when the skill is invoked.

So far I've only sanitized this and the rust-nif skill. Other related skills might follow time and motivation permitting.

**Install**

git clone git@github.com:BadBeta/Elixir_skill.git ~/.claude/skills/elixir

(Might have to restart Claude terminal to pick it up).

**To update later:**

cd ~/.claude/skills/elixir && git pull

First project prompt

The first prompt should ensure that the skill is used during planning. Agents do not use skills so they have to be avoided. Claude will also sometimes choose to ignore skills even if it says always use in the skill, so a stronger statement helps minimize that issue.

Further references to specific supporting files helps with the specifics they contain. Of particular importance is the architecture-reference.md for early planning.

Even after all that Claude will sometimes sneak in some more if statements than wished for, and an odd try rescue might sneak in. So afterwards a run with Credo, Dialyzer and Sobelow is a good idea, and then I usually prompt to inform Claude that if statements and try rescue is often a code smell in Elixir and to review and use idiomatic flow construct instead. That tend to fix remaining issues.

Better results by adding this to the first project or refactor prompt:

**Do not use agents for planning or implementation. Do it yourself.**

**ALWAYS load the elixir skill and read both SKILL.md and architecture-reference.md before starting to plan architecture or writing any code. No exceptions, so do it r