Agent skill

Chat SDK Bots

by lobehub in lobehub/lobehub

Builds chat bots once for Slack, Teams, Google Chat, Discord, GitHub and Linear with the Chat SDK, covering event handlers, cards, modals, streaming and state adapters.

Custom licenceAuto-check passedBackend & APIs

Install Chat SDK Bots

skills CLI
$ npx skills add lobehub/lobehub --skill chat-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lobehub/lobehub chat-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lobehub/lobehub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/chat-sdk .claude/skills/chat-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
chat-sdk
GitHub stars
83k
Token cost
~1.5k tokens
SKILL.md length
344 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
Custom licence

At a glance

Builds chat bots once for Slack, Teams, Google Chat, Discord, GitHub and Linear with the Chat SDK, covering event handlers, cards, modals, streaming and state adapters.

  • Writing a bot that should work on several chat platforms
  • SKILL.md covers Critical: Read the bundled docs, Quick start, Core concepts and Event handlers, plus 4 more sections
  • Needs SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET
  • Handling mentions, slash commands and reactions in a bot

What it does

The skill is for building multi-platform bots with a unified TypeScript Chat SDK. It tells the agent to read the documentation and type definitions bundled in node_modules/chat before writing code, and lists which doc covers setup, usage, streaming with the AI SDK, JSX cards, actions, modals (Slack only), adapters and state adapters. Core concepts are the Chat entry point, platform adapters, pluggable state (Redis for production, memory for development), threads, normalized messages and channels.

An event handler table maps triggers to functions: onNewMention for the bot being mentioned in an unsubscribed thread, onSubscribedMessage for any message in a subscribed thread, onNewMessage with a regex, onSlashCommand, onReaction, and onAction for button clicks and dropdown selections. A quick start creates a Chat instance with a Slack adapter and Redis state.

When your agent uses it

  • Writing a bot that should work on several chat platforms
  • Handling mentions, slash commands and reactions in a bot
  • Adding interactive cards, buttons or modals to a bot
  • Streaming model output into a chat thread

Example prompts

  • “Build a bot that answers mentions in Slack and Discord from one codebase.”
  • “Add a slash command and a button handler that opens a modal in Slack.”
  • “Stream the model's reply into the thread as it is generated.”
  • “Switch the bot's state adapter from memory to Redis for production.”

Requirements

  • The chat npm package and a platform adapter such as @chat-adapter/slack
  • A Redis instance if you want persistent state in production

What it can do on your machine

Read from SKILL.md and the folder at commit 6aaeeee. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SLACK_BOT_TOKEN
    • SLACK_SIGNING_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chat SDK Bots loads about 1.5k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 344 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 344 words (~1,534 tokens).

“Unified TypeScript SDK for building chat bots across Slack, Teams, Google Chat, Discord, GitHub, and Linear. Write bot logic once, deploy everywhere.”

— opening of SKILL.md by lobehub, Custom licence
name
chat-sdk
user-invocable
false

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/chat-sdk of lobehub/lobehub.

Open the folder on GitHubat commit 6aaeeee

Compare with similar skills

Chat SDK Bots next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Chat SDK Bots compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chat SDK Bots this skilllobehub/lobehub83k—~1.5kAutomated safety check: PassCustom licence
Chat SDKdatabuddy-analytics/Databuddy1.2k—~2.6kAutomated safety check: PassAGPL-3.0
Chat SDKvercel/vercel-plugin301—~2.9kAutomated safety check: PassCustom licence
Frontmcp Channelsagentfront/frontmcp146—~3.7kAutomated safety check: PassApache-2.0
Openloomi Connectorsmelandlabs/openloomi1k—~3.3kAutomated safety check: PassApache-2.0
Channel Debug Corevercel-labs/vercel-openclaw-archived117—~2kAutomated safety check: NotesMIT

