Skip to content

GitHub Copilot CLI

Target id Package Ship with
github-copilot-cli @oiap/exporter-github-copilot-cli oiap sync (git install) or install-agent-plugin
Terminal window
npx oiap build oiap.plugin.ts --target github-copilot-cli --out dist/github-copilot-cli
npx install-agent-plugin <owner>/<repo> --plugin <plugin-id> --agent github-copilot-cli

GitHub Copilot CLI plugin exporter for Open Interoperable Agent Plugins.

This package lowers OIAP plugin primitives into the Copilot CLI plugin layout:

plugin.json
commands/<command>.md
skills/<skill>/SKILL.md
agents/<agent>.agent.md
hooks.json
.mcp.json
.oiap/runtime/

Most authors should use the CLI:

Terminal window
bun run oiap build ./oiap.plugin.ts --target github-copilot-cli --out ./build/copilot-cli
copilot plugin install ./build/copilot-cli

copilot --plugin-dir ./build/copilot-cli loads the bundle for one session.

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
  • Copilot CLI plugins have no rules or custom-instruction component, so rules are exported as skills.
  • Plugin hooks get PLUGIN_ROOT in their environment, and the generated commands use it. The OIAP runner writes Copilot CLI hook output (permissionDecision, additionalContext, modifiedResult, decision); modify and schedule results 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 excludeTools has no Copilot CLI equivalent and is dropped.
  • The oiap install command has no default path for this target: Copilot CLI manages its own install directory. Use --out and copilot plugin install.

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

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.