Skip to content

Commit a9e6c4c

Browse files
authored
Document plugin formats and environment variables
Added sections on plugin formats and environment variables.
1 parent 9ea8b20 commit a9e6c4c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/copilot/customization/agent-plugins.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ Once installed, plugin-provided customizations appear alongside your locally def
5656
> [!CAUTION]
5757
> Plugins can include hooks and MCP servers that run code on your machine. Review the plugin contents and publisher before installing, especially for plugins from community marketplaces.
5858
59+
## Plugin Formats
60+
The plugin format is auto-selected based on the plugin file path (relative to the plugin root).
61+
| Plugin format | Plugin file path(s) |
62+
|---------------|------------------|
63+
| Claude | `.claude-plugin/plugin.json` |
64+
| Copilot | `plugin.json`, `.github/plugin/plugin.json` |
65+
| OpenPlugin | `.plugin/plugin.json` |
66+
67+
### Plugin Environment Variables
68+
| Plugin format | Plugin root |
69+
|---------------|------------------|
70+
| Claude | `${CLAUDE_PLUGIN_ROOT}` |
71+
| Copilot | (Not Defined) |
72+
| OpenPlugin | `${PLUGIN_ROOT}` |
73+
5974
## Hooks in plugins
6075

6176
Plugins can include [hooks](/docs/copilot/customization/hooks.md) that run shell commands at agent lifecycle points. Plugin hooks work alongside your workspace and user-level hooks. When a plugin is enabled, its hooks fire in addition to any other hooks configured for the same event.

0 commit comments

Comments
 (0)