Lark Event Skill
Works in Grok Bot
- Installs
- 946k
TL;DR
lark-event skill lets an agent listen to Lark/Feishu real-time events through lark-cli event consume. It lists EventKeys, reads their schema, streams NDJSON, and defines the ready marker, exit codes and shutdown behavior for subprocess use.
Install if
Developers building Lark bots or long-running event subscribers that an agent launches as a subprocess and must read safely.
Skip if
Not for sending messages or managing chats; it only listens to events. Authentication is handled by lark-shared.
Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:open.feishu.cn#lark-event (Lark Event) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:open.feishu.cn#lark-event (Lark Event) and follow it.What lark-event covers
- Streams IM, approval, task, VC, minutes, drive and whiteboard events as NDJSON.
- Bounds runs with --max-events and --timeout and filters events with --jq.
- Emits a stderr ready marker so a parent process knows when to read stdout.
- Documents exit codes 0 to 5 and why kill -9 can leak server subscriptions.
lark-event by the numbers
| All-time installs | 945,895 (946k) | skills.sh registry |
|---|---|---|
| Repository | ||
Data as of Nov 29, 2026 (Skillselion catalog sync)
- 5 core event subcommands
- 9 event domains such as im, approval, vc and drive
What can the lark-event skill do in Claude Code?
Free skill; requires a Lark/Feishu app with event subscriptions and lark-cli auth.
- Capabilities
- event streaming · event subscription · webhook handling · bot runtime
- Use cases
- orchestration
- Runs
- Runs locally
- Pricing
- Free
What lark-event says it does
`event consume` treats stdin close as a shutdown signal (wired for AI subprocess callers).
The command takes exactly one positional argument; `k1,k2` and wildcards are unsupported.
Avoid `kill -9` on consume processes
What does the Lark Event skill produce?
- A running event consumer emitting NDJSON for one EventKey
What files ship with lark-event?
Lark Events
Prerequisite: Read `../lark-shared/SKILL.md` first 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\ |
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,drive,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/nu
Which skills are related to lark-event?
Lark Event skill FAQ
Who is the Lark Event skill for?
Developers building Lark bots or long-running event subscribers that an agent launches as a subprocess and must read safely. Not for sending messages or managing chats; it only listens to events. Authentication is handled by lark-shared.
When should I use lark-event?
Use for Lark bots, real-time message processing, long-running subscribers, or streaming webhook and push handlers.
How do I stream Lark messages with lark-cli?
Run lark-cli event consume im.message.receive_v1 --as bot. Events go to stdout as NDJSON. Add --max-events or --timeout for a bounded run, and --jq to filter or project each event.
How does a parent process know lark-cli event consume is ready?
The command writes a fixed stderr line, [event] ready event_key=<key>. The parent should block on stderr until that line appears, then start reading stdout instead of sleeping.
Can one consume command listen to several EventKeys?
No. It takes exactly one EventKey, and comma lists or wildcards are unsupported. Run one process per key; they share a single local bus daemon so overhead stays small.
Add a lark-event badge
Show developers this skill is listed on Skillselion. Paste this into your README.