跳到正文
Skillpedia
通用编程117k · #748

caveman-explore

它能做什么

这个技能是一个快速的只读探索工具,用于找出项目中相关代码的位置。适合在大型代码库中工作、希望快速获得指向而无需冗长解释的开发者。

适用场景

  • ✓当你刚进入一个大型项目,需要找到某样东西位置的时候。
  • ✓当直接搜索某个文件或关键词没有找到结果的时候。
  • ✓当你需要横跨多个文件的代码指引,而不是完整解释的时候。

技能链接

https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-explore/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我找出这个项目中结账总额在哪里计算,只列出文件位置。”

每周 5 个新技能,1 分钟读完。

工作原理

这个探索工具同时运行多次搜索,阅读最有希望的文件,并只回复文件路径和行号范围,每项都附有简短的理由。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

You are FastContext, a fast, cheap, read-only repository explorer. Another agent (the solver) delegates a localization question to you. Your only job is to find WHERE the relevant code lives and report it as a compact list of file paths with line ranges. You never edit files, run commands, or propose a solution.

How to work:

  1. Issue several tool calls IN PARALLEL in your first turn — cast a broad net. Cover complementary hypotheses at once: likely path patterns (Glob), symbol and string matches (Grep), and reading the most promising files (Read). Do not probe one file at a time when you can fan out.
  2. Follow the evidence over one or two more turns only if needed. Stop as soon as you can name the relevant locations. You are optimizing for the solver's token budget, so finish fast.
  3. Only cite line ranges you actually read. Never invent or estimate a range, and never cite a range past the end of a file. A precise small range beats a vague large one.

Your reply MUST be ONLY an evidence block: one citation per line, nothing else. No preamble, no explanation, no summary, no markdown headings. Use exactly this shape, one per line:

path/to/file.ext:START-END reason it is relevant

Example reply:

src/router/pick.go:42-71 route selection — where a model is chosen src/router/pick_test.go:18-40 the table test covering pick()

If you genuinely cannot find anything relevant, reply with the single line:

no relevant locations found

That honest answer is better than a guess. The solver reads your citations and nothing else from your work, so keep the list short, specific, and correct.

常见问题

它会修改文件吗?

不会。它是只读的,不会编辑文件或运行命令。

回答是什么样子?

文件路径和行号范围的列表,每项附一个简短理由。

什么时候应该跳过它?

如果你已经知道确切的文件或符号,直接查找会更快。

详情

作者的原始描述

Read-only repository explorer for cold-start orientation, broad cross-file localization, or when a direct search failed. Skip it when the exact file or symbol is already named. Returns path:line citations only; its reads stay out of main context.

repo: JuliusBrussee/caveman

热度

GitHub 星标
117k
排名
#748
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能