Agent skill

Elixir Idioms

by irahardianto in irahardianto/awesome-agv

Elixir and OTP idioms: pattern matching, with pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing.

MITAuto-check passedDevelopment

Install Elixir Idioms

skills CLI
$ npx skills add irahardianto/awesome-agv --skill elixir-idioms -a claude-code

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

GitHub CLI
$ gh skill install irahardianto/awesome-agv elixir-idioms --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/irahardianto/awesome-agv.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/elixir-idioms .claude/skills/elixir-idioms && 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
elixir-idioms
GitHub stars
157
Token cost
~771 tokens
SKILL.md length
177 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

Elixir and OTP idioms: pattern matching, with pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing.

  • Works in 2 steps: Pattern match everything — function… → with for happy-path pipelines
  • Reviewing Elixir and Phoenix applications
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve LLM observability

What it does

Elixir Idioms is an agent skill from irahardianto/awesome-agv. Elixir and OTP idioms: pattern matching, with pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing. Use when developing, refactoring, or reviewing Elixir and Phoenix applications or OTP systems.

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering LLM observability and Refactoring. It works with Elixir. The repository describes itself as: Comprehensive sets of standards and practices designed to elevate the capabilities of AI coding agents. The licence is MIT.

When your agent uses it

  • Reviewing Elixir and Phoenix applications
  • Tasks that involve LLM observability
  • Tasks that involve Refactoring

Example prompts

  • “/elixir-idioms”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Pattern match everything — function heads, case, with
  2. with for happy-path pipelines

What it can do on your machine

Read from SKILL.md and the folder at commit 9e997ba. 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 elixir).

    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

Elixir Idioms loads about 771 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 177 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~771

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 irahardianto/awesome-agv at commit 9e997ba, republished under its MIT licence (© irahardianto). 177 words, ~771 tokens.

