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
累計下載
3308
星標
1
全站排名
#3,422
全站前 68% · 「辦公效率」前 58%
平台累計安裝累計下載星標評論
ClawHub ↗10532031-
SkillHub ↗10533081—

各平台的計數口徑不同,站內彙總取各平台中的較大值,不相加。

這個技能是做什麼的

使用文件 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
累計下載3308
162325283433新口徑舊口徑2026-03 · 累計下載 1748 (舊口徑)2026-05 · 累計下載 2613 (舊口徑)2026-06 · 累計下載 2758 (舊口徑)2026-07 · 累計下載 3030 (舊口徑)2026-08 · 累計下載 3135 (舊口徑)2026-09 · 累計下載 330826-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-093308—1105
2026-08舊口徑3135+3.5%1105
2026-07舊口徑3030+9.9%1105
2026-06舊口徑2758+5.5%1103
2026-05舊口徑2613—147
2026-03舊口徑1748—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萬★ 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),按月更新。口徑說明見資料方法。