Lark Workflow Announce logo

Lark Workflow Announce

Community
liangdabiao
lark-workflow-announce

群公告管理器:获取、设置、追加群公告内容,并通知群成员。当用户需要'群公告'、'发布公告'、'更新公告'、'设置群公告'、'追加公告'、'群通知'、'更新群公告'时使用。

Overview

Publisherliangdabiao
Repositorylark-workflow-feishu-cli
Skill namelark-workflow-announce
Stars
68
Forks
10
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by liangdabiao on GitHub. Read the source before you install it.

Installation

Install the Lark Workflow Announce AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/liangdabiao/lark-workflow-feishu-cli/tree/main/.claude/skills/lark-workflow-announce
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/liangdabiao/lark-workflow-feishu-cli.git /tmp/lark-workflow-feishu-cli
mkdir -p .claude/skills
cp -r /tmp/lark-workflow-feishu-cli/.claude/skills/lark-workflow-announce .claude/skills/lark-workflow-announce
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lark Workflow Announce in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lark Workflow Announce on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lark Workflow Announce is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

群公告管理器工作流

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理

适用场景

  • "更新XX群的公告为..." / "设置群公告"
  • "在群公告末尾追加一条通知" / "追加公告"
  • "看看XX群现在的公告是什么" / "群公告"
  • "发布一条群公告,@所有人" / "发布公告"
  • "把项目里程碑更新到群公告" / "更新公告"

前置条件

仅支持 user 身份。执行前确保已授权:

bash
lark-cli auth login --domain im

工作流

{chat_id + 操作类型(查看/设置/追加)+ 公告内容}
  │
  ├── im +chat-search ──────────────► 查找群聊(获取 chat_id)
  │
  ├── [查看] lark-cli api GET ──────► 读取当前群公告
  │
  ├── [追加] 先读取再合并 ─────────► 保留旧公告 + 追加新内容
  │
  ├── [设置] lark-cli api PATCH ────► 设置新公告(注意 revision)
  │
  └── [可选] im +messages-send ────► @全体成员通知公告更新

Step 1: 查找群聊

如果用户提供了群名称,先获取 chat_id:

bash
lark-cli im +chat-search --query "<群名称>" --as user

从返回结果中提取 chat_id(oc_xxx 格式)。

Step 2: 查看当前群公告

群公告 API 未被 lark-cli 直接封装,使用 lark-cli api 调用:

bash
# 读取当前群公告
MSYS_NO_PATHCONV=1 lark-cli api GET "/open-apis/im/v1/chats/<chat_id>/announcement" \
  --as user

返回结果包含:

  • content — 当前公告 HTML 内容
  • revision — 版本号(设置公告时必须传递,用于乐观并发控制)

如果返回 code: 0 但 data 为空,说明当前没有群公告。

Step 3: 设置群公告

覆盖模式

用新内容完全替换旧公告:

bash
MSYS_NO_PATHCONV=1 lark-cli api PATCH "/open-apis/im/v1/chats/<chat_id>/announcement" \
  --data '{
    "revision": "<current_revision>",
    "requests": ["<HTML 公告内容>"]
  }' \
  --as user

追加模式

先读取当前公告,在末尾追加新内容:

bash
MSYS_NO_PATHCONV=1 lark-cli api PATCH "/open-apis/im/v1/chats/<chat_id>/announcement" \
  --data '{
    "revision": "<current_revision>",
    "requests": ["<旧公告内容><br><br>---<br><br><新追加内容>"]
  }' \
  --as user

重要:

  • revision 字段必须传递当前的版本号,否则会返回错误
  • 公告内容格式为 HTML(不是 Markdown),支持 <br>, <b>, <a href="">, <font color=""> 等标签
  • requests 是一个字符串数组,每个元素是一段 HTML 内容
  • 设置前必须先读取获取最新 revision

Markdown 转 HTML 参考

AI 需要将用户提供的 Markdown 内容转换为 HTML:

MarkdownHTML
**加粗**<b>加粗</b>
# 标题<font size="5"><b>标题</b></font>
- 列表项列表项<br>
[链接](url)<a href="url">链接</a>

Step 4: 通知群成员(可选)

bash
lark-cli im +messages-send \
  --chat-id "<chat_id>" \
  --text '<at user_id="all"></at> 群公告已更新,请查看群公告。' \
  --as bot

降级策略

场景降级方案
群公告 API 失败用普通消息发送公告内容到群里
revision 冲突重新读取获取最新 revision,再设置
无群公告权限提示用户需要群管理员权限
群聊找不到提示用户确认群名称或提供 chat_id
@所有人受限改为发送普通消息通知

权限表

命令所需 scope
im +chat-searchim:chat:readonly
im/v1/chats/:id/announcement (GET)im:chat:readonly
im/v1/chats/:id/announcement (PATCH)im:chat
im +messages-sendim:message

参考

Frequently asked questions

What does the Lark Workflow Announce AI skill do?

群公告管理器:获取、设置、追加群公告内容,并通知群成员。当用户需要'群公告'、'发布公告'、'更新公告'、'设置群公告'、'追加公告'、'群通知'、'更新群公告'时使用。

Why use Lark Workflow Announce on TypingMind?

Because you install it once and use it with any model. Lark Workflow Announce is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lark Workflow Announce in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/liangdabiao/lark-workflow-feishu-cli/tree/main/.claude/skills/lark-workflow-announce. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lark Workflow Announce?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lark Workflow Announce?

As many as you like. As long as a model supports skills, you can use Lark Workflow Announce with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lark Workflow Announce AI skill free?

It is published on GitHub by liangdabiao. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