Feishu Document Writer for Openclaw

A reliable tool for creating Feishu documents that solves content loss issues by using a two-step creation and appending workflow.

tudoubudou
v1.0.0
Mar 3, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install feishu-doc-writer

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 feishu-doc-writer 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 Feishu Document Writer?

The Feishu Document Writer is a specialized utility designed for the Openclaw Skills ecosystem to handle document generation within the Feishu (Lark) platform. It addresses a specific technical limitation in the Feishu API where providing content during the initial creation phase can lead to empty documents. By utilizing a two-step process—initial creation followed by a content append—this tool ensures high-fidelity data transfer.

This skill is particularly valuable for developers and teams who need to transform Markdown-formatted data into native Feishu documents. It bridges the gap between automated scripts and collaborative office suites, providing a robust way to publish reports, logs, and documentation directly from an AI agent or CLI environment.

Feishu Document Writer Use Cases

  • Automating the publication of technical reports from Markdown source files.
  • Synchronizing AI-generated meeting summaries or project updates to Feishu.
  • Building automated documentation pipelines that require Feishu-native formatting.
  • Batch creating documents with specific titles and injecting content programmatically.

How Feishu Document Writer Works

  1. The user or agent triggers the create action, providing only the document title while keeping the content parameter empty.
  2. The system generates a new Feishu document and returns a unique document_id or doc_token.
  3. The workflow captures this token and triggers a second append action.
  4. The Markdown content is passed through the append action, where the tool automatically converts Markdown syntax into Feishu-native blocks.
  5. The document is updated with the full content, ensuring no data is lost during the initialization process.

Feishu Document Writer Setup

To use this tool within your Openclaw Skills environment, you can invoke it through the built-in function or via a standalone Python script.

# Usage via Python script
python3 scripts/feishu_doc_writer.py "Document Title" "content_file.md"

When calling the tool programmatically:

# Step 1: Create (Title only)
feishu_doc(action="create", title="My Report", content="")

# Step 2: Append (Content injection)
feishu_doc(action="append", doc_token="DOC_ID_FROM_STEP_1", content="# Header\nContent here...")

Feishu Document Writer Data Schema & Taxonomy

The skill utilizes a structured parameter set to manage the document lifecycle. Below is the mapping of data requirements:

Parameter Requirement Description
action Required Use create for new files or append for existing ones.
title Optional The document name, used during the create phase.
doc_token Required (Append) The unique identifier of the target Feishu document.
content Required (Append) Markdown string to be rendered into the document.

Feishu Document Writer Advanced Features

  • Automatic Markdown Rendering: Supports headers, lists, bold text, and other Markdown elements natively.
  • Data Integrity Protection: Implements a fail-safe two-step logic to prevent the common empty-content bug in Feishu integrations.
  • Multi-Interface Support: Can be triggered via Python scripts or directly through Openclaw Skills tool calls.
  • Dynamic Token Handling: Designed to work within automated loops where the document ID is passed from one step to the next.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*