SkillsGrove
SkillsGrove/Productivity/wulaosiji/skills/feishu-doc-orchestrator

feishu-doc-orchestrator

Installation

$npx skills add https://github.com/wulaosiji/skills --skill feishu-doc-orchestrator
$git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/feishu-wiki-orchestrator/feishu-doc-orchestrator ~/.claude/skills/feishu-doc-orchestrator
Please install this Agent Skill for me: https://github.com/wulaosiji/skills/tree/d733e1308915dcdcc52c9594853b10f497e7a4a0/feishu-wiki-orchestrator/feishu-doc-orchestrator — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · MIT知识库文档创建主编排子技能 / Feishu wiki document creation orchestrator sub-skill. 将 Markdown 文件转换为飞书知识库文档,编排多个子技能协作完成,使用文件传递数据以节省 Token。 Use when: "编排知识库文档创建", "orchestrate wiki doc creation", "Markdown转知识库文档", "markdown to wiki doc", "知识库五步编排", "wiki five-step orchestration", "文件传递数据", "file-based data passing". 内部嵌套编排组件,协调 md-parser → creator-with-permission → block-adder → verifier → logger 流程。Cross-references: feishu-wiki-orchestrator, feishu-md-parser, feishu-block-adder. Built by UniqueClub 🌐 https://uniqueclub.ai
The SKILL.md below is reproduced from wulaosiji/skills (commit d733e13) under the MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2025 Feishu Document Creation Skill. License: feishu-wiki-orchestrator/LICENSE. Only the instructions file is shown; see the original repository for any scripts.

Feishu Wiki Document Orchestrator (Nested Sub-skill)

飞书知识库文档创建主编排子技能——将 Markdown 转换为知识库文档,编排 5 个子技能协作,使用文件传递数据节省 Token。内部嵌套组件。

When to Use

Use this skill when:

  • 需要在嵌套层级中编排知识库文档创建流程时
  • 需要协调多个子技能按顺序执行时
  • 需要通过文件传递中间结果以节省 Token 时

Do NOT use this skill if:

  • 需要顶层编排入口 → use feishu-wiki-orchestrator (parent) instead
  • 需要创建云盘文档 → use feishu-doc-orchestrator instead
  • 只需要单个子技能功能 → 直接调用对应子技能

Typical triggers:

  • 「编排知识库文档创建流程」「协调知识库子技能」
  • "orchestrate wiki doc creation pipeline", "coordinate wiki sub-skills"

Workflow

  1. 探查 (Probe) 确认 Markdown 文件路径、文档标题、知识库空间 ID 和父节点 ID。

  2. 约束 (Constrain) 子技能之间只传递文件路径,不传递实际内容(节省 60-80% Token)。每步结果保存到 workflow/ 目录,支持断点续传。知识库创建需要 Wiki 权限。

  3. 执行 (Execute) 五步编排:

  4. Markdown 解析:feishu-md-parser → workflow/step1_parse/blocks.json

  5. 文档创建+权限管理:feishu-doc-creator-with-permission → workflow/step2_create_with_permission/doc_with_permission.json

  6. 块添加:feishu-block-adder → workflow/step3_add_blocks/add_result.json

  7. 文档验证:feishu-doc-verifier → workflow/step4_verify/verify_result.json

  8. 日志记录:feishu-logger → CREATED_DOCS.md + created_docs.json

python scripts/orchestrator.py input.md "文档标题"
  1. 验证 (Verify) 检查每步输出文件是否存在且包含有效数据,确认最终知识库文档可访问且位置正确。

  2. 交付 (Deliver) 返回知识库文档 URL 和创建日志,清理临时文件。

Output

成功完成后返回知识库文档 URL、节点 Token、CREATED_DOCS.md、created_docs.json 和完整的 workflow/ 中间结果。

数据流:

input.md → [feishu-md-parser] → blocks.json
→ [feishu-doc-creator-with-permission] → doc_with_permission.json
→ [feishu-block-adder] → add_result.json
→ [feishu-doc-verifier] → verify_result.json
→ [feishu-logger] → CREATED_DOCS.md + created_docs.json

Guardrails

Anti-patterns

  • NEVER 在子技能之间传递实际内容(只传文件路径)
  • Do NOT 跳过任何编排步骤(尤其是权限管理)
  • Do NOT 独立使用本子技能——应由父技能调用

Constraints

  • 单一职责:每个子技能只做一件事
  • 中间结果保存为文件,可追溯、可断点续传
  • 知识库文档创建后移动位置需手动操作
  • Callout 块颜色字段必须直接放在 callout 对象下

Related Skills

  • feishu-wiki-orchestrator (parent) — 顶层主编排技能
  • feishu-md-parser — 子技能:解析 Markdown
  • feishu-block-adder — 子技能:添加块

About UniqueClub

Part of the UniqueClub toolkit. 🌐 https://uniqueclub.ai

View full license text (MIT)
MIT License

Copyright (c) 2025 Feishu Document Creation Skill

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.