copilot-sdk – skill Lập trình cho agent AI
Xây dựng ứng dụng tương tác với GitHub Copilot theo cách lập trình. SDK bao bọc Copilot CLI qua JSON-RPC, cung cấp quản lý phiên, công cụ tùy chỉnh, hooks, tích hợp máy chủ MCP và streaming trên Node.js, Python, Go và .NET.
Cài skill copilot-sdk bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/copilot-sdk-ebe10.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /copilot-sdk – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/copilot-sdk-ebe10.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $copilot-sdk – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/copilot-sdk-ebe10.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /copilot-sdk – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/copilot-sdk-ebe10.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /copilot-sdk – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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](references/detailed-guide.md) 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 --versionto verify) - GitHub Copilot subscription (Individual, Business, or Enterprise) — not required for BYOK
- Runtime: Node.js 18+ / Python 3.8+ / Go 1.21+ / .NET 8.0+
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
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.
Skill liên quan
- screen-reader-testing – Kiểm thử ứng dụng web với trình đọc màn hình gồm VoiceOver, NVDA và JAWS. Dùng khi kiểm…
- cowork-to-code-bridge – Dùng cầu nối cowork-to-code đã cài sẵn và được xác minh độc lập để chạy các hành động…
- cpp – Hướng dẫn super-code riêng cho ngôn ngữ cpp.
- create-branch – Tạo nhánh git theo quy ước đặt tên của Sentry. Dùng khi được yêu cầu "create a branch"…
- requesting-code-review – Review trước khi commit: quét bảo mật, cổng chất lượng và tự động sửa lỗi.
- rowan – Rowan là nền tảng cloud-native cho quy trình mô hình hóa phân tử và hóa dược, có Python…
- crossframe-debate – Dùng khi CrossFrame Suite định tuyến công việc kiểm tra mệnh đề, phân tích tranh luận…
- rest-graphql-debug – Gỡ lỗi API REST/GraphQL: mã trạng thái, xác thực, schema, tái hiện lỗi.