跳到正文
Skillpedia
提示词与 LLM40k · #7477

what-context-needed

它能做什么

这个工具可以帮 AI 在回答你的问题之前,先索取合适的文件。它会列出需要哪些文件以及原因,这样 AI 就能给你更准确的回答。

适用场景

  • ✓当你提出一个复杂的代码相关问题时。
  • ✓当 AI 似乎缺少必要信息时。
  • ✓在提问之前,确保 AI 拥有所需的上下文。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/what-context-needed/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“为了帮我解决【你的问题】,你需要查看哪些文件?”

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

工作原理

AI 会分析你的问题,找出可能包含相关信息的文件类型。然后列出这些文件,并说明每个文件为什么对回答你的问题很重要。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

What Context Do You Need?

Before answering my question, tell me what files you need to see.

My Question

{{question}}

Instructions

  1. Based on my question, list the files you would need to examine
  2. Explain why each file is relevant
  3. Note any files you've already seen in this conversation
  4. Identify what you're uncertain about

Output Format

## Files I Need

### Must See (required for accurate answer)
- `path/to/file.ts` — [why needed]

### Should See (helpful for complete answer)
- `path/to/file.ts` — [why helpful]

### Already Have
- `path/to/file.ts` — [from earlier in conversation]

### Uncertainties
- [What I'm not sure about without seeing the code]

After I provide these files, I'll ask my question again.

常见问题

为什么 AI 需要查看文件?

要回答关于代码的问题,AI 需要“阅读”代码本身,就像人要读一本书才能回答关于这本书的问题一样。

“Must See”和“Should See”是什么意思?

“Must See”是得出正确答案必不可少的文件。“Should See”是有助于给出更完整回答、但并非绝对必需的文件。

如果 AI 之前已经看过某个文件,会怎么做?

它会记录当前对话中已经讨论过的文件,因此不会重复索取,并且清楚哪些内容已经在它的“知识”中了。

详情

作者的原始描述

Ask Copilot what files it needs to see before answering a question

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7477
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能