← 返回 Skills 市场
94
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-wiki-writer
功能描述
飞书知识库文档写入最佳实践。当需要向飞书知识库新建文档、写入大量内容(>50 block)、生成知识图谱/索引页/读书笔记等复杂文档时激活。 解决 ordering conflict 和重复文档问题。
使用说明 (SKILL.md)
飞书文档写入最佳实践
适用场景:新建知识库文档、写入 >50 block 的内容、知识图谱/索引页/读书笔记等复杂文档
⚠️ 核心原则
-
永远用
write写新文档,不用insert/appendinsert/append在大文档上会触发 ordering conflict(血泪教训:铁路文档死 5 次、读书笔记 conflict)write全量替换新文档 = 零 conflict
-
不要先
feishu_doc create再feishu_wiki create- 这样会建出两个文档(一个云盘、一个知识库),需要手动清理
- 正确做法:只用
feishu_wiki create,它本身就会建空文档
-
内容在本地完全组装好,再一次性写入
- 不要边想边写边调 API
- 先把全部 markdown 准备好,然后一个
write搞定
-
写完必须读回来验证
- "写入成功" ≠ 内容完整
- 用
feishu_doc read确认关键内容存在,再告诉用户完成
📋 标准流程(新建知识库文档)
Step 1:本地组装全部内容
- 把所有 markdown 在脑子里(或草稿里)组装完整
- 包括标题、表格、列表、摘要——全部准备好再动手
Step 2:feishu_wiki create 在知识库目标位置新建节点
{
"action": "create",
"space_id": "7618419613059140549",
"parent_node_token": "目标父节点 token",
"title": "文档标题",
"obj_type": "docx"
}
→ 返回 obj_token(这就是文档 token)
Step 3:feishu_doc write 一次性写入全部内容
{
"action": "write",
"doc_token": "Step 2 返回的 obj_token",
"content": "完整的 markdown 内容..."
}
Step 4:feishu_doc read 验证内容完整
{
"action": "read",
"doc_token": "obj_token"
}
- 确认 block_count 合理(通常 >50)
- 确认关键章节标题出现在 content 中
- 验证通过再告诉用户完成
📋 流程变体
仅在云盘(不进知识库)
feishu_doc create(folder_token 指定位置)
→ feishu_doc write(写内容)
→ feishu_doc read(验证)
更新现有知识库文档
feishu_wiki get(拿 obj_token)
→ 本地组装全部新内容
→ feishu_doc write(全量替换,不用 insert)
→ feishu_doc read(验证)
❌ 禁止操作
| 禁止 | 原因 |
|---|---|
大文档用 insert |
触发 ordering conflict,必翻车 |
feishu_doc create + feishu_wiki create |
产生两个文档,需要手动清理 |
| 分批写入同一文档 | 版本号冲突 |
| 写完不验证就汇报完成 | Done ≠ Claimed |
| 收到 conflict 错误就盲目重试 | 可能已写入成功,重试会导致重复内容 |
📊 成功案例参考
| 任务 | 块数 | 结果 |
|---|---|---|
| 名校录取画像文档 | 216 块 | 零 conflict ✅ |
| OpenClaw 技术路线图 | 102 块 | 零 conflict ✅ |
| 投资书单知识图谱索引页 | 241 块 | 零 conflict ✅ |
| 指数基金读书笔记 | 88 块 | 零 conflict ✅ |
基于实战踩坑经验整理,2026-04-07
安全使用建议
This is an instruction-only best-practice guide for writing large Feishu Wiki documents and appears coherent. Before installing/using it, confirm: (1) your agent or environment actually has the Feishu CLI/API tools the instructions reference (feishu_wiki, feishu_doc); (2) which Feishu credentials the agent will use — provide a scoped, least-privilege token and verify it has only the needed write/read permissions; (3) test the workflow on a staging space to avoid accidental production writes (the guide deliberately recommends full replace writes — they can overwrite content); and (4) ensure you have backups or version history available in case of accidental replacement. If you cannot verify where authentication comes from, treat the missing dependency/credential declaration as a blocker until clarified.
功能分析
Type: OpenClaw Skill
Name: feishu-wiki-writer
Version: 1.0.0
The skill bundle contains documentation and instructions (SKILL.md) for optimizing Feishu Wiki document creation and writing. It provides a structured workflow to avoid API 'ordering conflicts' by using full-content writes instead of incremental updates. There is no executable code, and the instructions are strictly aligned with the stated purpose of improving API reliability without any signs of data exfiltration or malicious intent.
能力评估
Purpose & Capability
The skill's name/description match the instructions (it focuses on creating and writing large Feishu Wiki documents and avoiding ordering conflicts). However, the SKILL.md expects feishu_wiki/feishu_doc operations to be available but the skill declares no required binaries or credentials; this is plausible for an instruction-only skill that relies on the agent or platform to already have Feishu integration, but it is a missing dependency declaration that users should verify.
Instruction Scope
The instructions stay on-topic: they describe how to assemble content locally, create a wiki node, write the entire document in one call, and read back to verify. They do not ask the agent to read unrelated files, harvest environment variables, or send data to unexpected endpoints.
Install Mechanism
No install spec and no code files (instruction-only) — minimal disk/write risk. This is the lowest-risk install model.
Credentials
The skill declares no required environment variables or credentials even though it instructs API/CLI operations against Feishu (feishu_wiki/feishu_doc). That omission could be benign (the platform supplies Feishu credentials), but you should confirm what credentials the agent will use and ensure least-privilege tokens are available and expected.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent presence or special system-wide configuration changes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-wiki-writer - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-wiki-writer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feishu-wiki-writer with best practices for creating and updating large Feishu knowledge base documents.
- Explains why always use write (not insert/append) to avoid ordering conflicts.
- Details complete end-to-end process for safely writing and validating large/complex documents.
- Lists common pitfalls and prohibited operations, with clear reasoning.
- Provides workflow variants for knowledge base vs. regular cloud disk documents.
- Includes real case studies proving reliability of the approach.
元数据
常见问题
Feishu Wiki Writer 是什么?
飞书知识库文档写入最佳实践。当需要向飞书知识库新建文档、写入大量内容(>50 block)、生成知识图谱/索引页/读书笔记等复杂文档时激活。 解决 ordering conflict 和重复文档问题。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。
如何安装 Feishu Wiki Writer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-wiki-writer」即可一键安装,无需额外配置。
Feishu Wiki Writer 是免费的吗?
是的,Feishu Wiki Writer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Feishu Wiki Writer 支持哪些平台?
Feishu Wiki Writer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Feishu Wiki Writer?
由 xwz119(@xwz119)开发并维护,当前版本 v1.0.0。
推荐 Skills