← 返回 Skills 市场
terrence741-cell

feishu-smart-doc-writer

作者 terrence741-cell · GitHub ↗ · v1.4.1
cross-platform ⚠ suspicious
826
总下载
0
收藏
5
当前安装
7
版本数
在 OpenClaw 中安装
/install feishu-smart-doc-writer
功能描述
Feishu/Lark Smart Document Writer - 飞书智能文档写入器. Core Features / 核心功能: 1. Smart Chunk Writing / 智能分块写入 - Solve API limit blank doc issues / 解决长文档API限制导致的空白问题 2...
使用说明 (SKILL.md)

Feishu Smart Doc Writer v1.4.1

🚀 Core Features / 核心功能

1. Smart Document Creation / 智能文档创建

  • Auto-chunk Writing / 自动分块: Split long content into chunks to avoid API limit blank docs / 长内容自动分割成小块,避免API限制导致的空白文档
  • Auto Ownership Transfer / 自动转移所有权: Transfer to user using OpenID after creation / 创建后自动使用 OpenID 转移给用户
  • Auto Index Update / 自动索引更新: Add doc info to local index memory/feishu-docs-index.md / 文档信息自动添加到本地索引
  • Smart Categorization / 智能分类: Auto-tag based on content (AI Tech, E-commerce, Health, etc.) / 根据内容自动打标签(AI技术、电商、健康运动等)

2. Document Management / 文档管理

  • Search Documents / 搜索文档: Search local index by keywords / 按关键词搜索本地索引
  • List Documents / 列出文档: Filter by tags and status / 按标签、状态筛选文档列表
  • Append Content / 追加内容: Append to existing docs (auto-chunk) / 向现有文档追加内容(自动分块)

📋 Tools / 工具列表

write_smart - Smart Document Creation / 智能创建文档

Create document with auto-chunk writing, ownership transfer, and index update. 创建文档,自动完成分块写入、所有权转移、索引更新。

{
  "title": "Document Title / 文档标题",
  "content": "Content (long content supported) / 文档内容(支持长内容)",
  "folder_token": "Optional folder token / 可选的文件夹token"
}

Returns / 返回:

{
  "doc_url": "https://feishu.cn/docx/xxx",
  "doc_token": "xxx",
  "chunks_count": 3,
  "owner_transferred": true,
  "index_updated": true
}

append_smart - Append Content / 追加内容

Append content to existing document with auto-chunk. 向现有文档追加内容(自动分块)。

{
  "doc_url": "https://feishu.cn/docx/xxx",
  "content": "Content to append / 要追加的内容"
}

search_docs - Search Documents / 搜索文档

Search documents in local index. 搜索本地索引中的文档。

{
  "keyword": "Search keyword / 搜索关键词"
}

Returns / 返回:

{
  "results": [
    {
      "name": "Document Name / 文档名",
      "link": "https://...",
      "summary": "Summary / 摘要",
      "tags": "AI Tech, OpenClaw / AI技术, OpenClaw"
    }
  ],
  "count": 1
}

list_docs - List Documents / 列出文档

List all documents with optional filters. 列出所有文档,支持筛选。

{
  "tag": "AI Tech / AI技术",
  "status": "Completed / 已完成"
}

transfer_ownership - Transfer Ownership / 转移所有权

Manually transfer document ownership (usually auto-handled by write_smart). 手动转移文档所有权(通常不需要,write_smart 已自动处理)。

{
  "doc_url": "https://feishu.cn/docx/xxx",
  "owner_openid": "ou_xxxxxxxx"
}

Note / 注意: Only provide OpenID, tenant_access_token is auto-obtained by Skill. 只需要提供 OpenID,tenant_access_token 由 Skill 自动获取。

configure - Configure OpenID / 配置 OpenID

Configure OpenID for first-time use. 首次使用时配置 OpenID。

{
  "openid": "ou_xxxxxxxx",
  "permission_checked": true
}

get_config_status - Get Config Status / 查看配置状态

View current configuration status. 查看当前配置状态。


🚀 Quick Start / 快速开始

First-time Setup (3 Steps) / 首次使用(3步配置)

Step 1 / 第1步: Call write_smart / 调用 write_smart

/feishu-smart-doc-writer write_smart
title: Test Document / 测试文档
content: This is a test document. / 这是一个测试文档内容

