Context Engineering Collection PR

Tools for maximizing GitHub Copilot effectiveness through better context management. Contributed to awesome-copilot.

Why this matters

Copilot's suggestions are only as good as the context it has. Most “bad” suggestions come from relevant files not being open, poor project structure that obscures intent, or asking for multi-file changes without providing the full picture.

Components

TypeFilePurpose
Instructionscontext-engineering.instructions.mdGuidelines for structuring code so Copilot understands it better
Agentcontext-architect.agent.mdPlans multi-file changes by mapping dependencies first
Promptcontext-map.prompt.mdGenerates a map of affected files before changes
Promptwhat-context-needed.prompt.mdAsks Copilot what files it needs to answer well
Promptrefactor-plan.prompt.mdCreates phased refactor plans with verification steps

Usage examples

Context Architect Agent

@context-architect I need to add authentication to the API.
What files are involved?

Before a big change

/context-map Add caching to all database queries

When Copilot gives a generic answer

/what-context-needed How does the payment flow work?

Planning a refactor

/refactor-plan Migrate from REST to GraphQL