从本地 Markdown 文件创建或更新飞书云文档。支持 Mermaid/PlantUML 图表转飞书画板、大表格自动拆分。
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionfeishu-cli-importExecute the skills CLI command in your project's root directory to begin installation:
Fetches feishu-cli-import from riba2534/feishu-cli and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate feishu-cli-import. Access via /feishu-cli-import in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
1
total installs
1
this week
797
GitHub stars
0
upvotes
Run in your terminal
1
installs
1
this week
797
stars
从本地 Markdown 文件创建或更新飞书云文档。支持 Mermaid/PlantUML 图表转飞书画板、大表格自动拆分。
CRITICAL: 每次创建新文档后,必须立即执行以下两步:
- 授予
full_access权限:feishu-cli perm add <document_id> --doc-type docx --member-type email --member-id [email protected] --perm full_access --notification- 转移文档所有权:
feishu-cli perm transfer-owner <document_id> --doc-type docx --member-type email --member-id [email protected] --notification详见下方"执行流程 → 创建新文档"。
mermaid/plantuml/puml 代码块自动转换为飞书画板Markdown 作为中间态:本地文档与飞书云文档之间通过 Markdown 格式进行转换。
FEISHU_APP_ID + FEISHU_APP_SECRET),无需 auth login# 创建新文档
/feishu-import ./document.md --title "文档标题"
# 更新已有文档
/feishu-import ./document.md --document-id <existing_doc_id>
# 上传本地图片
/feishu-import ./document.md --title "带图文档" --upload-images
验证文件
执行导入
feishu-cli doc import <file.md> --title "<title>" [--upload-images]
添加权限
feishu-cli perm add <document_id> --doc-type docx --member-type email --member-id [email protected] --perm full_access --notification
转移文档所有权
feishu-cli perm transfer-owner <document_id> --doc-type docx --member-type email --member-id [email protected] --notification
发送通知 发送飞书消息通知用户文档已创建
执行更新
feishu-cli doc import <file.md> --document-id <doc_id> [--upload-images]
通知用户
| 参数 | 说明 | 默认值 |
|---|---|---|
| markdown_file | Markdown 文件路径 | 必需 |
| --title | 新文档标题 | 文件名 |
| --document-id | 更新已有文档 | 创建新文档 |
| --upload-images | 上传本地和网络图片到飞书 | 是(默认开启) |
| --image-workers | 图片并发上传数 | 2(API 限制 5 QPS) |
| --folder, -f | 新文档的目标文件夹 Token | 根目录 |
| --diagram-workers | 图表 (Mermaid/PlantUML) 并发导入数 | 5 |
| --table-workers | 表格并发填充数 | 3 |
| --diagram-retries | 图表最大重试次数 | 10 |
| --verbose | 显示详细进度信息 | 否 |
> [!NOTE]、> [!WARNING] 等 6 种类型)--upload-images 自动上传本地和网络图片;无此参数时创建占位块;内联图片转为链接或文本占位符)<u>文本</u>)$E = mc^2$,支持一段中多个公式)$$formula$$ 或独立行 $formula$)```mermaid
flowchart TD
A[开始] --> B{判断}
B -->|是| C[处理]
B -->|否| D[结束]
```
```plantuml
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml
```
支持的 Mermaid 图表类型(全部已验证):
> [!NOTE]
> 这是一个提示信息。
> [!WARNING]
> 这是一个警告信息。
> [!TIP]
> 这是一个技巧提示。
> [!CAUTION]
> 这是一个警示。
> [!IMPORTANT]
> 这是一个重要信息。
> [!SUCCESS]
> 这是一个成功信息。
Callout 内部支持子块(段落、列表等),自动创建为 Callout 的子块。
背景色映射:
| 类型 | 背景色 |
|---|---|
| NOTE/INFO | 蓝色 (6) |
| WARNING | 红色 (2) |
| TIP | 黄色 (4) |
| CAUTION | 橙色 (3) |
| IMPORTANT | 紫色 (7) |
| SUCCESS | 绿色 (5) |
行内公式:爱因斯坦质能方程 $E = mc^2$ 是最著名的公式。
块级公式(独立行):
$\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$
$...$ 公式这段文本包含 <u>下划线</u> 样式。
已导入文档!
文档 ID: <document_id>
文档链接: https://feishu.cn/docx/<document_id>
导入块数: 25
# 创建新文档
/feishu-import ./meeting-notes.md --title "会议纪要"
# 更新现有文档
/feishu-import ./updated-spec.md --document-id <document_id>
# 带图片导入(自动上传本地和网络图片)
/feishu-import ./blog-post.md --title "博客文章" --upload-images
上述"支持的 Markdown 语法"中列出的所有语法均已通过测试验证,全部正常工作。特殊处理项:
--upload-images 自动上传本地和网络图片;关闭时创建占位块已验证可成功导入的大型文档:
| 限制 | 说明 | 处理方式 |
|---|---|---|
{} 花括号 |
Mermaid 解析器将 {text} 识别为菱形节点 |
自动降级为代码块 |
par...and...end |
飞书解析器完全不支持 par 并行语法 | 用 Note over X: 并行执行 替代 |
| 渲染复杂度组合超限 | 单一因素不会触发,但 10+ participant + 2+ alt 块 + 30+ 长消息标签组合时服务端返回 500 | 重试后降级为代码块 |
| 服务端瞬时错误 | 偶发 HTTP 500(并发压力导致) | 自动重试(最多 10 次,1s 间隔) |
| Parse error 不重试 | 语法错误直接降级 | 自动降级为代码块 |
渲染复杂度安全阈值(二分法实测):
图表通过飞书画板 API 导入:
/open-apis/board/v1/whiteboards/{id}/nodes/plantumlsyntax_type=1 表示 PlantUML 语法,syntax_type=2 表示 Mermaid 语法diagram_type 使用整数(0=auto, 6=flowchart 等)```mermaid、```plantuml、```puml除标准 Markdown 语法外,导入时还识别以下 HTML 标签形式的扩展语法。这些标签由导出端自动生成,支持 roundtrip(导出→导入不丢失信息)。
| 标签 | 说明 | 示例 |
|---|---|---|
<mention-user id="ou_xxx"/> |
@用户 | 创建 MentionUser 元素 |
<mention-doc token="xxx" type="docx">标题</mention-doc> |
@文档 | 创建 MentionDoc 元素 |
<grid cols="2"><column>...</column><column>...</column></grid> |
分栏布局 | 创建 Grid Block + GridColumn 子块 |
<callout type="NOTE">内容</callout> |
高亮块(HTML 标签形式) | 与 > [!NOTE] 等效 |
<whiteboard type="blank"/> |
空白画板 | 创建 Board Block |
<sheet rows="5" cols="5"/> |
电子表格 | 创建 Sheet Block |
<bitable view="table"/> |
多维表格 | 创建 Bitable Block |
<image token="xxx" width="800" align="center" caption="说明"/> |
带属性图片 | 创建 Image Block,保留尺寸/对齐 |
<file token="xxx" name="report.pdf" view-type="1"/> |
文件块 | 创建 File Block |
这些标签主要用于 roundtrip 场景(导出后重新导入),也可手动编写用于精确控制飞书块类型。
| 现象 | 原因 | 解决方式 |
|---|---|---|
| 认证失败 / Token 过期 | 未登录或 Token 已失效 | 执行 feishu-cli auth login --scopes "offline_access" 重新认证 |
| 图表降级为代码块 | Mermaid/PlantUML 语法不兼容飞书渲染引擎 | 参考 feishu-cli-doc-guide 规范调整语法(禁花括号、禁 par 等) |
| 表格被拆分为多个 | 飞书 API 限制单表最多 9 行 / 9 列 | 属于正常行为,自动拆分并保留表头/首列 |
| 图片上传失败 | 网络不通或图片 URL 不可访问 | 检查网络连通性;失败的图片会自动创建占位块,不影响整体导入 |
| 文档创建成功但无法编辑 | 未执行权限添加和所有权转移步骤 | 执行 perm add + perm transfer-owner,详见"执行流程 → 创建新文档" |
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Useful defaults in feishu-cli-import — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: feishu-cli-import is focused, and the summary matches what you get after install.
feishu-cli-import has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for feishu-cli-import matched our evaluation — installs cleanly and behaves as described in the markdown.
feishu-cli-import fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Useful defaults in feishu-cli-import — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for feishu-cli-import matched our evaluation — installs cleanly and behaves as described in the markdown.
We added feishu-cli-import from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
feishu-cli-import fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added feishu-cli-import from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 63