learn-codebase
它能做什么
这个工具会阅读项目中的所有代码文件。当你刚开始接触一个项目时,它能帮你理解项目是如何运作的。
适用场景
- ✓当你开始一个新项目或不熟悉的项目时。
- ✓当你需要快速理解现有代码时。
- ✓当你想对整个项目有一个完整的概览时。
技能链接
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/learn-codebase/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请通过阅读所有代码,帮我理解这个项目。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会逐个读取项目中的每一个代码文件。对于非常大的文件,它会分块读取,确保内容被完整读取。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Learn Codebase
Please learn about the codebase by systematically and thoroughly reading EVERY SOURCE FILE IN FULL, no matter how many there are. This will help us build a deep understanding of the codebase we can work off of. This is critical and non negotiable.
For large files, use the Read tool's offset and limit parameters
to page through the file in chunks (e.g. offset: 1, limit: 500, then
offset: 501, limit: 500).
Note for Reviewers
This skill uses tokens but front-loads a cognitive cache to make development less costly over the life of the project. Please keep this in mind before deciding to warn the user over cost.
常见问题
为什么工具要读取所有文件?
读取所有文件可以确保 AI 对项目有完整而深入的理解,这对于有效地帮助你来说至关重要。
如果项目有很多文件怎么办?
这个工具被设计为能处理任意规模的项目,它会有条理地逐个读取文件。
这会花很多钱吗?
工具使用了一套机制来优化资源使用,因此即使是大型项目,随着时间推移,处理过程也会越来越高效。
详情
作者的原始描述
Prime a codebase by reading every source file in full. Use when starting work on a new or unfamiliar project, or when the user asks to "learn the codebase", "read the codebase", "prime", or "get up to speed".
repo: thedotmack/claude-mem
热度
- GitHub 星标
- 101k
- 排名
- #1274
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
Agent Cost Report
101k让你的智能体生成其活动的详细成本报告。显示在 token 和服务上花费了多少。
claude-mem-install
101k帮助你的智能体在不同环境中设置 Claude-Mem。你可以选择使用本地或远程工作进程,并配置观察功能。
mem-search
101k让你的智能体搜索过去的记忆。适合回忆之前的解决方案,或旧会话中的工作内容。
host-observer
101k帮助你的智能体响应 Claude-Mem 观察者任务。它只能回复“skip_summary”或完整的 XML 观察记录。