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★ 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).
- Scope gate: You have an explicit list of
.ex/.exs/.heexpaths under review (from Step 1 or user path). Pass: List printed or "No Elixir files in scope" — then stop with no Issues. - 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. - Protocol gate: The
review-verification-protocolskill (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). - 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@specsuccess 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):
- Load applicable skills
- Review core Elixir/OTP quality issues first (see Core Elixir & OTP Checks below)
- Review Phoenix patterns (if detected)
- Review LiveView patterns (if detected)
- Review detected technology areas
- Consolidate findings
Parallel (when subagents are available and --parallel is set):
- Detect all technologies upfront
- Dispatch one subagent per technology area
- Each subagent loads its skill and reviews its domain
- Wait for all subagents
- Consolidate findings
Core
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic