external-im-integration

external-im-integration is a skill for Claude Code, Codex from opensquad-ai/opensquad. It costs 50 tokens per session (1,681 once invoked), scanned A, original, MIT.

A connection guide for linking coding agents with external chat services such as Feishu, QQ, and Telegram. It explains the message path between those services, adapter processes, and the agent gateway.

In plain words
What is it for?
Use it to set up chat-platform applications, configure authentication and workspace paths, run the required adapters, and diagnose message delivery problems.
Why use it?
It removes the guesswork from receiving messages, sending replies, and troubleshooting the separate background processes required for each chat service.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/opensquad-ai/opensquad/external-im-integration
Any agent
npx skills add opensquad-ai/opensquad --skill external-im-integration
Clone the repo
git clone --depth 1 https://github.com/opensquad-ai/opensquad

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 external-im-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/opensquad-ai/opensquad/external-im-integration.svg)](https://agentmods.dev/skills/opensquad-ai/opensquad/external-im-integration)
Your own site
<a href="https://agentmods.dev/skills/opensquad-ai/opensquad/external-im-integration"><img src="https://agentmods.dev/badge/skills/opensquad-ai/opensquad/external-im-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.01681
Opus 5 $0.00025 $0.00840
Sonnet 5 $0.00010 $0.00336
Haiku 4.5 $0.00005 $0.00168

Measured 4d ago against content hash b7ede83ba6ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

external-im-integration 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 4d 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.

src/skills/external-im-integration/SKILL.md · 185 lines

How it starts

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

Purpose

Enable agents to send and receive messages from external IM platforms. After setup, the agent can:

  • Receive group chat and direct messages from external IM
  • Reply to incoming messages
  • Proactively send messages to groups or users

Architecture (read this first for troubleshooting)

The message flow for all external IM platforms is the same:

External IM (Feishu/QQ/Telegram) → Platform WebSocket/Webhook
  → Platform Adapter Process (listens for incoming events)
  → POST http://127.0.0.1:9700/api/chat
  → External API Adapter Process (relay layer)
  → Gateway WebSocket → Agent

Each platform needs TWO separate processes managed by the Launcher:

  1. Platform adapter (e.g., plugins.feishu.adapter) — listens for incoming messages from the IM platform
  2. External API adapter (plugins.external_api.adapter, port 9700) — shared relay that forwards to Gateway

These are not in-process plugins — they are subprocesses spawned by the Launcher via the service field in plugin.json.

Prerequisites

  • An app on the target IM platform's developer console (Feishu Open Platform, Telegram BotFather)
  • Launcher running (manages adapter processes)
  • pip install lark-oapi for Feishu, or respective SDK for Telegram

Step-by-Step Guide (Feishu Example)

Step 1: Verify service field in both plugin.json files

This step is mandatory — without the service field, Launcher won't start the adapter processes.

plugins/external_api/plugin.json (shared by all platforms):

"service": {
  "cmd": "python -m plugins.external_api.adapter",
  "default_port": 9700,
  "health_check": "/api/health",
  "startup_timeout": 30,
  "auto_start": true
}

plugins/feishu/plugin.json (or plugins/telegram/plugin.json):

"service": {
  "cmd": "python -m plugins.feishu.adapter",
  "auto_start": true,
  "startup_timeout": 30
}

⚠️ Note — PluginManager uses a merge strategy that preserves the service field when updating plugin.json. If service is null (older versions may have overwritten it), re-write it manually and restart Launcher.

Read the full file on GitHub · 185 lines

Files

What ships with it

1 file 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. 4d ago First seen · 185 lines · 50 tokens per session scan A b7ede83ba6ae

Subscribe to this mod's changes

external-im-integration is a skill published in the GitHub repository opensquad-ai/opensquad (5 stars, last pushed 21d ago), licensed MIT. It adds 50 tokens to every session and 1,681 once invoked, about $0.0003 per session on Opus 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-31.