moltbot-connector-feishu-dingtalk: Skill for Gemini CLI

.gemini/skills/feishu-connection/SKILL.md

feishu-connection is a skill for Gemini CLI from XiaomingX/moltbot-connector-feishu-dingtalk. It costs 97 tokens per session (722 once invoked), scanned B, original, Apache-2.0.

A setup and troubleshooting guide for connecting a Feishu (Lark) bot to Clawdbot through a local WebSocket bridge. Feishu is a messaging and collaboration platform; a WebSocket is a persistent connection between programs.

In plain words
What is it for?
Use it to create the Feishu bot, configure its credentials and message events, run the bridge, inspect logs, and set it to start automatically on macOS.
Why use it?
It lets messages reach Clawdbot without exposing a public server, domain, or tunnel service such as ngrok.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is XiaomingX/moltbot-connector-feishu-dingtalk's own configuration. It tells Gemini CLI how to work on moltbot-connector-feishu-dingtalk 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 moltbot-connector-feishu-dingtalk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to XiaomingX/moltbot-connector-feishu-dingtalk. 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/XiaomingX/moltbot-connector-feishu-dingtalk/main/.gemini/skills/feishu-connection/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/XiaomingX/moltbot-connector-feishu-dingtalk

Made for: Gemini CLI.

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 feishu-connection

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection/github.svg)](https://agentmods.dev/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection)
Your own site
<a href="https://agentmods.dev/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection"><img src="https://agentmods.dev/badge/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection/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 feishu-connection

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection"><img src="https://agentmods.dev/badge/skills/xiaomingx/moltbot-connector-feishu-dingtalk/feishu-connection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 722 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00097 $0.00722
Opus 5 $0.00048 $0.00361
Sonnet 5 $0.00019 $0.00144
Haiku 4.5 $0.00010 $0.00072

Measured 10d ago against content hash 0440d98888a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

feishu-connection scanned grade B with 1 finding 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (bridge.py, setup_service.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.clawdbot/secrets/feishu_app_secret
.gemini/skills/feishu-connection/SKILL.md · 79 lines

How it starts

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

Feishu Bridge

Bridge Feishu bot messages to Clawdbot Gateway over local WebSocket.

Architecture

Feishu user → Feishu cloud ←WS→ bridge.py (local) ←WS→ Clawdbot Gateway → AI agent
  • Feishu SDK connects outbound (no inbound port / public IP needed)
  • Bridge authenticates to Gateway using the existing gateway token
  • Each Feishu chat maps to a Clawdbot session (feishu:<chatId>)

Setup

1. Create Feishu bot

  1. Go to open.feishu.cn/app → Create self-built app → Add Bot capability
  2. Enable permissions: im:message, im:message.group_at_msg, im:message.p2p_msg
  3. Events: add im.message.receive_v1, set delivery to WebSocket long-connection
  4. Publish the app (create version → request approval)
  5. Note the App ID and App Secret

2. Store secret

mkdir -p ~/.clawdbot/secrets
echo "YOUR_APP_SECRET" > ~/.clawdbot/secrets/feishu_app_secret
chmod 600 ~/.clawdbot/secrets/feishu_app_secret

3. Install & run

cd <skill-dir>/feishu-connection
uv sync
FEISHU_APP_ID=cli_xxx uv run python bridge.py

4. Auto-start (macOS)

FEISHU_APP_ID=cli_xxx uv run python setup_service.py
launchctl load ~/Library/LaunchAgents/com.clawdbot.feishu-bridge.plist

Diagnostics

# Check service
launchctl list | grep feishu

# Logs
tail -f ~/.clawdbot/logs/feishu-bridge.err.log

# Stop
launchctl unload ~/Library/LaunchAgents/com.clawdbot.feishu-bridge.plist

Group chat behavior

Bridge replies only when: user @-mentions the bot, message ends with ?/, contains request verbs (帮/请/分析/总结…), or calls the bot by name. Customize the name list in bridge.pyshould_respond_in_group().

Environment variables

Variable Required Default
FEISHU_APP_ID
FEISHU_APP_SECRET_PATH ~/.clawdbot/secrets/feishu_app_secret
CLAWDBOT_CONFIG_PATH ~/.clawdbot/clawdbot.json
CLAWDBOT_AGENT_ID main
FEISHU_THINKING_THRESHOLD_MS 2500

Read the full file on GitHub · 79 lines

Files

What ships with it

5 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. 10d ago First seen · 79 lines · 97 tokens per session scan B 0440d98888a2

Subscribe to this mod's changes

feishu-connection is a skill published in the GitHub repository XiaomingX/moltbot-connector-feishu-dingtalk (7 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 97 tokens to every session and 722 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.