code-reviewer
Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alirezarezvani/code-reviewer-2What This Skill Does
The code-reviewer skill is a robust, automated framework integrated into OpenClaw designed to streamline the software development lifecycle. By utilizing three core sub-tools—the PR Analyzer, the Code Quality Checker, and the Review Report Generator—it acts as an expert pair programmer. It evaluates code repositories across multiple languages, including TypeScript, JavaScript, Python, Go, Swift, and Kotlin. The tool automates the tedious aspects of code reviews by identifying security vulnerabilities, enforcing clean code architecture (SOLID principles), and quantifying technical debt through cyclomatic complexity and code smell detection. It transforms raw diff data into actionable, high-level reports that prioritize review efforts based on critical risk assessments.
Installation
To integrate this skill into your environment, run the following command within your terminal or OpenClaw interface:
clawhub install openclaw/skills/skills/alirezarezvani/code-reviewer-2
Ensure your environment has the necessary Python runtime dependencies configured to support the execution scripts included in the repository.
Use Cases
- Automated Pull Request Reviews: Use this skill during continuous integration pipelines to perform an immediate, objective sanity check on incoming code before human reviewers spend time on it.
- Technical Debt Assessment: Run the Code Quality Checker against legacy codebases to identify 'God classes' and overly complex functions that require refactoring.
- Security Auditing: Rapidly scan for hardcoded credentials, API keys, and common injection patterns that might be accidentally introduced in a feature branch.
- Onboarding and Mentorship: Generate comprehensive review reports to provide junior developers with immediate, constructive feedback on their coding standards.
Example Prompts
- "@code-reviewer, analyze the current branch against main and give me a risk assessment for the latest pull request."
- "Perform a code quality audit on the /src/services directory. Identify any SOLID violations or functions that exceed the 50-line threshold."
- "Generate a summary review report for the current repository and save it as a markdown file for the team to review."
Tips & Limitations
- Threshold Tuning: While the tool comes with default thresholds (e.g., >50 lines for functions), remember that these are heuristics. High complexity scores do not always mean the code is 'bad,' but rather that it warrants manual inspection.
- Context Awareness: The PR Analyzer works best when comparing two distinct git branches. Always ensure your git history is updated before running the analyzer.
- False Positives: Static analysis tools may occasionally flag complex logic that is intentional. Use the tool to augment human intuition rather than replacing it entirely.
- Language Constraints: Ensure the code being scanned is one of the supported languages; attempting to scan unsupported languages may yield partial or inaccurate results.
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-alirezarezvani-code-reviewer-2": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
Related Skills
intl-expansion
International market expansion strategy. Market selection, entry modes, localization, regulatory compliance, and go-to-market by region. Use when expanding to new countries, evaluating international markets, planning localization, or building regional teams.
marketing-strategy-pmm
Product marketing skill for positioning, GTM strategy, competitive intelligence, and product launches. Use when the user asks about product positioning, go-to-market planning, competitive analysis, target audience definition, ICP definition, market research, launch plans, or sales enablement. Covers April Dunford positioning, ICP definition, competitive battlecards, launch playbooks, and international market entry. Produces deliverables including positioning statements, battlecard documents, launch plans, and go-to-market strategies.
paid-ads
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
qms-audit-expert
ISO 13485 internal audit expertise for medical device QMS. Covers audit planning, execution, nonconformity classification, and CAPA verification. Use for internal audit planning, audit execution, finding classification, external audit preparation, or audit program management.
cpo-advisor
Product leadership for scaling companies. Product vision, portfolio strategy, product-market fit, and product org design. Use when setting product vision, managing a product portfolio, measuring PMF, designing product teams, prioritizing at the portfolio level, reporting to the board on product, or when user mentions CPO, product strategy, product-market fit, product organization, portfolio prioritization, or roadmap strategy.