lark-event

Subscribe to Feishu/Lark platform events via WebSocket and output NDJSON.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/2p1c/2p1c_blog --skill lark-event-2p1c
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-event
Source: https://github.com/2p1c/2p1c_blog/tree/main/.agents/skills/lark-event
Command: npx skills add https://github.com/2p1c/2p1c_blog --skill lark-event-2p1c

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Real-time Lark event subscription to output data as structured NDJSON for downstream processing and automation, enabling immediate data-driven responses.

Core Features & Use Cases

  • Real-time subscription using a WebSocket long connection to receive events from Feishu/Lark (messages, directory changes, calendar updates, etc.)
  • Output NDJSON to stdout for easy piping into pipelines and logging
  • Support compact agent-friendly format, regex routing, and optional file output to funnel events into different storage
  • Shortcuts to simplify common operations for accelerated workflows

Quick Start

Use lark-cli event +subscribe to start live event streaming and NDJSON output.

Frequently Asked Questions about lark-event

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

FAQPage Schema
How do I subscribe to Feishu events in real time via WebSocket?

Real-time Feishu event subscription uses a WebSocket long connection to capture live platform updates and output them as NDJSON. It receives messages, contact updates, and calendar changes for immediate downstream processing.

What is NDJSON format used for in Lark event streaming?

NDJSON in Lark event streaming outputs structured event data line by line to stdout. This format allows easy piping into data pipelines and logging systems for automation and immediate data-driven responses.

Can I route specific Feishu messages to different storage using regex?

You can route specific Feishu messages using regex routing to filter events. The Skill supports funneling routed events into different storage targets through optional file output alongside the standard NDJSON stdout stream.

Do I need lark-cli to connect to Lark platform event subscriptions?

You need the lark-cli binary to connect to Lark event types and start live streaming. The Skill requires this binary and adheres to authentication, permissions, and safety rules described in the shared SKILL.md.

How do I start streaming live Lark events using the command line?

Start streaming live Lark events by running the lark-cli event +subscribe command. This initiates the WebSocket long connection and begins outputting real-time Feishu platform events as NDJSON.

What types of Feishu platform events can I monitor with a WebSocket connection?

You can monitor messages, directory changes, contact updates, and calendar changes with a WebSocket connection. The Skill subscribes to these live event streams and outputs them in a compact, agent-friendly NDJSON format.