Step 2 / 第2步: Get OpenID / 获取 OpenID If not configured, follow the guide: 如果未配置,会显示引导:

  1. Login / 登录 https://open.feishu.cn
  2. Go to / 进入 Application → Permission Management / 应用 → 权限管理 → Search / 搜索 im:message
  3. Click / 点击【API】Send Message / 发送消息 → Go to API Debug Console / 前往API调试台
  4. Click / 点击"Quick Copy open_id" / 快速复制 open_id", select your account / 选择你的账号, copy / 复制

Step 3 / 第3步: Configure and Enable Permissions / 配置并开通权限

/feishu-smart-doc-writer configure
openid: ou_your_openid / ou_你的OpenID
permission_checked: true

Then go to Permission Management / 然后到权限管理:

  1. Search / 搜索 docs:permission.member:transfer
  2. Click / 点击"Enable / 开通"
  3. Important / 重要: Click / 点击"Publish / 发布" button to publish new version / 按钮发布新版本

After setup, future document creation will automatically: 配置完成后,以后创建文档会自动:

  • ✅ Chunk write content / 分块写入内容
  • ✅ Transfer ownership to you / 转移所有权给你
  • ✅ Update local index / 更新本地索引

📊 Index Management / 索引管理

Auto Index Workflow / 自动索引流程

write_smart creates document / 创建文档
    ↓
Write content (auto-chunk) / 写入内容(自动分块)
    ↓
Transfer ownership / 转移所有权
    ↓
Auto update index → memory/feishu-docs-index.md / 自动更新索引
    ↓
Done! / 完成!

Auto-categorization Tags / 自动分类标签

Auto-identified based on content / 根据内容自动识别:

  • AI Tech / AI技术 - AI, artificial intelligence / 人工智能, model / 模型, GPT, LLM
  • OpenClaw - OpenClaw, skill, agent
  • Feishu Docs / 飞书文档 - Feishu / 飞书, document / 文档, feishu
  • E-commerce / 电商 - e-commerce / 电商, TikTok, Alibaba / 阿里巴巴
  • Health & Sports / 健康运动 - Garmin, Strava, cycling / 骑行, health / 健康
  • Daily Archive / 每日归档 - conversation / 对话, archive / 归档, chat history / 聊天记录

Index File Location / 索引文件位置

memory/feishu-docs-index.md

Format / 格式: Markdown table with / Markdown 表格,包含 index / 序号, name / 名称, type / 类型, link / 链接, summary / 摘要, status / 状态, tags / 标签, owner / 所有者


🔍 Usage Examples / 使用示例

Example 1 / 示例1: Create Tech Document / 创建技术文档

/feishu-smart-doc-writer write_smart
title: AI Tech Research Report / AI技术调研报告
content: # AI Overview / AI技术概述\
\
AI is... / 人工智能(AI)是...

Result / 结果:

  • Document created successfully / 文档创建成功
  • Auto-tagged "AI Tech / AI技术" / 自动打上"AI技术"标签
  • Index updated / 索引已更新

Example 2 / 示例2: Search Documents / 搜索文档

/feishu-smart-doc-writer search_docs
keyword: AI Tech / AI技术

Example 3 / 示例3: List All Tech Documents / 列出所有技术文档

/feishu-smart-doc-writer list_docs
tag: AI Tech / AI技术

⚙️ Configuration / 配置说明

User Config File / 用户配置文件

Location / 位置: skills/feishu-smart-doc-writer/user_config.json

{
  "owner_openid": "ou_5b921cba0fd6e7c885276a02d730ec19",
  "permission_noted": true,
  "first_time": false
}

Required Permissions / 必需权限

  • docx:document:create - Create document / 创建文档
  • docx:document:write - Write content / 写入内容
  • docs:permission.member:transfer - Transfer ownership ⚠️ Critical / 转移所有权 ⚠️ 关键权限

📝 Version History / 版本历史

v1.4.1 (2026-02-23)

  • ✅ Fixed description inconsistency between skill.json and package.json / 修复 skill.json 和 package.json 描述不一致问题
  • ✅ Unified all file versions to v1.4.1 / 统一所有文件版本号为 v1.4.1
  • ✅ Verified all 7 tools properly declared / 确认所有 7 个工具正确声明

