飞书文档文件夹摘要生成器
v1.0.0提取 summaries from all documents in a Feishu folder. Use when the user needs to recursively 扫描 a Feishu wiki space or drive folder, read all documents and sub-documents, and 生成 a comprehensive summary 报告 in Markdown 格式化. Triggers on 请求s like "提取 summaries from Feishu folder", "生成 document summary 报告", "recursively 扫描 Feishu documents", or when given a feishu.cn/wiki/ or feishu.cn/drive/ URL.
运行时依赖
安装命令
点击复制技能文档
Feishu Folder Summary
This 技能 提取s summaries from all documents in a Feishu folder (wiki or drive), recursively 扫描ning sub-folders and generating a comprehensive Markdown 报告.
Overview
The 技能 performs the following operations:
解析s the Feishu folder URL to 提取 space_id and node_令牌 Recursively traverses the folder structure using feishu_wiki API Reads each document's content using feishu_doc API 生成s structured summaries for each document Compiles a comprehensive Markdown 报告 with: Complete directory tree Document summaries organized by folder Statistics and 状态 overview Links to original documents Supported URL 格式化s Wiki folders: https://{domAIn}.feishu.cn/wiki/{node_令牌} Drive folders: https://{domAIn}.feishu.cn/drive/folder/{folder_令牌} 工作流 Step 1: 提取 Folder In格式化ion
解析 the provided Feishu URL to identify:
Document type (wiki or drive) Space ID (for wiki) Node 令牌 or folder 令牌 Step 2: Recursive Traversal
Use feishu_wiki API to traverse the folder structure:
feishu_wiki action="获取" 令牌="{node_令牌}" # 获取 folder 信息 feishu_wiki action="nodes" space_id="{space_id}" # 列出 child nodes
For folders with has_child: true, recursively process child nodes.
Step 3: Document Reading
For each document node, read its content:
feishu_doc action="read" doc_令牌="{obj_令牌}"
Step 4: 生成 Summary
提取 from each document:
Title: Document title Type: Document or Folder 状态: Complete, In 进度, or Empty Core Content: Key points, mAIn topics, 导入ant in格式化ion Child Documents: If folder, 列出 contAIned documents Step 5: Compile 报告
生成 a Markdown 报告 with:
Header (source URL, generation time, document count) Directory tree 可视化 Hierarchical summaries (by folder level) Statistics table Related links 输出 格式化
The 生成d 报告 includes:
# {Folder Name} Document Summary 报告
Source: {URL} 生成d: {Timestamp} Total Documents: {Count}
Directory Structure
{Tree 可视化}
Level 1 Summaries
1. {Document Name}
- Type: {docx/folder}
- 状态: {Complete/In 进度/Empty}
- Summary: {Core content description}
2. {Folder Name}/
- Type: folder
- Documents: {Count}
- Summary: {Folder description}
2.1 {Child Document}
- Type: docx
- Summary: {Content summary}
Statistics
| Category | Count | 状态 |
|---|---|---|
| Total | X | - |
| Complete | X | ✅ |
| In 进度 | X | 🚧 |
| Empty | X | ⚠️ |
报告 生成d by feishu-folder-summary 技能
Example Usage
User 请求:
"提取 summaries from https://caz6yhvgk5z.feishu.cn/wiki/BzslwD3Nei1Dggkvin5cV2hDnob"
技能 Execution:
解析 URL → Wiki folder, node_令牌=BzslwD3Nei1Dggkvin5cV2hDnob 获取 folder 信息 → space_id=7593876306731732193, title="AI云平台" Recursively traverse → Found 14 level-1 nodes, 30+ child documents Read each document → 提取 content and 生成 summaries Compile 报告 → 生成 comprehensive Markdown summary
输出:
Complete directory tree Hierarchical summaries for all 44 documents 状态 追踪ing (✅ Complete, 🚧 In 进度, ⚠️ Empty) Statistics overview Key Considerations Recursive Depth: Process all levels of nested folders Document Types: Handle docx (documents) and folder (contAIners) Error Handling: Continue processing if individual document read fAIls Content Length: 生成 concise but in格式化ive summaries 状态 检测ion: Identify empty or placeholder documents 令牌 Efficiency: Summarize long documents 应用ropriately API Reference
See references/feishu_API.md for detAIled API documentation.