Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install feishu-doc-editor或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install feishu-doc-editor⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/feishu-doc-editor/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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. ---
This skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI.
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:
docx:document:write_onlydocx:document:readonlyPublish app: Submit version and publish, ensuring the app coverage includes target users/departments.
Call the self-built app get tenant_access_token interface:
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:
{
"code": 0,
"tenant_access_token": "t-xxx",
"expire": 7200
}
Get document_id from document URL:
Example URL: https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd
document_id = HpK2dtGu9omhMAxV12zcB6i7ngd
Manually add collaborator:
Interface: Create Block
document_id = document ID, block_id = document ID (root node is the document itself)```http Authorization: Bearer {tenant_access_token} Content-Type: application/json ```
```json { "index": -1, "children": [ { "block_type": 2, "text": { "elements": [ { "text_run": { "content": "hello" } } ] } } ] } ```
Interface: Get Document Plain Text
curl -X GET "https://open.feishu.cn/open-apis/docx/v1/documents/{document_id}/plaintext" \
-H "Authorization: Bearer {tenant_access_token}"
Response example:
{
"code": 0,
"data": {
"content": "Document text content here"
}
}
tenant_access_token is invalid.tenant_access_token.Authorization: Bearer {token}.tenant_access_token is correctly added to request header.document_id is incorrect or document has been deleted.document_id from document URL.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.
安装 feishu-doc-editor 后,可以对 AI 说这些话来触发它
Help me get started with feishu-doc-editor
Explains what feishu-doc-editor does, walks through the setup, and runs a quick demo based on your current project
Use feishu-doc-editor to feishu document creation and editing operations using OpenAPI
Invokes feishu-doc-editor with the right parameters and returns the result directly in the conversation
What can I do with feishu-doc-editor in my documents & notes workflow?
Lists the top use cases for feishu-doc-editor, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/feishu-doc-editor/ 目录(个人级,所有项目可用),或 .claude/skills/feishu-doc-editor/(项目级)。重启 AI 客户端后,用 /feishu-doc-editor 主动调用,或让 AI 根据上下文自动发现并使用。
feishu-doc-editor 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
feishu-doc-editor 可免费安装使用。请查阅仓库了解许可证信息。
Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
feishu-doc-editor 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using feishu-doc-editor
Identifies repetitive steps in your workflow and sets up feishu-doc-editor to handle them automatically