用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SpaceZephyr/read-buddy --skill read-feishu-doc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于微信读书的书架、阅读时长、笔记、划线数据,生成 10 维度的深度阅读分析报告。当用户说"分析我的微信读书"、"读书画像"、"阅读分析"、"我的阅读报告"、"猜我的 MBTI"、"读书复盘"时触发。输出美观的 9:16 白底简约 HTML 可视化页面。
微信读书教练 — 把读过的书"用起来"。三种用法:(1) 推荐 - 想搞懂一个领域时,先判段位再给阶梯书单;(2) 引用 - 写作时基于已读划线给出可引用的书与原话;(3) 回顾 - 每天推送一条历史划线,自动去重,支持手动与定时触发。触发词:"我想搞懂 XX"、"入门书单"、"阶梯书单"、"我想引用一本书"、"这个观点哪本书讲过"、"今日笔记"、"推一条划线给我"、"读书回顾"。
导出微信读书划线笔记为 Markdown 或 PDF 文件。当用户说"导出我的微信读书划线"、"导出读书笔记"、"把划线保存下来"、"weread 导出"时触发。依赖 weread-skills 调用接口,按书籍-章节分组排版,附划线时间,输出美观的笔记文档。
正在显示 SKILL.md
基于 SOC 职业分类
| name | read-feishu-doc |
| description | Read and extract content from Feishu (Lark) documents using the official Feishu Open API |
| metadata | {"moltbot":{"emoji":"📄","requires":{"bins":["python3","curl"]}}} |
This skill enables reading and extracting content from Feishu (Lark) documents using the official Feishu Open API.
./reference/feishu_config.json with your Feishu app credentials:{
"app_id": "your_feishu_app_id_here",
"app_secret": "your_feishu_app_secret_here"
}
chmod +x scripts/read_doc.sh
chmod +x scripts/get_blocks.sh
Security Note: The configuration file should be kept secure and not committed to version control. Consider using proper file permissions (chmod 600 ./reference/feishu_config.json).
To read a Feishu document, you need the document token (found in the URL: https://example.feishu.cn/docx/DOC_TOKEN).
Using the shell script (recommended):
# Make sure environment variables are set first
./scripts/read_doc.sh "your_doc_token_here"
# Or specify document type explicitly
./scripts/read_doc.sh "docx_token" "doc"
./scripts/read_doc.sh "sheet_token" "sheet"
For complete document structure with all blocks, use the dedicated blocks script:
# Get full document blocks structure
./scripts/get_blocks.sh "docx_AbCdEfGhIjKlMnOpQrStUv"
# Get specific block by ID
./scripts/get_blocks.sh "docx_token" "block_id"
# Get blocks with children
./scripts/get_blocks.sh "docx_token" "" "true"
Using Python directly for blocks:
python scripts/get_feishu_doc_blocks.py --doc-token "your_doc_token_here"
python scripts/get_feishu_doc_blocks.py --doc-token "docx_token" --block-id "block_id"
python scripts/get_feishu_doc_blocks.py --doc-token "docx_token" --include-children
# Python script options
python scripts/read_feishu_doc.py --help
# Shell script usage
./scripts/read_doc.sh <doc_token> [doc|sheet|slide]
# Get full document blocks
./scripts/get_blocks.sh <doc_token>
# Get specific block
./scripts/get_blocks.sh <doc_token> <block_id>
# Include children blocks
./scripts/get_blocks.sh <doc_token> "" true
# Python options
python scripts/get_feishu_doc_blocks.py --help
Your Feishu app needs the following permissions:
docx:document:readonly - Read document contentdoc:document:readonly - Read legacy document contentsheets:spreadsheet:readonly - Read spreadsheet contentCommon errors and solutions:
# Read document
./scripts/read_doc.sh "docx_AbCdEfGhIjKlMnOpQrStUv"
# Get all blocks with full structure
./scripts/get_blocks.sh "docx_AbCdEfGhIjKlMnOpQrStUv"
# Get specific block details
./scripts/get_blocks.sh "docx_AbCdEfGhIjKlMnOpQrStUv" "blk_xxxxxxxxxxxxxx"
./scripts/read_doc.sh "sheet_XyZ123AbCdEfGhIj" "sheet"
python scripts/read_feishu_doc.py --doc-token "docx_token" --extract-text-only
chmod 600)test_auth.py script to verify credentialsdocx_, doc_, or sheet_)open.feishu.cn--include-children flag for complete block tree