v2.0.0 — Automation: Code Quality Detection
What's New
Major version bump introducing automated code quality analysis that goes beyond skill/hook guidance.
New: Code Quality Detection System
PostToolUse hook runs automatically after every file write:
- Code Duplication Detection — AST-based analysis finds functions duplicated across modules (>70% trigram similarity)
- ABC Complexity Analysis — flags functions exceeding complexity threshold of 30 (Assignments + Branches + Conditions)
- Unused Private Function Detection — finds
defpfunctions never called within their module - Template Duplication Detection — catches HEEx templates sharing >40% identical markup
New: code-quality Skill (8th skill)
7 non-negotiable rules covering duplication extraction, complexity limits, dead code removal, and refactoring guidance.
New: Analysis Scripts
code_quality.exs— AST-based Elixir analysis engine (single file or full project scan)detect_template_duplication.sh— HEEx template comparisonrun_analysis.sh— Full project analysis runner for CI/CD integration
On-Demand Analysis
# Scan entire project
bash ~/.claude/scripts/elixir-phoenix-guide/run_analysis.sh
# Single file
elixir ~/.claude/scripts/elixir-phoenix-guide/code_quality.exs all lib/my_module.ex
# Full project scan
elixir ~/.claude/scripts/elixir-phoenix-guide/code_quality.exs scan lib/Component Counts
| Component | Count |
|---|---|
| Skills | 8 |
| Hooks | 14 (13 PreToolUse + 1 PostToolUse) |
| Analysis Scripts | 3 |
| Agent Docs | 4 |
Updating
/plugin
# Select "Marketplaces" → "elixir-phoenix-guide" → "Update"Full Changelog: v1.4.0...v2.0.0