← Back to Skills Marketplace
anderskev

Elixir Code Review

by Kevin Anderson · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ Security Clean
146
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install elixir-code-review
Description
Reviews Elixir code for idiomatic patterns, OTP basics, and documentation. Use when reviewing .ex/.exs files, checking pattern matching, GenServer usage, or...
README (SKILL.md)

Elixir Code Review

Quick Reference

Issue Type Reference
Naming, formatting, module structure references/code-style.md
With clauses, guards, destructuring references/pattern-matching.md
GenServer, Supervisor, Application references/otp-basics.md
@moduledoc, @doc, @spec, doctests references/documentation.md

Review Checklist

Code Style

  • Module names are CamelCase, function names are snake_case
  • Pipe chains start with raw data, not function calls
  • Private functions grouped after public functions
  • No unnecessary parentheses in function calls without arguments

Pattern Matching

  • Functions use pattern matching over conditionals where appropriate
  • With clauses have else handling for error cases
  • Guards used instead of runtime checks where possible
  • Destructuring used in function heads, not body

OTP Basics

  • GenServers use handle_continue for expensive init work
  • Supervisors use appropriate restart strategies
  • No blocking calls in GenServer callbacks
  • Proper use of call vs cast (sync vs async)

Documentation

  • All public functions have @doc and @spec
  • Modules have @moduledoc describing purpose
  • Doctests for pure functions where appropriate
  • No @doc false on genuinely public functions

Security

  • No String.to_atom/1 on user input (use to_existing_atom/1)
  • No Code.eval_string/1 on untrusted input
  • No :erlang.binary_to_term/1 without :safe option

Valid Patterns (Do NOT Flag)

  • Empty function clause for pattern match - def foo(nil), do: nil is valid guard
  • Using |> with single transformation - Readability choice, not wrong
  • @doc false on callback implementations - Callbacks documented at behaviour level
  • Private functions without @spec - @spec optional for internals
  • Using Kernel.apply/3 - Valid for dynamic dispatch with known module/function

Context-Sensitive Rules

Issue Flag ONLY IF
Missing @spec Function is public AND exported
Generic rescue Specific exception types available
Nested case/cond More than 2 levels deep

When to Load References

  • Reviewing module/function naming → code-style.md
  • Reviewing with/case/cond statements → pattern-matching.md
  • Reviewing GenServer/Supervisor code → otp-basics.md
  • Reviewing @doc/@moduledoc → documentation.md

Gates — before reporting

Do these in order for the review batch. Do not publish findings until each step passes.

  1. Protocol loaded — Read review-verification-protocol and apply its checks for each finding category you use (unused, validation, security, performance, etc.). Pass: For every substantive finding, you can name which protocol subsection you satisfied or state N/A with reason (pure style).
  2. Anchored evidencePass: Each finding includes a concrete locator: path:line (or line range), or Module.function/arity plus a short quoted snippet from the file.
  3. Claims backed by artifacts — For assertions like unused code, missing validation, or security risk, Pass: You attach the supporting artifact (e.g. search results, file read scope) or downgrade the item to an explicit question / uncertain with what you did not verify.

Before Submitting Findings

Complete Gates — before reporting (section above) first; the verification protocol is mandatory input to those gates.

Usage Guidance
This skill appears to do exactly what it claims: offline/static Elixir code review using the provided checklists. Before installing, confirm two platform details: (1) whether the agent is allowed to read files outside the reviewed project (the SKILL asks you to read ../review-verification-protocol/SKILL.md), and (2) what controls exist on sending review artifacts (the skill expects to include file:line locators and quoted snippets in findings). If you are uncomfortable with the agent accessing parent directories or embedding code snippets in reports, ask the platform to restrict file-system scope or require explicit user approval before including code excerpts in outputs.
Capability Analysis
Type: OpenClaw Skill Name: elixir-code-review Version: 1.2.1 The skill bundle is a well-structured set of instructions and reference materials for performing Elixir code reviews. It covers idiomatic patterns, OTP best practices, documentation standards, and basic security checks (e.g., avoiding unsafe atom creation or string evaluation). The instructions in SKILL.md establish a rigorous verification workflow ('Gates') for the agent, and there are no indicators of malicious intent, data exfiltration, or harmful prompt injection.
Capability Assessment
Purpose & Capability
Name, description, and included reference docs (code-style, pattern-matching, otp-basics, documentation) match the stated purpose of reviewing .ex/.exs Elixir code; no unrelated binaries, env vars, or external services are requested.
Instruction Scope
SKILL.md contains detailed review/checklist instructions and requires the reviewer to produce anchored findings with file:line locators and code snippets — appropriate for a code-review skill. However, the 'Gates — before reporting' step mandates reading '../review-verification-protocol/SKILL.md' (a path outside this bundle). That could cause the agent to attempt to access files outside the reviewed repo; confirm the platform's file-access constraints and that the referenced protocol file is present and trustworthy.
Install Mechanism
Instruction-only skill with no install spec or code files to execute; lowest install risk.
Credentials
No environment variables, credentials, or config paths are requested. Required artifacts (code snippets, file locators) are proportional to a code-review workflow.
Persistence & Privilege
always is false, the skill is user-invocable and allows normal autonomous invocation. It does not request persistent presence or modify other skills; this is consistent with its purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install elixir-code-review
  3. After installation, invoke the skill by name or use /elixir-code-review
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.1
Changelog for version 1.2.1 - Updated the "Before Submitting Findings" section: replaced simple protocol rule with a detailed "Gates — before reporting" section. - "Gates — before reporting" now specifies a step-by-step checklist to ensure: verification protocol adherence, anchored evidence, and artifact-backed claims before findings are reported. - Clarified that the verification protocol is a required input to the new reporting gates. - Other existing checklist and references remain unchanged.
v1.2.0
Elixir Code Review Skill 1.2.0 – Enhanced guidance and checklist for reviewing Elixir code. - Adds a comprehensive SKILL.md including idiomatic patterns, OTP basics, and documentation standards. - Features a detailed, easy-to-follow review checklist covering style, pattern matching, OTP, documentation, and security. - Includes a table of context-sensitive rules and clearly marked valid patterns that should not be flagged. - Provides quick-reference links to core Elixir code review resources for targeted evaluation. - Requires following a review verification protocol before submitting any findings.
Metadata
Slug elixir-code-review
Version 1.2.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is Elixir Code Review?

Reviews Elixir code for idiomatic patterns, OTP basics, and documentation. Use when reviewing .ex/.exs files, checking pattern matching, GenServer usage, or... It is an AI Agent Skill for Claude Code / OpenClaw, with 146 downloads so far.

How do I install Elixir Code Review?

Run "/install elixir-code-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Elixir Code Review free?

Yes, Elixir Code Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Elixir Code Review support?

Elixir Code Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Elixir Code Review?

It is built and maintained by Kevin Anderson (@anderskev); the current version is v1.2.1.

💬 Comments