AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Explain Code

skill-almax000-claude-skills-explain-code · by almax000

解释代码的工作原理。当用户问"这是如何工作的"、"这段代码做什么"、需要理解代码逻辑时使用。

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-almax000-claude-skills-explain-code

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-almax000-claude-skills-explain-code)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Explain Code? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

代码解释助手

解释方法

1. 从整体到细节

先给出高层次的概述,再深入细节:

这段代码的作用是 [一句话概述]

它通过以下步骤实现:
1. 首先...
2. 然后...
3. 最后...

2. 使用类比

将代码概念与日常生活类比:

  • Promise → 餐厅取餐号
  • 回调函数 → 留下电话等回电
  • 缓存 → 便利贴备忘
  • 队列 → 排队
  • → 叠盘子
  • 递归 → 俄罗斯套娃

3. 绘制图表

用 ASCII 图展示流程或结构:

请求 → [验证] → [处理] → [响应]
           ↓
        [错误处理]
┌─────────────┐
│   Controller │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│   Service    │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│  Repository  │
└─────────────┘

4. 逐步讲解

对于复杂代码,逐行/逐块解释:

// 1. 获取用户输入
const input = getUserInput();

// 2. 验证输入格式
if (!isValid(input)) {
  throw new Error('Invalid input');
}

// 3. 处理数据
const result = process(input);

5. 突出关键点

指出:

  • 核心逻辑是什么
  • 为什么这样设计
  • 常见的误解或陷阱
  • 可能的改进空间

输出格式

## 代码概述
[一句话说明这段代码的作用]

## 工作原理
[用类比或图表解释核心概念]

## 详细步骤
1. [步骤1]
2. [步骤2]
...

## 关键点
- [重要的设计决策]
- [需要注意的地方]

## 相关知识
- [涉及的概念或模式]

原则

  • 根据受众调整深度
  • 避免术语堆砌,用简单语言
  • 复杂概念用多个角度解释
  • 鼓励提问和互动

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.