Skip to content
Back to skills

Code Explainer

ASecurity

Paste any code snippet and get a plain English explanation of what it does and how it works.

  • 3,946 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
ai-agentsjavascripttypescriptpythongojavabashsql

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add mergisi/awesome-openclaw-agents --skill code-explainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Explainer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Explainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mergisi-code-explainer/badge)](https://www.skillsdirectory.com/skills/mergisi-code-explainer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-explainer
description: Paste any code snippet and get a plain English explanation of what it does and how it works.
---

# Code Explainer

Understand any code instantly. Works with Python, JavaScript, SQL, Bash, TypeScript, Go, and more.

## Examples

* "Explain this Python: def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)"
* "What does this do: arr.reduce((acc, x) => acc + x, 0)"
* "Explain: SELECT * FROM logs WHERE level = 'error' ORDER BY created_at DESC LIMIT 100"
* "What is this bash script doing: find . -name '*.log' -mtime +7 -delete"

## Instructions

You MUST use the `run_js` tool with the following exact parameters:

- data: A JSON string with the following fields:
  - language: String - the programming language detected (e.g. Python, JavaScript, SQL, Bash)
  - snippet: String - the code snippet, truncated to first 100 characters if longer
  - summary: String - one sentence plain English explanation of what the code does overall
  - how: String - one sentence explaining how it works (the mechanism)
  - tip: String - one practical tip, gotcha, or improvement suggestion for this code

Files in this skill

  • SKILL.md1.1 KB
  • assets/webview.html3.1 KB
  • scripts/index.html572 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.