From 2a324116dbd1a53c24089e9b992e7c21efb9b124 Mon Sep 17 00:00:00 2001 From: vfaraji89 Date: Tue, 10 Feb 2026 22:43:10 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20review=20feedback:=20mode=E2=86=92agent?= =?UTF-8?q?=20frontmatter,=20add=20applyTo,=20generate=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../context-engineering.instructions.md | 5 +-- .../.github/plugin/plugin.json | 10 ++++++ plugins/context-engineering/README.md | 34 +++++++++++++++++++ .../agents/context-architect.md | 1 + .../commands/context-map.md | 1 + .../commands/refactor-plan.md | 1 + .../commands/what-context-needed.md | 1 + prompts/context-map.prompt.md | 2 +- prompts/refactor-plan.prompt.md | 2 +- prompts/what-context-needed.prompt.md | 2 +- 10 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 plugins/context-engineering/.github/plugin/plugin.json create mode 100644 plugins/context-engineering/README.md create mode 120000 plugins/context-engineering/agents/context-architect.md create mode 120000 plugins/context-engineering/commands/context-map.md create mode 120000 plugins/context-engineering/commands/refactor-plan.md create mode 120000 plugins/context-engineering/commands/what-context-needed.md diff --git a/instructions/context-engineering.instructions.md b/instructions/context-engineering.instructions.md index 05c87d9b..99658fd5 100644 --- a/instructions/context-engineering.instructions.md +++ b/instructions/context-engineering.instructions.md @@ -1,5 +1,6 @@ --- description: 'Guidelines for structuring code and projects to maximize GitHub Copilot effectiveness through better context management' +applyTo: '**' --- # Context Engineering @@ -41,7 +42,3 @@ Principles for helping GitHub Copilot understand your codebase and provide bette - **Missing context**: Open the relevant files in tabs, or explicitly paste code snippets. - **Stale suggestions**: Copilot may not see recent changes. Re-open files or restart the session. - **Generic answers**: Be more specific. Add constraints, mention frameworks, reference existing code. - ---- - -*Assisted by [Claude](https://claude.ai)* diff --git a/plugins/context-engineering/.github/plugin/plugin.json b/plugins/context-engineering/.github/plugin/plugin.json new file mode 100644 index 00000000..49d09b98 --- /dev/null +++ b/plugins/context-engineering/.github/plugin/plugin.json @@ -0,0 +1,10 @@ +{ + "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.", + "version": "1.0.0", + "author": { + "name": "Awesome Copilot Community" + }, + "repository": "https://github.com/github/awesome-copilot", + "license": "MIT" +} diff --git a/plugins/context-engineering/README.md b/plugins/context-engineering/README.md new file mode 100644 index 00000000..8a1ebb00 --- /dev/null +++ b/plugins/context-engineering/README.md @@ -0,0 +1,34 @@ +# Context Engineering Plugin + +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. + +## Installation + +```bash +# Using Copilot CLI +copilot plugin install context-engineering@awesome-copilot +``` + +## What's Included + +### Commands (Slash Commands) + +| Command | Description | +|---------|-------------| +| `/context-engineering:context-map` | Generate a map of all files relevant to a task before making changes | +| `/context-engineering:what-context-needed` | Ask Copilot what files it needs to see before answering a question | +| `/context-engineering:refactor-plan` | Plan a multi-file refactor with proper sequencing and rollback steps | + +### Agents + +| Agent | Description | +|-------|-------------| +| `context-architect` | An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies | + +## Source + +This plugin is part of [Awesome Copilot](https://github.com/github/awesome-copilot), a community-driven collection of GitHub Copilot extensions. + +## License + +MIT diff --git a/plugins/context-engineering/agents/context-architect.md b/plugins/context-engineering/agents/context-architect.md new file mode 120000 index 00000000..b7c06a33 --- /dev/null +++ b/plugins/context-engineering/agents/context-architect.md @@ -0,0 +1 @@ +../../../agents/context-architect.agent.md \ No newline at end of file diff --git a/plugins/context-engineering/commands/context-map.md b/plugins/context-engineering/commands/context-map.md new file mode 120000 index 00000000..827ba052 --- /dev/null +++ b/plugins/context-engineering/commands/context-map.md @@ -0,0 +1 @@ +../../../prompts/context-map.prompt.md \ No newline at end of file diff --git a/plugins/context-engineering/commands/refactor-plan.md b/plugins/context-engineering/commands/refactor-plan.md new file mode 120000 index 00000000..cc58005d --- /dev/null +++ b/plugins/context-engineering/commands/refactor-plan.md @@ -0,0 +1 @@ +../../../prompts/refactor-plan.prompt.md \ No newline at end of file diff --git a/plugins/context-engineering/commands/what-context-needed.md b/plugins/context-engineering/commands/what-context-needed.md new file mode 120000 index 00000000..6fa010a3 --- /dev/null +++ b/plugins/context-engineering/commands/what-context-needed.md @@ -0,0 +1 @@ +../../../prompts/what-context-needed.prompt.md \ No newline at end of file diff --git a/prompts/context-map.prompt.md b/prompts/context-map.prompt.md index e5e459f9..d3ab149a 100644 --- a/prompts/context-map.prompt.md +++ b/prompts/context-map.prompt.md @@ -1,5 +1,5 @@ --- -mode: 'agent' +agent: 'agent' tools: ['codebase'] description: 'Generate a map of all files relevant to a task before making changes' --- diff --git a/prompts/refactor-plan.prompt.md b/prompts/refactor-plan.prompt.md index 157d7874..97cf252d 100644 --- a/prompts/refactor-plan.prompt.md +++ b/prompts/refactor-plan.prompt.md @@ -1,5 +1,5 @@ --- -mode: 'agent' +agent: 'agent' tools: ['codebase', 'terminalCommand'] description: 'Plan a multi-file refactor with proper sequencing and rollback steps' --- diff --git a/prompts/what-context-needed.prompt.md b/prompts/what-context-needed.prompt.md index c5ec764b..de6c4600 100644 --- a/prompts/what-context-needed.prompt.md +++ b/prompts/what-context-needed.prompt.md @@ -1,5 +1,5 @@ --- -mode: 'agent' +agent: 'agent' tools: ['codebase'] description: 'Ask Copilot what files it needs to see before answering a question' ---