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.
小蔥技能7w4.net有完整的技能分類。
- 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.