name: code-explain-pro-en
slug: code-explain-pro-en
display_name: "Code Explain Pro"
version: "1.0.0"
description: "Explains code in plain language|emits per-block notes, call graph, risks|code explain, code read, understand code"
author:
name: "smart"
version: "1.0.0"
category: "developer"
tags:
- "编程效率"
- "代码解读"
- "代码讲解"
- "理解"
- "TRACE-A2"
简介
Inheriting others' code is like guessing. This skill clarifies functions, deps, and pitfalls to cut comprehension cost.
我能做什么
- 📖 Explain intent per function/block.(交付:Narration)
- 🕸️ Map calls and dependencies.(交付:Call graph)
- ⚠️ Flag pitfalls and smells.(交付:Risk points)
- 📈 Mark time/space complexity.(交付:Complexity)
- 🧭 Suggest reading order.(交付:Read path)
- 💡 Give refactor entry points.(交付:Entry points)
我不能做什么
- No guarantee of full business semantics.
- Does not edit your code.
- Does not fully read huge monoliths.
触发词(≥10 个)
- "code explain"
- "code read"
- "understand code"
- "code comment"
- "code analysis"
- "explain code"
- "code review read"
- "read code"
- "code guide"
- "function explain"
输入规范
- 必填项:Code to explain (snippet or file).
- 可选项:Language / focus.
- 输入格式示例:An 80-line data-cleaning function.
输出规范(结构化交付物)
- 输出包含:Narration、Call graph、Risk、Complexity、Read path
- 字段说明:fn=fn; purpose=p; call=c; risk=r; complex=cx.
- 模板片段:
<div class='exp'><h4>{fn}</h4><p>{purpose}</p></div>
使用示例(≥3 个)
示例 1:Clean fn
输入:80 lines
输出:Blocks: read→filter→transform; null pitfall flagged.
示例 2:Complexity
输入:perf focus
输出:Double loop O(n²); suggest hash.
示例 3:Path
输入:where to read
输出:main → util → config.
异常处理
- Missing code: returns required hint.
- Image input: suggests text first.
- Out of scope: states boundary.
限制与免责声明
- No local filesystem access; requests only least-privilege permissions needed for the task.
- Does not collect sensitive user data (secrets, passwords, personal privacy).
- Output is a structured reference artifact, not professional legal/financial/medical advice.
- All examples are generated in a sandbox semantic; no real external write operations.
- Usable in domestic network environments; no reliance on blocked overseas services.
升级版规划(Pay Skill 预留)
Upgrade to paid once the creator billing channel opens.
Free (published, fully usable): 逐段解释代码与调用关系。
Pro (paid upgrade): 提供调用图、复杂度标注与教学级讲解。
Upgrade path: Once the creator billing channel opens, this skill flips to Pro billing with no SKILL.md edit.
小葱技能7w4.net有更新,你可以访问看下。