naman10parikh/agentdial/add-channel-adapter

Claude Code and agent skill by naman10parikh/agentdial

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Wire a new communication platform into agentdial as an AIP channel — one inbound normalizer + one outbound formatter that collapse the platform into GatewayMessage / GatewayResponse, with no change to the agent backend. Use when the maintainer says "add support for <platform>" (e.g. Matrix, LINE, Messenger, Mastodon) or a new channel appears in the connector registry.

Install

npx vskill@latest install naman10parikh/agentdial/add-channel-adapter

SKILL.md

The same SKILL.md was published earlier as naman10parikh/agentdial/add-channel-adapter.

Skill: add-channel-adapter

Trigger

  • The maintainer asks to support a new platform: "add Matrix", "we need LINE", "wire up Messenger".
  • A new channel id is added to SUPPORTED_CHANNELS / ChannelTypeSchema and needs an adapter.
  • An existing channel needs a second provider (e.g. a Vapi-style alternate for voice).

The contract you must satisfy

AIP has exactly two primitives. A channel adapter only has to do two jobs:

  1. Inbound: map the platform's raw webhook/event shape → GatewayMessage

({ id, channel, from, text, timestamp, threadId? }).

  1. Outbound: map GatewayResponse ({ text, cards?, actions? }) → the platform's native send shape.

The agent backend NEVER changes — it always speaks { text } in → { text } out. If your change touches src/lib/built-in-agent.ts or the agent HTTP contract, you are doing it wrong.

Steps

  1. Register the channel id (model tier: none): add it to ChannelTypeSchema in src/adapters/types.ts

and to SUPPORTED_CHANNELS + the metadata maps in src/lib/constants.ts (CHANNEL_TIERS, CHANNEL_DISPLAY_NAMES, CHANNEL_COSTS, CHANNEL_PROVIDERS, ...). Keep all maps in sync. If the channel is listed in PLANNED_CHANNELS (today imessage and web), remove it there once its adapter is registered in src/adapters/index.ts. src/__tests__/channels.test.ts fails until the two agree.

  1. Add the inbound normalizer (model tier: sonnet): extend normalizeMessage() in src/lib/gateway.ts

with the platform's field names (its text field, its sender field, its timestamp). Prefer adding to the existing ?? fallback chains over branching — the function already handles Telegram-nested, Twilio Body/From, Slack ts, etc. Reuse those patterns.

  1. Add the outbound formatter (model tier: sonnet): add a case "<channel>" to formatResponse() if the

platform supports rich replies (buttons/cards); otherwise the default plain-{ text } branch is correct.

  1. (If webhook-based) add signature validation (model tier: sonnet): add a validator in

src/lib/webhook-validation.ts and a branch in validateWebhook() in src/commands/serve.ts. Mirror the Twilio HMAC-SHA1 / Slack HMAC-SHA256+replay / Telegram secret-token patterns already there.

  1. (If WebSocket-based, like Discord/Slack) add a connector class under src/adapters/ and register it in

connectWebSocketAdapters() and WEBSOCKET_CHANNELS in serve.ts.

  1. Write a behavioral eval (model tier: sonnet): add an inbound case to L2-001 and an outbound case to

L2-002 in eval/behavioral.test.ts for the new channel.

Model tier per step

Step 1: none · Steps 2-6: sonnet (small, surgical diffs).

Verify (loop until green)

bash
./node_modules/.bin/tsc # 0 type errors
./node_modules/.bin/vitest run # all tests + your new behavioral case pass
node dist/index.js channels list # new channel appears in the table

Expected output

A diff touching only types.ts, gateway.ts, constants.ts, optionally webhook-validation.ts/serve.ts, plus a new eval/ case — and ZERO change to the agent backend contract. The new channel round-trips an inbound event to a normalized GatewayMessage and back out to a platform-appropriate reply.

Boundaries

Never change the { text } in → { text } out agent contract. Never add live API calls to the test suite — keep adapters mocked and deterministic. Never store platform credentials in the repo (they live in ~/.agentdial/credentials/<channel>.json, 0600).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/naman10parikh/agentdial/add-channel-adapter/badge)](https://verified-skill.com/skills/naman10parikh/agentdial/add-channel-adapter)

Something wrong with this skill or its page? Tell us.