lark-formatting

Formats messages for Lark delivery using text, CardKit JSON cards, and rich post structures.

1|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/tapway/shogun-os --skill lark-formatting-tapway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-formatting
Source: https://github.com/tapway/shogun-os/tree/main/skills/communication/lark-formatting
Command: npx skills add https://github.com/tapway/shogun-os --skill lark-formatting-tapway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Sending structured reports, alerts, and dashboards to Lark (Feishu) requires correctly formatted message payloads, and hand-writing CardKit JSON or post structures is error-prone and inconsistent across teams. ## Core Features & Use Cases - Three message types: Plain text with markdown-like syntax, interactive CardKit JSON cards (recommended), and legacy rich text posts. - Ready-made templates: Prebuilt CardKit layouts for scrum reports and alert/warning cards with colored headers, columns, buttons, and footers. - Mentions and best practices: User mention syntax, size limits (30KB text, 50 CardKit elements), and a Slack Block Kit comparison table for migration. - Use Case: A team lead asks the agent to send a daily scrum summary to Lark; the Skill produces a CardKit card with a blue header, completed-items and blockers columns, and a timestamp footer. ## Quick Start Ask the agent to format a scrum report as a Lark CardKit card with completed items and blockers for today's date.

Frequently Asked Questions about lark-formatting

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

FAQPage Schema
How do I format a message as a Lark CardKit card?

Build a JSON object with msg_type interactive containing a config, a header with a title and color template, and an elements array of markdown, hr, column_set, button, or note tags. Set wide_screen_mode to true so the card renders well on mobile.

What message types does Lark support for bots?

Lark supports three message types: text for plain messages with basic markdown, interactive for CardKit JSON cards with buttons and columns, and post for legacy rich text. CardKit is recommended for any structured content like reports or alerts.

Lark CardKit vs Slack Block Kit, what is the difference?

Both support markdown bodies, buttons, images, multi-column layouts, and dividers. Lark CardKit adds colored header templates but lacks input forms, while Slack Block Kit supports input blocks and has a roughly 40KB message limit versus Lark's 30KB.

How do I mention a user in a Lark message?

Use the at tag in markdown content with the user's open ID, for example <at user_id="ou_xxx">@Alice</at>. In plain text messages you can use the @_user_1 syntax, where the number maps to the user's order in the chat.

What are the size limits for Lark messages?

Plain text messages are limited to roughly 30KB, and CardKit cards support a maximum of 50 elements per card. For larger reports, split the content across multiple cards instead of a single payload.

When should I not use CardKit cards in Lark?

Avoid CardKit for simple direct messages where plain text suffices, since the JSON structure adds token overhead. Also use platform-specific formatters instead when delivering to Slack or WhatsApp rather than Lark.