Similar skills

  • Chat SDK

    databuddy-analytics/Databuddy

    Build multi-platform chat bots with Chat SDK (chat npm package).

    1.2k GitHub stars~2.6k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Chat SDK

    vercel/vercel-plugin

    Official

    Vercel Chat SDK expert guidance. An agent skill from vercel/vercel-plugin.

    301 GitHub stars~2.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Frontmcp Channels

    agentfront/frontmcp

    A skill your agent uses when pushing real-time notifications or events into Claude Code (or another MCP client) sessions, or building two-way chat bridges.

    146 GitHub stars~3.7k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Openloomi Connectors

    melandlabs/openloomi

    openloomi Connectors tools - manage the native 7 messaging integrations and pair with the composio skill for the 1000+ apps OAuth layer (Slack, Discord, X, Gmail, Outlook, Google…

    1k GitHub stars~3.3k tokensUpdated 15 days ago
    Productivity & AutomationAuto-check passed
  • Channel Debug Core

    vercel-labs/vercel-openclaw-archived

    Official

    Channel webhook triage for vercel-openclaw Slack/Telegram/Discord/WhatsApp issues: prove deployment state, collect admin readiness endpoints, build evidence-first handoff before fixes.

    117 GitHub stars~2k tokensUpdated 4 mo ago
    Backend & APIsAuto-check: notes
  • Latchkey

    imbue-ai/latchkey

    Interact with third-party or self-hosted services (Slack, Google Workspace, Dropbox, GitHub, Linear, Coolify...) using their HTTP APIs on the user's behalf.

    130 GitHub stars~1.3k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed

More from lobehub/lobehub

All 50 skills in this repo
  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Verifies a delivery end to end by driving the real product on a CLI, web, desktop or iOS Simulator surface, capturing evidence and publishing a round with the lh CLI.

    83k GitHub stars~9.7k tokensUpdated yesterday
    Auto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Guides building LobeHub builtin agent tools, from the manifest and execution runtime to executors, chat UI renders and registry wiring.

    83k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Chat SDK Bots

What does Chat SDK Bots do?

Builds chat bots once for Slack, Teams, Google Chat, Discord, GitHub and Linear with the Chat SDK, covering event handlers, cards, modals, streaming and state adapters. The skill is for building multi-platform bots with a unified TypeScript Chat SDK. It tells the agent to read the documentation and type definitions bundled in node_modules/chat before writing code, and lists which doc covers setup, usage, streaming with the AI SDK, JSX cards, actions, modals (Slack only), adapters and state adapters.

When should I use Chat SDK Bots?

Chat SDK Bots fits situations like: writing a bot that should work on several chat platforms; handling mentions, slash commands and reactions in a bot; adding interactive cards, buttons or modals to a bot; streaming model output into a chat thread.

How do I install Chat SDK Bots in Claude Code?

Run `npx skills add lobehub/lobehub --skill chat-sdk -a claude-code`. Or copy the skill folder (.agents/skills/chat-sdk in lobehub/lobehub) into .claude/skills/chat-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Chat SDK Bots in Codex?

Run `npx skills add lobehub/lobehub --skill chat-sdk -a codex`. Or copy the skill folder (.agents/skills/chat-sdk in lobehub/lobehub) into .agents/skills/chat-sdk in your project. Codex loads it when a task matches its description.

Can I use Chat SDK Bots in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lobehub/lobehub --skill chat-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chat-sdk, .gemini/skills/chat-sdk, .github/skills/chat-sdk and .opencode/skills/chat-sdk in your project.

What does Chat SDK Bots need to run?

Going by SKILL.md and its folder, Chat SDK Bots needs credentials named SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET. Our summary lists: The chat npm package and a platform adapter such as @chat-adapter/slack; A Redis instance if you want persistent state in production.

Does Chat SDK Bots access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Chat SDK Bots safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Chat SDK Bots use?

Chat SDK Bots has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Chat SDK Bots use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chat SDK Bots?

Skills that share tags, products or a category with Chat SDK Bots: Chat SDK (databuddy-analytics/Databuddy, 1.2k stars), Chat SDK (vercel/vercel-plugin, 301 stars), Frontmcp Channels (agentfront/frontmcp, 146 stars) and Openloomi Connectors (melandlabs/openloomi, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chat SDK Bots?

lobehub (a GitHub organization) maintains it in lobehub/lobehub, which has 83,044 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 8, 2026.

Source: lobehub/lobehub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.