← Back to Skills Marketplace
xwz119

Feishu Wiki Writer

by xwz119 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
94
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install feishu-wiki-writer
Description
飞书知识库文档写入最佳实践。当需要向飞书知识库新建文档、写入大量内容(>50 block)、生成知识图谱/索引页/读书笔记等复杂文档时激活。 解决 ordering conflict 和重复文档问题。
README (SKILL.md)

飞书文档写入最佳实践

适用场景:新建知识库文档、写入 >50 block 的内容、知识图谱/索引页/读书笔记等复杂文档

⚠️ 核心原则

  1. 永远用 write 写新文档,不用 insert/append

    • insert/append 在大文档上会触发 ordering conflict(血泪教训:铁路文档死 5 次、读书笔记 conflict)
    • write 全量替换新文档 = 零 conflict
  2. 不要先 feishu_doc createfeishu_wiki create

    • 这样会建出两个文档(一个云盘、一个知识库),需要手动清理
    • 正确做法:只用 feishu_wiki create,它本身就会建空文档
  3. 内容在本地完全组装好,再一次性写入

    • 不要边想边写边调 API
    • 先把全部 markdown 准备好,然后一个 write 搞定
  4. 写完必须读回来验证

    • "写入成功" ≠ 内容完整
    • 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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-wiki-writer
  3. After installation, invoke the skill by name or use /feishu-wiki-writer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug feishu-wiki-writer
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Feishu Wiki Writer?

飞书知识库文档写入最佳实践。当需要向飞书知识库新建文档、写入大量内容(>50 block)、生成知识图谱/索引页/读书笔记等复杂文档时激活。 解决 ordering conflict 和重复文档问题。 It is an AI Agent Skill for Claude Code / OpenClaw, with 94 downloads so far.

How do I install Feishu Wiki Writer?

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

Is Feishu Wiki Writer free?

Yes, Feishu Wiki Writer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Feishu Wiki Writer support?

Feishu Wiki Writer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Feishu Wiki Writer?

It is built and maintained by xwz119 (@xwz119); the current version is v1.0.0.

💬 Comments