Generated banner for What Context Needed
Generated logo for What Context Needed

What Context Needed

GitHubOfficialOriginally contributed by @vfaraji89 as prompts/what-context-needed.prompt.md; moved into a skill by pull request #761Distributed by GitHub

  • Skill
  • Meta (authoring, orchestration, planning, memory)
  • Agent tooling
  • MIT
  • No issues found

From the author

Ask Copilot what files it needs to see before answering a question
— the description by vfaraji89

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill helps users optimize their interactions with an AI agent by proactively identifying which files are required to provide an accurate and informed response. By prompting the agent to analyze the requirements of a specific question, the user can ensure the agent has the necessary context before attempting to solve a problem, reducing hallucinations and improving answer quality.

What it does

  • Analyzes a user question to determine required codebase context.
  • Categorizes files into must-see and should-see groups.
  • Identifies files already provided in the current conversation history.
  • Highlights specific areas of uncertainty that prevent an accurate answer.
  • Provides a structured markdown template for the agent's response.

When to use it

  • When you are unsure which parts of a large codebase are relevant to your question.
  • Before asking a complex architectural or debugging question.
  • To prevent the agent from making assumptions based on incomplete information.
  • When you want to ensure the agent has a complete view of dependencies or related logic.

Advantages

  • Increases the accuracy of AI-generated responses.
  • Reduces wasted tokens on irrelevant file analysis.
  • Helps the user understand the agent's reasoning process.
  • Creates a clear roadmap for providing necessary context.

Usage examples

“What context do you need to help me refactor the authentication module?”
The agent will list the specific files related to authentication, explain why they are needed, and identify any missing information.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/github/what-context-needed/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip what-context-needed.zip -d .agents/skills

Documentation by vfaraji89

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.

Files

Requirements and compatibility

Written for: GitHub Copilot

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Originally contributed by
GitHub avatar of vfaraji89@vfaraji89as prompts/what-context-needed.prompt.mdmoved into a skill by pull request #761
Publisher
GitHub (Official)
Distributed by
GitHub
Source
github/awesome-copilot · skills/what-context-needed · commit 797337f
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Contributors
vfaraji89

AutoGineer is not affiliated with or endorsed by vfaraji89 or GitHub.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download what-context-needed.zip