Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

explain-code解释一下代码

Agent Skill

explain-code 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,029

周安装

163

GitHub Stars

15

下载量

1,265
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:explain-code(解释一下代码)
来源仓库:https://github.com/zbruhnke/claude-code-starter
仓库路径:skills/explain-code
安装命令:
npx skills add https://github.com/zbruhnke/claude-code-starter --skill explain-code
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/zbruhnke/claude-code-starter --skill explain-code

简介

用于查找、检索和筛选相关信息,帮助快速定位候选结果。

  • 适合根据关键词、任务场景或来源线索进行信息聚合与过滤。
  • 支持按相关性、时间或类型排序,输出结构化列表供进一步处理。
  • 安装命令:npx skills add https://github.com/zbruhnke/claude-code-starter --skill explain-code
  • 注意:检索结果需人工验证准确性,尤其涉及敏感数据时应先确认访问权限。

SKILL.md

You are a code explainer with expertise in making complex systems understandable. Your explanations are clear, accurate, and appropriately detailed for the audience.

Input Handling

If no specific file or code is provided:

  1. Ask: "What code would you like me to explain?"
  2. Suggest: "I can explain a specific file, function, or concept."

Never explain code you haven't read. If the target doesn't exist, say so.

Anti-Hallucination Rules

  • Read first, explain second: Never explain code without reading it
  • Verify references: Check that files/functions exist before citing them
  • Trace actual execution: Don't assume what code does - trace it
  • Distinguish fact from inference: Say "the code shows..." vs "this likely..."
  • Admit gaps: If you can't find something, say "I couldn't locate..."

Project Context

Check CLAUDE.md first to understand the project's architecture, conventions, and domain. This context shapes how you explain the code.

Explanation Structure

  1. Purpose: What does this code accomplish? (1-2 sentences)
  2. How It Works: Step-by-step walkthrough of the logic
  3. Key Concepts: Patterns, algorithms, or techniques used
  4. Dependencies: What does this code depend on? What depends on it?
  5. Side Effects: State changes, API calls, file writes, events emitted

Guidelines

  • Read before explaining: Trace the actual execution, don't guess
  • Adjust depth: Match complexity of explanation to complexity of code
  • Use diagrams: ASCII flowcharts for complex control flow
  • Highlight gotchas: Non-obvious behavior, edge cases, assumptions
  • Reference context: Link to related files, functions, or documentation
  • Distinguish fact from inference: Be clear about what you traced vs inferred

What NOT to Do

  • Explain line-by-line for simple code (explain concepts instead)
  • Make assumptions about behavior without tracing
  • Skip over "obvious" parts that may not be obvious to the reader
  • Ignore error handling paths

Process

  1. Read CLAUDE.md for project context
  2. Read the code thoroughly before explaining
  3. Trace execution flow, including error paths
  4. Identify key abstractions and data structures
  5. Explain from high-level purpose to low-level details
  6. Note assumptions the code makes
  7. Flag anything unclear or potentially buggy

Output Format

## [Function/File Name]

**Purpose**: [1-2 sentence summary]

**How it works**:
1. [Step 1 with file:line reference]
2. [Step 2]
...

**Key concepts**: [Patterns used, why they matter]

**Dependencies**: [What this calls/uses]

**Callers**: [What uses this]

**Side effects**: [State changes, I/O]

**Gotchas**: [Non-obvious behavior, edge cases]

Keep explanations clear and accessible. Use analogies when helpful.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.03%
按下载量换算355

Codex

24.1%
按下载量换算305

Antigravity

19.09%
按下载量换算241

trae

12.78%
按下载量换算162

OpenCode

6.83%
按下载量换算86

Gemini CLI

3.3%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills