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 module documentation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anderskev/elixir-code-reviewWhat This Skill Does
The elixir-code-review skill acts as a specialized static analysis assistant tailored specifically for the Elixir programming language. It leverages idiomatic best practices, functional programming principles, and OTP (Open Telecom Platform) standards to provide actionable feedback on your codebase. By analyzing .ex and .exs files, the skill ensures that your code is not just functional, but also maintainable, performant, and secure. It checks for common pitfalls such as improper pattern matching, blocking operations in GenServers, missing documentation, and potential security vulnerabilities like atom-injection from user input.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/anderskev/elixir-code-review
Once installed, the skill will automatically monitor your workspace files and activate whenever you initiate a review session for Elixir source files.
Use Cases
This skill is ideal for:
- Senior developers enforcing team-wide code standards across large umbrella projects.
- Junior developers seeking feedback on their implementation of complex OTP processes or recursion patterns.
- Teams performing pre-commit security audits on applications that process external user inputs.
- Refactoring sessions where you need to transition from imperative-style
casestatements to idiomaticwithclauses or function-head pattern matching.
Example Prompts
- "Analyze this GenServer implementation for potential blocking calls and ensure the handle_continue implementation is efficient."
- "Review the current module for pattern matching improvements; can these nested case statements be refactored into private functions?"
- "Check this entire file for missing @spec tags and ensure all public functions have valid @doc documentation."
Tips & Limitations
To maximize the utility of the elixir-code-review skill, always ensure your project is up-to-date with your current dependency tree. While the skill is excellent at identifying patterns, it is a static analyzer and cannot always predict complex runtime behavior in highly dynamic systems. It is best used as a supplement to dialyzer and standard credo checks. Always run the verification protocol before applying refactors suggested by the agent to ensure logic parity.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anderskev-elixir-code-review": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
fetch-pr-feedback
Fetch review comments from a PR and evaluate with receive-feedback skill
swift-testing-code-review
Reviews Swift Testing code for proper use of
rust-testing-code-review
Reviews Rust test code for unit test patterns, integration test structure, async testing, mocking approaches, and property-based testing. Covers Rust 2024 edition changes including async fn in traits for mocks,
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do