what-context-needed

作者: github

在回答问题前,询问AI助手需要哪些文件。提示助手在尝试回答前,识别出回答所需的关键和可选文件作为上下文。将输出结构化为四个类别:必看文件、辅助文件、已阅文件及剩余不确定项。帮助开发者避免不完整的回答,确保助手事先检查了相关代码。通过在实际提问前明确上下文中的依赖关系和缺失信息,减少来回沟通。

npx skills add https://github.com/github/awesome-copilot --skill what-context-needed

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.