elixir-antipatterns

Identify and fix Elixir/Phoenix anti-patterns in codebases during reviews.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/wildbitca/ai-resources --skill elixir-antipatterns-wildbitca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elixir-antipatterns
Source: https://github.com/wildbitca/ai-resources/tree/main/skills/gpm-community-elixir-antipatterns
Command: npx skills add https://github.com/wildbitca/ai-resources --skill elixir-antipatterns-wildbitca

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Identify and fix common Elixir/Phoenix anti-patterns to improve reliability, readability, and maintainability.

Core Features & Use Cases

  • 8 core anti-patterns including error handling, context separation, N+1 queries, and testing best practices.
  • Extended reference with 40+ patterns for deep-dive guidance.
  • Practical code examples and reviewer-friendly guidance for PRs and refactors.

Quick Start

Load this skill during Elixir/Phoenix code reviews to identify and remediate anti-patterns in modules, contexts, and queries.

Frequently Asked Questions about elixir-antipatterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify Elixir anti-patterns during a code review?

Yes, you can detect Phoenix LiveView anti-patterns using this skill. It evaluates LiveView components alongside Ecto queries and Elixir contexts to enforce standardized rendering, query optimization, and error handling practices during refactoring sessions.

What is the best way to fix N+1 queries in Ecto?

Fix Ecto N+1 queries by applying this skill's query optimization patterns during code reviews. It identifies inefficient Ecto queries and provides curated examples to standardize data fetching practices and improve application performance.

How do I enforce context separation in Phoenix applications?

Enforce Phoenix context separation by applying this skill's standardized boundary patterns. It identifies context leakage and provides refactoring guidance to ensure modules expose clean APIs without exposing internal data structures or bypassing boundaries.

Does this Elixir anti-pattern reference cover testing best practices?

Yes, this Elixir anti-pattern reference covers testing best practices. It includes 8 core anti-patterns focused on test standardization, plus an extended reference of 40+ patterns for deep-dive guidance on writing reliable Elixir tests.

When should I not use standardized error handling in Elixir?

Standardized error handling in Elixir should not be bypassed when modules cross context boundaries or interact with external APIs. This skill identifies anti-patterns where inconsistent error tuples leak across boundaries and provides remediation patterns to enforce reliability.