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
| Type | File | Purpose |
|---|---|---|
| Instructions | context-engineering.instructions.md | Guidelines for structuring code so Copilot understands it better |
| Agent | context-architect.agent.md | Plans multi-file changes by mapping dependencies first |
| Prompt | context-map.prompt.md | Generates a map of affected files before changes |
| Prompt | what-context-needed.prompt.md | Asks Copilot what files it needs to answer well |
| Prompt | refactor-plan.prompt.md | Creates 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