Skip to content
AI & Agents
Skill

/code-explainer

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

BOOST
From plugin
awesome-openclaw-agents
4k16 skills1 agent
Install
$ npx -y skills add mergisi/awesome-openclaw-agents --skill code-explainer --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/code-explainer

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

code-explainer.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
Ships withawesome-openclaw-agents

A curated collection of 205 production-ready AI agent templates for the OpenClaw ecosystem. Every template is a copy-paste ready SOUL.md file.

Get the whole plugin

Other skills on awesome-openclaw-agents.