Skip to content

Commit 2a32411

Browse files
committed
Fix review feedback: mode→agent frontmatter, add applyTo, generate plugin
- Fix prompt frontmatter: mode: 'agent' → agent: 'agent' (repo convention) - Add applyTo: '**' to instructions file - Remove trailing Claude credit from instructions - Generate plugin via npm run plugin:migrate - Rebase onto latest upstream/main
1 parent 2ae2db1 commit 2a32411

10 files changed

Lines changed: 52 additions & 7 deletions

File tree

instructions/context-engineering.instructions.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: 'Guidelines for structuring code and projects to maximize GitHub Copilot effectiveness through better context management'
3+
applyTo: '**'
34
---
45

56
# Context Engineering
@@ -41,7 +42,3 @@ Principles for helping GitHub Copilot understand your codebase and provide bette
4142
- **Missing context**: Open the relevant files in tabs, or explicitly paste code snippets.
4243
- **Stale suggestions**: Copilot may not see recent changes. Re-open files or restart the session.
4344
- **Generic answers**: Be more specific. Add constraints, mention frameworks, reference existing code.
44-
45-
---
46-
47-
*Assisted by [Claude](https://claude.ai)*
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "context-engineering",
3+
"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.",
4+
"version": "1.0.0",
5+
"author": {
6+
"name": "Awesome Copilot Community"
7+
},
8+
"repository": "https://github.com/github/awesome-copilot",
9+
"license": "MIT"
10+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Context Engineering Plugin
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+
## Installation
6+
7+
```bash
8+
# Using Copilot CLI
9+
copilot plugin install context-engineering@awesome-copilot
10+
```
11+
12+
## What's Included
13+
14+
### Commands (Slash Commands)
15+
16+
| Command | Description |
17+
|---------|-------------|
18+
| `/context-engineering:context-map` | Generate a map of all files relevant to a task before making changes |
19+
| `/context-engineering:what-context-needed` | Ask Copilot what files it needs to see before answering a question |
20+
| `/context-engineering:refactor-plan` | Plan a multi-file refactor with proper sequencing and rollback steps |
21+
22+
### Agents
23+
24+
| Agent | Description |
25+
|-------|-------------|
26+
| `context-architect` | An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies |
27+
28+
## Source
29+
30+
This plugin is part of [Awesome Copilot](https://github.com/github/awesome-copilot), a community-driven collection of GitHub Copilot extensions.
31+
32+
## License
33+
34+
MIT
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../agents/context-architect.agent.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../prompts/context-map.prompt.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../prompts/refactor-plan.prompt.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../prompts/what-context-needed.prompt.md

prompts/context-map.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
mode: 'agent'
2+
agent: 'agent'
33
tools: ['codebase']
44
description: 'Generate a map of all files relevant to a task before making changes'
55
---

prompts/refactor-plan.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
mode: 'agent'
2+
agent: 'agent'
33
tools: ['codebase', 'terminalCommand']
44
description: 'Plan a multi-file refactor with proper sequencing and rollback steps'
55
---

prompts/what-context-needed.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
mode: 'agent'
2+
agent: 'agent'
33
tools: ['codebase']
44
description: 'Ask Copilot what files it needs to see before answering a question'
55
---

0 commit comments

Comments
 (0)