Skip to content
Back to skills

Feishu Docx

ASecurity

飞书云文档(docx)的创建与编辑技能。支持通过 API 创建文档、追加内容、批量更新块等操作。使用此技能需要提供 App ID 和 App Secret。

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentpythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill feishu-docx --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feishu Docx?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feishu Docx
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-feishu-docx/badge)](https://www.skillsdirectory.com/skills/dvcrn-feishu-docx)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feishu-docx
description: "飞书云文档(docx)的创建与编辑技能。支持通过 API 创建文档、追加内容、批量更新块等操作。使用此技能需要提供 App ID 和 App Secret。"
---

# Feishu Docx Skill

本技能封装了飞书云文档(docx)API 的核心操作,允许老大快速对飞书文档进行读写操作。

## 认证信息

使用该技能前,需确保已设置以下环境变量或在代码中显式传入:
- `FEISHU_APP_ID`: cli_a92c5076b7789cd2
- `FEISHU_APP_SECRET`: 9jPdCn49G54RFoEoDPUCVcptnWZnTZqp

## 核心工作流

1. **获取访问令牌**: 使用 `tenant_access_token` 进行应用级别的认证。
2. **创建文档**: 调用 `POST /open-apis/docx/v1/documents` 创建一个空的或指定标题的文档。
3. **写入/编辑内容**:
    - 追加块:`POST /open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/children`
    - 批量更新:`POST /open-apis/docx/v1/documents/{document_id}/blocks/batch_update`

## 使用示例 (Python)

```python
from scripts.feishu_docx_client import FeishuDocx

client = FeishuDocx(app_id="cli_a92c5076b7789cd2", app_secret="9jPdCn49G54RFoEoDPUCVcptnWZnTZqp")

# 1. 创建文档
doc_id = client.create_document("测试文档")

# 2. 追加文本
client.append_text(doc_id, "这是由 OpenClaw 写入的内容。")
```

## 资源

- **客户端脚本**: `scripts/feishu_docx_client.py` 封装了常用的 API 调用。
- **参考文档**: 请参考 [REFERENCES.md](references/api_reference.md) 了解更多 Block 类型和 API 细节。

Files in this skill

  • SKILL.md1.5 KB
  • references/api_reference.md1011 B
  • scripts/feishu_docx_client.py4.3 KB
  • scripts/import_egg_cake_report.py1015 B
  • scripts/perfect_import_egg_cake.py1.4 KB
  • scripts/write_tangyuan.py9.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…