super-elixir
Skill0 starsChanged 19 days agoMITView on GitHub
Use for any Elixir work: .ex, .exs and .heex files, mix.exs, Phoenix, Ecto, OTP, GenServer, Supervisor, ExUnit and mix tasks. One skill with specialities: write idiomatic code, design OTP, Ecto and Phoenix apps, work test-first, write docs, and review code, security, performance and anti-patterns. It detects the job, loads only the guide it needs, and can run a full multi-pass review in one invocation.
In this repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/comments.mdcCursor rule
- .cursor/rules/commit-messages.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/manage-stack.mdcCursor rule
- .cursor/rules/no-worktrees.mdcCursor rule
- manage-stackSkill
- convert-as-skillSkill
- create-agentSkill
- create-agents-mdSkill
- create-commandSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- retrospectiveSkill
- super-architectureSkill
- super-cachingSkill
- super-nodejsSkill
- super-protobufSkill
- super-tech-blueprintSkill
- atomic-semantic-commitSkill
- code-reviewSkill
- create-bruno-collectionSkill
- create-documentationSkill
- create-ticketsSkill
- ready-specSkill
- write-adrSkill
- write-changelogSkill
- write-mr-descriptionSkill
- write-planSkill
- write-postmortemSkill
- write-runbookSkill
- noslopSkill
- output-saversSkill
- safe-refactorSkill
- tddSkill
- verifySkill
- get-movingSkill
- later-listSkill
- standupSkill
- challenge-meSkill
- codebase-learnerSkill
- researchSkill
- second-opinionSkill
- traceSkill
- color-kitSkill
- design-system-kitSkill
- diagramSkill
- infographicSkill
- product-polish-workflowSkill
- prototype-wireframeSkill
- ui-ux-kitSkill
- evidenceSkill
- find-skillsSkill
- handoffSkill
- rumblingSkill
- use-levistackSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Do this first and do not announce it.
- Distinctive: line 63
Use this for "review everything", "full review" or any request naming more than one concern.
- Very specific: line 65
Facts: Run node scripts/elixir-scan.mjs detect <dir>.
- Very specific: line 66
Candidates: Run node scripts/elixir-scan.mjs scan <dir>.
- Distinctive: line 88
Every guide keeps its own full list.
- Very specific: line 91
Supervise every long-lived process: No bare start_link in production.
- Very specific: line 94
Guards use
and,or,not: Never &&, ||, ! - Distinctive: line 96
Messages are copied: Keep them small.
- Distinctive: line 158
No finding was reported that failed the verification protocol.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Super Elixir
One skill, many specialities. Call it once. It picks the speciality from the job, loads only that guide, and for reviews it can run several passes and return one report.
The guides are kept whole. Each is a full, separate skill that was merged in; the router decides which to open.
Step 0: detect the job
Do this first and do not announce it. Signals and precedence are in references/auto-detect.md. For project facts (Elixir version, Phoenix, Ecto, Oban, which linters exist), run node scripts/elixir-scan.mjs detect <dir>.
| If the user is doing this | Speciality | Load |
| Writing or changing Elixir, "is this idiomatic", moving from OOP habits | thinking, idioms | thinking, idioms |
case, with, guards, function heads, destructuring | pattern-matching | pattern-matching |
| GenServer, Supervisor, Agent, Task, Registry, "should this be a process" | thinking first, then otp | thinking, otp |
| Schemas, changesets, queries, transactions, migrations | ecto | ecto |
| New Phoenix project, umbrella, Bun assets, devenv, end-to-end tests | phoenix | phoenix |
| LiveView pages, components, streams | the separate phoenix-liveview skill | phoenix-liveview |
| Designing a new app, supervision trees, Ash, ADRs, a docs package | architect | architect |
| Implementing a feature or fixing a bug | tdd | tdd; language-agnostic loop: tdd |
@moduledoc, @doc, @typedoc, doctests, cross-references | docs | docs |
| "Review this code" (style, patterns, OTP basics, docs) | code-review | code-review |
"Security review", user input, secrets, String.to_atom, Code.eval_string | security-review | security-review |
| "Slow", throughput, mailbox growth, memory, N+1 | performance-review | performance-review |
| Known bad patterns, refactoring toward better ones | antipatterns | antipatterns |
| "Review everything", "audit this repo", "full review" | the review pipeline below | several |
| "Act as an Elixir expert", broad checklists, BEAM background | foundations, expert | foundations, BEAM expert, expert |
Order of precedence: a safety finding, then the user's explicit words, then the detected job. A security finding, a data-loss risk or an irreversible action is always stated in full sentences.
Review pipeline: several passes, one report
Use this for "review everything", "full review" or any request naming more than one concern. A single named concern runs only its own pass.
- Facts. Run
node scripts/elixir-scan.mjs detect <dir>. It tells you which passes apply (no Ecto, no GenServers, no Phoenix) and which gates the project really has. - Candidates. Run
node scripts/elixir-scan.mjs scan <dir>. The output is a list of places to look, not findings. Never report a candidate without reading the code around it. - Passes, in this order. Open each guide and its references, apply its checklist, its Valid Patterns (Do NOT Flag) and its Context-Sensitive Rules.
- code-review: style, pattern matching, OTP basics, docs.
- security-review: injection, atoms, secrets, process exposure.
- performance-review: GenServer bottlenecks, memory, concurrency, database.
- antipatterns: the known-bad catalog, only for what the earlier passes did not already cover.
- Verify every finding with references/verification-protocol.md. A finding that fails a gate is dropped or downgraded to a question.
- Report once. Fill templates/review-report.md. De-duplicate across passes, order by severity, give each finding a
path:line, the evidence, and a fix.
Review only. Do not edit code during a review pass unless the user asked for fixes.
Build pipeline: one feature, in order
- Think. thinking: does this need a process at all? What is the data, what are the functions?
- Shape. New app or large feature: architect. Otherwise skip.
- Test first. tdd: a failing test, then the smallest change.
- Write. idioms, pattern-matching, plus otp or ecto as the code needs.
- Document. docs for public modules and functions.
- Gate.
mix format,mix compile --warnings-as-errors,mix test, then only the linters inmix.exs(Credo, Sobelow, Dialyzer). Use templates/feature-checklist.md to track it.
The short list of iron laws
Every guide keeps its own full list. These recur across the sources and rarely conflict:
- No process without a runtime reason. State, concurrency or fault isolation. Otherwise plain functions.
- Supervise every long-lived process. No bare
start_linkin production. - Tagged tuples for expected failure. Raise for bugs.
rescueonly around external code. - In
with, every failable step uses<-. A=swallows the error. - Guards use
and,or,not. Never&&,||,!. - No atoms from external input.
String.to_atom/1on user data leaks the atom table. - Messages are copied. Keep them small.
- Changesets for external data.
cast/4for input,change/2for internal changes. - No code without a failing test first.
- Verify before you report. Evidence, not impression.
Where two guides disagree, the stricter rule wins, and the project's own AGENTS.md and rules (see rules/elixir/) win over both.
Overlaps: which copy to read
These topics exist in more than one guide. All are kept. Pick by the job.
| Topic | To write code | To review code |
| Pattern matching | pattern-matching (full), idioms/pattern-matching (short) | code-review/pattern-matching |
| OTP | otp (full), idioms/otp-patterns (short) | code-review/otp-basics |
| Anti-patterns | antipatterns, extended catalog | idioms/anti-patterns |
| Documentation | docs | code-review/documentation |
| Errors | idioms/error-handling | the anti-patterns guides |
Layout
| Folder | Holds |
| specialities/ | One folder per speciality. GUIDE.md is the entry point; references/ and assets/ hold the depth |
| references/ | auto-detect.md, verification-protocol.md |
| templates/ | review-report.md, feature-checklist.md |
| scripts/ | elixir-scan.mjs: project detection and risk-pattern candidates |
Old skill names
Text inside the guides may name the skill it came from. Resolve it here.
| Old name | Speciality |
elixir, elixir-pro | foundations |
elixir-thinking | thinking |
elixir-idioms | idioms |
elixir-pattern-matching | pattern-matching |
elixir-antipatterns | antipatterns |
elixir-otp-patterns | otp |
elixir-ecto-patterns | ecto |
elixir-phoenix | phoenix |
elixir-architect | architect |
elixir-tdd | tdd |
elixir-writing-docs | docs |
elixir-code-review | code-review |
elixir-security-review | security-review |
elixir-performance-review | performance-review |
elixir-expert | expert |
Related skills
tdd: drive a change test-first.safe-refactor: clean up Elixir without changing behavior.super-protobuf: the service exposes protobuf, gRPC or Connect.verify: prove tests and gates pass before you claim done.handoff: pause a long review or change.
Done when
- The right speciality (or the pipeline) ran, and only the needed guides were opened.
- Code compiles and tests pass, or the review report is complete with evidence for every finding.
- No finding was reported that failed the verification protocol.
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.

