← Back to Skills Marketplace
noir-hedgehog

飞书文档操作-林小满

by Noir · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
277
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install feishu-doc-linxiaoman
Description
在飞书中创建、读取、追加、更新和删除文档内容,支持Markdown格式编辑与文档块管理。
README (SKILL.md)

Feishu Doc 技能

概述

飞书文档操作技能,用于在飞书中创建、读取、追加和更新文档。

工具

使用 feishu_doc 工具,参数:

  • action: 操作类型
  • doc_token: 文档 token(从飞书文档 URL 中提取,如 /docx/XXX 中的 XXX)
  • content: 文档内容(markdown 格式)
  • title: 文档标题(仅 create 时使用)
  • folder_token: 文件夹 token(可选)

操作类型

action 说明 必需参数
create 创建新空白文档 title
read 读取文档内容 doc_token
append 向文档追加内容 doc_token, content
write 覆盖写入整个文档 doc_token, content
list_blocks 列出文档所有块 doc_token
get_block 获取单个块 doc_token, block_id
update_block 更新单个块 doc_token, block_id, content
delete_block 删除单个块 doc_token, block_id

创建文档的正确方式

坑:create + content 可能不生效

直接用 create action 并传入大量 content 可能导致文档创建成功但内容为空:

{
  "action": "create",
  "title": "文档标题",
  "content": "大量内容..."
}

正确做法:先 create 空文档,再 append

  1. 先用 create 创建空白文档(只传 title)
  2. 再用 append 逐次追加内容
// 步骤1:创建空白文档
{
  "action": "create",
  "title": "文档标题"
}

// 返回 doc_token,如 "HYhbdqE2Goy9NLxle9XcomtPnVc"

// 步骤2:追加内容
{
  "action": "append",
  "doc_token": "HYhbdqE2Goy9NLxle9XcomtPnVc",
  "content": "# 标题\
\
内容..."
}

文档 URL 解析

飞书文档 URL 格式:

  • https://feishu.cn/docx/{token}
  • https://feishu.cn/wiki/{token}

从 URL 中提取 token:

  • /docx/ 后面的部分就是 token
  • /wiki/ 后面的部分也是 token

使用示例

创建技术文档

{
  "action": "create",
  "title": "OpenClaw 使用指南"
}

返回:

{
  "document_id": "JZyJdrVVTok9mfxVHqJc91Dhn3g",
  "title": "OpenClaw 使用指南",
  "url": "https://feishu.cn/docx/JZyJdrVVTok9mfxVHqJc91Dhn3g"
}

读取文档

{
  "action": "read",
  "doc_token": "JZyJdrVVTok9mfxVHqJc91Dhn3g"
}

追加内容

{
  "action": "append",
  "doc_token": "JZyJdrVVTok9mfxVHqJc91Dhn3g",
  "content": "## 新章节\
\
这里是新增加的内容。"
}

覆盖写入

{
  "action": "write",
  "doc_token": "JZyJdrVVTok9mfxVHqJc91Dhn3g",
  "content": "# 完全覆盖的标题\
\
全部内容都被替换了。"
}

内容格式

  • 使用 Markdown 格式
  • 飞书会自动渲染标题、列表、代码块等
  • 建议每段内容不要太长,分多次 append

常见问题

Q: create 后内容是空的

A: 使用 create + append 的两步写法,不要一次性 create + content

Q: 追加内容格式混乱

A: 每次 append 建议包含完整的 Markdown 结构,飞书会按块处理

Q: 如何知道 doc_token

A: 从 URL 提取,或 create 后的返回值获取


相关工具

  • feishu_wiki: 知识库操作
  • feishu_bitable: 多维表格操作
  • feishu_drive: 云盘操作
Usage Guidance
This instruction-only Feishu doc skill appears coherent for creating/reading/updating Feishu documents and has low install risk. Before installing or using it, verify: (1) what the 'feishu_doc' tool is and where it runs (platform-provided or third-party?), (2) how authentication is handled and which credentials or tokens will be used/stored (the SKILL.md does not mention tokens), (3) what permissions the token will grant (prefer least privilege), and (4) whether document contents will be logged or transmitted to any external endpoint. Test the skill with non-sensitive documents first and confirm privacy, rate limits, and error-handling (the doc notes create+content issues and recommends create+append). If you cannot confirm how auth is provided, treat the omission as a potential risk and avoid granting broad credentials.
Capability Analysis
Type: OpenClaw Skill Name: feishu-doc-linxiaoman Version: 1.0.0 The skill bundle provides documentation and metadata for a Feishu (Lark) document management tool. The instructions in SKILL.md describe standard API operations such as creating, reading, and updating documents, and include helpful guidance on handling document tokens and content formatting. No malicious code, exfiltration patterns, or harmful prompt injection attempts were found.
Capability Assessment
Purpose & Capability
Name/description match the instructions: all operations (create/read/append/write/list_blocks/update_block/delete_block) relate to Feishu documents and the parameters described are what you'd expect for document operations.
Instruction Scope
SKILL.md stays within document operations and does not instruct the agent to read arbitrary files, environment variables, or system paths. One omission: it never describes authentication or how the feishu_doc tool obtains API credentials — this is an operational gap rather than direct scope creep.
Install Mechanism
No install spec and no code files: instruction-only skill has minimal surface area and writes nothing to disk. This is the lowest-risk install model.
Credentials
The skill declares no required environment variables or secrets, which is consistent with the absence of an install. However, real Feishu API calls normally require auth tokens; the SKILL.md's silence about credentials suggests the platform or an external 'feishu_doc' tool provides auth. Confirming how authentication is handled is important.
Persistence & Privilege
always is false and the skill does not request persistent system-level privileges or modify other skills' configurations. Autonomous invocation is allowed (platform default) but not combined with other red flags here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-doc-linxiaoman
  3. After installation, invoke the skill by name or use /feishu-doc-linxiaoman
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Feishu Doc skill v1.0.0 initial release: - Provides tools for creating, reading, appending, and updating Feishu documents. - Details operations using the feishu_doc tool, including required parameters for each action. - Highlights best practices: create empty documents first, then append content to avoid creation errors. - Explains how to extract doc_token from Feishu document URLs. - Includes clear usage examples and solutions for common issues. - Lists related Feishu tools for wiki, bitable, and drive integrations.
Metadata
Slug feishu-doc-linxiaoman
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 飞书文档操作-林小满?

在飞书中创建、读取、追加、更新和删除文档内容,支持Markdown格式编辑与文档块管理。 It is an AI Agent Skill for Claude Code / OpenClaw, with 277 downloads so far.

How do I install 飞书文档操作-林小满?

Run "/install feishu-doc-linxiaoman" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 飞书文档操作-林小满 free?

Yes, 飞书文档操作-林小满 is completely free (open-source). You can download, install and use it at no cost.

Which platforms does 飞书文档操作-林小满 support?

飞书文档操作-林小满 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 飞书文档操作-林小满?

It is built and maintained by Noir (@noir-hedgehog); the current version is v1.0.0.

💬 Comments