feishu-doc-optimizer

飞书云文档内容优化与格式美化。当用户需要优化飞书文档的排版、结构、格式、美观度时使用此技能。支持:(1) 读取飞书文档内容 (2) 优化文档结构和层次 (3) 清空并替换文档内容 (4) 通过浏览器自动化编辑文档。触发词:优化飞书文档、美化文档、整理文档格式、文档排版。

33 stars

Best use case

feishu-doc-optimizer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

飞书云文档内容优化与格式美化。当用户需要优化飞书文档的排版、结构、格式、美观度时使用此技能。支持:(1) 读取飞书文档内容 (2) 优化文档结构和层次 (3) 清空并替换文档内容 (4) 通过浏览器自动化编辑文档。触发词:优化飞书文档、美化文档、整理文档格式、文档排版。

Teams using feishu-doc-optimizer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/feishu-doc-optimizer/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/feishu-doc-optimizer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/feishu-doc-optimizer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How feishu-doc-optimizer Compares

Feature / Agentfeishu-doc-optimizerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

飞书云文档内容优化与格式美化。当用户需要优化飞书文档的排版、结构、格式、美观度时使用此技能。支持:(1) 读取飞书文档内容 (2) 优化文档结构和层次 (3) 清空并替换文档内容 (4) 通过浏览器自动化编辑文档。触发词:优化飞书文档、美化文档、整理文档格式、文档排版。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 飞书云文档优化器

优化飞书云文档的内容结构、排版格式和视觉美观度。

## 工作流程

### 1. 读取文档内容

使用飞书 API 读取文档原始内容:

```python
python3 scripts/feishu_doc_reader.py <doc_token>
```

文档 token 从 URL 提取:`https://xxx.feishu.cn/docx/<doc_token>`

### 2. 分析并优化内容

优化原则:
- **结构清晰**:使用标准章节编号(1. 2. 3.)
- **层次分明**:一级标题、二级标题、正文层次清晰
- **内容精炼**:删除冗余,保留核心信息
- **视觉美观**:使用 emoji 标记、分隔线、表格对齐

### 3. 替换文档内容

通过 Playwright 浏览器自动化:

```python
python3 scripts/feishu_doc_editor.py <doc_token> <content_file>
```

流程:
1. 连接已登录的浏览器
2. 打开文档进入编辑模式
3. 循环 Ctrl+A + Backspace 清空内容
4. 逐行输入新内容

## 飞书 API 配置

### 租户配置

| 租户 | App ID | 用途 |
|------|--------|------|
| hanxing | REDACTED_FEISHU_HANXING_APP_ID | 汉兴企业(默认) |
| personal | REDACTED_FEISHU_PERSONAL_APP_ID | 个人应用 |

### API 权限

需要的权限范围:
- `docx:document:readonly` - 读取文档
- `docx:document` - 编辑文档(API 方式)

## 优化模板

### 项目文档模板

```markdown
# [项目名称]

> [一句话描述]
> 📅 版本:vX.X | 更新日期:YYYY-MM-DD

---

## 📋 目录
1. 项目背景  2. 系统架构  3. 核心功能  ...

---

## 1. 项目背景

### 1.1 痛点分析
🔴 痛点1 - 描述 ⭐⭐⭐⭐⭐
🔴 痛点2 - 描述 ⭐⭐⭐⭐

### 1.2 解决方案
方案描述...

---

## 2. 核心功能

### 2.1 功能名称 ✅
**功能**:功能描述
**流程**:步骤1 ➜ 步骤2 ➜ 步骤3

---

## N. 项目价值

### N.1 投入成本
| 项目 | 成本 | 说明 |
|------|------|------|
| 项目1 | ¥0 | 说明 |

### N.2 产出价值
⏱️ 指标1:描述
💰 指标2:描述

---

💡 如有改进建议,欢迎提出!
```

## 格式规范

### Emoji 使用

