Install
openclaw skills install feishu-smart-doc-writerFeishu/Lark Smart Document Writer - 飞书智能文档写入器. Core Features / 核心功能: 1. Smart Chunk Writing / 智能分块写入 - Solve API limit blank doc issues / 解决长文档API限制导致的空白问题 2. Auto Ownership Transfer / 自动转移所有权 - Transfer to user after creation / 创建文档后自动转移给用户 3. Auto Index Management / 自动索引管理 - Update local index with search support / 自动更新本地文档索引,支持搜索 4. First-time Guide / 首次使用引导 - Auto guide for OpenID config / 自动引导配置OpenID
openclaw skills install feishu-smart-doc-writermemory/feishu-docs-index.md / 文档信息自动添加到本地索引Create document with auto-chunk writing, ownership transfer, and index update. 创建文档,自动完成分块写入、所有权转移、索引更新。
{
"title": "Document Title / 文档标题",
"content": "Content (long content supported) / 文档内容(支持长内容)",
"folder_token": "Optional folder token / 可选的文件夹token"
}
Returns / 返回:
{
"doc_url": "https://feishu.cn/docx/xxx",
"doc_token": "xxx",
"chunks_count": 3,
"owner_transferred": true,
"index_updated": true
}
Append content to existing document with auto-chunk. 向现有文档追加内容(自动分块)。
{
"doc_url": "https://feishu.cn/docx/xxx",
"content": "Content to append / 要追加的内容"
}
Search documents in local index. 搜索本地索引中的文档。
{
"keyword": "Search keyword / 搜索关键词"
}
Returns / 返回:
{
"results": [
{
"name": "Document Name / 文档名",
"link": "https://...",
"summary": "Summary / 摘要",
"tags": "AI Tech, OpenClaw / AI技术, OpenClaw"
}
],
"count": 1
}
List all documents with optional filters. 列出所有文档,支持筛选。
{
"tag": "AI Tech / AI技术",
"status": "Completed / 已完成"
}
Manually transfer document ownership (usually auto-handled by write_smart). 手动转移文档所有权(通常不需要,write_smart 已自动处理)。
{
"doc_url": "https://feishu.cn/docx/xxx",
"owner_openid": "ou_xxxxxxxx"
}
Note / 注意: Only provide OpenID, tenant_access_token is auto-obtained by Skill. 只需要提供 OpenID,tenant_access_token 由 Skill 自动获取。
Configure OpenID for first-time use. 首次使用时配置 OpenID。
{
"openid": "ou_xxxxxxxx",
"permission_checked": true
}
View current configuration status. 查看当前配置状态。
Step 1 / 第1步: Call write_smart / 调用 write_smart
/feishu-smart-doc-writer write_smart
title: Test Document / 测试文档
content: This is a test document. / 这是一个测试文档内容
Step 2 / 第2步: Get OpenID / 获取 OpenID If not configured, follow the guide: 如果未配置,会显示引导:
im:messageStep 3 / 第3步: Configure and Enable Permissions / 配置并开通权限
/feishu-smart-doc-writer configure
openid: ou_your_openid / ou_你的OpenID
permission_checked: true
Then go to Permission Management / 然后到权限管理:
docs:permission.member:transferAfter setup, future document creation will automatically: 配置完成后,以后创建文档会自动:
write_smart creates document / 创建文档
↓
Write content (auto-chunk) / 写入内容(自动分块)
↓
Transfer ownership / 转移所有权
↓
Auto update index → memory/feishu-docs-index.md / 自动更新索引
↓
Done! / 完成!
Auto-identified based on content / 根据内容自动识别:
memory/feishu-docs-index.md
Format / 格式: Markdown table with / Markdown 表格,包含 index / 序号, name / 名称, type / 类型, link / 链接, summary / 摘要, status / 状态, tags / 标签, owner / 所有者
/feishu-smart-doc-writer write_smart
title: AI Tech Research Report / AI技术调研报告
content: # AI Overview / AI技术概述\n\nAI is... / 人工智能(AI)是...
Result / 结果:
/feishu-smart-doc-writer search_docs
keyword: AI Tech / AI技术
/feishu-smart-doc-writer list_docs
tag: AI Tech / AI技术
Location / 位置: skills/feishu-smart-doc-writer/user_config.json
{
"owner_openid": "ou_5b921cba0fd6e7c885276a02d730ec19",
"permission_noted": true,
"first_time": false
}
docx:document:create - Create document / 创建文档docx:document:write - Write content / 写入内容docs:permission.member:transfer - Transfer ownership ⚠️ Critical / 转移所有权 ⚠️ 关键权限Cause / 原因: Used user_id instead of openid / 使用了 user_id 而不是 openid
Solution / 解决: Use openid starting with ou_ / 使用以 ou_ 开头的 openid
Cause / 原因: docs:permission.member:transfer not enabled or app not published / 未开通权限,或未发布应用
Solution / 解决:
docs:permission.member:transfer → Enable / 权限管理 → 搜索 → 开通Check / 检查:
memory/feishu-docs-index.md exists / 查看文件是否存在index_updated field in write_smart return / 检查返回字段If issues, please check / 如有问题,请检查: