feishu-doc-writer
Feishu (Lark) Document API writing spec. Converts Markdown content to Feishu Block structures and writes to cloud docs. Handles concurrency ordering. Use when syncing articles, creating document blocks, or writing long-form content to Feishu docs.
Why use this skill?
Learn to automate Feishu (Lark) document writing with the feishu-doc-writer skill. Effortlessly convert Markdown to Block structures for professional cloud docs.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sunnyyao2222-eng/feishu-doc-writeWhat This Skill Does
The feishu-doc-writer skill is a powerful tool designed to automate the creation and management of Feishu (Lark) cloud documents. Unlike standard text-based integrations, this skill understands the underlying Block tree model required by the Feishu Docx API. It provides two distinct pathways for content generation: a high-level Markdown conversion endpoint for rapid document scaffolding, and a granular manual Block construction system for complex layouts including callouts, code blocks, images, and tables. By managing document revisions and concurrency, this skill ensures that your AI-generated content is structured, readable, and properly formatted within the Feishu ecosystem.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/sunnyyao2222-eng/feishu-doc-write
Ensure your Feishu tenant access tokens are configured correctly in your project settings to allow the skill to authenticate with the Docx API.
Use Cases
- Automated Reporting: Automatically convert daily data summaries into formatted Feishu documents with headings, bullet points, and code snippets.
- Knowledge Management: Programmatically generate internal wiki pages or project documentation directly from AI research drafts.
- Task Tracking: Create project status trackers in Feishu using Todo blocks and structured lists.
- Collaborative Writing: Use the AI to generate long-form drafts and inject them into shared Feishu workspaces for team review.
Example Prompts
- "Sync the following project status report into a new Feishu document: [Content], using a mix of headings and bulleted lists."
- "Create a Feishu doc page titled 'Team Meeting Notes' and add a Callout block containing the summary of our last session."
- "Convert this Markdown technical specification into a Feishu doc block structure, ensuring the code snippets are formatted correctly."
Tips & Limitations
- Markdown Conversion: Use the
/convertendpoint for simple documents to save time and API complexity. It handles standard formatting like bold, italics, and lists automatically. - Manual Block Control: If you need advanced Feishu features like Callouts or specific block nesting, you must build the JSON structure manually using the block reference provided.
- Concurrency: Always monitor your
document_revision_idwhen making sequential calls to ensure your changes are not overwritten by simultaneous operations. - Image Handling: Remember that images require a two-step process: you must first create a placeholder block, then perform the upload, rather than sending image data in the initial text request.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-sunnyyao2222-eng-feishu-doc-write": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, file-write
Related Skills
feishu-im
飞书消息与群管理 Skill。发送消息、建群、置顶、加急、撤回、群菜单/Tab/公告等 25+ 项 IM 能力。当需要通过飞书发送消息、管理群聊、操作群成员或配置群功能时使用此 Skill。
Feishu Drive
Skill by sunnyyao2222-eng
feishu-wiki
飞书知识库 Skill。创建知识空间、创建 Wiki 页面节点。当需要在飞书知识库中组织和沉淀文档时使用此 Skill。
feishu-calendar
飞书日历日程管理 Skill。创建日历/日程、查询空闲忙状态、订阅日历变更。当需要自动安排会议、查询时间冲突或监控日程变动时使用此 Skill。