Code style and testing guidelines for Elixir development with DX library patterns
Code style and testing guidelines for Elixir development following DX library patterns for AST recompilation.
Example:
```elixir
def process({:ok, data}), do: transform(data)
def process({:error, reason}), do: handle_error(reason)
def process(nil), do: {:error, :invalid_input}
```
```elixir
def status(:active), do: "User is active"
def status(:inactive), do: "User is inactive"
defd calculate_result data do
# function body
end
```
```
lib/
my_app/
users/
manager.ex
test/
my_app/
users/
manager_test.exs
```
```elixir
defmodule MyApp.Users.ManagerTest do
use ExUnit.Case
# tests here
end
```
This skill focuses on AST recompilation patterns in Elixir. Follow these guidelines when working with:
The emphasis on functional patterns and immutability ensures code reliability when dealing with AST manipulation and recompilation workflows.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/elixir-dx-development-rules/raw