Openclawx code-review
Reads and analyzes source code files or project structures, identifies bugs, and suggests structural architectural or security improvements.
install
source · Clone the upstream repo
git clone https://github.com/next-open-ai/openclawx
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.claude/skills && cp -r "$T/presets/workspaces/code-assistant/skills/code-review" ~/.claude/skills/next-open-ai-openclawx-code-review && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/presets/workspaces/code-assistant/skills/code-review" ~/.openclaw/skills/next-open-ai-openclawx-code-review && rm -rf "$T"
manifest:
presets/workspaces/code-assistant/skills/code-review/SKILL.mdsource content
Code Review Skill
Use this skill when the user asks you to review code, understand a project structure, or suggest improvements to existing files.
Guidelines
- Understand Context: Before making suggestions, use the
orread
tools (e.g.,bash
,ls -R
) to understand the surrounding project structure, package dependencies (cat
,package.json
, etc.), and related files.pom.xml - Analysis Focus:
- Bugs/Logic Errors: Identify edge cases, null pointer risks, race conditions, etc.
- Clean Code: Suggest naming improvements, refactorings to reduce complexity, or adherence to SOLID principles.
- Performance: Identify O(N^2) loops where O(N) is possible, memory leaks, unoptimized queries, etc.
- Security: Check for hardcoded credentials, SQL injection vectors, or XSS vulnerabilities.
- Actionable Output: Always provide actionable feedback. Instead of just saying "this is bad", provide the corrected code snippet.