Agent skill

Code Explainer

by mohitagw15856 in mohitagw15856/pm-claude-skills

Explain what a piece of code does in plain English, at the depth the reader needs.

MITAuto-check passedDevelopment

Install Code Explainer

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill code-explainer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills code-explainer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-explainer .claude/skills/code-explainer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-explainer
GitHub stars
1.4k
Token cost
~587 tokens
SKILL.md length
299 words
Files
1
Skills in repo
1,322
Repo updated
First seen
Licence
MIT

At a glance

Explain what a piece of code does in plain English, at the depth the reader needs.

  • Asked to explain code
  • SKILL.md covers Working from a brief, Input, Output Structure and Quality Checks, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Walk through a function

What it does

Code Explainer is an agent skill from mohitagw15856/pm-claude-skills. Explain what a piece of code does in plain English, at the depth the reader needs. Use when asked to explain code, walk through a function, understand an unfamiliar snippet, or onboard to a file. Produces a one-line summary, a step-by-step walkthrough, the non-obvious parts called out, and any bugs or smells spotted along the way.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Technical documentation and Plain language and style rules. The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked to explain code
  • Walk through a function
  • Understand an unfamiliar snippet
  • Onboard to a file

Example prompts

  • “/code-explainer”

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Explainer loads about 587 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 299 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~587

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 299 words, ~587 tokens.

Download SKILL.mdSave it as .claude/skills/code-explainer/SKILL.md (or your agent's skills folder).
name
code-explainer
description
Explain what a piece of code does in plain English, at the depth the reader needs. Use when asked to explain code, walk through a function, understand an unfamiliar snippet, or onboard to a file. Produces a one-line summary, a step-by-step walkthrough, the non-obvious parts called out, and any bugs or smells spotted along the way.

Code Explainer Skill

Make unfamiliar code understandable — fast — without dumbing it down.

Working from a brief

Infer the language and intent from the code itself; label assumptions (assumed — confirm). Always produce a complete explanation even from a fragment. Match depth to the apparent level of the question.

Input

Ask for these if not provided:

  • The code — the snippet or file to explain (paste it, or point at the path)
  • The language or runtime — if it is not obvious from the code
  • The reader — who this is for and how much they already know
  • What they are trying to understand — the bug, the review, the handover; infer the rest

Output Structure

In one line

What this code does, in a single sentence a busy reader can repeat.

Step by step

A walkthrough of the logic in order — group by block/function. Explain why, not just what, for anything non-trivial. Reference line ranges where helpful.

Worth knowing

The non-obvious bits: clever tricks, gotchas, side effects, complexity, dependencies, or assumptions the code makes.

Anything off?

Bugs, edge cases, or smells you noticed while reading — with the fix. (If it's clean, say so.)

Quality Checks

  • The one-line summary stands alone
  • The walkthrough explains why, not just restating the code in words
  • Non-obvious behaviour (side effects, complexity, edge cases) is surfaced
  • Any bug/smell spotted is flagged with a fix

Anti-Patterns

  • Do not narrate line-by-line in English ("this line sets x to 5") — explain intent and structure
  • Do not skip the gotchas — the value is in the non-obvious parts
  • Do not assume expert level if the question reads like a beginner's (or vice-versa)
  • Do not ignore a bug you can see just because you weren't asked to review it

Example Trigger Phrases

  • "Explain code."
  • "Walk through a function."
  • "Understand an unfamiliar snippet."
  • "Onboard to a file."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/code-explainer of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Code Explainer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Explainer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Explainer this skillmohitagw15856/pm-claude-skills1.4k—~587Automated safety check: PassMIT
Agent Stylepchalasani/claude-code-tools2k—~1.4kAutomated safety check: PassMIT
Content Modelguardana/guardana129—~1.2kAutomated safety check: PassApache-2.0
Tabler Docs Writertabler/tabler42k—~2.5kAutomated safety check: PassMIT
Writing Guidelinesrohitg00/pro-workflow2.9k—~593Automated safety check: PassNone
Understandsmallnest/goal-workflow289—~1.1kAutomated safety check: PassMIT

Similar skills

  • Agent Style

    pchalasani/claude-code-tools

    Literature-backed English technical-prose writing rules (agent-style, 21 rules).

    2k GitHub stars~1.4k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Content Model

    guardana/guardana

    Route wording work to GPT (codex CLI) or Gemini (agy CLI) instead of writing it with Claude — landing-page copy, a readability rewrite of a README or docs page, attack and judge prompts for a rule…

    129 GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Tabler Docs Writer

    tabler/tabler

    Writes and updates Tabler documentation pages in simple English following the repository's page schema, and flags new components that have no docs yet.

    42k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Writing Guidelines

    rohitg00/pro-workflow

    Apply clear-writing standards to any prose the agent produces - READMEs, docs, UI copy, error messages, commit and PR text, release notes.

    2.9k GitHub stars~593 tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Understand

    smallnest/goal-workflow

    Review and understand freshly AI-generated code. An agent skill from smallnest/goal-workflow.

    289 GitHub stars~1.1k tokensUpdated 24 days ago
    DevelopmentAuto-check passed
  • Official

    Sets the voice and word choices for any text a person reads in PostHog: UI labels, buttons, tooltips, empty and error states, notifications, in-app messages, onboarding, docs, and support replies.

    40k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,322 skills in this repo
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Offer Comparison

    mohitagw15856/pm-claude-skills

    Compare two or more job offers as total-comp curves over four years — vesting cliffs, bonuses, 401(k) match, and the crossover year computed, not vibed.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Refinance Breakeven

    mohitagw15856/pm-claude-skills

    Compute the month a refinance actually starts saving money — payment delta, breakeven month, and total interest on both paths including the term-reset trap.

    1.4k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rent Vs Buy

    mohitagw15856/pm-claude-skills

    Model rent-vs-buy honestly — year-by-year net position for both paths including the assumption everyone drops (the renter invests the difference), with a breakeven horizon instead of a verdict.

    1.4k GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Questions about Code Explainer

What does Code Explainer do?

Explain what a piece of code does in plain English, at the depth the reader needs. Code Explainer is an agent skill from mohitagw15856/pm-claude-skills. Explain what a piece of code does in plain English, at the depth the reader needs.

When should I use Code Explainer?

Code Explainer fits situations like: asked to explain code; walk through a function; understand an unfamiliar snippet; onboard to a file.

How do I install Code Explainer in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill code-explainer -a claude-code`. Or copy the skill folder (skills/code-explainer in mohitagw15856/pm-claude-skills) into .claude/skills/code-explainer in your project. Claude Code loads it when a task matches its description.

How do I install Code Explainer in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill code-explainer -a codex`. Or copy the skill folder (skills/code-explainer in mohitagw15856/pm-claude-skills) into .agents/skills/code-explainer in your project. Codex loads it when a task matches its description.

Can I use Code Explainer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill code-explainer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-explainer, .gemini/skills/code-explainer, .github/skills/code-explainer and .opencode/skills/code-explainer in your project.

What does Code Explainer need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Explainer is instructions for the agent only.

Does Code Explainer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Explainer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Explainer use?

Code Explainer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Explainer use?

About 587 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Explainer?

Skills that share tags, products or a category with Code Explainer: Agent Style (pchalasani/claude-code-tools, 2k stars), Content Model (guardana/guardana, 129 stars), Tabler Docs Writer (tabler/tabler, 42k stars) and Writing Guidelines (rohitg00/pro-workflow, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Explainer?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,431 GitHub stars. The repository holds 1,322 skills in this directory. The repository was last updated on October 7, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.