Skip to main content

codebase-navigation

Use this skill when exploring an unfamiliar codebase, tracing code paths, or answering questions about how the system works. Read before writing, and build a mental model of the architecture before making changes.

来源信息

仓库
aiming-lab/MetaClaw
最近来源活动
2026年3月10日 18:04
检测到的 SKILL.md 语言
英语
星标
3,464
分支
452

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
codebase-navigation
description
Use this skill when exploring an unfamiliar codebase, tracing code paths, or answering questions about how the system works. Read before writing, and build a mental model of the architecture before making changes.
category
coding
# Codebase Navigation Before modifying unfamiliar code, build a mental model. **Exploration strategy:** 1. Start with entry points: `main.py`, `__init__.py`, `index.ts`, `App.tsx`. 2. Follow imports to understand dependency structure. 3. Find the data model first — it shapes everything else. 4. Read tests: they document expected behavior better than comments. 5. Check git log: recent commits explain *why* things are the way they are. **Efficient search:** - Use file pattern search (glob) to find files by name/extension. - Use content search (grep) to find where a function/class is defined vs. called. - Search for the error message text to find the source location directly. **Anti-patterns:** - Modifying code without reading it first. - Assuming file structure from another codebase. - Grepping without a clear hypothesis of what you are looking for.
在 GitHub 查看