module-map
Produce a one-screen map of an unfamiliar area of the codebase: entry points, modules, data flow, callers. Designed to be read in fifteen seconds. U…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
module-map
Orient fast in unfamiliar code. The deliverable is a map, not a tour.
Deliverable
A single response containing, in this order:
- One-line summary of what the area does from a caller's point of view.
- Entry points — every function, route, CLI command, event handler,
or cron that starts a call chain in this area. File path + symbol.
- Core modules — the two to five modules that contain the real
logic. One line each describing their role.
- Data flow — ASCII arrows showing the dominant path for the most
common input. Skip error paths unless they matter architecturally.
- External callers — who outside this area calls in, and through
which entry points.
- Hidden coupling — anything that looks independent but is not
(shared singletons, global state, implicit ordering, undocumented
contracts between files).
Rules
- Fifteen-second read target. If the map exceeds one screen, cut it.
- Every claim must be backed by a file path. No remembered or inferred
structure without a grep behind it.
- Do not list every file. Curate. A good map omits deliberately.
- Do not propose changes. Mapping is orientation; refactoring is a
different skill.
- If the area is too large to map in one screen, segment it and ask the
user which segment to expand. Do not silently drop half the code.
Format
AREA: <one-line summary>
ENTRY POINTS
- <path>:<symbol> — <role>
CORE MODULES
- <path> — <role>
FLOW
<entry> -> <module> -> <module> -> <sink>
CALLERS
- <path> — uses <entry>
HIDDEN COUPLING
- <description> (<path>)
Use the exact headers. Consistency lets the user scan.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。