what-context-needed
๐ฏSkillfrom github/awesome-copilot
Asks Copilot what files and context it needs to see before answering a question, reducing hallucination and improving accuracy.
Overview
A meta-prompting skill for GitHub Copilot that asks the AI to identify what files and context it needs before answering a question. Instead of guessing or hallucinating answers, Copilot first lists the files it requires, explains why each is relevant, and identifies uncertainties โ resulting in more accurate and grounded responses.
Key Features
- Pre-answer context discovery: Before answering any question, Copilot outputs a structured list of files it needs to examine, categorized into "Must See" (required for accuracy), "Should See" (helpful for completeness), and "Already Have" (from conversation context).
- Transparent reasoning: Each requested file includes an explanation of why it is relevant to the question, making the AI's reasoning process visible and auditable.
- Uncertainty identification: Explicitly calls out what the AI is unsure about without seeing the actual code, helping users understand potential gaps in the response before it is generated.
- Two-pass interaction pattern: Users first invoke this skill with their question, provide the requested files, then ask the question again โ producing significantly more accurate answers through informed context.
Who is this for?
This skill is ideal for developers working on large or unfamiliar codebases who want to reduce AI hallucination and improve answer quality. It is especially valuable when asking complex architectural questions, debugging across multiple files, or when Copilot's initial answers seem to miss important project-specific context. The two-pass approach trades a small amount of extra interaction time for substantially better accuracy.
Same repository
github/awesome-copilot(315 items)
Installation
npx vibeindex add github/awesome-copilot --skill what-context-needednpx skills add github/awesome-copilot --skill what-context-needed~/.claude/skills/what-context-needed/SKILL.mdSKILL.md
More from this repository10
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Generates comprehensive Product Requirements Documents (PRDs) by systematically analyzing requirements and crafting detailed technical specifications
Expert technical writer guided by the Diataxis framework, creating tutorials, how-to guides, reference docs, and explanation pages for software documentation.
Generates Excalidraw diagrams from natural language descriptions, creating visual representations of processes, systems, relationships, and ideas.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Provides Spring Boot best practices covering project setup, dependency injection, REST API design, data access with JPA, security configuration, and testing strategies.
Creates optimized multi-stage Dockerfiles for any language or framework, separating builder and runtime stages to produce smaller, more secure container images.
Creates README.md files for projects.
Merges mature lessons from domain memory files into instruction files, consolidating knowledge with minimal redundancy across global, user, and workspace scopes.