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.
When to Use
- This skill is applicable to execute the workflow or actions described in the overview.
Core Workflow
- Confirm the request matches this skill's trigger, scope, and risk profile.
- Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.
- Load
references/full-guidance.md when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.
- Apply only the relevant guidance instead of loading or repeating the entire reference by default.
- Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.
Topic Map
- Prerequisites
- Installation
- Core Pattern: Client → Session → Message
- Node.js / TypeScript
- Python
- Go
- .NET
- Streaming Responses
- Event Subscription
- Custom Tools
- Node.js
- Hooks
- Example: Tool Permission Control
- Pre-Tool Use Output
- MCP Server Integration
- Remote HTTP Server
- Local Stdio Server
- MCP Config Fields
Reference Map
references/full-guidance.md preserves the complete original guidance, including examples and detailed edge cases.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Progressive Loading
Keep this SKILL.md as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.
1---2name: copilot-sdk3description: 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.4license: MIT5---67# GitHub Copilot SDK89Build 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.1011## When to Use12- This skill is applicable to execute the workflow or actions described in the overview.1314## Core Workflow151. Confirm the request matches this skill's trigger, scope, and risk profile.162. Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.173. Load `references/full-guidance.md` when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.184. Apply only the relevant guidance instead of loading or repeating the entire reference by default.195. Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.2021## Topic Map22- Prerequisites23- Installation24- Core Pattern: Client → Session → Message25- Node.js / TypeScript26- Python27- Go28- .NET29- Streaming Responses30- Event Subscription31- Custom Tools32- Node.js33- Hooks34- Example: Tool Permission Control35- Pre-Tool Use Output36- MCP Server Integration37- Remote HTTP Server38- Local Stdio Server39- MCP Config Fields4041## Reference Map42- `references/full-guidance.md` preserves the complete original guidance, including examples and detailed edge cases.4344## Limitations45- Use this skill only when the task clearly matches the scope described above.46- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.47- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.4849## Progressive Loading50Keep this `SKILL.md` as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.