zhin-adapter-development
Installation
SKILL.md
Zhin Adapter Development Guide
Use this skill to create custom platform adapters that connect Zhin to chat platforms (QQ, Discord, Telegram, etc.).
Adapter Architecture
An adapter manages multiple Bot instances for a single platform. Each Bot connects to the platform and handles message sending/receiving.
Adapter (platform)
├── Bot 1 (account A)
├── Bot 2 (account B)
└── Tools (platform-specific capabilities)
Minimal Adapter
import { Adapter, Bot, Plugin, Message } from '@zhin.js/core'