lark-event

Stream Feishu events via WebSocket into NDJSON pipelines with regex filtering.

641|104|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/loongclaw-ai/loongclaw --skill lark-event-loongclaw-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-event
Source: https://github.com/loongclaw-ai/loongclaw/tree/main/skills/larksuite-cli/lark-event
Command: npx skills add https://github.com/loongclaw-ai/loongclaw --skill lark-event-loongclaw-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the burden of manually polling or parsing Feishu callbacks by establishing a long-lived WebSocket connection that streams every subscribed event as NDJSON, so your automation pipeline can react to messages, contacts, calendars, and approvals in real time.

Core Features & Use Cases

  • Reliable Event Ingestion: lark-cli event +subscribe opens a WebSocket long connection, captures NDJSON, and can pretty-print or route events to files for downstream agents.
  • Agent-Friendly Output: The --compact flag flattens events, strips noise, and extracts human-readable text while --filter and --route enable regex routing to different sinks.
  • Use Case: Feed im.message.receive_v1 events into a Claude or document update pipeline, log incoming chats, or trigger downstream APIs based on approval and calendar updates.

Quick Start

Run lark-cli event +subscribe with --compact --quiet to stream Feishu events into your pipeline.

Frequently Asked Questions about lark-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream Feishu events in real time without polling APIs?▼

Stream Feishu events in real time by establishing a WebSocket long connection that pushes subscribed updates as NDJSON, eliminating manual API polling. This approach captures messages, calendar changes, and approvals instantly for downstream agents.

How do I filter NDJSON event streams for specific Feishu chat messages?▼

Filter NDJSON event streams using the --filter flag to apply regex routing, sending specific Feishu chat events to designated downstream sinks. The --compact flag also flattens events and strips noise for cleaner message processing.

What is the best way to feed Feishu IM messages into an automation pipeline?▼

The best way to feed Feishu IM messages into automation is streaming im.message.receive_v1 events via WebSocket into NDJSON pipelines. This allows downstream agents to react to incoming chats and trigger actions like document updates instantly.

Can I route Feishu calendar and approval notifications to different files?▼

Yes, you can route Feishu calendar and approval notifications to different files using the --route flag. This applies regex filtering to the NDJSON event stream, directing specific event types to separate sinks for organized downstream processing.

Does lark-cli event subscription support read-only authentication?▼

Lark-cli event subscription supports read-only authentication when running WebSocket event streams. This ensures secure, limited-access ingestion of Feishu events into your NDJSON pipelines without granting broader modification permissions.

Why use NDJSON format for Feishu WebSocket event streaming?▼

Use NDJSON format for Feishu WebSocket event streaming because it provides compact, line-delimited records ideal for continuous ingestion. This allows automation pipelines to process each event independently as it arrives over the long connection.