v1.4.0 (2026-02-23)

  • ✅ Added auto index management (index_manager.py) / 新增自动索引管理(index_manager.py)
  • ✅ Added search_docs tool (search local index) / 新增 search_docs 工具(搜索本地索引)
  • ✅ Added list_docs tool (list documents) / 新增 list_docs 工具(列出文档)
  • ✅ Smart auto-categorization tags / 智能自动分类标签
  • ✅ Fixed ownership transfer (independent API calls, no ctx dependency) / 修复所有权转移(独立 API 调用,不依赖 ctx)

v1.2.0

  • ✅ Auto-chunk writing / 自动分块写入
  • ✅ Auto ownership transfer / 自动转移所有权
  • ✅ First-time user guide / 首次使用引导

v1.1.0

  • ✅ Basic document creation and append / 基础文档创建和追加

🔧 Troubleshooting / 故障排除

"open_id is not exist" Error / 错误

Cause / 原因: Used user_id instead of openid / 使用了 user_id 而不是 openid Solution / 解决: Use openid starting with ou_ / 使用以 ou_ 开头的 openid

"Permission Denied" Error / "权限不足" 错误

Cause / 原因: docs:permission.member:transfer not enabled or app not published / 未开通权限,或未发布应用 Solution / 解决

  1. Permission Management → Search docs:permission.member:transfer → Enable / 权限管理 → 搜索 → 开通
  2. Click "Publish" button to publish new version (Critical!) / 点击"发布"按钮(关键!)

Index Not Updated / 索引未更新

Check / 检查

  1. Check if memory/feishu-docs-index.md exists / 查看文件是否存在
  2. Check index_updated field in write_smart return / 检查返回字段
  3. Check error logs / 查看错误日志

📞 Support / 支持

If issues, please check / 如有问题,请检查:

  1. OpenID format correct (starts with ou_) / 格式是否正确(ou_ 开头)
  2. Permissions enabled and published / 权限是否已开通并发布
  3. Index file path correct / 索引文件路径是否正确
