chat: Skill for Claude Code

.agents/skills/add-adapter/SKILL.md

add-adapter is a skill for Claude Code, Codex from vercel/chat. It costs 108 tokens per session (1,678 once invoked), scanned A, original, MIT.

A contribution workflow for registering a third-party chat adapter in the Chat SDK catalogue and documentation. An adapter connects the SDK to an outside service or platform.

In plain words
What is it for?
Adding, listing or submitting a vendor-provided or community adapter, including its package name, export, installation instructions, supported features and documentation page.
Why use it?
It prevents incomplete or invented catalogue entries by requiring details from the adapter's repository and documentation. It also covers the files and tests that must be updated together.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is vercel/chat's own configuration. It tells Claude Code and Codex how to work on chat itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chat configures →

About the project

Chat SDK is a TypeScript software development kit for creating chat bots that work across services such as Slack, Microsoft Teams, Google Chat, Discord, Telegram, and WhatsApp. It lets developers write bot behavior once while using adapters for different messaging platforms, with support for events, interactive cards, modals, commands, files, and streamed AI responses. The catalogue includes skills and instructions for working with the SDK.

vercel/chat · 2,421 stars · on GitHub · chat-sdk.dev

Reuse

Borrowing it

Nothing to install: this file belongs to vercel/chat. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel/chat/main/.agents/skills/add-adapter/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vercel/chat

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/chat/add-adapter/github.svg)](https://agentmods.dev/skills/vercel/chat/add-adapter)
Your own site
<a href="https://agentmods.dev/skills/vercel/chat/add-adapter"><img src="https://agentmods.dev/badge/skills/vercel/chat/add-adapter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-adapter

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/chat/add-adapter"><img src="https://agentmods.dev/badge/skills/vercel/chat/add-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 1 Oct 2026
  • Snyk warn 1 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01678
Opus 5.5 $0.00043 $0.00671
Sonnet 5.5 $0.00022 $0.00336
Haiku 4.5 $0.00011 $0.00168

Measured 12d ago against content hash 6294e1e3f7ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/add-adapter/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a catalog adapter (vendor-official or community)

Use this to list a third-party adapter in the Chat SDK catalog and docs. It is not for building a first-party packages/adapter-* package.

Required: load the technical-writer skill (../technical-writer/SKILL.md) before writing any prose: the docs page, frontmatter tagline and description, the changeset, commit messages, and the PR description. Follow its editorial standards alongside the sourcing rules below.

Gather the source — never invent details

Ask the user for:

  1. Their adapter's GitHub repository URL.
  2. Their docs or README.

Read both. Everything you write into the catalog and docs must come directly from those sources or from the user. Do not assume or guess any information:

  • packageName — read it from the repo's package.json, verbatim.
  • Factory export (e.g. createFooAdapter) — read it from the package's exports/source. Do not guess it from the display name.
  • type (platform or state), env vars, and the feature matrix — base these on what the code and README actually document.
  • Install and usage snippets — take them from the README; do not write example code the adapter may not support.

If the repo or README does not make something clear, stop and ask the user rather than filling it in. When in doubt, ask.

Choose the slug (kebab-case) and confirm it is not already taken: ls apps/docs/content/adapters/*/.

Pick the tier

  • community — listed in the docs. A CommunityAdapter entry in @chat-adapter/catalog (listing metadata and capabilities only), no scaffold spec.
  • vendor-official — a maintained/blessed adapter. A full CatalogAdapter entry with setup metadata (factory export, peer deps, env vars), a matching create-chat-sdk scaffold-spec entry, and a changeset. Frontmatter adds vendorOfficial: true and author.

Files to change

<tier> is vendor-official or community.

Read the full file on GitHub · 78 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed 6294e1e3f7ba
  2. 16d ago Changed · +3 tokens per session c5000b0332ac
  3. 23d ago Changed · +2 lines 0fa6a986a7e1
  4. 25d ago Changed · +2 lines · -4 tokens per session 533b0c0ff936
  5. 1mo ago First seen · 74 lines · 109 tokens per session scan A 1bc53abef088

Subscribe to this mod's changes

add-adapter is a skill published in the GitHub repository vercel/chat (2,421 stars, last pushed yesterday), licensed MIT. It adds 108 tokens to every session and 1,678 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.