lark-event
Skill18k starsChanged 3 months agoMITView on GitHub
Lark/Feishu real-time event listening / subscribing / consuming: stream events as NDJSON via `lark-cli event consume <EventKey>` (covers IM messages/reactions/chat changes, Approval status changes, Task updates, VC meeting started/joined/ended, Minutes generated, Whiteboard updated, etc.). Use for Lark bots, real-time message processing, long-running subscribers, streaming webhook/push handlers. Supports `--max-events` / `--timeout` bounded runs and a stderr ready-marker contract — designed for AI agents running as subprocesses.
7 other projects use a version of this, 7 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- HanksChen0110/skillsedited, first seen Oct 3, 2026
- leishifu666/skillsedited, first seen Sep 29, 2026
- anyhui/hermes-skillsedited, first seen Jul 29, 2026
- xujie8867/claude-code-lark-bridgeedited, first seen Jun 11, 2026
- 7emotions/lark-skillsedited, first seen May 21, 2026
- liangdabiao/lark-workflow-feishu-cliedited, first seen Apr 13, 2026
Who's talking about larksuite/cli
- larksuite/meegle-cli“Feature Request: 支持应用凭证鉴权(app_id + app_secret → tenant_access_token)”GitHub · May 21, 2026 · 2 reactions
- heliohq/anycli“feat(lark): install lark-cli from a sha256-pinned direct source”GitHub · Aug 21, 2026 · 1 reactions
- @golangoss.bsky.social“cli (⭐️ 16454) The official Lark/飞书 CLI tool, maintained by the larksuite team — built for humans and AI …”Bluesky · Aug 14, 2026 · 1 likes
- @golangoss.bsky.social“cli (⭐️ 14438) The official Lark/Feishu CLI tool, maintained by the larksuite team — built for humans and …”Bluesky · Jun 21, 2026 · 1 likes
- Chengmun58/api-mcp-server“chore: add lark-cli installation script for AI agent setup”GitHub · May 3, 2026 · 1 reactions
The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 52
Talked about on GitHub and Bluesky (52 times).
On GitHub · 50
- May 21, 2026Feature Request: 支持应用凭证鉴权(app_id + app_secret → tenant_access_token) — larksuite/meegle-cli2 reactions · 1 comment
- Aug 21, 2026feat(lark): install lark-cli from a sha256-pinned direct source — heliohq/anycli1 reaction
- May 3, 2026chore: add lark-cli installation script for AI agent setup — Chengmun58/api-mcp-server1 reaction
- Mar 29, 2026Feature Request: Lark/Feishu (飞书) Platform Support — NousResearch/hermes-agent1 reaction · 2 comments
- Oct 30, 2026feat(feishu): evaluate official CLI and SDK assisted application onboarding — dynamicheart/lockbot0 reactions
45 more on GitHub
- Oct 30, 2026原生 @feishu 首阶段:对标 lark-cli 并交付应用身份与消息子集 — PerishLab/runseal0 reactions · 3 comments
- Oct 30, 2026Bump plugins/lark-skills/cli from `6646386` to `ac81f50` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Oct 29, 2026fix(skill): install local skills from Windows paths — zhayujie/CowAgent0 reactions · 1 comment
- Oct 27, 2026[Bug] 飞书在配置没有问题的情况下,仍然出现21001错误 — AstrBotDevs/AstrBot0 reactions · 2 comments
- Oct 22, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.98 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Oct 19, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.98 — Julyaan/lark-tenant-key-cli0 reactions
- Oct 17, 2026摸底 wecom-cli 与 lark-cli 的能力边界 — quanttide/quanttide-library-of-communication-management0 reactions
- Oct 14, 2026agent-skills.github.larksuite.cli: 1.0.97 → 1.0.98 — sudosubin/agents.nix0 reactions
- Oct 9, 2026chore(deps): bump the npm-production group across 1 directory with 15 updates — huiyeruzhou/codelark0 reactions
- Oct 8, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.97 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Oct 5, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.97 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.larksuite.cli: 1.0.96 → 1.0.97 — sudosubin/agents.nix0 reactions
- Sep 29, 2026agent-skills.github.larksuite.cli: init at 1.0.96 — sudosubin/agents.nix0 reactions
- Sep 28, 2026lark-skills: upstream update — robomotionio/robomotion-skills0 reactions
- Sep 24, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.96 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Sep 22, 2026Datasource skill: lark (Lark/Feishu via official lark-cli — v1 remote search, no local index) — Marker-Inc-Korea/AutoRAG0 reactions
- Sep 21, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.96 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Sep 17, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.95 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Sep 14, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.94 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Sep 10, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.93 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Sep 7, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.93 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Sep 7, 2026Bump the npm-minor-patch group with 2 updates — 0xZoharHuang/AI-Digest0 reactions
- Sep 4, 2026feat: configure Feishu apps by QR and add /doctor — CherryHQ/stella0 reactions
- Sep 4, 2026Bump cli from `f3949f0` to `6646386` — cndoit18/lark-skills-for-claude-code0 reactions
- Sep 3, 2026build(deps): bump @larksuite/cli from 1.0.89 to 1.0.93 — chengzeli7/feishu-codex-bridge0 reactions · 1 comment
- Aug 31, 2026Bump @larksuite/cli from 1.0.68 to 1.0.91 — 0xZoharHuang/AI-Digest0 reactions · 1 comment
- Aug 31, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.91 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Aug 28, 2026Bump cli from `f3949f0` to `423e81f` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Aug 27, 2026Bump @larksuite/cli from 1.0.88 to 1.0.89 — chengzeli7/feishu-codex-bridge0 reactions
- Aug 24, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.88 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Aug 21, 2026Update skill: /larksuite-lark-meeting (safe risk) — aiskillstore/marketplace0 reactions
- Aug 21, 2026Bump cli from `f3949f0` to `d3a96f5` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Aug 17, 2026build(deps): bump @larksuite/cli from 1.0.85 to 1.0.87 — Julyaan/lark-tenant-key-cli0 reactions · 1 comment
- Aug 14, 2026Bump cli from `f3949f0` to `13305ae` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Aug 7, 2026Add guided QR-code onboarding for Feishu and QQ — Mtrya/kimi-bridge0 reactions · 1 comment
- Aug 7, 2026Bump cli from `f3949f0` to `0f29e03` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Aug 7, 2026Bump @larksuite/cli from 1.0.70 to 1.0.82 — LeoChaseYoung/feishu-codex-console0 reactions
- Aug 4, 2026自动配置检测仍误报:扫码智能体应用事件信源不可靠 + 权限替代关系未识别 — kxn/codex-remote-feishu0 reactions · 1 comment
- Jul 31, 2026Bump cli from `f3949f0` to `03de81c` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Jul 31, 2026[P1][Architecture] 将目标 Skill 的 Harness Prompt 抽成独立 Skill,入口仅保留强制加载路由 — MetaInFLow/EvoZeus-CoEvolve0 reactions · 2 comments
- Jul 31, 2026Bump @larksuite/cli from 1.0.70 to 1.0.78 — LeoChaseYoung/feishu-codex-console0 reactions · 1 comment
- Jul 24, 2026Bump cli from `f3949f0` to `af8507e` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
- Jul 21, 2026[Feature]: multica CLI: expose the current agent's Feishu channel context (bot credentials + session chat_id) — multica-ai/multica0 reactions · 3 comments
- Jul 21, 2026Future enhancement: Add lark-cli IM and Lark Base backends to the session event model — Harness-X-Harness/runner0 reactions
- Jul 17, 2026Bump cli from `f3949f0` to `7081960` — cndoit18/lark-skills-for-claude-code0 reactions · 1 comment
On Bluesky · 2
- Aug 14, 2026cli (⭐️ 16454) The official Lark/飞书 CLI tool, maintained by the larksuite team — built for humans and AI Agents. Covers core business… — @golangoss.bsky.social1 likes and repost
- Jun 21, 2026cli (⭐️ 14438) The official Lark/Feishu CLI tool, maintained by the larksuite team — built for humans and AI Agents. Covers core business… — @golangoss.bsky.social1 likes and repost
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 7
- liangdabiao/lark-workflow-feishu-cli★ 6816% same
- SpaceZephyr/allSkills★ 1416% same
- 7emotions/lark-skills★ 216% same
- HanksChen0110/skills★ 291% same
- leishifu666/skills★ 199% same
- xujie8867/claude-code-lark-bridge★ 190% same
- anyhui/hermes-skills★ 016% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- lark-approvalSkill
- lark-appsSkill
- lark-attendanceSkill
- lark-baseSkill
- lark-calendarSkill
- lark-contactSkill
- lark-docSkill
- lark-driveSkill
- lark-imSkill
- lark-mailSkill
- lark-markdownSkill
- lark-meetingSkill
- lark-minutesSkill
- lark-noteSkill
- lark-okrSkill
- lark-openapi-explorerSkill
- lark-sharedSkill
- lark-sheetsSkill
- lark-skill-makerSkill
- lark-slidesSkill
- lark-taskSkill
- lark-vc-agentSkill
- lark-vcSkill
- lark-whiteboardSkill
- lark-wikiSkill
- lark-workflow-meeting-summarySkill
- lark-workflow-standup-reportSkill
The file
We split this skill into the rules it gives an agent
2 rules. 1 is common, 0 are distinctive, and 1 is very specific to this project.
1
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 110
All N consumers share a single bus daemon (UDS local IPC), so the overhead is small
- Very specific: line 143
Don't shortcut the schema: when projecting event schema --json with jq, do not strip .description from properties — that's the field that …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lark Events
Prerequisite: Read
../lark-shared/SKILL.mdfirst for authentication,--as user/botswitching,Permission deniedhandling, and safety rules.
Core commands
| Command | Purpose |
lark-cli event list [--json] | List all subscribable EventKeys |
lark-cli event schema <EventKey> [--json] | Show an EventKey's params and output schema |
lark-cli event consume <EventKey> [flags] | Blocking consume; events → stdout NDJSON |
lark-cli event status [--json] [--fail-on-orphan] | Inspect the local bus daemon status |
lark-cli event stop [--all] [--force] | Stop the bus daemon |
Common flags
| Flag | Description |
--param key=value / -p | Business params (repeatable; comma-separated for multi-value). Unknown keys fail with valid names listed inline |
--jq <expr> | jq expression to filter / transform each event; empty output skips the event |
--max-events N | Exit after N events. Default 0 = unlimited |
--timeout D | Exit after duration D (e.g. 30s, 2m). Default 0 = no timeout. Whichever of --max-events / --timeout fires first wins |
--output-dir <dir> | Write each event as a file (relative paths only; prevents traversal) |
--quiet | Suppress ready/exit markers and per-event stderr diagnostics, including drop warnings. This can hide event loss. AI should not use this — it removes readiness and integrity signals |
--as user|bot|auto | Identity for the session (see lark-shared) |
Examples
# Default: stream every event for the key (no filter, no projection)
lark-cli event consume im.message.receive_v1 --as bot
# List every EventKey of one domain (the authoritative, always-current catalog)
lark-cli event list --domain vc --json
# Grab one sample event to inspect payload shape
lark-cli event consume im.message.receive_v1 --max-events 1 --timeout 30s --as bot
# Run for 10 minutes then auto-exit
lark-cli event consume im.message.receive_v1 --timeout 10m --as bot
# Consume multiple EventKeys concurrently (one shape per process, no dispatcher)
lark-cli event consume im.message.receive_v1 --as bot > receive.ndjson &
lark-cli event consume im.message.reaction.created_v1 --as bot > reaction.ndjson &
wait
Call flow
lark-cli event list --json→ pick a legal key.--domain <d>narrows to one domain; the domains areapplication,approval,board,card,im,minutes,task,vc. An unknown domain fails with the valid set listed in the hint.lark-cli event schema <key> --json→ readresolved_output_schema+jq_root_pathto determine field pathslark-cli event consume <key> [--jq '<expr>']→ consume
Subprocess contract
Ready marker
event consume's stderr emits a fixed line [event] ready event_key=<key>. Parent processes should block on stderr until this line appears, then start reading stdout. Do not fall back to sleep.
stdin EOF = graceful exit
event consume treats stdin close as a shutdown signal (wired for AI subprocess callers). Bounded runs are exempt: when --max-events or --timeout is set (> 0), stdin EOF is ignored and the run exits only via its own bound, timeout, or SIGTERM. For unbounded runs, < /dev/null / nohup / systemd's default StandardInput=null will cause an immediate graceful exit (stderr reason: signal). To keep an unbounded run alive:
- Feed stdin a source that never EOFs:
< <(tail -f /dev/null) - Or run bounded:
--max-events N/--timeout D
Exit codes & reason
On exit, the last stderr line is [event] exited — received N event(s) in Xs (reason: ...).
| exit code | reason | Trigger |
| 0 | reason: limit | --max-events reached |
| 0 | reason: timeout | --timeout reached |
| 0 | reason: signal | Ctrl+C / SIGTERM / stdin EOF (stdin EOF applies to unbounded runs only) |
| 1 | JSON error envelope on stderr | Lark API business failure during pre-consume setup (for example subscription create/delete) |
| 2 | JSON error envelope on stderr (no exited line) | Validation failure (unknown EventKey, bad --param / --jq, another bus already connected) |
| 3 | JSON error envelope on stderr | Auth failure (missing token, missing scopes) |
| 4 / 5 | JSON error envelope on stderr | Network / internal failure (bus startup, handshake, file I/O) |
Startup and runtime failures emit a structured JSON envelope on stderr: {"ok":false,"error":{"type","subtype","param","message","hint",...}} (the envelope may also carry top-level identity / _notice siblings). Parse error.type / error.subtype to branch (e.g. missing_scope carries a missing_scopes list), error.param to find the offending flag, and error.hint for the recovery action — do not regex-match message text.
Orchestrators should treat reason: limit/timeout/signal (all exit 0) as "business completion" and non-zero as "failure".
Never kill -9
Avoid kill -9 on consume processes for EventKeys whose PreConsume registers a server-side subscription and unsubscribes on exit (minutes, vc, board keys): kill -9 skips the OAPI unsubscribe and leaks the server-side subscription (symptoms: "subscription already exists" on restart, duplicate event delivery). Keys whose subscription is a durable relation with no cleanup (task, approval keys) do not leak this way, but SIGTERM or closing stdin remains the right shutdown for every key.
One consume, one EventKey (multi-key = multi-shell)
The command takes exactly one positional argument; k1,k2 and wildcards are unsupported. Listening to N keys means N subprocesses — this is intentional:
- One shape per process stdout; no dispatcher logic required in the AI
- Fault isolation (one key failing doesn't affect others)
- Independent
--as/--jq/--max-events/--timeoutper key
All N consumers share a single bus daemon (UDS local IPC), so the overhead is small
Writing jq via schema
event schema <key> --json is the source of truth for writing --jq. Four things to look at:
(1) Where fields start — see jq_root_path
- Value
"."→ fields are at the top level, write.chat_id - Value
".event"→ fields are inside a V2 envelope, write.event.chat_id
(2) Field list and types — see resolved_output_schema.properties.<name>
Each field carries type / description, and some also have format. Snippet (from event schema im.message.receive_v1 --json):
{
"chat_id": {"type":"string", "format":"chat_id", "description":"Chat ID, prefixed with oc_"},
"sender_id": {"type":"string", "format":"open_id", "description":"Sender open_id, prefixed with ou_"},
"create_time": {"type":"string", "format":"timestamp_ms", "description":"Send time as ms-epoch string"}
}(3) Field semantics — see the format tag
Lark-defined semantic tags (not JSON Schema's standard format). Common values: open_id / chat_id / message_id / timestamp_ms / email. Purpose: distinguish "same string type, different meanings" fields so you can reverse-lookup via API or convert formats.
(4) Decoded state — read the field's description
event consume runs Process hooks that may pre-decode some payload fields (flattening V2 envelopes, rendering .content to plain text, etc.) — behavior differs from raw OAPI. Always read the field's description before writing jq, especially for generic field names like content / data / body / payload.
Why it matters: blindly applying fromjson to an already-decoded text field makes jq error on every event and silently drop it — the consumer looks alive but emits nothing, with only a single WARN line buried on stderr. (This is the general behavior: any jq runtime error skips the event with a one-line WARN; the loop does not abort.)
Don't shortcut the schema: when projecting event schema --json with jq, do not strip .description from properties — that's the field that tells you whether a field is already decoded. Dump the full property objects, not just keys.
Aside: --param's valid parameters also live in the schema — the params section lists name / type / required / enum / default / description; section missing = this key accepts no --param.
Topic index
| Topic | Reference | Coverage |
| Application | references/lark-event-application.md | Catalog of Application EventKeys, including application.bot.menu_v6 for custom bot menu push events + flattened event_key / operator fields + jq recipe |
| Approval | references/lark-event-approval.md | Catalog of 2 Approval EventKeys (approval.instance.status_changed_v4, approval.task.status_changed_v4) + optional/multi subscription_type pre-registration + user-auth subscription lifecycle + flat output field reference |
| IM | references/lark-event-im.md | Catalog of 12 IM EventKeys + shape notes (flat vs V2 envelope) + im.message.receive_v1 field gotchas (sender_id is open_id only; .content is plain text except for interactive cards) + common jq recipes (filter by chat_type / message_type / sender); for card.action.trigger see also ../lark-im/references/lark-im-card-action-reply.md |
| Task | references/lark-event-task.md | Catalog of 1 Task EventKey (task.task.update_user_access_v2) + Native V2 envelope shape + task commit types + user/bot subscription notes |
| VC | references/lark-event-vc.md | Catalog of 7 VC EventKeys (meeting lifecycle participant_meeting_started/joined/ended_v1, vc.note.generated_v1, recording recording_started/transcript_generated/ended_v1) + field reference + source type semantics; the live list is always lark-cli event list --domain vc --json |
| Minutes | references/lark-event-minutes.md | Catalog of 1 Minutes EventKey (minutes.minute.generated_v1) + field reference + source type semantics (meeting only) |
| Whiteboard | references/lark-event-whiteboard.md | Catalog of 1 Board EventKey (board.whiteboard.updated_v1) + per-whiteboard subscription model (requires -p whiteboard_id=<token>) + payload field reference (whiteboard_id / operator_ids triple-id) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

