Install
openclaw skills install @theosunny/lark-to-anythingUse when the user provides a Feishu/Lark document URL (feishu.cn or larksuite.com) and wants to export, download, save, or convert it to a local Markdown file. Triggers on phrases like "把飞书文档导出成 markdown"、 "保存到本地"、"转成 md 文件", or any feishu.cn/docx link with export intent.
openclaw skills install @theosunny/lark-to-anythingExport any Feishu document to a self-contained local folder:
<doc-title>/index.md + <doc-title>/assets/ with all images downloaded.
Read ../lark-shared/SKILL.md for auth and global flags before running any
lark-cli command.
lark-cli --version
If below 1.0.66, stop and tell the user:
画板缩略图需要 lark-cli ≥ 1.0.66,当前版本是 X.X.X,请先升级:
text npm install -g @larksuite/cli@1.0.66 && npx skills add larksuite/cli -y -g升级完成后请重启 Claude Code,然后重新执行导出。
lark-cli docs +fetch \
--api-version v2 \
--doc "<URL or token>" \
--doc-format markdown \
--format json > /tmp/lark_fetch.json
The conversion script is bundled with this skill. Run it with:
python3 "$(dirname "$0")/scripts/to_markdown.py" /tmp/lark_fetch.json
Or use the full skill path (replace <skills-dir> with your skills directory,
typically ~/.claude/skills):
python3 <skills-dir>/lark-to-anything/scripts/to_markdown.py /tmp/lark_fetch.json
The script:
<cwd>/<doc-title>/index.md<doc-title>/assets/ concurrently (stdlib only, no pip)lark-cli docs +media-download --type whiteboardPass --output-dir <path> to save somewhere other than cwd.
Tell the user the path to index.md and the asset counts.
<doc-title>/
index.md ← converted document with local image references
assets/
image-1.png
whiteboard-1.png
...
| Feishu element | Markdown result |
|---|---|
<title> | # Title at top |
<callout> | > blockquote |
<table> HTML | standard markdown table |
<cite type="user"> | @DisplayName |
<cite type="doc"> | [Document Title] |
<checkbox> | - [ ] / - [x] |
| Images (any location) | downloaded → assets/image-N.ext |
<whiteboard> | downloaded thumbnail → assets/whiteboard-N.png |
<figure>/<source> | > *[附件: filename]* |
<readonly-block> | removed |
--as user; document must be accessible to the logged-in user.--scope section or --scope keyword — see ../lark-doc/references/lark-doc-fetch.md.