360 Secure SkillHub
360 安全技能中心

what-context-needed

这是一个提示词模板:在正式提问前,要求助手按“必须看、建议看、已看过、不确定”四类列出所需文件并说明理由,用户补齐文件后再重新提问,用于预先确定代码问答的上下文范围。不含自动读取或执行代码的能力。

github
热度 0.00
最近更新 2026-10-18 22:13:20
分类:开发依赖:纯提示词应用场景:代码审查 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github/awesome-copilot/what-context-needed
Metadata
name
what-context-needed
description
Ask Copilot what files it needs to see before answering a question

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.