This skill parses Markdown files into Feishu document blocks JSON, including image uploads and metadata extraction.
npx playbooks add skill rosalynyang/feishu-doc-creator-skill --skill feishu-md-parser
将 Markdown 文件解析为飞书文档块格式,输出 JSON 文件。
output/blocks.json - 解析后的块数据output/metadata.json - 解析元数据(块数量、表格数量等)从指定路径读取 Markdown 文件内容。
\u200b, \u200c, \u200d, \ufeff)将解析结果保存到 output/blocks.json。
{
"blocks": [
{
"block_type": 2,
"text": {
"elements": [{"text_run": {"content": "文本内容"}}],
"style": {}
}
},
{
"block_type": 27,
"image": {
"token": "D:/path/to/image.png",
"width": 0,
"height": 0
},
"local_path": "D:\\00-work_study\\path\\to\\image.png"
}
}
],
"metadata": {
"total_blocks": 50,
"heading_count": 10,
"table_count": 5,
"list_count": 3,
"code_count": 0,
"callout_count": 0,
"image_count": 1
}
}
python scripts/md_parser.py input.md output/blocks.json
result = call_skill("feishu-md-parser", {
"input_file": "path/to/markdown.md",
"output_dir": "workflow/step1_parse"
})
# 返回: {"blocks_file": "workflow/step1_parse/blocks.json"}
支持两种图片格式:


 语法local_path 字段:D:\\00-work_study\\AIsthdy\\test-claude\\test_upload.pnglocal_path 字段.png, .jpg, .jpeg, .gif| block_type | 名称 | 说明 |
|------------|------|------|
| 2 | text | ✅ | 普通文本 |
| 3-8 | heading1-6 | ✅ | 一到六级标题 |
| 12 | bullet | ✅ | 无序列表 |
| 13 | ordered | ✅ | 有序列表 |
| 14 | code | ✅ | 代码块 |
| 15 | quote | ✅ | 引用块 |
| 17 | todo | ✅ | 待办事项 |
| 19 | callout | ✅ 高亮块 |
| 22 | divider | ✅ | 分割线 |
| 27 | image | ✅ | 图片块(支持本地图片上传) |
| 31 | table | ✅ 表格(特殊处理) |
图片块创建 → 上传文件 → 设置 token,三步自动完成
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.