CopilotKit / CopilotKit/channels-sdk

build-channels-bot skill teaches the pre-rename API (createBot) and a nonexistent adapter package

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
917
Forks
62
PR merge metrics
No merged PRs in 30d

Description

The build-channels-bot skill teaches the pre-rename Channels API (createBot, defineBotTool, …), which no longer exists in any currently-published version of @copilotkit/channels. It also lists an adapter package that was never published.

This matters more than ordinary doc drift because the skill's own frontmatter tells the agent to trust it over its own memory:

The Channels API is new and easy to get wrong from memory — always ground code in this skill.

So an agent that correctly follows the skill emits code that fails at import.

1. The Bot → Channel rename

createBot was renamed to createChannel across the workspace in CopilotKit@229f3f1460 (refactor(channels): rename Bot/createBot public API to Channel/createChannel across the workspace (OSS-473), 2026-07-13), which shipped in channels/v0.2.0. Published versions of @copilotkit/channels are now 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0 — so the old names are valid only on 0.1.x, two minors behind latest.

Verified against packages/channels-core/src/index.ts on main:

Skill (stale) Current Occurrences in skill
createBot createChannel 12
defineBotTool defineChannelTool 11
defineBotCommand defineChannelCommand 3
Bot (type) Channel 4
BotToolContext ChannelToolContext 1
BotNode (lowered-JSX IR) ChannelNode 2

Affected files, all under .claude/skills/build-channels-bot/:

  • SKILL.md — frontmatter trigger list (L11), the five-piece mental model (L32, L35), the packages list (L41), the ## createBot — the entry point heading and its code block (L50–L64), and the "do not" guidance at L228 (new Bot() / createBot(...))
  • references/ui-components.md — L5, BotNode[] as the IR type
  • references/adapter-authoring.md — L28, BotNode[] as the adapter input
  • evals/evals.json — expectations reference the old names

2. @copilotkit/channels-google-chat does not exist

SKILL.md L6 (frontmatter) and L43 both list Google Chat as a supported surface, and L43 names -google-chat as an adapter package. There is no packages/channels-google-chat in the CopilotKit monorepo, and npm view @copilotkit/channels-google-chat returns 404.

Shipped adapters today: channels-slack, channels-teams, channels-discord, channels-telegram, channels-whatsapp (plus channels-intelligence, channels-core, channels-ui).

Worth noting this repo's README.md makes the same Google Chat claim (hero image alt text, the surfaces table, and the roadmap line), so the fix probably wants to cover both.

3. What is still correct — please don't rewrite these

The Thread API in the skill matches packages/channels-core/src/thread.ts exactly. post, update, delete, postFile, awaitChoice<T>, and runAgent(input?) are all current, so this should be a targeted rename plus one package-list correction, not a rewrite.

Suggested scope

  1. Apply the rename mapping above across SKILL.md, both references/*.md files, and evals/evals.json.
  2. Drop Google Chat from the skill's surface list (and the README, if you want them consistent).
  3. Consider pinning the minimum version in the skill's install line (@copilotkit/channels@^0.2.0 or ^0.3.0) so the API shown and the version installed can't drift apart again.

Cross-reference: showcase/shell-docs/src/content/docs/frontends/teams.mdx in the CopilotKit repo has the same createBot staleness and needs the same rename.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/channels-core/src/index.ts to confirm the current Channel API, then inspect .claude/skills/build-channels-bot/SKILL.md, both references files, and evals/evals.json. Check README.md and showcase/shell-docs/src/content/docs/frontends/teams.mdx for the related Google Chat and rename claims. Done means the documented names and package list match published APIs without changing the still-current Thread API.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.