安全使用建议
This skill is consistent with its stated purpose but asks for (or implicitly reads) sensitive data: it will try to obtain Feishu app credentials via FEISHU_APP_ID/FEISHU_APP_SECRET env vars or by reading your OpenClaw configuration (~/.openclaw/openclaw.json) to request a tenant_access_token for ownership transfers. Before installing: 1) Inspect the code (feishu_smart_doc_writer.py) yourself or run it in a sandbox; 2) If you trust it, prefer providing a dedicated Feishu app with limited permissions rather than using production credentials; 3) Be aware the skill will write config and an index to ~/.openclaw/workspace (user_config.json and memory/feishu-docs-index.md); 4) Granting docs:permission.member:transfer and publishing the app (as the guide instructs) gives the app the ability to transfer document ownership — only enable that permission for apps you fully trust. If you cannot review the code or do not want it to access your OpenClaw config/credentials, do not install or require the developer to explicitly declare required envs/config paths and provide safer alternatives (e.g., provide a scoped token just for this skill).
功能分析
Type: OpenClaw Skill Name: feishu-smart-doc-writer Version: 1.4.1 The skill is classified as suspicious due to its direct access to sensitive API credentials. The `feishu_smart_doc_writer.py` file, specifically the `_get_tenant_access_token` function, attempts to read `FEISHU_APP_ID` and `FEISHU_APP_SECRET` from environment variables and local OpenClaw configuration files (`~/.openclaw/openclaw.json`, `~/.openclaw/config.json`). While this is done to obtain a `tenant_access_token` for the stated purpose of interacting with the official Feishu API (e.g., for `transfer_ownership`), directly accessing credentials from disk/environment variables is a risky practice and a potential vulnerability, as it bypasses OpenClaw's secure credential management abstractions. There is no evidence of malicious intent such as exfiltration to unauthorized endpoints or misuse of credentials, but the direct access itself is a significant security concern.
能力评估
Purpose & Capability
The skill's name, README, SKILL.md and code all align: it creates Feishu docs, auto-chunks content, transfers ownership and maintains a local index. Obtaining a tenant_access_token and reading a user's OpenClaw config can be justified for performing ownership transfers.
Instruction Scope
SKILL.md promises automatic tenant_access_token retrieval and OpenID guidance, but the runtime code accesses local configuration files (e.g. ~/.openclaw/openclaw.json) and environment variables (FEISHU_APP_ID, FEISHU_APP_SECRET) to get app credentials. These file/variable accesses are not declared in the metadata and are higher-privilege operations than the SKILL.md explicitly documents.
Install Mechanism
No external install/downloads or third-party installers are declared. The package is instruction + bundled Python code included in the skill archive (no remote code fetch observed).
Credentials
The code attempts to read FEISHU_APP_ID / FEISHU_APP_SECRET environment variables and (per changelog and code path) local OpenClaw config files (e.g. ~/.openclaw/openclaw.json) to obtain tenant_access_token. These are sensitive credentials. While they are relevant for the ownership-transfer feature, the skill does not declare these required envs or config paths in its metadata.
Persistence & Privilege
The skill persists user configuration and an index to the user's home workspace (user_config.json at ~/.openclaw/workspace/skills/... and memory/feishu-docs-index.md in workspace). It does not request always:true and does not modify other skills. Persisting these files is expected for its documented index/config features but grants the skill ongoing local storage.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-smart-doc-writer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-smart-doc-writer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.1
**Feishu Smart Doc Writer v1.4.1** - Fixed inconsistent description between skill.json and package.json. - Unified all file version numbers to v1.4.1. - Verified and ensured all 7 tools are properly declared and documented.
v1.4.0
## [1.4.0] - 2026-02-23 ### Added - **Document Search Functionality** (`search_docs`) - Search local index by keywords - Search in document name, summary, and tags - Return matching documents with links - **Document List Functionality** (`list_docs`) - List all created Feishu documents - Filter by tags (AI Technology, E-commerce, Health & Sports, etc.) - Filter by status - **Automatic Index Management** (`index_manager.py`) - Auto-update local index at `memory/feishu-docs-index.md` after document creation - Auto-generate document summary (first 100 characters) - Intelligent auto-categorization tags: - AI Technology (AI, artificial intelligence, model, GPT, LLM) - OpenClaw (OpenClaw, skill, agent) - Feishu Docs (Feishu, document, docx) - E-commerce (e-commerce, TikTok, Alibaba) - Health & Sports (Garmin, Strava, cycling, health) - Daily Archive (conversation, archive, chat history) - **Tool Declarations** - Officially declare `search_docs` and `list_docs` tools in `package.json` ### Changed - Updated `SKILL.md` documentation with detailed descriptions of new features - Improved usage examples and configuration instructions ### Technical Details (Ownership Transfer Fix) - **Before**: Used `ctx.invoke_tool("exec", ...)` which failed when ctx was None or unavailable - **After**: Direct HTTP API calls with `aiohttp`, fully independent of OpenClaw context - **API Endpoint**: `POST /drive/v1/permissions/{token}/members/transfer_owner?type=docx` ### Optimized Ownership Transfer Workflow - Automatically transfer ownership to user after document creation - Automatically obtain tenant_access_token without manual configuration - Fixed "permission denied" errors caused by ctx passing issues
v1.3.3
feishu-smart-doc-writer v1.3.3 - Updated user configuration documentation for clarity. - Improved example config to use placeholder `owner_openid` value. - Minor documentation updates in SKILL.md and SKILL_CHINESE.md for better usability. - No changes to core features or functionality.
v1.3.2
- Added SETUP.md file with setup instructions and related information. - No changes to core features or functionality in this version.
v1.3.1
- Added a new file: SKILL_CHINESE.md, providing Chinese documentation for the skill. - No changes to core features or code; this update enhances multilingual support and documentation accessibility.
v1.3.0
## Changelog ### v1.3.0 - Major Update with Auto-Indexing & Document Management **Release Date:** 2026-02-22 #### 🚀 New Features 1. **Automatic Index Management** - Documents are automatically added to local index (`memory/feishu-docs-index.md`) after creation - Auto-generated summaries from document content - Smart content-based tagging (AI, E-commerce, Health, etc.) - No manual index updates needed - everything is automatic! 2. **Document Search & List Tools** - `search_docs`: Search through all your Feishu documents by keyword - `list_docs`: List documents with filtering by tags or status - Find any document instantly without remembering URLs 3. **Enhanced Auto-Chunking** - Smart content splitting to avoid API limits - Maintains document structure (headings, lists) - Handles long documents (10,000+ characters) seamlessly #### 🔧 First-Time Setup Guide **Step 1: Get Your Feishu OpenID** Before using this skill, you need to obtain your Feishu OpenID: 1. **Login to Feishu Open Platform** - Visit: https://open.feishu.cn - Login with your Feishu account 2. **Navigate to Permission Management** - Select your app - Click "Permission Management" (权限管理) - Search for: `im:message` - Hover over "Related API Events" (相关API事件) - Select: **【API】Send Message** (【API】发送消息) - Click: **"Go to API Debug Console"** (前往API调试台) 3. **Copy Your OpenID** - Find the blue link "Quick Copy open_id" (快速复制 open_id) - Click it - Select your account from the dropdown - Click "Copy" - Your OpenID looks like: `ou_xxxxxxxxxxxxxxxx` **Step 2: Grant Transfer Ownership Permission** ⚠️ **CRITICAL: You must publish the app after granting permission!** 1. **Go to Permission Management** - In your app, click "Permission Management" (权限管理) 2. **Search and Enable** - Search: `docs:permission.member:transfer` - Find: "Transfer cloud document ownership" (转移云文档的所有权) - Click "Enable" (开通) 3. **Publish New Version** ⚠️ - Click "Publish" (发布) button in top right - Wait for "Published" status - **Without publishing, the permission won't work!** **Step 3: Configure the Skill** Run the configure command: ``` /feishu-smart-doc-writer configure openid: ou_your_openid_here permission_checked: true ``` Your configuration is saved to `user_config.json` and will be used for all future documents. #### 📖 Usage Examples **Create a Document:** ``` /feishu-smart-doc-writer write_smart title: My Project Report content: # Introduction This is my project report... ``` The skill will: 1. Create the document 2. Write content in chunks (auto-split if long) 3. Transfer ownership to you automatically 4. Add to your local index with tags **Search Documents:** ``` /feishu-smart-doc-writer search_docs keyword: AI technology ``` **List Documents by Tag:** ``` /feishu-smart-doc-writer list_docs tag: E-commerce ``` #### 🔍 Auto-Tagging System Documents are automatically tagged based on content: - **AI Technology**: AI, artificial intelligence, model, GPT, LLM - **OpenClaw**: OpenClaw, skill, agent - **Feishu**: Feishu, document, docx - **E-commerce**: E-commerce, TikTok, Alibaba, toy - **Health & Sports**: Garmin, Strava, cycling, health - **Daily Archive**: Conversation, archive, chat log #### 🐛 Fixed Issues - Fixed table parsing for 8-column index format - Improved error handling during ownership transfer - Enhanced chunking algorithm for better content preservation #### 📁 Files Added - `index_manager.py` - Core index management functionality - Updated `__init__.py` - Added search_docs and list_docs tools - Updated `SKILL.md` - Comprehensive usage documentation #### 💡 Tips 1. **Keep user_config.json safe** - It contains your OpenID 2. **Check permissions** - If transfer fails, verify permission is published 3. **Index location** - Local index is at `memory/feishu-docs-index.md` 4. **Long documents** - Don't worry about length, auto-chunking handles it! --- ### v1.2.0 - Auto-Chunking & Ownership Transfer - Implemented smart content chunking to avoid API limits - Added automatic ownership transfer after document creation - First-time user guide for OpenID configuration ### v1.1.0 - Basic Document Operations - Basic document creation and appending - Support for folder selection - Simple configuration system ### v1.0.0 - Initial Release - Basic Feishu document writing functionality
v1.2.0
Initial release of Feishu Smart Doc Writer. - Automatically chunks long documents to handle API content limits and prevent blank documents. - Automatically transfers document ownership to the user. - Guides users through OpenID configuration on first use. - Provides tools to write, append, transfer ownership, configure OpenID, and check config status.
元数据
Slug feishu-smart-doc-writer
版本 1.4.1
许可证
累计安装 6
当前安装数 5
历史版本数 7
常见问题

feishu-smart-doc-writer 是什么?

Feishu/Lark Smart Document Writer - 飞书智能文档写入器. Core Features / 核心功能: 1. Smart Chunk Writing / 智能分块写入 - Solve API limit blank doc issues / 解决长文档API限制导致的空白问题 2... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 826 次。

如何安装 feishu-smart-doc-writer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-smart-doc-writer」即可一键安装,无需额外配置。

feishu-smart-doc-writer 是免费的吗?

是的,feishu-smart-doc-writer 完全免费(开源免费),可自由下载、安装和使用。

feishu-smart-doc-writer 支持哪些平台?

feishu-smart-doc-writer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 feishu-smart-doc-writer?

由 terrence741-cell(@terrence741-cell)开发并维护,当前版本 v1.4.1。

💬 留言讨论