一键导入
explain
Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also get an ASCII diagram, key details, and a modification guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also get an ASCII diagram, key details, and a modification guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | explain |
| description | Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also get an ASCII diagram, key details, and a modification guide. |
| argument-hint | [target] [verbose?] |
| disable-model-invocation | true |
Explain $ARGUMENTS clearly.
If $ARGUMENTS includes the word verbose (for example, /dotclaude:explain my-function verbose), produce all five sections below. Strip the word verbose from the target name when deciding what to explain.
Otherwise (the default), produce only sections 1 and 2, then stop. Day-to-day, that's usually all you need.
In one sentence: what does it do, and why does it exist?
One short paragraph: an analogy or metaphor that captures the core idea, tied to something the developer already knows.
Draw an ASCII diagram of the data and control flow. Keep it readable:
Input -> [Step A] -> [Step B] -> Output
|
v
[Side Effect]
Walk through the important parts and skip the obvious ones. Focus on:
What does someone need to know to change this code safely, and where are the landmines?
Estimate per-turn token cost of this project's `.claude/` configuration and `CLAUDE.md`. Reports always-loaded vs path-scoped vs invoked-only, ranks the top contributors, and flags entries over budget. Add `--api` for exact counts via Anthropic's count_tokens endpoint instead of the chars/4 heuristic.
Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for emergency production mode (hotfix branch, minimal change, ship a PR fast).
Review code changes or a pull request. Delegates to specialist agents for code quality, security, performance, and documentation, in parallel.
Safely refactor code with test coverage as a safety net
Scan changes, commit, push, and create a PR. With confirmation at each step
Test-Driven Development loop. Write a failing test first, then the minimum code to pass it, then refactor. Repeat.