token

feishu-doc-editor

办公效率v1.0.0
作者:token更新于 2026-05-17@clawhub_zhuligu/feishu-doc-editor
文档处理#Feishu#Document

据 AlphaMoat 统计,截至 2026-09,feishu-doc-editor 累计下载 3,308 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,422 位,在「办公效率」分类(435 个)中排名第 249 位。

累计安装
105
累计下载
3,308
星标
1
全站排名
#3,422
全站前 68% · 「办公效率」前 58%
平台累计安装累计下载星标评论
ClawHub ↗1053,2031-
SkillHub ↗1053,3081—

各平台的计数口径不同,站内汇总取各平台中的较大值,不相加。

这个技能是做什么的

使用文档 ID 读取纯文本,按块结构写入内容。应用需具备相应读写权限并获文档协作者授权,认证凭据用于换取租户 access token。

资料发布于 2026-10-26

可以用来做什么

  • 将程序生成的内容写入飞书文档

什么时候用

  • 已配置自建应用及目标文档授权时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

读取这篇飞书文档并追加指定文字

使用条件

依据技能文档中的声明整理,未经实际安装或运行验证。

鉴权方式
访问令牌(Token)
鉴权说明
使用自建应用的 app_id 和 app_secret 获取 tenant_access_token。
配置要求
  • 应用需发布并获得对应文档权限,编辑时还需加入为可编辑的文档协作者。

月度数据趋势

累计安装105
3472110新口径旧口径2026-03 · 累计安装 39 (旧口径)2026-05 · 累计安装 47 (旧口径)2026-06 · 累计安装 103 (旧口径)2026-07 · 累计安装 105 (旧口径)2026-08 · 累计安装 105 (旧口径)2026-09 · 累计安装 10526-0326-09
累计下载3,308
1,6232,5283,433新口径旧口径2026-03 · 累计下载 1,748 (旧口径)2026-05 · 累计下载 2,613 (旧口径)2026-06 · 累计下载 2,758 (旧口径)2026-07 · 累计下载 3,030 (旧口径)2026-08 · 累计下载 3,135 (旧口径)2026-09 · 累计下载 3,30826-0326-09
星标1
-12新口径旧口径2026-03 · 星标 1 (旧口径)2026-05 · 星标 1 (旧口径)2026-06 · 星标 1 (旧口径)2026-07 · 星标 1 (旧口径)2026-08 · 星标 1 (旧口径)2026-09 · 星标 126-0326-09

2026-09 起为新口径(全目录统计);此前为旧口径(只统计安装量为正的技能、同名技能合并计数)。两段不可直接比较,图中不跨口径连线,也不计算跨口径的增长。

月份累计下载环比星标累计安装
2026-093,308—1105
2026-08旧口径3,135+3.5%1105
2026-07旧口径3,030+9.9%1105
2026-06旧口径2,758+5.5%1103
2026-05旧口径2,613—147
2026-03旧口径1,748—139

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

展开原文(3.4 KB · ClawHub v1.0.0)
---
name: feishu-doc-editor
description: Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
---

# Feishu Document Editor Skill

This skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI.

## Prerequisites

### 1. App Creation and Configuration

**Create enterprise self-built app**: Login to Feishu Open Platform, create an app and add "Bot" capability.

**Apply for API permissions**: In "Permission Management", apply for the following permissions:
- Document editing: `docx:document:write_only`
- Document viewing: `docx:document:readonly`

**Publish app**: Submit version and publish, ensuring the app coverage includes target users/departments.

### 2. Get Access Token

Call the self-built app get tenant_access_token interface:

```bash
curl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal \
  -H "Content-Type: application/json" \
  -d '{"app_id": "your_app_id", "app_secret": "your_app_secret"}'
```

Response example:

```json
{
  "code": 0,
  "tenant_access_token": "t-xxx",
  "expire": 7200
}
```

## Core Operations

### Extract Document ID

Get `document_id` from document URL:

**Example URL**: `https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd`

**document_id** = `HpK2dtGu9omhMAxV12zcB6i7ngd`

### Grant App Document Permission

**Manually add collaborator**:
- Open document in Feishu client → Click "..." in top right → "More" → "Add document app"
- Search and add your app, grant "Can edit" permission.

### Write Text Content

**Interface**: Create Block

