code-review

Review code diffs and pull requests for bugs, security flaws, and performance issues.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/SMOrchestra-ai/smorch-brain --skill code-review-smorchestra-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/SMOrchestra-ai/smorch-brain/tree/main/plugins/engineering/skills/code-review
Command: npx skills add https://github.com/SMOrchestra-ai/smorch-brain --skill code-review-smorchestra-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill performs structured, fast code reviews to surface security vulnerabilities, correctness bugs, performance regressions, and maintainability problems so teams can fix high-risk issues before they reach production.

Core Features & Use Cases

  • Security checks: flag SQL injection, XSS, CSRF, secrets, insecure deserialization, SSRF, and auth/authorization flaws.
  • Performance analysis: identify N+1 queries, unbounded loops, expensive allocations, missing indexes, and algorithmic inefficiencies.
  • Correctness & Maintainability: detect edge-case omissions, race conditions, error-handling gaps, off-by-one errors, poor naming, duplication, and test coverage issues; always include positive observations.
  • Use Case: Run against diffs or pull requests to receive prioritized findings with file and line references and actionable remediation steps for engineers and reviewers.

Quick Start

Review the following pull request diff for security vulnerabilities, performance bottlenecks, correctness bugs, and maintainability improvements and provide prioritized actionable fixes with file and line references.

Frequently Asked Questions about code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a pull request for security vulnerabilities and performance issues?

To review a pull request for security vulnerabilities and performance issues, apply static analysis to the diff to identify SQL injection, XSS, N+1 queries, and race conditions. You receive prioritized findings with file and line references, severity labels, and remediation steps.

What is static analysis for finding bugs and security flaws in code?

Static analysis for finding bugs and security flaws is the process of reviewing code diffs or snippets to detect correctness errors, insecure deserialization, and SSRF. It yields prioritized findings with severity labels, specific file and line references, and actionable remediation steps.

Can I use code review to detect performance regressions in individual files?

Yes, you can use code review to detect performance regressions in individual files by analyzing them for expensive allocations, unbounded loops, and algorithmic inefficiencies. The review outputs prioritized findings with file and line references for developer consumption.

What's the best way to check a code snippet for maintainability problems before merging?

The best way to check a code snippet for maintainability problems before merging is to review the pasted snippet for poor naming, duplication, edge-case omissions, and test coverage issues. The process provides prioritized findings alongside positive observations to guide improvements.

Does code review work for finding auth and authorization flaws in diffs?

Yes, code review works for finding auth and authorization flaws in diffs by flagging security vulnerabilities like CSRF and secrets. It outputs prioritized findings with file and line references, severity labels, and remediation steps to fix high-risk issues before production.

What are the limitations of automated code review for maintainability gaps?

Automated code review for maintainability gaps is limited to detecting edge-case omissions, poor naming, duplication, and test coverage issues within the provided diff or snippet. It cannot assess architectural design flaws beyond the submitted code context and relies on the input boundaries.