copilotkit-channels
Fungsinya
Skill ini mencakup sisi kode dari Channel CopilotKit yang dikelola untuk Slack atau Microsoft Teams. Skill ini untuk pengembang yang ingin mengubah penyiapan channel yang sudah ada atau menambahkannya ke proyek yang tidak dibuat oleh CLI CopilotKit.
Kapan dipakai
- βSaat Anda ingin menyesuaikan channel yang sudah disertakan dalam proyek CopilotKit.
- βSaat Anda ingin agent di Slack atau Teams dan proyeknya tidak dibuat oleh CLI CopilotKit.
- βSaat Anda ingin tahu produk channel mana yang sedang Anda kerjakan sebelum mengubah apa pun.
Link skill
https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSesuaikan channel Slack di proyek CopilotKit ini agar agent hanya menjawab di satu channel tertentu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent lebih dulu memeriksa apakah proyek memakai channel yang dikelola atau paket adapter yang di-hosting sendiri, karena keduanya bekerja secara berbeda. Setelah itu agent mengedit deklarasi channel, host yang berjalan lama, dan pemanggilan aktivasi yang dibutuhkan proyek.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
Pertanyaan umum
Apakah ini sama dengan adapter yang di-hosting sendiri?
Tidak. Channel yang dikelola menyimpan kredensial penyedia di sisi CopilotKit, sedangkan paket adapter menyimpannya di proses Anda sendiri.
Bagaimana agent tahu penyiapan mana yang Anda pakai?
Ia mencari file host channel di akar proyek.
Apakah ia membuat aplikasi Slack untuk saya?
Pembuatan aplikasi Slack untuk pertama kali dibahas oleh skill penyiapan terpisah.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 38k
- Peringkat
- #7487
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
channels-setup
38kMengarahkan agent Anda ke panduan penyiapan CopilotKit, sehingga agent pertama Anda bisa menjawab di Slack atau Microsoft Teams dari awal sampai akhir.
copilotkit-cli
38kMembantu agent Anda menggunakan alat command-line CopilotKit untuk memeriksa penyiapan proyek, membuat proyek, dan mengelola pengaturan yang di-hosting.
copilotkit
38kMembantu agent Anda menemukan dokumentasi dan sumber CopilotKit yang terbaru sebelum menulis kode, alih-alih mengandalkan ingatan tentang API yang terus berubah.
setup-slack-channel
38kMembantu agent Anda menghubungkan agent CopilotKit yang berjalan lokal ke Slack dengan membuat aplikasi Slack, token-nya, dan channel yang dikelola.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.