Feishu group welcome

From wulaosiji/skills · View interactive version

Feishu group welcome is an AI agent skill from the GitHub repository wulaosiji/skills. 飞书群聊新成员欢迎工具 / Feishu group welcome bot. 自动检测新成员并发送欢迎消息,支持批量 @ 多位新成员,分批发送避免消息过长,含夜间静默模式。 Use when: "群聊欢迎", "group welcome message", "新成员欢迎", "welcome new members", "批量@用户", "batch mention users", "飞书群管理", "feishu group management", "自动发欢迎语", "automated welcome messages". 支持批量 @(每批最多 20 人)、自定义欢迎语模板、夜间

How to use this skill

Skill file

Feishu Group Welcome Bot

自动检测并欢迎飞书群聊中的新成员,支持批量 @ 和自定义欢迎语,含夜间静默模式。

When to Use

Use this skill when:

Do NOT use this skill if:

Typical triggers:

Workflow

  1. 探查 (Probe)

确认目标群聊 ID、是否需要自定义欢迎语模板。

  1. 约束 (Constrain)

确认 FEISHU_APP_ID 和 FEISHU_APP_SECRET 已配置。飞书 API 只能获取当前群成员列表,无法获取历史加入记录。已发送的欢迎消息无法撤回,发送前确认。夜间模式(23:00-07:00)自动静默,不发送欢迎消息。默认冷却时间 60 分钟。不降级——不在夜间发送欢迎消息。

  1. 证据 (Evidence)

获取当前群成员列表,与上次记录对比,识别新加入的成员。

  1. 执行 (Execute)
cd skills/feishu-group-welcome && python3 scripts/welcome_bot.py

如超过 20 人,自动分批发送(每批最多 20 人),使用富文本 at 标签发送真正的 @ 通知。

  1. 验证 (Verify)

确认欢迎消息已发送,记录已欢迎的成员,避免重复发送。

  1. 交付 (Deliver)

返回欢迎活动日志,更新已欢迎成员记录,清理临时文件。

Output

返回欢迎活动日志,包含欢迎的新成员数量、涉及的群聊和发送的消息数量。

Guardrails

Anti-patterns

Constraints

Batch Strategy

| 批次 | 人数 | 内容 |

|------|------|------|

| 第1批 | 1-20人 | 完整欢迎语 + 表情包 |

| 第2批+ | 21-39人+ | 简化文案 "欢迎 @xxx 加入群聊!(第N批)" |

Usage Examples

# 基本用法 - 检查并欢迎所有群的新成员
python3 scripts/welcome_bot.py

# 指定群聊
python3 scripts/welcome_bot.py --chat-id oc_60c795e2e04eefc3d09eb49da4df15a5

# 手动欢迎指定用户(用于补欢迎)
python3 scripts/welcome_bot.py --chat-id oc_xxx --users user1,user2,user3

Related Skills

About UniqueClub

Part of the UniqueClub toolkit.

🌐 https://uniqueclub.ai

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.