Elixir
Elixir functional programming with OTP, GenServer, and Phoenix. Use for .ex files.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill elixirAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.5 KB, 377 tokens by cl100k_base, as published. Nobody here has run it
Elixir
A dynamic, functional language designed for building scalable and maintainable applications. Running on the Erlang VM (BEAM).
When to Use
- High-concurrency applications
- Real-time systems (chat, gaming)
- Distributed systems that need fault tolerance
- Web development with Phoenix
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
end
Core Concepts
Processes
Elixir code runs inside lightweight processes (not OS threads) that are isolated and exchange information via messages.
pid = spawn(fn ->
receive do
{:hello, msg} -> IO.puts "Got hello: #{msg}"
end
end)
send(pid, {:hello, "world"})
Pattern Matching
Used assignment and function dispatch.
{a, b, c} = {:hello, "world", 42}
# a is :hello, b is "world", c is 42
OTP (Open Telecom Platform)
A set of libraries and design principles for building fault-tolerant systems (Supervisors, GenServers).
Best Practices
Do:
- Use the pipe operator
|> - Leverage pattern matching
- Design with "Let it crash" philosophy (Supervisors restart processes)
Don't:
- Use
if/elseexcessively (use pattern matching orcase) - Mutate state (data is immutable)
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.