copilotkit-channels
Skill này làm gì
Skill này bao quát phần mã của một Channel CopilotKit được quản lý cho Slack hoặc Microsoft Teams. Skill dành cho lập trình viên muốn thay đổi một thiết lập kênh đã có hoặc thêm kênh vào một dự án không do CLI của CopilotKit tạo ra.
Khi nào nên dùng
- ✓Khi bạn muốn tùy chỉnh kênh mà một dự án CopilotKit đã có sẵn.
- ✓Khi bạn muốn có một agent trên Slack hoặc Teams và dự án không do CLI của CopilotKit tạo ra.
- ✓Khi bạn muốn biết mình đang làm việc với sản phẩm kênh nào trước khi thay đổi bất cứ thứ gì.
Liên kết skill
https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tùy chỉnh kênh Slack trong dự án CopilotKit này để agent chỉ trả lời trong một kênh cụ thể.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent trước hết kiểm tra xem dự án dùng kênh được quản lý hay các gói adapter tự lưu trữ, vì hai cách hoạt động khác nhau. Sau đó nó chỉnh sửa khai báo kênh, host chạy lâu dài và lệnh kích hoạt mà dự án cần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
CopilotKit Channels
Managed Channels let an agent answer in Slack or Microsoft Teams. Intelligence owns the provider edge — signed ingress, egress, credential storage — and delivers turns to your runtime over its realtime transport.
Scope
This skill covers managed Intelligence Channels: CopilotIntelligenceRuntime, app-api Channel resources, and the realtime gateway.
It does not cover the self-hosted @copilotkit/channels provider adapters (@copilotkit/channels-slack, -teams, -discord, -whatsapp). Those hold provider credentials in your process and talk to the provider directly. Both products use the words "channels" and "Slack", so confirm which one the user means before wiring anything. If they want to hold their own Slack tokens and run their own ingress, they want the adapter packages, not this skill.
Decide which path you are on first
Everything below depends on this, and getting it wrong produces a project with two Channel declarations that fight over one Channel.
Look for channel-host.mts at the project root.
| It is there | It is not |
|---|---|
The project was scaffolded by npx copilotkit init. The code half is already done — go to "Customising a scaffolded Channel". Do not write a new host or a second createChannel. |
The project predates the Channel, or was not made by the CLI. Go to "Wiring a project the CLI did not generate", at the end. |
The scaffolded path is the one exercised end to end. Wiring an existing project is supported and works, but it is less trodden: the CLI reads source it did not generate, so a project laid out unusually may get a status leg reported as undetermined rather than a confident answer. That is deliberate — an unsure answer beats a wrong one — but verify the wiring yourself there rather than trusting a green report.
A Channel has two halves
A Channel only works when both are correct, and each half is invisible from the other:
- The provider half — an app registered with Slack or Microsoft, credentials stored server-side, ingress pointed at Intelligence. Three entry points converge on it:
npx copilotkit initguides a new project,npx copilotkit channels addhandles an existing project or agent, and the dashboard wizard works in a browser. A new Teams app begins with the browser-created draft and uses one of the two paths below. - The code half — a long-running runtime that declares the Channel and awaits activation. A scaffolded project already has this; for anything else, it is what this skill writes.
The most confusing failure in this product is a correct provider half with a missing code half: the app serves HTTP normally, reports no error, shows an encouraging badge in the dashboard, and answers nothing. Nothing in the browser can diagnose it, because the missing piece is in the source tree.
Teams provider setup has two peer paths
For Teams, create the durable Channel draft in Intelligence before provisioning Microsoft resources. The browser then offers:
Fast CLI setup (recommended): copy the fully scoped command from the draft:
npx copilotkit@latest channels add --project-id <project-id> --channel-id <channel-id> --adapter teams --provision --via skill:copilotkit-channelsAdd
--via skill:copilotkit-channelsto the copied command, and keep it on every CLI command in this skill. It only tells CopilotKit's telemetry that the call came from this skill. If the CLI reportsUnknown option '--via', npx ran an old cached version: run the command again without the flag.It works outside a repository, reuses the CopilotKit login, confirms the Microsoft tenant, creates one single-tenant Teams-managed app, and sends the generated secret directly to encrypted Intelligence storage. It does not print the secret, write provider environment files, or modify runtime code.
**Guided manual
Câu hỏi thường gặp
Đây có giống các adapter tự lưu trữ không?
Không. Kênh được quản lý giữ thông tin xác thực nhà cung cấp ở phía CopilotKit, còn các gói adapter giữ chúng trong tiến trình của bạn.
Agent biết tôi có thiết lập nào?
Nó tìm một tệp host kênh ở thư mục gốc của dự án.
Nó có tạo ứng dụng Slack cho tôi không?
Việc tạo ứng dụng Slack lần đầu được bao quát bởi một skill thiết lập riêng.
Chi tiết
Mô tả gốc của tác giả
Use for the CODE half of a managed Intelligence Channel with Slack or Microsoft Teams: customising the Channel a CLI-scaffolded project already ships, or — for a project the CLI did not generate — writing the Channel declaration, the long-running host, and the awaited activation call. Teams provider setup is in scope, because the CLI or dashboard wizard performs it. Creating a Slack app for the first time is not: if no Slack app exists yet, use setup-slack-channel for the provider half and return here for the code.
repo: CopilotKit/CopilotKit
Độ phổ biến
- Sao GitHub
- 38k
- Vị trí xếp hạng
- #7487
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
channels-setup
38kHướng agent của bạn đến thiết lập có hướng dẫn của CopilotKit, để bạn có một agent đầu tiên trả lời trên Slack hoặc Microsoft Teams từ đầu đến cuối.
copilotkit-cli
38kGiúp agent của bạn dùng công cụ dòng lệnh CopilotKit để kiểm tra thiết lập dự án, tạo dự án và quản lý cài đặt được lưu trữ.
copilotkit
38kGiúp agent của bạn tìm tài liệu và mã nguồn CopilotKit hiện tại trước khi viết mã, thay vì dựa vào trí nhớ của một API đang thay đổi.
setup-slack-channel
38kGiúp agent của bạn kết nối một agent CopilotKit chạy cục bộ với Slack, bằng cách tạo ứng dụng Slack, các token của nó và kênh được quản lý.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.