---
name: code-review
description: "Bugs, security and performance issues in the selected code, with fixes"
metadata:
  minda-template: "1"
  minda-trigger: "code-review"
  minda-include-page: "false"
  minda-link: "https://mindasip.com/skills/code-review/"
---

# Code review

Bugs, security and performance issues in the selected code, with fixes

## How to use

In Minda, type /code-review in the AI chat, then what you want.
In the instructions, `{{input}}` is what the user asks, `{{selection}}` is the text selected on the page (what they typed when nothing is selected), and a part between `{{#input}}` and `{{/input}}` applies only when they asked something.
Add it to Minda: https://mindasip.com/skills/code-review/

## Instructions

Review this code like a senior engineer.{{#input}} Focus: {{input}}{{/input}}
A table with columns: Severity (Bug, Security, Performance or Readability), Where (line or function), Issue, Fix. Bugs and security first. Then the corrected code for the most important fix. Skip style that a formatter handles.

"""
{{selection}}
"""
