code-explainer

code-explainer is a skill for Claude Code, Codex from mergisi/awesome-openclaw-agents. It costs 24 tokens per session (284 once invoked), scanned A, original, MIT.

A tool that explains a code snippet in plain English and describes how it works. It supports languages including Python, JavaScript, SQL, Bash, TypeScript, and Go.

In plain words
What is it for?
Use it to explain short functions, scripts, database queries, and other code fragments.
Why use it?
It helps you understand unfamiliar code without having to trace every line yourself and can point out a practical issue or improvement.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mergisi/awesome-openclaw-agents/code-explainer
Any agent
npx skills add mergisi/awesome-openclaw-agents --skill code-explainer
Clone the repo
git clone --depth 1 https://github.com/mergisi/awesome-openclaw-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-explainer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mergisi/awesome-openclaw-agents/code-explainer.svg)](https://agentmods.dev/skills/mergisi/awesome-openclaw-agents/code-explainer)
Your own site
<a href="https://agentmods.dev/skills/mergisi/awesome-openclaw-agents/code-explainer"><img src="https://agentmods.dev/badge/skills/mergisi/awesome-openclaw-agents/code-explainer.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 284 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00284
Opus 5 $0.00012 $0.00142
Sonnet 5 $0.00005 $0.00057
Haiku 4.5 $0.00002 $0.00028

Measured 4d ago against content hash 38c22d198963, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-explainer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gemma/code-explainer/SKILL.md · 27 lines

What it actually says

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

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 27 lines · 24 tokens per session scan A 38c22d198963

Subscribe to this mod's changes

code-explainer is a skill published in the GitHub repository mergisi/awesome-openclaw-agents (3,946 stars, last pushed 3mo ago), licensed MIT. It adds 24 tokens to every session and 284 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ai-claim-checker

Evaluate factual claims in AI-generated text and teach a lightweight verification habit. Use when a learner wants to fact-check an AI answer, identify uncertainty, choose appropriate independent sources, or practise critical AI literacy.

iflytek/skillhub · 46 tokens

retrieval-practice-generator

Generate low-stakes retrieval-practice questions with grounded answer notes and implementation guidance. Use for quiz starters, revision activities, delayed recall, misconception checks, or adapting recall difficulty.

iflytek/skillhub · 41 tokens

songwriting-and-ai-music

Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

moltis-org/moltis · 53 tokens

documentation-writer

Create or revise software documentation using the Diátaxis distinction between tutorials, how-to guides, reference, and explanation. Use for README sections, product and API documentation, operational guides, onboarding material, or restructuring an existing documentation set.

iflytek/skillhub · 50 tokens

autocontext-consumer

Use when an agent needs to USE knowledge Autocontext already produced - find which scenarios have knowledge, read the playbook and lessons for one, understand the on-disk file and folder layout, and move knowledge between checkouts. Host-agnostic; requires only the autoctx CLI and the filesystem.

greyhaven-ai/autocontext · 67 tokens

agent-newbie-guide

Skill "agent-newbie-guide" from hashgraph-online/awesome-codex-plugins, covering codex 新手引导, 🚫 新手术语过滤(绝对禁止), 统一行为规范(内嵌), 📍 阶段位置 and 启动自检.

hashgraph-online/awesome-codex-plugins · 87 tokens