Feishu doc

From wulaosiji/skills · View interactive version

Feishu doc is an AI agent skill from the GitHub repository wulaosiji/skills. 飞书文档只读工具 / Feishu document read-only tool. 仅用于读取、解析现有飞书文档内容,禁止写入操作。支持快速预览和结构化块提取。 Use when: "读取飞书文档", "read feishu document", "提取文档内容", "extract document content", "飞书文档预览", "feishu doc preview", "获取表格数据", "get table data", "文档块解析", "document block parsing". 支持 read / list_blocks / get_block 三种只读操作,

How to use this skill

Skill file

Feishu Document Tool (Read-Only)

飞书文档只读工具——读取、解析文档内容,严格不支持写入。

When to Use

Use this skill when:

Do NOT use this skill if:

Typical triggers:

Workflow

  1. 探查 (Probe)

确认飞书文档 URL 或 doc_token,从 URL https://xxx.feishu.cn/docx/ABC123def 提取 doc_token。

  1. 约束 (Constrain)

确认本技能为只读操作,不执行任何写入。如需写入,切换到 feishu-doc-orchestrator。

  1. 证据 (Evidence)

执行 read 操作获取标题、纯文本内容、块统计:

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

检查响应中的 hint 字段和 block_types,判断是否需要进一步提取结构化内容。

  1. 执行 (Execute)

根据需要执行以下操作:

```json

{ "action": "list_blocks", "doc_token": "ABC123def" }

```

```json

{ "action": "get_block", "doc_token": "ABC123def", "block_id": "doxcnXXX" }

```

  1. 验证 (Verify)

回读返回的块数据,确认内容完整性和表格/图片等结构化元素已正确提取。

  1. 交付 (Deliver)

返回文档内容摘要或结构化数据,清理临时文件。

Output

返回 JSON 格式的文档内容,包含标题、纯文本、块统计和结构化块数据。示例:

{
  "title": "文档标题",
  "content": "纯文本内容...",
  "block_count": 50,
  "block_types": ["text", "heading", "table"]
}

Guardrails

Anti-patterns

Constraints

Use Cases

| 需求 | 推荐操作 | 说明 |

|------|----------|------|

| 快速了解文档内容 | read | 纯文本,速度快 |

| 需要表格数据 | list_blocks | 包含完整结构化数据 |

| 只需要特定部分 | get_block | 精准获取,节省 Token |

| 检查文档是否存在 | read | 轻量级验证 |

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.