Перейти к содержанию
Skillpedia
Код в целом38k · #7487

copilotkit-channels

Что он делает

Этот скилл охватывает сторону кода управляемого канала CopilotKit для Slack или Microsoft Teams. Он нужен разработчикам, которые хотят изменить существующую настройку канала или добавить канал в проект, который не создавала CLI CopilotKit.

Когда использовать

  • ✓Когда вы хотите изменить канал, который уже входит в проект CopilotKit.
  • ✓Когда вам нужен агент в Slack или Teams, а проект создан не через CLI CopilotKit.
  • ✓Когда вы хотите понять, с каким продуктом каналов вы работаете, прежде чем что-либо менять.

Ссылка на скилл

https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-channels/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Настрой канал Slack в этом проекте CopilotKit так, чтобы агент отвечал только в одном конкретном канале.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Агент сначала проверяет, использует ли проект управляемый канал или пакеты адаптеров для собственного хостинга, поскольку работают они по-разному. Затем он редактирует объявление канала, долгоживущий хост и вызов активации, которые нужны проекту.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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:

  1. 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 init guides a new project, npx copilotkit channels add handles 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.
  2. 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-channels
    

    Add --via skill:copilotkit-channels to 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 reports Unknown 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

Частые вопросы

Это то же самое, что адаптеры для собственного хостинга?

Нет. Управляемые каналы хранят учетные данные провайдера на стороне CopilotKit, а пакеты адаптеров держат их в вашем собственном процессе.

Как агент понимает, какая у меня настройка?

Он ищет файл хоста канала в корне проекта.

Он создает за меня приложение Slack?

Создание приложения Slack впервые описано в отдельном скилле настройки.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
38k
Место в рейтинге
#7487
Лицензия
MIT
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы