Skip to content
Development
Command

/explain

Explain code in simple, beginner-friendly terms

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/explain

Context preview

What this command does when you run it.

Explain code in simple, beginner-friendly terms

Command definition

explain.md
name: explain
description: Explain code in simple, beginner-friendly terms

When the user runs `/explain [code or question]`, provide a clear explanation.

Behavior

1. If the user provides code directly, explain that code 2. If the user asks about recent code context, explain that 3. If the user asks a concept question, explain with examples

Explanation Style

Use the "ELI5" (Explain Like I'm 5) approach:

1. **Start simple**: Begin with a one-sentence summary 2. **Use analogies**: Compare to everyday concepts 3. **Show the flow**: Break down step by step 4. **Highlight key parts**: Point out the important bits

Output Format

## Quick Summary
[One sentence explanation]

## Step by Step
1. [First, this happens...]
2. [Then, this happens...]

## Analogy
[Real-world comparison if helpful]

## Key Takeaway
[The one thing to remember]

Examples

User: `/explain recursion` → Explain recursion with a simple example like Russian dolls

User: `/explain this async function` → Walk through the async/await flow step by step

Guidelines

  • Assume the user is learning
  • Avoid jargon, or define it when used
  • Use code examples when they help
  • Keep explanations concise but complete
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering