zlxdengtianhei

Codebase Explorer — AI skill for Claude Code

AI community

Turn a repository into a source-linked map that people and agents read top-down: system → modules → code.

How to install Codebase Explorer

This entry records only its repository, not the path inside it, so there is no exact command to give. Open zlxdengtianhei/codebase-explorer and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codebase Explorer does

Turn a repository into a source-linked map that people and agents read top-down: system → modules → code. Structure from static analysis, explanations from your own model. 代码库理解工具:从代码单元到模块与架构的渐进式讲解(Skill + CLI)。

Alternatives in AI

  • Designing AI Agents — Companion code for 'Designing AI Agents' (Manning, 2027) — 27 agent design patterns, organized by the 7 cognit 181 ★
  • Clerkie CLI — Clerkie-cli is a terminal tool that uses an LLM to help debug and troubleshoot coding errors in any programmin 106 ★
  • Sloppy — Static analysis for the debt AI agents leave in PHP: 25 rules, Claude Code hooks, git-diff review, a Rector an 84 ★

README

 Codebase Explorer

Codebase Explorer turns a source repository into a one-page module map and per-module explanations that people and coding agents can read and query.

English | 简体中文

License: MIT Python 3.12 and 3.13 CI

35-second animation: code units are linked, grouped into modules, shown as a system map; one module page opens and cbe source prints the original lines

35 seconds: units, links, modules, map, one module page, then the source. Narrated walkthrough videos.

A file tree shows where files are, not what each part is for. CBE (Codebase Explorer) reads a repository and writes what the tree lacks: one page that lists the whole module tree with a line on what each module is responsible for, and a page per module that explains each function and class and links to the exact source lines. You read it. A coding agent can look things up in it with three commands.

What you get

  • A one-page map. docs/INDEX.md shows the whole module tree, one line per module. Its size is capped at the larger of 2,000 tokens and 3% of the source.
  • A tree without gaps, the same every time. A program builds it: units that call or import each oth