copilotkit-channels
Ce qu’il fait
Cette compétence couvre le côté code d'un canal CopilotKit géré pour Slack ou Microsoft Teams. Elle s'adresse aux développeurs qui veulent modifier une configuration de canal existante ou en ajouter une à un projet que la CLI CopilotKit n'a pas créé.
Quand l’utiliser
- ✓Quand vous voulez personnaliser le canal qu'un projet CopilotKit inclut déjà.
- ✓Quand vous voulez un agent dans Slack ou Teams et que le projet n'a pas été créé par la CLI CopilotKit.
- ✓Quand vous voulez savoir quel produit de canal vous utilisez avant de modifier quoi que ce soit.
Lien du skill
https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Personnalise le canal Slack de ce projet CopilotKit pour que l'agent ne réponde que dans un seul canal précis.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent vérifie d'abord si le projet utilise un canal géré ou les paquets d'adaptateurs auto-hébergés, car les deux fonctionnent différemment. Il modifie ensuite la déclaration du canal, l'hôte de longue durée et l'appel d'activation dont le projet a besoin.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Est-ce la même chose que les adaptateurs auto-hébergés ?
Non. Les canaux gérés gardent les identifiants du fournisseur chez CopilotKit, alors que les paquets d'adaptateurs les conservent dans votre propre processus.
Comment l'agent sait-il quelle configuration j'ai ?
Il cherche un fichier d'hôte de canal à la racine du projet.
Crée-t-il l'application Slack à ma place ?
La création d'une application Slack pour la première fois relève d'une autre compétence de configuration.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 38k
- Position au classement
- #7487
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
channels-setup
38kOriente votre agent vers la configuration guidée de CopilotKit, pour qu'un premier agent réponde dans Slack ou Microsoft Teams, du début à la fin.
copilotkit-cli
38kAide votre agent à utiliser l'outil en ligne de commande CopilotKit pour vérifier la configuration d'un projet, créer des projets et gérer les réglages hébergés.
copilotkit
38kAide votre agent à trouver la documentation et le code source actuels de CopilotKit avant d'écrire du code, au lieu de se fier à sa mémoire d'une API qui évolue.
setup-slack-channel
38kAide votre agent à relier un agent CopilotKit local à Slack, en créant l'application Slack, ses jetons et le canal géré.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.