Feishu block adder

From wulaosiji/skills · View interactive version

Feishu block adder is an AI agent skill from the GitHub repository wulaosiji/skills. 知识库块添加子技能 / Feishu wiki block adder sub-skill. 将解析后的块数据添加到飞书知识库文档,分批处理以避免 API 限制,支持表格和普通块。 Use when: "添加知识库块", "add wiki blocks", "批量添加知识库块", "batch add wiki blocks", "知识库表格创建", "wiki table creation", "块写入知识库", "block write to wiki". 内部组件,由 feishu-wiki-orchestrator 编排调用,每批最多 20 个块,表格单独处理。Cross-refer

How to use this skill

Skill file

Feishu Wiki Block Adder (Sub-skill)

将解析后的块数据分批添加到飞书知识库文档,支持表格和普通块。内部组件,由父技能编排调用。

When to Use

Use this skill when:

Do NOT use this skill if:

Typical triggers:

Workflow

  1. 探查 (Probe)

从 blocks.json 加载解析后的块数据,从 doc_info.json 加载知识库文档 ID。

  1. 约束 (Constrain)

每批最多 20 个块,表格单独处理,普通块批量添加。不支持的块类型跳过并记录。

  1. 执行 (Execute)

分批调用飞书 API 添加块到知识库文档:

python scripts/block_adder.py workflow/step1_parse/blocks.json workflow/step2_create/doc_info.json output
  1. 验证 (Verify)

检查 API 返回结果,确认所有块添加成功,统计成功/失败数量。

  1. 交付 (Deliver)

保存添加结果到 output/add_result.json。

Output

{
  "success": true,
  "document_id": "U2wNd2rMkot6fzxr67ScN7hJn7c",
  "total_blocks": 290,
  "tables_created": 10,
  "regular_blocks": 280,
  "batches": 15,
  "duration_seconds": 5.2
}

Guardrails

Anti-patterns

Constraints

Related Skills

About UniqueClub

Part of the UniqueClub toolkit.

🌐 https://uniqueclub.ai

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.