/estack:estack-elixirfrom estack
Guides writing idiomatic, version-compatible Elixir with explicit error handling, pattern matching, resource management, and performance-aware collection idioms.
Ships in estack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the project's toolchain and formatter configuration. Use APIs supported by the installed Elixir/OTP versions; avoid blanket dependency replacements on the basis of newer standard-library features.
Use function heads and pattern matching when they clarify shape or distinct cases. Use if for simple boolean branches, case for alternatives, and with for sequential fallible operations. Avoid deeply nested branches, but do not turn every conditional into a new function.
Ensure a with failure identifies the failing operation when error shapes overlap. Preserve established public return contracts; expected fallible operations commonly return {:ok, value} or {:error, reason}. Bang functions are appropriate when failure should terminate the current operation.
Handle expected errors explicitly. Let unexpected process failures reach appropriate supervision; a restarted process does not restore in-memory state or undo external side effects.
Rescue only errors you can meaningfully handle, naming their types. Avoid broad rescues that convert programmer defects into success. Preserve stacktraces with reraise error, __STACKTRACE__ when rethrowing.
Prefer resource-owning APIs. This complete function closes the file even if the callback raises:
defmodule Estack.Examples.FileReader do
def first_line(path) do
File.open(path, [:read], fn file -> IO.read(file, :line) end)
end
end
When using try/after directly, acquire and bind the resource before the try and release exactly that resource in after.
.field for required struct/map keys; use Map.get for optional map keys.%{} matches any map. Check map_size for emptiness.and/or/not in guards. Ordinary predicate functions conventionally end in ?; reserve is_ names for guard-like predicates.Prepend and reverse when constructing lists incrementally. Use Stream when laziness reduces work or memory, and Enum for straightforward bounded operations. Prefer clarity over blanket piping rules. Copy a small sub-binary only when retaining the parent causes a measured memory problem.
Use tap/2 for side effects and then/2 for transformations when they improve clarity and the project's Elixir version supports them.
Check version-matched docs for JSON, Duration, compiler type analysis, and deprecated syntax before using them. Preserve the configured JSON encoder until protocol support and framework integrations have been checked. Do not remove Jason just because a standard-library JSON module is available.
Use the project's formatter settings rather than imposing a new line length. Use a PTY or supported runner option for output buffering problems; do not require the external unbuffer command on every machine.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (singularityhacker/estack) — no native marketplace selected
npx claudepluginhub p/singularityhacker-estack20 skills in this plugin
/estack-architectureDesign Phoenix context boundaries and application interfaces. Use when adding a feature, deciding where modules belong, introducing API/MCP adapters, or working in an Ash or umbrella application./estack-debugInvestigate and fix Elixir/Phoenix failures from symptoms and code evidence. Use for crashes, failed tests, incorrect queries, LiveView events, Oban retries, or production error reports./estack-deployPrepare Phoenix releases, migrations, health checks, and observable rollouts. Use when editing runtime config, deployment pipelines, Docker builds, production topology, or release diagnostics.Other plugins' skills for the same job