Markdown to Feishu Post Converter for Openclaw

A specialized utility to transform standard Markdown text into Feishu's native rich-text Post JSON structure for automated messaging.

killingjacky
v1.0.0
Mar 22, 2026
0
770
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install markdown-to-feishu-post

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install markdown-to-feishu-post using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Markdown to Feishu Post Converter?

The Markdown to Feishu Post converter is an essential tool for developers building integrations with Feishu (Lark). It bridges the gap between standard Markdown documentation and the specific rich-text JSON schema required by the Feishu API for sending interactive post messages.

This tool within the Openclaw Skills ecosystem simplifies the process of creating bot notifications, automated reports, and shared documentation by handling the complex nesting and styling tags required by the platform. It ensures that headers, styles, and media elements are preserved and formatted correctly for the Feishu user interface.

Markdown to Feishu Post Converter Use Cases

  • Automating CI/CD deployment notifications to Feishu channels.
  • Converting existing technical documentation or changelogs into Feishu Post format.
  • Building custom Feishu bots that provide rich-text responses to user queries.
  • Standardizing internal communications by programmatically generating formatted posts from Markdown templates.

How Markdown to Feishu Post Converter Works

  1. The tool receives input as either a raw Markdown string or a path to a .md file.
  2. It parses the Markdown content, identifying elements like headers, bold text, links, and code blocks.
  3. The first H1 header (#) is automatically extracted and assigned as the Feishu Post title.
  4. Markdown styles are mapped to Feishu-specific tags (e.g., **text** becomes style: ["bold"]).
  5. Specialized elements like @mentions and image keys are processed into their respective JSON objects.
  6. The tool outputs a structured JSON object, typically under the zh_cn key, ready for the Feishu Message API.

Markdown to Feishu Post Converter Setup

To use this utility within your Openclaw Skills environment, ensure you have Python 3 installed and run the script from your terminal:

# Install dependencies (if any specific ones are listed in your environment)
# Usage: Direct Markdown input
python3 scripts/markdown_to_feishu_post.py "# Your Title\nContent here"

# Usage: Convert from a file
python3 scripts/markdown_to_feishu_post.py --file your_document.md

# Usage: Compact JSON output for API payloads
python3 scripts/markdown_to_feishu_post.py --compact "# Title\nText"

Markdown to Feishu Post Converter Data Schema & Taxonomy

The skill generates a structured JSON object compatible with Feishu's post message type. Below is the mapping of supported elements:

Markdown Syntax Feishu Tag/Style Mapping
# Header Assigned to the title field
**Bold** style: ["bold"]
[Text](URL) {"tag": "a", "href": "url", "text": "..."}
<at user_id="..."> {"tag": "at", "user_id": "..."}
![alt](img_key) {"tag": "img", "image_key": "..."}
```code``` {"tag": "code_block", "language": "..."}
--- {"tag": "hr"}

Markdown to Feishu Post Converter Advanced Features

  • Support for image_key integration: Allows including pre-uploaded Feishu images in rich posts.
  • Mentions support: Handles @mentions via open_id, user_id, union_id, or @all.
  • Code block highlighting: Recognizes language identifiers for Python, Go, Java, and JavaScript.
  • Multi-language output: While defaulting to zh_cn, the structure can be manually extended to support en_us and other locales.
  • Compact mode: Option to output non-indented JSON to minimize payload size for API calls.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*