一键导入
explore-codebase
Explore and understand a codebase: spawns parallel children to scan structure, trace data flows, read key files, and map architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Explore and understand a codebase: spawns parallel children to scan structure, trace data flows, read key files, and map architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Deep research on any topic: spawns parallel child agents to investigate multiple angles, then synthesizes findings into a comprehensive briefing.
Plan a night out: check calendar availability, search restaurants, compare options, make reservations. Spawns parallel child agents for calendar + restaurant search.
基于 SOC 职业分类
| name | explore-codebase |
| description | Explore and understand a codebase: spawns parallel children to scan structure, trace data flows, read key files, and map architecture. |
| metadata | {"nightowl":{"emoji":"🗺️","category":"development"}} |
Rapidly build a mental model of a codebase by spawning parallel children to investigate different aspects concurrently.
Use this skill whenever:
Spawn a child to map the high-level structure:
scan-repo-structureBased on what you need to understand, spawn 2-4 children for specific angles:
Architecture mapping:
trace-entry-points — Find main entry points (main.py, index.ts, cmd/), trace the startup flow, identify the core abstractionsmap-data-models — Find model/schema/type definitions, understand the domain objects and their relationshipsscan-api-surface — Find route definitions, API handlers, RPC services; map the public interfaceFeature tracing:
trace-feature-{name} — Follow a specific feature from UI → API → business logic → data layerfind-{pattern} — Search for specific patterns, function names, or conventions across the codebaseDependency analysis:
audit-dependencies — Read lock files, check for key libraries, understand the tech stackcheck-test-coverage — Find test directories, understand testing patterns, check what's coveredOnce children report back, synthesize into a clear map:
## Codebase: {repo name}
### Tech Stack
- Language, framework, key libraries
### Architecture
- High-level diagram (text-based)
- Key abstractions and how they connect
### Directory Map
- What lives where, organized by concern
### Entry Points
- How the app starts, key files to read first
### Data Flow
- How a request/event flows through the system
### Notable Patterns
- Conventions, idioms, or architectural decisions worth knowing
If the user asks about a specific area, spawn a focused child to go deeper. Don't re-explore the whole codebase — build on what you already know.
bash_exec with find, grep, cat, tree for fast codebase navigation