elixir
Skill15 starsChanged 2 months agoMITView on GitHub
Expert Elixir programming assistance covering pattern matching, GenServer, OTP supervisors, and Phoenix channels. Use when building highly concurrent, distributed, fault-tolerant web and backend systems.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- AgentBull/ankoletheir own version, first seen Nov 29, 2026
- AgentBull/open-ankoletheir own version, first seen Nov 22, 2026
- bsene/skillstheir own version, first seen Oct 25, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Mindrally/skills★ 275same name
- AgentBull/ankole★ 231same name
- AgentBull/open-ankole★ 231same name
- bsene/skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 136
Use Ecto Changesets for Data Validation: Validate incoming parameters and domain constraints using composable changesets.
- Distinctive: line 141
Use GenServers as simple data storage: Storing large volumes of data in GenServer state creates performance bottlenecks.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Elixir
A dynamic, functional language designed for building scalable and maintainable applications. Running on the Erlang VM (BEAM).
When to Use
- High-Concurrency Distributed Systems: Running millions of simultaneous processes on the battle-tested BEAM (Erlang VM).
- Real-Time Web Applications (Phoenix LiveView): Building dynamic, interactive web interfaces with zero client-side JavaScript.
- Fault-Tolerant Microservices & Telecommunications: Applications that self-heal from failures using supervision trees and "let it crash" philosophy.
- IoT & Embedded Systems (Nerves): Building robust embedded firmware for IoT gateways and industrial controllers.
Quick Start
IO.puts "Hello, World!"
list = [1, 2, 3]
doubled = Enum.map(list, fn x -> x * 2 end)
defmodule Math do
def sum(a, b), do: a + b
endCore Concepts
Lightweight Actor Processes & Message Passing
Processes on the BEAM are isolated, consume only ~2KB of memory, and communicate exclusively via asynchronous message passing:
# Spawn an isolated actor process
pid = spawn(fn ->
receive do
{:ping, sender_pid} ->
send(sender_pid, :pong)
end
end)
# Send message and await response
send(pid, {:ping, self()})
receive do
:pong -> IO.puts("Received pong response!")
after
1000 -> IO.puts("Timeout waiting for response")
endPattern Matching & Pipe Operator (|>)
Pipelines data transformations through readable function compositions:
def process_order(payload) do
payload
|> Jason.decode!()
|> validate_order()
|> calculate_tax()
|> persist_to_database()
endSupervision Trees & Fault Tolerance
Supervisors monitor worker processes and restart them automatically when unhandled exceptions occur:
defmodule CoreApp.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
{CoreApp.DatabaseWorker, []},
{CoreApp.EventConsumer, []}
]
Supervisor.init(children, strategy: :one_for_one)
end
endCommon Patterns
State Management with GenServer
Problem: Maintaining state and handling concurrent messages safely without shared memory locks.
Solution: Implement a supervised GenServer actor:
defmodule CounterServer do
use GenServer
# Client API
def start_link(default \\ 0) do
GenServer.start_link(__MODULE__, default, name: __MODULE__)
end
def increment do
GenServer.cast(__MODULE__, :inc)
end
def get_count do
GenServer.call(__MODULE__, :get)
end
# Server Callbacks
@impl true
def init(count), do: {:ok, count}
@impl true
def handle_cast(:inc, state), do: {:noreply, state + 1}
@impl true
def handle_call(:get, _from, state), do: {:reply, state, state}
endBest Practices
Do:
- Embrace Phoenix LiveView: Build rich real-time SPAs using server-rendered LiveView; eliminate client API maintenance.
- Let It Crash: Do not defensively catch every exception; let crashed processes be cleanly restarted by supervisors.
- Use Ecto Changesets for Data Validation: Validate incoming parameters and domain constraints using composable changesets.
- Structure Concurrency with GenServer & Task: Use standard OTP behaviors (
GenServer,Task,Agent) rather than rawspawn.
Don't:
- Use GenServers as simple data storage: Storing large volumes of data in GenServer state creates performance bottlenecks; use ETS.
- Perform blocking work inside GenServer
handle_call: Delegate slow tasks to separateTask.asyncworkers. - Mutate state across processes: State is strictly immutable; communicate via messages and return new state.
Troubleshooting
| Error | Cause | Solution |
MatchError: no match of right hand side value | Pattern match failed on expected tuple (e.g. {:ok, val} got {:error, reason}). | Add fallback clause or use with statement for multi-step pattern matching. |
GenServer.call timeout after 5000ms | Target process deadlocked, busy, or crashed during call. | Inspect GenServer callback work and increase timeout parameter if intentional. |
UndefinedFunctionError: function ... is undefined | Module not compiled, typo in function name, or wrong arity. | Run mix compile and check module exports with module_info(:exports). |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

