Elixir Antipatterns
Identifies common Elixir coding mistakes (antipatterns) to improve code quality and prevent future issues.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add elixir-antipatterns npx -- -y @trustedskills/elixir-antipatterns
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"elixir-antipatterns": {
"command": "npx",
"args": [
"-y",
"@trustedskills/elixir-antipatterns"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to identify, analyze, and refactor code containing common Elixir programming antipatterns. It helps maintain code quality by detecting inefficient structures like excessive use of Enum functions or improper state management before they cause performance issues.
When to use it
- Reviewing legacy Elixir codebases to modernize outdated patterns.
- Validating new features during the development cycle to prevent technical debt.
- Auditing team pull requests for adherence to best practices and clean code principles.
- Preparing production systems for scaling by eliminating known performance bottlenecks.
Key capabilities
- Detects inefficient use of
Enummodule functions (e.g., chaining multiple passes). - Identifies improper usage of
Task.async!leading to blocking behavior. - Flags excessive recursion that could cause stack overflows.
- Recognizes misuse of
Process.registered?for state tracking instead of proper supervision trees.
Example prompts
- "Scan this module and list all instances where
Enum.mapis used unnecessarily." - "Refactor the following function to remove the antipattern of blocking on async tasks."
- "Identify any code patterns in this file that violate Elixir's 'Eager is better than lazy' principle."
Tips & gotchas
Ensure your codebase includes standard library modules, as the skill relies on recognizing specific idiomatic structures. While effective for common issues, it may not catch every niche architectural flaw unique to complex domain logic.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.