code-quality
Installation
SKILL.md
Code Quality
RULES — Follow these with no exceptions
- Duplicated functions must be extracted — when 2+ modules share >70% identical function implementations, create a shared module
- Functions must stay below ABC complexity 30 — break complex functions into smaller helpers with single responsibilities
- Unused private functions must be removed — dead code identified after refactoring must be cleaned up
- Duplicated templates must become components — when 2+ HEEx files share >40% identical markup, extract to a function component
- Address duplication before complexity — extracting shared code first reduces overall complexity
- Prefer composition over inheritance — extract shared functions into modules imported/used where needed
- Run
mix credo --strictbefore any PR — never merge code with Credo violations - Run
mix sobelowfor security — check for security issues after quality checks