feishu-group-thread-reply
Force openclaw-lark bot replies into message threads in Feishu group chats, preventing main chat noise. Patches the plugin's dispatch layer and optionally the feishu-live-card watcher. Use when: (1) Bot replies appear in the main group chat stream instead of threads (2) After updating openclaw-lark plugin (patches get overwritten by npm updates) (3) User mentions "thread reply", "群聊 thread", "回复到话题", "thread 回复" (4) Checking if the thread reply patch is still applied (5) Setting up a new OpenClaw instance with Feishu group chats
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/arianxx/feishu-group-thread-replyWhat This Skill Does
The feishu-group-thread-reply skill is a critical utility for OpenClaw users who integrate with Feishu group chats. By default, the openclaw-lark plugin often posts responses directly into the main message stream, which can cause significant noise and clutter in busy group environments. This skill functions as a surgical patcher for the openclaw-lark plugin's dispatch layer and the optional feishu-live-card watcher.
Technically, it modifies the plugin's logic by overriding the hardcoded replyInThread: dc.isThread check. By changing the condition to dc.isGroup || dc.isThread, it forces the bot to create a new thread for every group message response. This ensures that discussions remain organized and contained, preventing the bot from hijacking the main conversation flow.
Installation
To install this skill, use the ClawHub command: clawhub install openclaw/skills/skills/arianxx/feishu-group-thread-reply. After installation, navigate to the skill directory and execute bash scripts/patch-lark-thread.sh. If you utilize the feishu-live-card plugin, you should also run python3 scripts/patch-live-card.py. Always remember to execute openclaw gateway restart after applying patches to ensure the new logic is loaded into the active runtime environment.
Use Cases
- Managing High-Traffic Groups: Keep channels clean by isolating bot interactions from human dialogue.
- Post-Update Recovery: Whenever the openclaw-lark plugin receives an npm update, patches are automatically overwritten. This skill provides a quick way to re-patch and restore threaded behavior.
- Deployment Automation: Include this as part of your initial OpenClaw configuration script to ensure that bot replies are threaded from the very first message sent in a new environment.
- Troubleshooting: Use the included check flags (
--check-only) to verify if the patch integrity remains intact during a debugging session.
Example Prompts
- "OpenClaw, please enable thread reply for our project group so the main channel stays clean."
- "My bot is posting in the main chat instead of threads, can you apply the feishu group thread patch?"
- "Check if the thread reply patch is still active for my Feishu gateway."
Tips & Limitations
Note that this skill relies on patching static files within the node_modules structure of your plugin directory. Because npm updates trigger a re-installation of dependencies, these patches are ephemeral. We strongly recommend adding the heartbeat auto-check commands provided in the skill documentation to your HEARTBEAT.md file. This creates a self-healing system that verifies the integrity of the patch every time the heartbeat executes, re-applying it automatically if the plugin version has been bumped. For complex deployments, always review references/how-it-works.md to understand the exact scope of the code injection.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-arianxx-feishu-group-thread-reply": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution