Build applications that programmatically interact with GitHub Copilot. The SDK wraps the Copilot CLI via JSON-RPC, providing session management, custom tools, hooks, MCP server integration, and streaming across Node.js, Python, Go, and .NET.
Start a fresh conversation. Replace the highlighted placeholders.
Use copilot-sdk to add a Copilot SDK session to [project] with [approved custom-tool behavior] and a pre-tool permission hook that denies shell access; assume the GitHub Copilot CLI is installed and authenticated, and deliver the implementation.
Required inputs
[project]
[approved custom-tool behavior]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: copilot-sdkdescription: "Build applications that programmatically interact with GitHub Copilot. The SDK wraps the Copilot CLI via JSON-RPC, providing session management, custom tools, hooks, MCP server integration, and streaming across Node.js, Python, Go, and .NET."risk: criticalsource: communitydate_added: "2026-02-27"
GitHub Copilot SDK
Build applications that programmatically interact with GitHub Copilot. The SDK wraps the Copilot CLI via JSON-RPC, providing session management, custom tools, hooks, MCP server integration, and streaming across Node.js, Python, Go, and .NET.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
Prerequisites
GitHub Copilot CLI installed and authenticated (copilot --version to verify)
GitHub Copilot subscription (Individual, Business, or Enterprise) — not required for BYOK