Channels — messaging status + launch
Diagnose messaging channel plugins and give the user the exact command to load them. This skill does NOT install channels (use /agent:messaging) or authenticate them (per-channel skills like /whatsapp:configure) — it reports state and hands back a launch command.
This is a CORE feature. See docs/channels.md for details.
Dispatch
| User says | Action |
|---|---|
/agent:channels or /agent:channels list | Call channels_detect({ format: "table" }) and print card |
/agent:channels status [<name>] | Call channels_detect({ format: "json" }), filter by name if given, format single channel |
/agent:channels launch | Call channels_detect({ format: "launch" }) and print only the command |
/agent:channels launch --with-installed | Call with includeInstalledOnly: true — includes installed-but-not-authenticated |
/agent:channels launch --skip-permissions | Call with skipPermissions: true — adds the dangerous flag to the command (warn the user) |
List flow
- Call
channels_detect({ format: "table" }) - Print the returned text verbatim — it already has the table, next-steps hints, the launch command, and a ⚠️ Runtime block when a channel server is up but not delivering inbound (see Runtime warnings below)
- If any channels show
❌under Installed and the user is new, remind: "Install a channel with/agent:messaging <name>"
Status flow (single channel)
- Call
channels_detect({ format: "json" }) - Find the entry where
namematches (case-insensitive) - If not found, respond: "I don't track a channel called
<name>. Known channels: whatsapp, telegram, discord, imessage, slack, fakechat." - Otherwise print a compact block:
📡 <label>
kind: <development|official|integration>
installed: <✅ | ❌> (<detail>)
authenticated: <✅ | ❌ | ⏸️> (<detail>)
active: <❓ | ❌> (<detail>)
next: <setupHint>
- If the entry has a
runtimefield, surface it — see Runtime warnings.
Runtime warnings
The JSON entry may carry a runtime field read from the channel's live status.json (currently WhatsApp). When runtime.problem is true, the channel server is running but inbound is NOT reaching this session — the classic "I see 'typing…' on my phone but the agent never answers" failure, usually after an in-session update/reload or when a second session (interactive, service, or a still-alive scheduled-task session) holds the single-device lock.
When runtime.problem is true, do NOT report the channel as healthy. Lead with the warning, verbatim from runtime.detail, and then runtime.remediation if present. For example:
⚠️ WhatsApp inbound is NOT active in this session — another instance (PID <runtime.holderPid>) holds the single-device lock, so incoming messages go to that session, not this one.
Fix: <runtime.remediation>
Key runtime.status values: idle_other_instance (lock held by another session — the main one), logged_out (re-link needed), lock_error (filesystem/PID-file problem). Never tell the user to run /whatsapp:configure reset for idle_other_instance — it's a lock-ownership problem, not a link problem; the fix is to get down to one session. On claude-whatsapp ≥ 1.21 the waiting session takes over the lock automatically (within ~15 s of the holder exiting), so closing the extra session is enough; on older channel versions the waiting session stays idle forever and needs a full relaunch after the holder is closed. See claude-whatsapp docs/troubleshooting.md → "You see 'typing…' but get no reply".
Launch flow
- Call
channels_detect({ format: "launch" })(with the appropriate flags from the user's command) - Print the command in a code block
- Remind the user: "This command is also what
/agent:service installwill use. Copy it or re-run the service install after any channel change."
If the user included --skip-permissions, ADD a warning above the command:
⚠️ The
--dangerously-skip-permissionsflag pre-approves every tool call. Use only for background/service runs.
Response style
- CLI / WebChat: full table
- WhatsApp / Telegram / Discord: collapse to one line per channel using the icons, e.g.
📡 WhatsApp:✅✅❓ · Telegram:✅❌❌ · iMessage:✅✅❓. The full table is too wide for mobile.
Never
- Do NOT try to install or authenticate channels from this skill. Redirect to
/agent:messagingor the channel's own skill. - Do NOT lie about
activestate — the tool says❓ unknownwhen it can't tell. Pass that through; the user can verify with/mcpor by sending a message. - Do NOT generate a launch command with
--skip-permissionsunless the user explicitly asked for it.
References
docs/channels.md— full referencelib/channel-detector.ts— pure detection logicskills/messaging/SKILL.md— channel installationskills/service/SKILL.md— always-on, consumes the launch command