copilot-sdk
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
npx skills add majiayu000/claude-skill-registry --skill copilot-sdk-beel-collab-presets-dev --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Guides embedding Copilot's agentic workflows in applications using Python, TypeScript, Go, or .NET.
How it works
- Describes prerequisites: Copilot CLI installed and authenticated; a language runtime (Node.js, Python, Go, or .NET).
- Shows installation commands for each language: Node.js/TypeScript, Python, Go, and .NET.
- Provides Quick Start code blocks for TypeScript, Python, Go, and .NET to create a Copilot session, start it, send a prompt, and print the response, followed by stopping the client.
- Demonstrates streaming responses by example in multiple languages, handling events, and printing incremental output.
- Explains how to define custom tools with a handler, including tool registration in the session, and how Copilot calls the tool and uses its result.
- Includes an Interactive CLI Assistant example across TypeScript and Python for real-time dialogue with the assistant.
- Details MCP Server Integration to connect to GitHub MCP endpoints in TypeScript, Python, Go, and .NET.
- Shows how to define Custom Agents with name, displayName, description, and prompt in TypeScript and Python.
- Presents System Message customization to influence agent personality.
When to use it
Use when embedding Copilot in an agentic application and you need a ready-made workflow to run sessions, stream responses, connect to MCP servers, or create custom agents/tools. Triggers include Copilot SDK usage, GitHub SDK usage, embedding Copilot, programmable agents, MCP servers, or custom agents.
What it can touch
- Tools declared in the examples: defining tools (e.g., get_weather) and including them in session Tools arrays.
- MCP servers configuration via session.mcpServers (or McpServers) in various languages.
- System messages and custom agents in session creation.
Caveats
- License shown as MIT in the metadata.
- The content provides sample code and does not guarantee runtime success; users must supply real API endpoints and environments.
# GitHub Copilot SDK Embed Copilot's agentic workflows in any application using Python, TypeScript, Go, or .NET. ## Overview The GitHub Copilot SDK exposes the same engine behind Copilot CLI: a production-tested agent runtime you can invoke programmatically. No need to build your own orchestration - you define agent behavior, Copilot handles planning, tool invocation, file edits, and more. ## Prerequisites 1. **GitHub Copilot CLI** installed and authenticated ([Installation guide](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli)) 2. **Language runtime**: Node.js 18+, Python 3.8+, Go 1.21+, or .NET 8.0+ Verify CLI: `copilot --version` ## Installation ### Node.js/TypeScript ```bash mkdir copilot-demo && cd copilot-demo npm init -y --init-type module npm install @github/copilot-sdk tsx ``` ### Python ```bash pip install github-copilot-sdk ``` ### Go ```bash mkdir copilot-demo && cd copilot-demo go mod init copilot-demo go get github.com/github/copilot-sdk/go ``` ### .NET ```bash dotnet new console -n CopilotDemo && cd CopilotDemo dotnet add package GitHub.Copilot.SDK ``` ## Quick Start ### TypeScript ```typescript import { CopilotClient } from "@github/copilot-sd
- Overview
- Prerequisites
- Installation
- Node.js/TypeScript
- Python
- Go
- .NET
- Quick Start
- TypeScript
- .NET (C#)
- Streaming Responses
- Custom Tools
- TypeScript (JSON Schema)
- Python (Pydantic)
mkdir copilot-demo && cd copilot-demo npm init -y --init-type module npm install @github/copilot-sdk tsx pip install github-copilot-sdk go mod init copilot-demo go get github.com/github/copilot-sdk/go dotnet new console -n CopilotDemo && cd CopilotDemo dotnet add package GitHub.Copilot.SDK copilot --server --port 4321
What does the copilot-sdk skill do?
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill copilot-sdk-beel-collab-presets-dev --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
