Install
openclaw skills install @cbbathaglini/code-review-auditorReview code for bugs, security, architecture, smells, patterns, performance, tests, and refactor plans
openclaw skills install @cbbathaglini/code-review-auditorUse this skill when the user asks for a code review, architecture review, security review, refactoring review, design-pattern assessment, hotspot analysis, or a planned fix/refactor workflow.
review/<timestamp>/refactoring-plan.md first, then wait for explicit user approval unless the user has already asked to implement that plan.review/YYYY-MM-DD_HH-mm-ss/
Use the local timezone for the timestamp. Include seconds. If two runs collide, append -NN while preserving the timestamp.
Choose the narrowest mode that satisfies the user request. If the user does not specify a mode, use complete for broad review requests and diff when the request clearly focuses on changed code.
complete: full project review across all categories.diff or changed: review only changed files and relevant call sites.security: vulnerabilities, insecure defaults, secrets, authz/authn, injection, SSRF, deserialization, path traversal, dependency risk.architecture: module boundaries, layering, SOLID, coupling, cohesion, domain leakage, framework misuse.smells: maintainability problems and local code-quality issues.patterns: justified opportunities for Strategy, Factory, Adapter, Decorator, Chain of Responsibility, State, Specification, Repository, Unit of Work, Observer, or other patterns already aligned with the project.performance: hot paths, query behavior, memory, concurrency, IO, caching, serialization, batch size, retries, backpressure.tests: missing, weak, brittle, slow, flaky, low-signal, or over-mocked tests.hotspots: prioritize files by churn, complexity, ownership, risk, dependency fan-in/fan-out, and production criticality.explain: explain findings, risks, and tradeoffs without changing code.fix: propose and, only after approval, implement narrowly scoped fixes.refactor: propose and, only after approval, implement behavior-preserving refactors.challenge: critique an existing implementation or proposal, looking for hidden failure modes and unjustified complexity.Read workflows/modes.md when mode selection or mode-specific deliverables matter.
At the end of every execution, write the review package using templates/output-structure.md. At minimum include:
summary.mdfindings.md or category files such as security.md, architecture.md, bugs.md, code-smells.md, patterns.md, performance.md, testing.md, and observability.mdhotspots.mdmetrics/score.mdmetadata.jsonrefactoring-plan.md when fixes, refactors, or material design changes are proposedUse scripts/create_review_run.py to create the timestamped folder and seed the required files when helpful.
Each finding must include:
Use the models in rules/scoring.md and the finding template in templates/finding.md.
stacks/.Read only the relevant guides:
Be direct and evidence-led. Findings are not style opinions. Call out what can break, where, why it matters, and the smallest responsible improvement.