lark-event

Stream Lark bot events as NDJSON to stdout via WebSocket.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/eatbreads/.agents --skill lark-event-eatbreads
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-event
Source: https://github.com/eatbreads/.agents/tree/main/skills/lark-event
Command: npx skills add https://github.com/eatbreads/.agents --skill lark-event-eatbreads

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables real-time subscription to Lark (Feishu) platform events and streams them as NDJSON to stdout so downstream agents and pipelines can process events without polling or manual retrieval.

Core Features & Use Cases

  • WebSocket long connection: Maintains a persistent bot-only WebSocket to receive events in real time.
  • NDJSON output & compact mode: Emits raw NDJSON by default and offers a compact, agent-friendly flattened format that extracts human-readable content and strips noise fields.
  • Routing & file output: Supports client-side regex filtering, regex-based routing to directories, per-event file output, and pretty JSON output for debugging.
  • Use Cases: Build event-driven automations that reply to messages, log messages to documents, sync contact/calendar changes, or feed events into LLM pipelines and monitoring systems.

Quick Start

Run lark-cli event +subscribe with --compact --quiet to stream Lark bot events as NDJSON to stdout.

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 events as NDJSON for a real-time automation pipeline?▼

You can stream Lark events as NDJSON by running the lark-cli event subscription command, which maintains a persistent bot-only WebSocket connection and outputs real-time platform events directly to stdout for immediate pipeline consumption.

What is the compact mode for Lark event streams and when should I use it?▼

The compact mode for Lark event streams is a flattened, agent-friendly format that extracts human-readable content and strips noise fields from the raw NDJSON, making it ideal for feeding clean event data directly into LLM pipelines.

Do I need an Open Platform app to subscribe to Feishu WebSocket events?▼

Yes, subscribing to Feishu WebSocket events requires an Open Platform app configured with an App ID and App Secret, alongside the lark-cli tool, to establish the persistent bot-only connection needed for real-time event delivery.

How do I filter and route specific Lark bot events to separate directories?▼

You can filter and route Lark bot events by applying client-side regular expressions to the stream, enabling regex-based routing to designated directories and outputting individual events as separate files for organized logging.

What types of Lark platform events can I capture for agent logging and automation?▼

You can capture message, contact, calendar, approval, task, and drive events from the Lark platform, providing comprehensive coverage for building event-driven automations, syncing changes, and feeding data into monitoring systems.