Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

review-elixir

БесплатноБез исполняемых скриптовНе проверен

Reviews Elixir and Phoenix codebases with Mix linter gates, technology detection, and parallel or sequential sub-reviews. Use when reviewing .ex, .exs, or…

existential-birdsот existential-birds★ 92 звезды на GitHub

Об этом скилле

Elixir Code Review

Arguments

  • --parallel: If the agent supports subagents, dispatch one specialized subagent per technology area (otherwise reviews run sequentially with identical output)
  • Path: Target directory (default: current working directory)

Hard gates

Complete in order before writing Issues in the output (empty scope is allowed; fabricated findings are not).

  1. Scope gate: You have an explicit list of .ex/.exs/.heex paths under review (from Step 1 or user path). Pass: List printed or "No Elixir files in scope" — then stop with no Issues.
  2. Linter gate (style): Step 2 commands ran for this Mix project; skipped tools are noted in one line (e.g. no .credo.exs). Pass: You do not report a style issue that already passes the project's formatter/linter for that line.
  3. Protocol gate: The review-verification-protocol skill (review-verification-protocol) is loaded before Step 6. Pass: At least one reported finding was checked against that checklist (state which item in the Review Summary or first Critical/Major note).
  4. Evidence gate (Critical/Major): For each Critical or Major item, you re-read the file at FILE:LINE (full surrounding context, not only the diff hunk). Pass: The Issue description matches observable code at that location.

Step 1: Identify Changed Files

git diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '\.ex$|\.exs$|\.heex$'

Step 2: Verify Linter/Formatter Status

CRITICAL: Run project linters and compiler checks BEFORE flagging any style or type issues.

# Check formatting
mix format --check-formatted

# Check compiler & Elixir 1.17+ gradual type warnings
mix compile --warnings-as-errors

# Check Credo if present
if [ -f ".credo.exs" ] || grep -q ":credo" mix.exs 2>/dev/null; then
    mix credo --strict
fi

# Check Dialyzer if configured
if grep -q ":dialyxir" mix.exs 2>/dev/null; then
    mix dialyzer --format short
fi

Rules:

  • If a linter or compiler check passes for a specific rule, DO NOT flag that issue manually
  • Linter configuration is authoritative for style rules
  • Note that Elixir 1.17–1.18 emits gradual set-theoretic type warnings at compile time (patterns/guards/maps/structs and function calls/inference) without consuming @spec, while Dialyzer checks @spec success typing
  • Only flag issues that linters cannot detect (semantic issues, OTP/concurrency bugs, architectural problems)

Step 3: Detect Technologies

# Detect Phoenix
grep -r "use Phoenix\|Phoenix.Router\|Phoenix.Controller" --include="*.ex" -l | head -3

# Detect Phoenix 1.8+ Scopes
grep -r "Scope" --include="*.ex" -l | head -3

# Detect LiveView
grep -r "use Phoenix.LiveView\|Phoenix.LiveComponent\|~H" --include="*.ex" -l | head -3

# Detect Req HTTP client
grep -r "Req\." --include="*.ex" -l | head -3

# Detect Oban
grep -r "use Oban.Worker\|Oban.insert" --include="*.ex" -l | head -3

# Check for test files
git diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '_test\.exs$'

Step 4: Load Verification Protocol

Load the review-verification-protocol skill (review-verification-protocol) and keep its checklist in mind throughout the review, alongside the Elixir-specific verification nuances below.

Step 5: Load Skills

Load each applicable skill below (read its SKILL.md and apply its rules). If a sibling skill is unavailable in a single-skill install, apply the core Elixir checks in this skill directly.

Conditionally load based on detection:

Condition Skill
Phoenix detected phoenix-code-review (phoenix-code-review)
LiveView detected liveview-code-review (liveview-code-review)
Test files changed exunit-code-review (exunit-code-review)
Performance focus requested elixir-performance-review (elixir-performance-review)
Security focus requested elixir-security-review (elixir-security-review)

Step 6: Review

If the agent supports subagents (and --parallel is set), dispatch one subagent per technology area in parallel; otherwise run sequentially. Both paths produce identical output.

Sequential (default):

  1. Load applicable skills
  2. Review core Elixir/OTP quality issues first (see Core Elixir & OTP Checks below)
  3. Review Phoenix patterns (if detected)
  4. Review LiveView patterns (if detected)
  5. Review detected technology areas
  6. Consolidate findings

Parallel (when subagents are available and --parallel is set):

  1. Detect all technologies upfront
  2. Dispatch one subagent per technology area
  3. Each subagent loads its skill and reviews its domain
  4. Wait for all subagents
  5. Consolidate findings

Core

Полный SKILL.md на GitHub

Установить review-elixir в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл review-elixir?

Reviews Elixir and Phoenix codebases with Mix linter gates, technology detection, and parallel or sequential sub-reviews. Use when reviewing .ex, .exs, or .heex changes.

Как установить скилл review-elixir?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл review-elixir запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить review-elixir с