Download SKILL.mdSave it as .claude/skills/elixir-idioms/SKILL.md (or your agent's skills folder).
name
elixir-idioms
description
Elixir and OTP idioms: pattern matching, `with` pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing. Use when developing, refactoring, or reviewing Elixir and Phoenix applications or OTP systems.

Elixir Idioms and Patterns

Elixir rewards immutability, pattern matching, and the OTP supervision model. Idiomatic Elixir = functional, fault-tolerant, process-oriented.

Scope: Elixir coding idioms. Test naming: .agents/rules/testing-strategy.md.

Pattern Matching
  1. Pattern match everything — function heads, case, with:

    elixir
    def handle_result({:ok, task}), do: {:reply, task}
    def handle_result({:error, :not_found}), do: {:error, 404}
    def handle_result({:error, reason}), do: {:error, 500, reason}
  2. with for happy-path pipelines:

    elixir
    with {:ok, user} <- fetch_user(user_id),
         {:ok, task} <- create_task(user, params),
         :ok <- notify(user, task) do
      {:ok, task}
    end
OTP and Supervision
  1. GenServer for stateful processes:

    elixir
    defmodule TaskCache do
      use GenServer
    
      def start_link(opts), do: GenServer.start_link(__MODULE__, %{}, opts)
      def get(pid, id), do: GenServer.call(pid, {:get, id})
    
      @impl true
      def handle_call({:get, id}, _from, state) do
        {:reply, Map.get(state, id), state}
      end
    end
  2. Supervision trees — "let it crash" philosophy. Supervisors restart failed children.

  3. Never try/catch in normal flow — let processes crash and restart cleanly.

Pipe Operator
  1. |> for data transformation pipelines:

    elixir
    tasks
    |> Enum.filter(&(&1.active))
    |> Enum.sort_by(& &1.priority, :desc)
    |> Enum.map(&TaskView.render/1)
  2. First argument must be the piped value. Design APIs pipe-friendly.

Naming
  1. snake_case for functions, variables, atoms, module attributes.
  2. PascalCase for module names.
  3. ? suffix for boolean functions: active?/1.
  4. ! suffix for functions that raise: get!/1 (vs get/1 returning {:ok, _}).
Testing
  1. ExUnit:

    elixir
    defmodule TaskServiceTest do
      use ExUnit.Case, async: true
    
      test "creates task with valid params" do
        {:ok, task} = TaskService.create(%{title: "Test", priority: :high})
        assert task.title == "Test"
      end
    end
  2. Mox for mock-based testing (behaviour contracts).

Formatting and Static Analysis
ToolPurposeCommand
mix formatFormattingmix format
CredoLintingmix credo --strict
DialyzerType checkingmix dialyzer
mix deps.auditCVE scanningmix deps.audit
  • Code Idioms and Conventions .agents/rules/code-idioms-and-conventions.md
  • Error Handling Principles .agents/rules/error-handling-principles.md
  • Testing Strategy .agents/rules/testing-strategy.md
  • Concurrency and Threading Principles @.agents/rules/concurrency-and-threading-principles.md

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

Files

Just SKILL.md in .agents/skills/elixir-idioms of irahardianto/awesome-agv.

Open the folder on GitHubat commit 9e997ba

Compare with similar skills

Elixir Idioms 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.

Elixir Idioms compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Elixir Idioms this skillirahardianto/awesome-agv157—~771Automated safety check: PassMIT
Elixirstreamband/hydra-srt147—~804Automated safety check: PassApache-2.0
Change CleanupSimon-Initiative/oli-torus119—~3.7kAutomated safety check: PassMIT
Elixir AntipatternsGentleman-Programming/Gentleman-Skills658—~2.1kAutomated safety check: PassMIT
Elixirericrisco/rsc-harness174—~2.9kAutomated safety check: PassMIT
Phx Techdebtoliver-kriska/claude-elixir-phoenix565—~583Automated safety check: PassMIT

Similar skills

  • Elixir

    streamband/hydra-srt

    A skill your agent uses for Elixir/Phoenix development in this repo: implementing features, refactors, debugging, tests, Ecto changes, and production-safe fixes.

    147 GitHub stars~804 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • Change Cleanup

    Simon-Initiative/oli-torus

    Clean up and harden code introduced by the current branch without drifting into broad refactors.

    119 GitHub stars~3.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Elixir Antipatterns

    Gentleman-Programming/Gentleman-Skills

    Core catalog of 8 critical Elixir/Phoenix anti-patterns covering error handling, separation of concerns, Ecto queries, and testing.

    658 GitHub stars~2.1k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed
  • Elixir

    ericrisco/rsc-harness

    A skill your agent uses when writing or refactoring Elixir/OTP on the BEAM — GenServers, supervision trees and restart strategies, pattern matching, mix projects and releases — or when processes…

    174 GitHub stars~2.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Phx Techdebt

    oliver-kriska/claude-elixir-phoenix

    Analyze Elixir/Phoenix technical debt — duplicates, refactoring; Use when asked about code quality, cleanup, or what…

    565 GitHub stars~583 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Phx Techdebt

    oliver-kriska/claude-elixir-phoenix

    Analyze Elixir/Phoenix technical debt — duplicates, refactoring opportunities, credo issues.

    565 GitHub stars~590 tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from irahardianto/awesome-agv

All 34 skills in this repo
  • Distinctive Frontend Design Builder

    irahardianto/awesome-agv

    Commits to one bold aesthetic direction, sets up a CSS token system for it, then builds the interface in Vue or plain HTML using those tokens.

    157 GitHub stars~2.4k tokensUpdated 5 days ago
    Auto-check passed
  • Perf Optimization

    irahardianto/awesome-agv

    Profile-driven performance optimization protocol. An agent skill from irahardianto/awesome-agv.

    157 GitHub stars~4.3k tokensUpdated 5 days ago
    Auto-check passed
  • Angular Idioms and Patterns

    irahardianto/awesome-agv

    Coding conventions for Angular 19 and later: standalone components, signals, OnPush change detection, lazy routes and where RxJS still belongs.

    157 GitHub stars~3.8k tokensUpdated 5 days ago
    Auto-check passed
  • CI/CD Pipeline Principles

    irahardianto/awesome-agv

    Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.

    157 GitHub stars~2.7k tokensUpdated 5 days ago
    Auto-check: notes
  • Hono Idioms

    irahardianto/awesome-agv

    Hono lightweight web framework patterns: type-safe route handlers, middleware composition, Zod validation, and RPC clients for Cloudflare Workers, Node, or Bun.

    157 GitHub stars~3k tokensUpdated 5 days ago
    Auto-check passed
  • Mobile Testing

    irahardianto/awesome-agv

    Mobile E2E testing patterns — Flutter integrationtest, Patrol, Maestro, golden testing, device matrix, and test data management.

    157 GitHub stars~1.8k tokensUpdated 5 days ago
    Auto-check: notes

Works with

Categories

Questions about Elixir Idioms

What does Elixir Idioms do?

Elixir and OTP idioms: pattern matching, with pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing. Elixir Idioms is an agent skill from irahardianto/awesome-agv. Elixir and OTP idioms: pattern matching, with pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing.

When should I use Elixir Idioms?

Elixir Idioms fits situations like: reviewing Elixir and Phoenix applications; tasks that involve LLM observability; tasks that involve Refactoring.

How do I install Elixir Idioms in Claude Code?

Run `npx skills add irahardianto/awesome-agv --skill elixir-idioms -a claude-code`. Or copy the skill folder (.agents/skills/elixir-idioms in irahardianto/awesome-agv) into .claude/skills/elixir-idioms in your project. Claude Code loads it when a task matches its description.

How do I install Elixir Idioms in Codex?

Run `npx skills add irahardianto/awesome-agv --skill elixir-idioms -a codex`. Or copy the skill folder (.agents/skills/elixir-idioms in irahardianto/awesome-agv) into .agents/skills/elixir-idioms in your project. Codex loads it when a task matches its description.

Can I use Elixir Idioms 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 irahardianto/awesome-agv --skill elixir-idioms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/elixir-idioms, .gemini/skills/elixir-idioms, .github/skills/elixir-idioms and .opencode/skills/elixir-idioms in your project.

What does Elixir Idioms need to run?

SKILL.md names no scripts, command-line tools or credentials: Elixir Idioms is instructions for the agent only.

Does Elixir Idioms 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 Elixir Idioms 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 Elixir Idioms use?

Elixir Idioms 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 Elixir Idioms use?

About 771 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Elixir Idioms?

Skills that share tags, products or a category with Elixir Idioms: Elixir (streamband/hydra-srt, 147 stars), Change Cleanup (Simon-Initiative/oli-torus, 119 stars), Elixir Antipatterns (Gentleman-Programming/Gentleman-Skills, 658 stars) and Elixir (ericrisco/rsc-harness, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Elixir Idioms?

irahardianto (a GitHub user) maintains it in irahardianto/awesome-agv, which has 157 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on October 5, 2026.

Source: irahardianto/awesome-agv on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.