|
| 1 | +# Context Engineering |
| 2 | + |
| 3 | +Tools and techniques for maximizing GitHub Copilot effectiveness through better context management. Includes guidelines for structuring code, an agent for planning multi-file changes, and prompts for context-aware development. |
| 4 | + |
| 5 | +**Tags:** context, productivity, refactoring, best-practices, architecture |
| 6 | + |
| 7 | +## Items in this Collection |
| 8 | + |
| 9 | +| Title | Type | Description | MCP Servers | |
| 10 | +| ----- | ---- | ----------- | ----------- | |
| 11 | +| [Context Engineering](../instructions/context-engineering.instructions.md)<br />[](https://aka.ms/awesome-copilot/install/instructions?url=vscode%3Achat-instructions%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Finstructions%2Fcontext-engineering.instructions.md)<br />[](https://aka.ms/awesome-copilot/install/instructions?url=vscode-insiders%3Achat-instructions%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Finstructions%2Fcontext-engineering.instructions.md) | Instruction | Guidelines for structuring code and projects to maximize GitHub Copilot effectiveness through better context management | | |
| 12 | +| [Context Architect](../agents/context-architect.agent.md)<br />[](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fcontext-architect.agent.md)<br />[](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fcontext-architect.agent.md) | Agent | An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies [see usage](#context-architect) | | |
| 13 | +| [Context Map](../prompts/context-map.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fcontext-map.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fcontext-map.prompt.md) | Prompt | Generate a map of all files relevant to a task before making changes [see usage](#context-map) | | |
| 14 | +| [What Context Do You Need?](../prompts/what-context-needed.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fwhat-context-needed.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fwhat-context-needed.prompt.md) | Prompt | Ask Copilot what files it needs to see before answering a question [see usage](#what-context-do-you-need?) | | |
| 15 | +| [Refactor Plan](../prompts/refactor-plan.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Frefactor-plan.prompt.md)<br />[](https://aka.ms/awesome-copilot/install/prompt?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Frefactor-plan.prompt.md) | Prompt | Plan a multi-file refactor with proper sequencing and rollback steps [see usage](#refactor-plan) | | |
| 16 | + |
| 17 | +## Collection Usage |
| 18 | + |
| 19 | +### Context Architect |
| 20 | + |
| 21 | +recommended |
| 22 | + |
| 23 | +The Context Architect agent helps plan multi-file changes by mapping dependencies |
| 24 | +and identifying all relevant files before making modifications. |
| 25 | + |
| 26 | +Use this agent when: |
| 27 | +- Planning refactors that span multiple files |
| 28 | +- Adding features that touch several modules |
| 29 | +- Investigating unfamiliar parts of the codebase |
| 30 | + |
| 31 | +Example usage: |
| 32 | +``` |
| 33 | +@context-architect I need to add rate limiting to all API endpoints. |
| 34 | +What files are involved and what's the best approach? |
| 35 | +``` |
| 36 | + |
| 37 | +For best results: |
| 38 | +- Describe the high-level goal, not just the immediate task |
| 39 | +- Let the agent search before you provide files |
| 40 | +- Review the context map before approving changes |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +### Context Map |
| 45 | + |
| 46 | +optional |
| 47 | + |
| 48 | +Use before any significant change to understand the blast radius. |
| 49 | +Produces a structured map of files, dependencies, and tests. |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +### What Context Do You Need? |
| 54 | + |
| 55 | +optional |
| 56 | + |
| 57 | +Use when Copilot gives a generic or incorrect answer. |
| 58 | +Asks Copilot to explicitly list what files it needs to see. |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +### Refactor Plan |
| 63 | + |
| 64 | +optional |
| 65 | + |
| 66 | +Use for multi-file refactors. Produces a phased plan with |
| 67 | +verification steps and rollback procedures. |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +*This collection includes 5 curated items for **Context Engineering**.* |
0 commit comments