跳到正文
Skillpedia
通用编程101k · #1274

learn-codebase

它能做什么

这个工具会阅读项目中的所有代码文件。当你刚开始接触一个项目时,它能帮你理解项目是如何运作的。

适用场景

  • ✓当你开始一个新项目或不熟悉的项目时。
  • ✓当你需要快速理解现有代码时。
  • ✓当你想对整个项目有一个完整的概览时。

技能链接

https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/learn-codebase/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/learn-codebase/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能