loom-elixir

loom-elixir is a skill for Claude Code, Codex from cosmix/loom. It costs 16 tokens per session (5,757 once invoked), scanned A, original, MIT.

Elixir language guidance for writing production code with the BEAM runtime, Elixir's virtual machine. It covers Mix, Phoenix, Ecto, OTP processes and supervisors, and ExUnit tests.

In plain words
What is it for?
Use it to build and test Elixir applications, manage dependencies with Mix, design supervision trees, diagnose common runtime issues, and select individual tests.
Why use it?
It helps avoid Elixir-specific mistakes such as overloaded processes, unbounded mailboxes, unsafe configuration, and subtle LiveView or database behaviour.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build and test Elixir applications, manage dependencies with Mix, design supervision trees, diagnose common runtime issues, and select individual tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/loom-elixir
View source ↗ cosmix/loom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmix/loom --skill loom-elixir
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-elixir

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-elixir/github.svg)](https://agentmods.dev/skills/cosmix/loom/loom-elixir)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-elixir"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-elixir/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-elixir

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-elixir"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-elixir.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.05757
Opus 5.5 $0.00006 $0.02303
Sonnet 5.5 $0.00003 $0.01151
Haiku 4.5 $0.00002 $0.00576

Measured 11d ago against content hash 498b1eb84403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom-elixir scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

with {:ok, order} <- Shop.Orders.fetch(order_id) do
skills/loom-elixir/SKILL.md · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Elixir Language Expertise

Overview

Idiomatic, production-grade Elixir on the BEAM: mix, pattern matching, processes and OTP (GenServer, supervisors), Phoenix and Ecto, and ExUnit. Assumes competence; the value is in what is easy to get wrong (atom exhaustion, a single GenServer serializing the hot path, unbounded mailboxes, compile-time config baked into releases, LiveView's double mount, Ecto's absent lazy loading) and in writing tests that loom's mix-test adapter can select one at a time.

Tooling

mix builds, tests and manages dependencies; Hex is the package registry.

Task Command
New project mix new app --sup (with a supervision tree), mix phx.new app (Phoenix)
Add a dependency add it to deps/0 in mix.exs (mix has no add command), then mix deps.get to resolve and write mix.lock
Update one dependency mix deps.update jason
Remove unused lock entries mix deps.unlock --unused; CI check: mix deps.unlock --check-unused
Outdated / retired packages mix hex.outdated, mix hex.audit; mix deps.audit with mix_audit for CVEs
Compile strictly mix compile --warnings-as-errors
Find recompilation chains mix xref graph --label compile-connected
Format mix format (config in .formatter.exs); CI: mix format --check-formatted
Lint mix credo --strict
Types mix dialyzer (dialyxir); recent compilers also emit gradual type-check warnings
Security (Phoenix) mix sobelow

Commit mix.lock. Dependencies with the only: [:dev, :test] and runtime: false options stay out of releases.

The gate (the stage gate runs the mix test line; while working, run mix test path/to/file_test.exs --warnings-as-errors):

mix format --check-formatted
mix compile --warnings-as-errors
mix credo --strict
mix test --warnings-as-errors
mix dialyzer                    # when the project uses dialyxir

Pattern Matching and Control Flow

  • = matches; it binds on success and raises MatchError on failure. Pin an existing value with ^: ^expected = actual.
  • Prefer multiple function clauses with guards over if/cond chains inside one body; clause order is match order.
  • Return tagged tuples ({:ok, value}, {:error, reason}) from functions that can fail; the bang variant (File.read!) raises instead. Offer both when callers need both.
  • with chains the happy path. Without else, the first non-matching value is returned as is. With else, every non-matching shape must have a clause, or with raises WithClauseError.
  • Map patterns match a subset of keys: %{} = value matches any map, so test emptiness with map_size(m) == 0. A struct pattern %User{} also asserts the struct type.
  • Binary patterns parse protocols and file headers without manual slicing.

Read the full file on GitHub · 378 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed 498b1eb84403
  2. 2mo ago First seen · 378 lines · 16 tokens per session scan A c564d5af1cd7

Subscribe to this mod's changes

loom-elixir is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 5,757 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

loom-elixir compared with skills from other repositories

loom-elixir next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-elixircosmix/loomSkill66yesterdayMITA16Claude Code, Codex
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
authoring-java-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A152Claude Code
configuring-airflow-language-sdksastronomer/agentsSkill4646d agoApache-2.0A155Claude Code
authoring-dagsastronomer/agentsSkill4646d agoApache-2.0A93Claude Code
authoring-go-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A165Claude Code