copilotkit-channels
What it does
This skill covers the code side of a managed CopilotKit Channel for Slack or Microsoft Teams. It is for developers who want to change an existing channel setup or add one to a project the CLI did not create.
When to use it
- ✓When you want to customize the channel that a CopilotKit project already includes.
- ✓When you want an agent in Slack or Teams and the project was not created by the CopilotKit CLI.
- ✓When you want to know which channel product you are working with before changing anything.
Skill link
https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Customize the Slack channel in this CopilotKit project so the agent answers only in one specific channel.”
5 new skills a week. 1 minute to read.
How it works
The agent first checks whether the project uses a managed channel or the self-hosted adapter packages, since the two work differently. It then edits the channel declaration, the long-running host and the activation call that the project needs.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Is this the same as the self-hosted adapters?
No. Managed channels keep provider credentials on CopilotKit's side, while the adapter packages hold them in your own process.
How does the agent tell which setup I have?
It looks for a channel host file at the project root.
Does it create the Slack app for me?
Creating a Slack app for the first time is covered by a separate setup skill.
Details
Original description by the author
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
Popularity
- GitHub stars
- 38k
- Ranking position
- #7487
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
channels-setup
38kPoints your agent to CopilotKit's guided setup, so you can get a first agent answering in Slack or Microsoft Teams from start to finish.
copilotkit-cli
38kHelps your agent use the CopilotKit command-line tool to check a project's setup, create projects and manage hosted settings.
copilotkit
38kHelps your agent find current CopilotKit documentation and source before writing code, instead of relying on memory of an API that changes.
setup-slack-channel
38kHelps your agent connect a locally running CopilotKit agent to Slack by creating the Slack app, its tokens and the managed channel.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.