From elixir-phoenix
Analyzes Elixir/Phoenix technical debt: duplicates, refactoring opportunities, Credo issues. Useful for code quality reviews, cleanup, or improvements.
How this skill is triggered — by the user, by Claude, or both
Slash command
/elixir-phoenix:techdebtThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Find and eliminate duplicate code patterns, anti-patterns, and refactoring opportunities in Elixir/Phoenix projects.
Find and eliminate duplicate code patterns, anti-patterns, and refactoring opportunities in Elixir/Phoenix projects.
Run mix credo --strict.
Focus on:
Use Grep to search for repeated Repo calls (Repo.get!, Repo.get, Repo.one) in lib/**/*.ex.
Use Grep to find duplicate query patterns (from.*in.*where) in lib/**/*.ex.
Use Grep with output_mode: "count" to count def changeset occurrences in lib/**/*.ex.
Use Grep to find repeated validations (validate_required, validate_format) in lib/**/*.ex.
Use Grep to find similar action patterns (def create, def update, def delete) in lib/*_web/**/*.ex.
| Pattern | Symptom | Solution |
|---|---|---|
| Repeated queries | Same Repo.get in multiple contexts | Create shared query module |
| Duplicate validations | Same validate_* calls | Extract to shared changeset |
| Similar controllers | Copy-pasted CRUD actions | Use Phoenix generators consistently |
| Repeated transforms | Same Enum.map patterns | Extract to domain module |
For each duplication found, report:
Run /phx:techdebt to analyze the codebase and generate a prioritized report of technical debt with specific remediation steps.
npx claudepluginhub oliver-kriska/claude-elixir-phoenix --plugin elixir-phoenixExplains and fixes common Credo issues in Elixir code including module documentation, function complexity, pipe chains, and unused variables for consistency, design, readability, and refactoring.
Detects code duplication (>70% similarity), ABC complexity (>30), unused private functions, and duplicated HEEx templates in Elixir projects. Invoke for analysis or refactoring.
Reviews changed Elixir/Phoenix code after linter verification; detects LiveView/Oban/tests, loads specialized skills, supports parallel subagents.