lark-event

Stream Lark Open Platform events to NDJSON via WebSocket subscription.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill lark-event-augustscl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-event
Source: https://github.com/augustscl/awesome-xiawang-skills/tree/main/lark-event
Command: npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill lark-event-augustscl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide a reliable CLI-based WebSocket subscription that converts Lark Open Platform events into machine-readable NDJSON so pipelines and bots can process events in real time without manual polling or webhook setup.

Core Features & Use Cases

  • Persistent WebSocket subscription: Long connection to receive events such as messages, contact changes, calendar updates, approvals, drive notices, and task changes.
  • Agent-friendly output: Compact mode flattens event payloads and extracts human-readable content for LLM pipelines; default output is NDJSON for line-by-line processing.
  • Flexible routing and filtering: Client-side regex filtering, event-type registration, and regex-based file routing allow directing events to different files or stdout; supports dry-run, JSON pretty-printing, and quiet mode for pipelines.
  • Use Case: Build an event-driven bot that listens for im.message.receive_v1 events, forwards compacted messages into an LLM responder, and persists raw events to disk for audit.

Quick Start

Start a WebSocket subscription with lark-cli event +subscribe to stream Lark events as NDJSON and use --compact --quiet for agent pipelines.

Frequently Asked Questions about lark-event

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

FAQPage Schema
How do I stream Lark Open Platform events to NDJSON for real-time processing?

You can stream Lark Open Platform events to NDJSON by maintaining a WebSocket long connection with bot-level authentication, converting live IM, contact, and calendar events into line-by-line JSON output for downstream pipelines.

How do I subscribe to Lark bot events without setting up manual webhooks?

You can subscribe to Lark bot events without manual webhooks by establishing a persistent WebSocket connection that delivers real-time messages, approvals, and drive notices directly as NDJSON for immediate processing.

Can I filter Lark event streams with regex and route them to different files?

Yes, you can filter Lark event streams using client-side regex filtering and route specific event types to different files or stdout, allowing precise control over how IM, task, and calendar events are persisted.

Does the Lark event stream output work for LLM agent pipelines?

Yes, the Lark event stream output supports LLM agent pipelines through a compact mode that flattens event payloads and extracts human-readable content, making it easily consumable for automated bot responses.

What types of Lark events can I capture using a WebSocket subscription?

Using a WebSocket subscription, you can capture real-time Lark events including IM messages, contact changes, calendar updates, approvals, drive notices, and task changes, all streamed as NDJSON output.

How do I test Lark event routing before committing to a live pipeline?

You can test Lark event routing configurations using a dry-run mode that simulates event processing and file routing without executing live actions, alongside quiet mode for clean pipeline integration.