GitHub Copilot CLI
| Target id | Package | Ship with |
|---|---|---|
github-copilot-cli |
@oiap/exporter-github-copilot-cli |
oiap sync (git install) or install-agent-plugin |
npx oiap build oiap.plugin.ts --target github-copilot-cli --out dist/github-copilot-clinpx install-agent-plugin <owner>/<repo> --plugin <plugin-id> --agent github-copilot-cliGitHub Copilot CLI plugin exporter for Open Interoperable Agent Plugins.
This package lowers OIAP plugin primitives into the Copilot CLI plugin layout:
plugin.jsoncommands/<command>.mdskills/<skill>/SKILL.mdagents/<agent>.agent.mdhooks.json.mcp.json.oiap/runtime/Most authors should use the CLI:
bun run oiap build ./oiap.plugin.ts --target github-copilot-cli --out ./build/copilot-clicopilot plugin install ./build/copilot-clicopilot --plugin-dir ./build/copilot-cli loads the bundle for one session.
Surfaces
Section titled “Surfaces”| OIAP surface | Copilot CLI output | Fidelity |
|---|---|---|
| Manifest | root plugin.json with skills, commands, agents, hooks, mcpServers paths |
native |
| Skills | skills/<name>/SKILL.md plus skill files beside it |
native |
| Commands | commands/<name>.md with name and description frontmatter |
native |
| Agents | agents/<id>.agent.md; access: "read-only" becomes tools: ["read", "search"] |
native |
| Rules, always-on instructions | model-invoked skills | fallback |
| Hooks | hooks.json (version: 1, camelCase events) calling the OIAP runner through $PLUGIN_ROOT |
partial |
| MCP | .mcp.json with mcpServers (type: local, http or sse) |
native |
| Policies | .oiap/policy.json evidence |
partial |
Limitations
Section titled “Limitations”- Copilot CLI plugins have no rules or custom-instruction component, so rules are exported as skills.
- Plugin hooks get
PLUGIN_ROOTin their environment, and the generated commands use it. The OIAP runner writes Copilot CLI hook output (permissionDecision,additionalContext,modifiedResult,decision);modifyandscheduleresults have no Copilot CLI equivalent and are reported as degraded. - The plugin root is not expanded in skill or agent Markdown, so references to bundled files are relative to the file that contains them.
- MCP
excludeToolshas no Copilot CLI equivalent and is dropped. - The
oiap installcommand has no default path for this target: Copilot CLI manages its own install directory. Use--outandcopilot plugin install.
Sources
Section titled “Sources”- Plugin reference: https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-plugin-reference
- Hooks reference: https://docs.github.com/en/copilot/reference/hooks-reference
- Custom agents: https://docs.github.com/en/copilot/reference/custom-agents-configuration
- Skills: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-skills
- MCP servers: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers
- Changelog: https://github.com/github/copilot-cli/blob/main/changelog.md (1.0.26 plugin hook root env vars, 1.0.88 hook cwd, 0.0.399 / 0.0.412 / 0.0.417 command files)
Support matrix
Section titled “Support matrix”From the platform support matrix (see its legend).
| Profile | Package | Rules | Skills | Commands | Hooks | Agents | MCP | Runtime | Policy |
|---|---|---|---|---|---|---|---|---|---|
| core | Y | F | Y | P | P | Y | Y | R | P |
Platform notes
Section titled “Platform notes”Native plugin target. OIAP exports a legacy-format root plugin.json with
skills/, commands/, agents/*.agent.md, hooks.json (version 1, camelCase
events) and .mcp.json. Plugin hooks run from the project root and receive
PLUGIN_ROOT as an environment variable (changelog 1.0.26 and 1.0.88), so
hook commands locate the runner through it, and the runner writes Copilot CLI
hook output fields. Read-only agents use the read and search tool aliases.
Rules fall back to model-invoked skills; command files are documented only in
the changelog. Copilot CLI manages its own install directory, so the profile
defines no install path: build with --out and run copilot plugin install.