- **Path parameters**: `document_id` = document ID, `block_id` = document ID (root node is the document itself)
- **Request headers**:
  ```http
  Authorization: Bearer {tenant_access_token}
  Content-Type: application/json
  ```

- **Request body example** (write "hello"):
  ```json
  {
    "index": -1,
    "children": [
      {
        "block_type": 2,
        "text": {
          "elements": [
            {
              "text_run": {
                "content": "hello"
              }
            }
          ]
        }
      }
    ]
  }
  ```

### Read Document Content

**Interface**: Get Document Plain Text

```bash
curl -X GET "https://open.feishu.cn/open-apis/docx/v1/documents/{document_id}/plaintext" \
  -H "Authorization: Bearer {tenant_access_token}"
```

Response example:

```json
{
  "code": 0,
  "data": {
    "content": "Document text content here"
  }
}
```

## Common Issues

### 1. Permission Error (403 Forbidden)

- **Diagnosis**: App not added as document collaborator, or `tenant_access_token` is invalid.
- **Solution**: Re-add app as collaborator, or re-get `tenant_access_token`.

### 2. Missing Access Token (99991661)

- **Diagnosis**: Request header does not carry `Authorization: Bearer {token}`.
- **Solution**: Ensure `tenant_access_token` is correctly added to request header.

### 3. Document Not Found (404 Not Found)

- **Diagnosis**: `document_id` is incorrect or document has been deleted.
- **Solution**: Re-extract `document_id` from document URL.

## Reference Documentation

- Create Block Interface
- Get Document Plain Text Interface
- Permission Configuration Guide

Through the above steps, you can achieve editing Feishu documents via API, supporting add/delete/modify/query operations for multiple content types including text, tables, and images.
本站存档的其他文件(按需抓取,可能不完整)
  • skill-card.md · 2.4 KB

「办公效率」分类下的热门技能

腾讯文档 TENCENT DOCS办公效率

腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/html/文档上云。

↓ 134.9万★ 312u_b0de8114
Excel / XLSX办公效率

创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。

↓ 21.7万★ 452Iván
Word / DOCX办公效率

创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。

↓ 21.6万★ 540Iván
Gog办公效率

Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。

↓ 20.6万★ 950Peter Steinberger
PDF和图片文字提取办公效率

从图片或 PDF 文档中识别并提取文字内容,支持多种图片格式和 PDF 文件,自动判断是否包含文字并保留原始格式输出结构化结果;v2.1 采用零额外依赖方案:扫描版 PDF 自动渲染为图片交由 AI 视觉识别(无需 tesseract/rapidocr)、表格用 pymupdf 内置 find_tables 结构化提取(无需 pdfplumber)、批量处理目录(PDF+图片一次性提取);当用户需要从图片或 PDF 提取文字、进行 OCR 识别、处理含文字的文档、提取 PDF 表格、批量处理文件夹或转换为可编辑文本时使用。该skill能力来自RedFoxHub,官网:https://redfox.hk/skills。

↓ 17.0万★ 183user_5f9c21aa
ppt-generator-skill办公效率

智能 PPT 生成助手。根据用户描述的主题、行业、风格,自动生成漂亮的 PPT 文件。支持所有行业(商务、教育、科技、医疗、金融、创意等),支持中英文双语,支持用户提供的模板或 AI 自动配色。触发词:做PPT、生成PPT、制作幻灯片、make ppt、create presentation、帮我做个PPT。

↓ 15.6万★ 301user_3b34947d
kdocs skill办公效率

操作金山文档(WPS 云文档 / Kdocs / 365.kdocs.cn / www.kdocs.cn)云文档的官方 Skill。核心能力覆盖云端新建、读取、编辑、搜索、分享、整理在线文档(智能文档、Word、Excel、PDF、PPT、演示文稿、智能表格、多维表格)及个人知识库。当用户的任务涉及云文档操作时使用,包括但不限于:写周报/日报/工作汇报、处理合同/发票、创建报名表/登记表、网页剪藏、接龙转表格、信息收集、文档总结与内容生成、改写仿写、翻译、AI PPT生成、PDF拆分导出、标签分类归档、收藏管理、碎片笔记整理、表格美化、回收站还原、知识库管理。

↓ 15.5万★ 123user_5ea84866
Nano Pdf办公效率

用自然语言指令改 PDF 指定页的小工具。

↓ 13.5万★ 293Peter Steinberger

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。