Code Reviewer
Skill by lxgicstudios
Why use this skill?
Improve code quality with the AI Code Reviewer. Automatically scan your staged git changes for bugs, security issues, and anti-patterns before you push.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/code-reviewerWhat This Skill Does
The Code Reviewer skill by LXGIC Studios acts as an automated, intelligent gatekeeper for your git workflow. By integrating directly with your local environment via npx, it inspects your staged changes to provide actionable feedback before you push code to remote repositories. It scans for a variety of issues, including syntax-related bugs, complex logic errors, common anti-patterns, and potential security vulnerabilities. The output is delivered in a color-coded format that distinguishes between critical security flaws, performance warnings, general improvement suggestions, and validation of good practices. This allows developers to catch mistakes that are easily missed during manual self-review, ensuring that only high-quality code reaches the codebase.
Installation
To integrate the Code Reviewer into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/lxgicstudios/code-reviewer
Once installed, you can trigger a review session directly from your command line by navigating to your project directory, staging your changes with git add -A, and executing npx ai-code-review.
Use Cases
This skill is designed for scenarios where high code quality is paramount but manual review is unavailable. It is perfect for solo developers who lack a peer-review cycle, teams looking to reduce the burden on senior engineers during PRs, and developers working under tight deadlines who need a quick sanity check. Use it before opening a Pull Request to catch trivial errors or security oversights that might otherwise lead to a rejected commit or a vulnerability in production.
Example Prompts
- "Analyze my staged git changes and provide a summary of potential bugs found by the Code Reviewer."
- "Review the current diff and suggest optimizations for the logic I just added to the authentication module."
- "Run a security scan on my current staged changes and list any critical vulnerabilities identified by the lxgicstudios tool."
Tips & Limitations
The Code Reviewer is an excellent assistant, but it should not replace human architectural review. While it excels at catching syntactic bugs, anti-patterns, and clear security risks, it may occasionally flag false positives in complex or highly custom codebases. Always treat the output as expert advice rather than absolute truth. To get the best results, ensure your code is cleanly staged and formatted before running the analysis. Do not use this tool as a replacement for comprehensive unit tests or integration testing suites.
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-lxgicstudios-code-reviewer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
codemod-gen
Generate codemods for large-scale code changes. Use when refactoring patterns across many files.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.