mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 10:25:13 +00:00
Add tools for maximizing GitHub Copilot effectiveness through better context management: - Instructions: Guidelines for structuring code so Copilot understands it - Agent: Context Architect - plans multi-file changes by mapping dependencies - Prompts: - context-map: Map all affected files before changes - what-context-needed: Ask Copilot what files it needs - refactor-plan: Create phased refactor plans with rollback steps Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
61 lines
1.9 KiB
YAML
61 lines
1.9 KiB
YAML
id: context-engineering
|
|
name: Context Engineering
|
|
description: 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.
|
|
tags: [context, productivity, refactoring, best-practices, architecture]
|
|
|
|
items:
|
|
- path: instructions/context-engineering.instructions.md
|
|
kind: instruction
|
|
|
|
- path: agents/context-architect.agent.md
|
|
kind: agent
|
|
usage: |
|
|
recommended
|
|
|
|
The Context Architect agent helps plan multi-file changes by mapping dependencies
|
|
and identifying all relevant files before making modifications.
|
|
|
|
Use this agent when:
|
|
- Planning refactors that span multiple files
|
|
- Adding features that touch several modules
|
|
- Investigating unfamiliar parts of the codebase
|
|
|
|
Example usage:
|
|
```
|
|
@context-architect I need to add rate limiting to all API endpoints.
|
|
What files are involved and what's the best approach?
|
|
```
|
|
|
|
For best results:
|
|
- Describe the high-level goal, not just the immediate task
|
|
- Let the agent search before you provide files
|
|
- Review the context map before approving changes
|
|
|
|
- path: prompts/context-map.prompt.md
|
|
kind: prompt
|
|
usage: |
|
|
optional
|
|
|
|
Use before any significant change to understand the blast radius.
|
|
Produces a structured map of files, dependencies, and tests.
|
|
|
|
- path: prompts/what-context-needed.prompt.md
|
|
kind: prompt
|
|
usage: |
|
|
optional
|
|
|
|
Use when Copilot gives a generic or incorrect answer.
|
|
Asks Copilot to explicitly list what files it needs to see.
|
|
|
|
- path: prompts/refactor-plan.prompt.md
|
|
kind: prompt
|
|
usage: |
|
|
optional
|
|
|
|
Use for multi-file refactors. Produces a phased plan with
|
|
verification steps and rollback procedures.
|
|
|
|
display:
|
|
ordering: manual
|
|
show_badge: true
|