code-quality

Installation
SKILL.md

Code Quality

RULES — Follow these with no exceptions

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

End-to-End Workflow

Installs
2
First Seen
2 days ago
code-quality — igmarin/elixir-phoenix-skills