360 Secure SkillHub
360 安全技能中心

what-context-needed

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

分类:开发
github
热度 38.83
最近更新 2026-10-18 22:13:20

安装

发给 Agent
帮我安装这个技能: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.