The GitHub Copilot SDK is a multi-platform agent runtime that embeds Copilot's agentic workflows into applications. It exposes the same engine behind Copilot CLI, enabling programmatic invocation without requiring custom orchestration development.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioncopilot-sdkExecute the skills CLI command in your project's root directory to begin installation:
Fetches copilot-sdk from doggy8088/agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate copilot-sdk. Access via /copilot-sdk in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
The GitHub Copilot SDK is a multi-platform agent runtime that embeds Copilot's agentic workflows into applications. It exposes the same engine behind Copilot CLI, enabling programmatic invocation without requiring custom orchestration development.
Status: Technical Preview (suitable for development and testing)
Supported Languages: TypeScript/Node.js, Python, Go, .NET
copilot --version)| Language | Command |
|---|---|
| TypeScript/Node.js | npm install @github/copilot-sdk |
| Python | pip install github-copilot-sdk |
| Go | go get github.com/github/copilot-sdk/go |
| .NET | dotnet add package GitHub.Copilot.SDK |
Application → SDK Client → JSON-RPC → Copilot CLI (server mode)
The SDK manages CLI lifecycle automatically. External server connections supported via cliUrl / cli_url.
import { CopilotClient } from "@github/copilot-sdk";
const client = new CopilotClient();
await client.start();
const session = await client.createSession({ model: "gpt-5" });
// Register handler BEFORE send()
session.on((event) => {
if (event.type === "assistant.message") {
console.log(event.data.content);
}
});
await session.send({ prompt: "What is 2 + 2?" });
await session.destroy();
await client.stop();
Critical: Register event handlers before calling send() to capture all events.
For complete examples in all languages, see references/working-examples.md.
Main entry point. Manages CLI server lifecycle and session creation.
Operations: start(), stop(), createSession(), resumeSession()
Config: cliPath, cliUrl, port, useStdio, autoStart, autoRestart
Individual conversation context with message history.
Operations: send(), sendAndWait(), on(), abort(), getMessages(), destroy()
Config: model, streaming, tools, systemMessage
Key events during processing:
| Event | Purpose |
|---|---|
assistant.message |
Complete response |
assistant.message_delta |
Streaming chunk |
session.idle |
Ready for next prompt |
tool.execution_start/end |
Tool invocations |
For full event lifecycle and SessionEvent structure, see references/event-system.md.
streaming: false (default) - Content arrives all at oncestreaming: true - Content arrives incrementally via assistant.message_deltaFinal assistant.message always fires regardless of streaming setting.
See Supported AI Models for full list.
| Provider | Model ID | Notes |
|---|---|---|
| OpenAI | gpt-4.1, gpt-5, gpt-5-mini |
Included |
| OpenAI | gpt-5.1, gpt-5.1-codex, gpt-5.2 |
Premium |
| Anthropic | claude-sonnet-4.5 |
Premium (CLI default) |
| Anthropic | claude-opus-4.5 |
Premium (3× multiplier) |
gemini-3-pro-preview |
Premium |
TypeScript (Zod):
const tool = defineTool("lookup_issue", {
description: "Fetch issue details",
parameters: z.object({ id: z.string() }),
handler: async ({ id }) => fetchIssue(id),
});
Python (Pydantic):
@define_tool(description="Fetch issue details")
async def lookup_issue(params: IssueParams) -> dict:
return fetch_issue(params.id)
For complete tool examples in all languages, see references/working-examples.md.
| Concept | TypeScript | Python | Go | .NET |
|---|---|---|---|---|
| Create session | createSession() |
create_session() |
CreateSession() |
CreateSessionAsync() |
| Delta content | deltaContent |
delta_content |
DeltaContent |
DeltaContent |
For full conventions table, see references/event-system.md.
Config stored in ~/.copilot/:
config.json - General configurationmcp-config.json - MCP server definitionsFor custom agents and MCP setup, see references/cli-agents-mcp.md.
| Problem | Solution |
|---|---|
| Events fire but content empty | Use event.data.content, not event.content |
| Handler never fires | Register before send() |
| Python enum issues | Use event.type.value |
| Go nil pointer | Check != nil before dereferencing |
For debugging techniques, see references/troubleshooting.md.
Detailed documentation in this skill:
references/working-examples.md - Complete examples for all languages, custom toolsreferences/event-system.md - Event lifecycle, SessionEvent structure, language conventionsreferences/troubleshooting.md - Common issues, debugging techniquesreferences/cli-agents-mcp.md - CLI configuration, custom agents, MCP server setupMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Solid pick for teams standardizing on skills: copilot-sdk is focused, and the summary matches what you get after install.
I recommend copilot-sdk for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
copilot-sdk is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Registry listing for copilot-sdk matched our evaluation — installs cleanly and behaves as described in the markdown.
Registry listing for copilot-sdk matched our evaluation — installs cleanly and behaves as described in the markdown.
We added copilot-sdk from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in copilot-sdk — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: copilot-sdk is focused, and the summary matches what you get after install.
Keeps context tight: copilot-sdk is the kind of skill you can hand to a new teammate without a long onboarding doc.
Keeps context tight: copilot-sdk is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 65