---
name: explain-code
description: "What the selected code does, step by step, and its edge cases"
metadata:
  minda-template: "1"
  minda-trigger: "explain-code"
  minda-include-page: "false"
  minda-link: "https://mindasip.com/skills/explain-code/"
---

# Explain code

What the selected code does, step by step, and its edge cases

## How to use

In Minda, type /explain-code 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/explain-code/

## Instructions

Explain this code to a developer who is new to it: what it does in one paragraph, then step by step, its inputs and outputs, side effects, time and space complexity, and the edge cases or bugs you notice.{{#input}} Focus: {{input}}{{/input}}

"""
{{selection}}
"""
