mcpField
W
what-context-needed

what-context-needed

github.com/githubAgent 工作流40.5k8.9k 次安装今天更新
代码仓库

关于 what-context-needed

一种在回答问题前先确认所需文件的提示词技能。它按重要程度列出文件、说明相关性、标注已查看内容并指出不确定之处。

主要功能

  1. 01列出所需文件
  2. 02说明文件相关性
  3. 03标注已提供的文件
  4. 04指出不确定之处
  5. 05区分必需与辅助文件

适用场景

  1. 01回答前请求仓库上下文
  2. 02明确需要查看哪些源文件
  3. 03记录已掌握的上下文

安装

复制下面的命令,在终端中运行。

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

安装后在 Claude Code 中输入/what-context-needed确认已加载。

详细介绍

你需要什么上下文?

在回答我的问题之前,告诉我你需要查看哪些文件。

我的问题

{{question}}

说明

  1. 根据我的问题,列出你需要检查的文件
  2. 说明每个文件为什么相关
  3. 注明你在此对话中已经看过的任何文件
  4. 指出你不确定的地方

输出格式

## 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]

在我提供这些文件后,我会再次提出我的问题。

评论

支持 Markdown