code-quality

Detect duplication, ABC complexity, and unused private functions in Elixir projects.

149|15|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/j-morgan6/elixir-phoenix-guide --skill code-quality-j-morgan6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/j-morgan6/elixir-phoenix-guide/tree/main/skills/code-quality
Command: npx skills add https://github.com/j-morgan6/elixir-phoenix-guide --skill code-quality-j-morgan6

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill detects code quality issues in Elixir projects, automating detection of duplication, excessive complexity, and unused functions to improve maintainability and readability.

Core Features & Use Cases

  • Automated detection of code quality issues across Elixir and Phoenix codebases.
  • Comprehensive checks include duplication, ABC complexity, and unused private functions, with guidance for remediation.
  • On-demand and automatic runs via file-watching hooks and the provided run_analysis.sh script to baseline before refactors.

Quick Start

Run a full project analysis to detect duplications, complexity, and dead code and start refactoring accordingly.

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I detect code complexity and duplication in an Elixir Phoenix project?

To detect code quality issues in an Elixir Phoenix project, you can run an automated analysis across your .ex and .heex files. This process identifies ABC complexity, code duplication, and unused private functions to improve maintainability.

What is ABC complexity in Elixir and how is it measured?

ABC complexity in Elixir is a software metric measuring the size of code by counting Assignments, Branches, and Conditions. Automated quality checks evaluate this metric across modules to identify functions that are excessively complex and need refactoring.

Can I automatically find unused private functions in Phoenix templates?

Yes, you can automatically find unused private functions in Phoenix templates. The analysis scans .ex and .heex files across modules and templates to detect dead code and provides actionable remediation guidance for removal.

Does this code quality analysis work with .heex files in Phoenix?

Yes, this code quality analysis works directly with .heex files in Phoenix. It comprehensively scans both .ex module files and .heex template files to detect duplication, complexity, and unused functions across the entire codebase.

How do I baseline Elixir code quality before starting a refactoring?

To baseline Elixir code quality before a refactor, run the provided run_analysis.sh script for a full project analysis. This identifies existing duplications, complexity, and dead code, establishing a reference point for your refactoring efforts.