mcpField
S
staff-level-elixir

staff-level-elixir

github.com/pproencaDevelopment21877 installsUpdated 11w ago
Repository

About staff-level-elixir

staff-level-elixir is a coding and review skill for applying experienced Elixir design judgment to OTP, Ecto, Phoenix, and concurrent code. Its decision rules target common wrong defaults rather than basic syntax or standard-library usage.

Key features

  1. 01OTP process and supervision choices
  2. 02Failure signaling and let-it-crash guidance
  3. 03Ecto queries and transaction patterns
  4. 04Phoenix and LiveView design guidance
  5. 05Bounded concurrency and scheduler safety

Use cases

  1. 01Choose whether OTP work needs a process
  2. 02Review Ecto data access and writes
  3. 03Design Phoenix controllers and LiveViews
  4. 04Handle concurrent tasks and untrusted input

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill staff-level-elixir

After installing, type/staff-level-elixirin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
conc-async-stream-bounded.md
conc-atom-exhaustion.md
conc-task-supervised-nolink.md
data-functions-over-macros.md
data-iolists-over-concat.md
data-pattern-match-over-conditionals.md
data-pipe-idioms.md
data-stream-vs-enum.md
ecto-atomic-counters.md
ecto-db-constraints-over-validation.md
ecto-multi-for-transactions.md
ecto-preload-n-plus-one.md
ecto-stream-large-sets.md
err-let-it-crash.md
err-tagged-tuples-vs-raise.md
err-with-happy-path.md
otp-ets-for-shared-reads.md
otp-genserver-not-default.md
otp-handle-continue-init.md
otp-supervise-over-manual-restart.md
phx-context-boundary.md
phx-liveview-streams.md
phx-mount-twice-connected.md

Details

From the project README

Staff-Level Elixir

Distilled staff-level judgment for Elixir on the BEAM — the design decisions Elixir, OTP, Ecto, and Phoenix force, and how an experienced engineer settles them, written so an agent applies them while writing or reviewing code. Each rule corrects a specific wrong default; there is no rule for things the model already gets right (syntax, basic idioms, the standard library).

When to Apply

  • Writing or reviewing OTP code — deciding whether something needs a process, and which (GenServer, Task, Agent, ETS, supervisor)
  • Handling failure — choosing between tagged tuples, exceptions, with, and letting a process crash
  • Writing Ecto — queries, associations, transactions, changesets, large result sets
  • Building Phoenix controllers and LiveViews — context boundaries, socket state, mount lifecycle
  • Running concurrent work — parallel fan-out, fire-and-forget tasks, handling untrusted input
  • Any request to make Elixir code more idiomatic, more fault-tolerant, or "staff-level"

Rule Categories

#CategoryPrefixCovers
1Process & OTP Designotp-Whether a problem needs a process, and which one; supervision
2Error Handling & Let-It-Crasherr-Signalling failure; when to raise, rescue, or crash
3Idioms & Design Choicesdata-Pattern matching, Stream/Enum, iolists, pipes, macros
4Concurrency & the Schedulerconc-Bounded/isolated parallelism; atom-table safety
5Ecto & Data Accessecto-N+1, atomic writes, constraint races, large sets
6Phoenix & LiveViewphx-Context boundaries, socket memory, mount lifecycle

Quick Reference

1. Process & OTP Design
2. Error Handling & Let-It-Crash
3. Idioms & Design Choices
4. Concurrency & the Scheduler
5. Ecto & Data Access
6. Phoenix & LiveView

How to Use

Read a reference file when its decision comes up. Each rule names the wrong default it corrects, then shows the canonical way (with an incorrect/correct contrast only where the wrong way is a real trap).

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and source references

Comments

Markdown supported