| 场景 | Emoji |
|------|-------|
| 目录/导航 | 📋 |
| 日期/版本 | 📅 |
| 痛点/问题 | 🔴 |
| 已完成 | ✅ |
| 进行中 | 🔄 |
| 待办 | ⏳ |
| 重要提示 | ⚠️ 💡 |
| 数据采集 | 📥 |
| 数据处理 | ⚙️ |
| 数据展示 | 📊 |
| 时间 | ⏱️ |
| 成本 | 💰 |
| 增长 | 📈 |

### 分隔符

- 章节分隔:`---`(三个短横线)
- 流程箭头:`➜`
- 星级评分:`⭐⭐⭐⭐⭐`

### 表格格式

```markdown
| 列1 | 列2 | 列3 |
|:---:|------|:---:|
| 居中 | 左对齐 | 居中 |
```

## 注意事项

1. **登录状态**:浏览器编辑需要已登录飞书
2. **API 限制**:飞书 API 不支持直接删除文档块
3. **编辑模式**:确保文档处于"编辑"模式而非"阅读"模式
4. **保存确认**:编辑后等待"已保存到云端"提示

## 相关文件

- `scripts/feishu_doc_reader.py` - 读取文档内容
- `scripts/feishu_doc_editor.py` - 编辑文档内容
- `references/optimization-examples.md` - 优化案例参考

Related Skills

twitter-algorithm-optimizer

33
from aAAaqwq/AGI-Super-Team

Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

skill-search-optimizer

33
from aAAaqwq/AGI-Super-Team

Optimize agent skills for discoverability on ClawdHub/MoltHub. Use when improving search ranking, writing descriptions for semantic search, understanding how the registry indexes skills, testing search visibility, or analyzing why a skill isn't being found.

seo-meta-optimizer

33
from aAAaqwq/AGI-Super-Team

Creates optimized meta titles, descriptions, and URL suggestions based on character limits and best practices. Generates compelling, keyword-rich metadata. Use PROACTIVELY for new content.

prompt-optimizer

33
from aAAaqwq/AGI-Super-Team

Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.

outbound-optimizer

33
from aAAaqwq/AGI-Super-Team

Use this skill when users need to improve cold outreach, optimize cold emails or DMs, increase response rates, or turn outbound from spam into revenue. Activates for cold outreach optimization, prospecting strategy, or "my outbound isn't working" problems.

inference-optimizer

33
from aAAaqwq/AGI-Super-Team

Audit OpenClaw token usage, purge stale sessions, and optimize inference speed. Use when the user sends /optimize, /audit, asks to purge sessions, or wants a token/workspace audit.

geo-content-optimizer

33
from aAAaqwq/AGI-Super-Team

Use when the user asks to "optimize for AI", "get cited by ChatGPT", "AI optimization", "appear in AI answers", "GEO optimization", "get cited by AI", "show up in ChatGPT answers", "AI does not mention my brand", or "make content AI-quotable". Optimizes content for Generative Engine Optimization (GEO) to increase chances of being cited by AI systems like ChatGPT, Claude, Perplexity, and Google AI Overviews. Makes content AI-friendly while maintaining SEO value. For SEO-focused writing, see seo-content-writer. For entity and brand presence, see entity-optimizer.

feishu-channel

33
from aAAaqwq/AGI-Super-Team

飞书 (Lark/Feishu) 与 OpenClaw 的双向集成通道。通过飞书机器人实现消息的接收和发送,支持私聊、群聊、@提及检测、卡片消息、文件传输。当需要通过飞书与 AI 助手交互、接收飞书消息触发 AI 响应、或从 OpenClaw 发送消息到飞书时使用此技能。与 feishu-automation 的区别:本 skill 专注于消息通道集成,feishu-automation 专注于飞书平台自动化操作(多维表格、文档等)。

feishu-automation

33
from aAAaqwq/AGI-Super-Team

飞书(Lark)全通道自动化。使用 lark-mcp 工具操作飞书多维表格(Bitable)、发送消息、管理文档、创建群组、自动化工作流等。当用户需要操作飞书平台、同步数据到飞书表格、发送飞书通知、管理飞书文档或自动化飞书业务流程时使用此技能。

wemp-operator

33
from aAAaqwq/AGI-Super-Team

> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装

Content & Documentation

zsxq-smart-publish

33
from aAAaqwq/AGI-Super-Team

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

zoom-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.