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
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
pytest-code-review
Reviews pytest test code for async patterns, fixtures, parametrize, and mocking. Use when reviewing test_*.py files, checking async test functions, fixture usage, or mock patterns.
reference-docs
Reference documentation patterns for API and symbol documentation. Use when writing reference docs, API docs, parameter tables, or technical specifications. Triggers on reference docs, API reference, function reference, parameters table, symbol documentation.
serde-code-review
Reviews serde serialization code for derive patterns, enum representations, custom implementations, and common serialization bugs. Use when reviewing Rust code that uses serde, serde_json, toml, or any serde-based serialization format. Covers attribute macros, field renaming, and format-specific pitfalls.