用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/marcellocurto/skills --skill explain-codebase命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Review a specific code change for correctness, requirements, maintainability, and repository standards.
Implement and verify clearly scoped software work from an existing spec or tickets.
Reduce an overbuilt code proposal to the simplest production-quality design that meets the real requirements.
| name | explain-codebase |
| description | Trace and explain how an existing code path or subsystem works. |
Build a working mental model of current behavior at the altitude the user needs. Trace what the system actually does; do not substitute annotated source code, architectural judgment, or an inferred history.
diagnosing-bugs when the subject is broken, failing, incorrect, or slow. An explanation can orient diagnosis, but it does not establish a cause.CONTEXT.md and relevant ADRs when they exist, but verify their claims against current code.For a genuinely broad subsystem, divide exploration into independent slices such as entry and routing, data and state, and external effects. Explore those slices in parallel when delegation is available, then reconcile overlaps and contradictions against the code before writing the explanation. Keep narrow questions in one pass.
Stop exploring when the requested path can be explained from trigger to effect without hand-waving, the important data changes and seams are accounted for, and remaining uncertainty is explicit. Do not inventory the whole repository.
Lead with the answer at the user's requested altitude. Adapt the structure rather than filling a mandatory template; include only sections that improve the mental model:
Reference exact files and symbols so the reader can inspect the evidence. Prefer prose over code dumps. Use a small flow, sequence, or state diagram only when relationships across several modules are materially clearer visually.
Keep observed facts, supported rationale, and inference visibly distinct. The explanation should let an engineer predict what happens for a representative input and know where to begin changing or debugging it, without itself proposing the change or diagnosis.