Home/prompts/What Context Needed

What Context Needed

Ask Copilot what files it needs to see before answering a question

CopilotpromptBuilt-inFeatured

What Context Do You Need?

Before answering my question, tell me what files you need to see.

My Question

{{question}}

Instructions

  • Based on my question, list the files you would need to examine
  • Explain why each file is relevant
  • Note any files you've already seen in this conversation
  • 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.

    Details

    Tools
    codebase
    Filecopilot-contribution/prompts/what-context-needed.prompt.md

    How to Use

    In Copilot

    Add this .prompt.md file to your .github/prompts/ directory and invoke it from Copilot Chat.