code-explainer
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, understa…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
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
The code snippet or file, plus (if given) the language, the reader's level, and what they're trying to understand. 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
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/pm-engineering/skills/code-explainer/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 3 个不同仓库或目录里都有叫 code-explainer 的技能。它们内容并不相同,别混用:
- mohitagw15856/pm-claude-skills — Explain what a piece of code does in plain English, at the depth the reader needs. Use whe
- mohitagw15856/pm-claude-skills — Explain what a piece of code does in plain English, at the depth the reader needs. Use whe