Explaining Code

作者 patricio0312rev79ea6af48569無授權條款62 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"

AI 產生的概覽

用日常類比、ASCII 圖示、逐步講解和常見誤區來解釋程式碼如何運作。

功能
這是一個僅含指令的技能,指導代理產生程式碼解說。每段解說都以日常生活的類比開頭,附上一張呈現流程、結構或關係的 ASCII 圖,逐步說明程式碼的執行過程,並指出一個常見錯誤或誤解。解說保持口語化,複雜概念會使用多個類比。
適用情境
適用於解釋程式碼如何運作、向他人講解某個程式碼庫,或使用者詢問某段程式碼是怎麼運作的時候。它適合以理解概念為目標的需求,而非修改程式碼。
執行需求
不需要任何工具、套件、執行環境、憑證或網路存取;它只包含指令,不附帶指令碼。

When explaining code, always include:

  1. Start with an analogy: Compare the code to something from everyday life
  2. Draw a diagram: Use ASCII art to show the flow, structure, or relationships
  3. Walk through the code: Explain step-by-step what happens
  4. Highlight a gotcha: What's a common mistake or misconception?

Keep explanations conversational. For complex concepts, use multiple analogies.

來源與署名

來源:patricio0312rev/skills位於foundation/explaining-code提交79ea6af

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架