phoenix-code-review
Reviews Phoenix code for controller patterns, context boundaries, routing, and plugs. Use when reviewing Phoenix apps, checking controllers, routers, or context modules.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anderskev/phoenix-code-reviewWhat This Skill Does
The phoenix-code-review skill is a specialized static analysis tool designed to audit Elixir and Phoenix Framework projects. It acts as an expert-level reviewer, ensuring that your codebase adheres to community-standard design patterns, architectural best practices, and security guidelines. By focusing on the unique structure of Phoenix applications—specifically the separation between controllers, contexts, and routing layers—it identifies common pitfalls such as leaking business logic into controllers, improper use of Ecto, or failures in plug composition. This skill does not just look for syntax errors; it evaluates the architectural integrity of your application, ensuring that context boundaries are respected and that your routing remains efficient and secure.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface. Run the following command in your terminal:
clawhub install openclaw/skills/skills/anderskev/phoenix-code-review
Ensure that you have the appropriate permissions to access the source repository and that your OpenClaw agent is initialized in the root directory of your Phoenix project for optimal file discovery.
Use Cases
This skill is indispensable during pull request reviews, legacy code refactoring, or pre-deployment security audits. Use it when:
- You are auditing a controller for bloated logic and wish to delegate business operations to a context.
- You need to verify that your route files are using modern verified routes (~p) rather than deprecated string paths.
- You want to ensure that your custom authentication plugs are properly halting the connection to prevent unauthorized access.
- You are onboarding new team members and need to enforce structural consistency across domain-bounded contexts.
Example Prompts
- "Review the UserRegistrationController in the web/controllers folder and check for any logic that should be moved to the Accounts context."
- "Analyze the current router.ex file. Are we using the latest verified routes, and are the pipelines efficiently grouped for our API and web scopes?"
- "Check the current implementation of our AuthPlug and verify if it correctly handles connection halting and error responses for guest users."
Tips & Limitations
- Context Awareness: The skill is designed to respect the 'Context-Sensitive Rules' table. It will not flag valid patterns like legitimate orchestration or intentional inline Ecto queries.
- Volume: While powerful, this skill works best when pointed at specific modules or directories rather than an entire monolithic codebase simultaneously.
- Verification: Always ensure you run the
review-verification-protocolbefore acting on findings to ensure that identified issues are not false positives arising from unique, project-specific architectural exceptions. The skill is an assistant; human validation remains the final step in your deployment lifecycle.
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-phoenix-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