CtrlK
BlogDocsLog inGet started
Tessl Logo

code-explainer

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

64

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

High

Do not use without reviewing

Fix and improve this skill with Tessl

tessl review fix ./skills/gemma/code-explainer/SKILL.md
SKILL.md
Quality
Evals
Security

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
Repository
mergisi/awesome-openclaw-agents
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.