openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > message-chunker

智能消息分段工具。自动将长消息拆分成多条发送,避免飞书API消息长度限制。当需要发送长消息(如汇报、方案、日志)时自动激活。

通信与消息

作者:Code:Z @as9530272755

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 1 · 192 · 1 current installs · 1 all-time installs

1

安装量(当前) 1

🛡 VirusTotal :良性 · OpenClaw :良性

Package:as9530272755/message-chunker

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill is an instruction-only message chunking helper whose requested resources and instructions match its stated purpose and do not request extra credentials or installs.

目的

Name/description (split long messages for platforms like Feishu) aligns with the provided files and runtime instructions; it does not request unrelated credentials, binaries, or config paths.

说明范围

SKILL.md contains only chunking rules, triggers, simple retry guidance, and configuration pointers (TOOLS.md). It does not instruct reading arbitrary files, accessing unrelated environment variables, or sending data to external endpoints.

安装机制

No install spec and no code files are present (instruction-only), so nothing is downloaded or written to disk by the skill itself.

证书

The skill declares no environment variables, credentials, or config paths. That is proportionate: chunking logic can run using the agent's existing messaging capabilities without extra secrets.

持久

always is false and the skill does not request persistent system-wide changes or elevated privileges. Behavior described is limited to message-sending logic within the agent's normal operation.

综合结论

This skill is instruction-only and internally consistent with its stated purpose. Before installing, verify how your agent sends messages (so you know which messaging integration/credentials will be used) and test behavior with non-sensitive content. Pay attention to retry rules (the doc suggests retrying on Status 400 — you may want to adjust that to avoid repeated client-error retries), decide where the "failure queue" should be stored, and …

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「message-chunker」。简介:智能消息分段工具。自动将长消息拆分成多条发送,避免飞书API消息长度限制。当需要发送长消息(如汇报、方案、日志)时自动激活。。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/as9530272755/message-chunker/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: message-chunker
description: "智能消息分段工具。自动将长消息拆分成多条发送,避免飞书API消息长度限制。当需要发送长消息(如汇报、方案、日志)时自动激活。"
---

# Message Chunker - 消息分段工具

智能分段发送长消息,确保每条消息不超过平台限制。

## 触发条件

当消息满足以下任一条件时自动分段:
- 消息长度超过 4000 字符
- 包含多个独立章节/表格
- 发送失败(Status 400)后重试

## 平台限制

| 平台 | 单条限制 | 建议 |
|------|---------|------|
| 飞书 | ~4KB | 每条≤4000字符 |
| Telegram | 4096字符 | 每条≤4000字符 |
| Discord | 2000字符 | 每条≤1900字符 |
| WhatsApp | 65536字符 | 较宽松 |

## 分段规则

### 1. 按章节分段
```
## 章节1
内容...

--- 分段 ---

## 章节2
内容...
```

### 2. 按表格分段
```
表格1内容...

--- 分割 ---

表格2内容...
```

### 3. 按段落分段
- 优先在 `---` 分隔线处分段
- 其次在空行处分段
- 避免在句子中间分段

## 使用方法

### 自动模式(推荐)
在回复长消息时,Agent会自动判断并分段:

```
# 第1条消息(分段1/n)
内容...

# 系统自动发送第2条
内容续...

# 系统自动发送第3条
内容续...
```

### 手动标记分段
在消息中插入分段标记:

```
{{CHUNK}}
```

Agent会在标记处自动分段。

## 示例

**原始长消息**(10KB):
```
# 汇报
## 第一部分
[大量内容]
## 第二部分
[大量内容]
## 第三部分
[大量内容]
```

**分段后**:
```
第1条: # 汇报n## 第一部分n[大量内容]
第2条: ## 第二部分n[大量内容]
第3条: ## 第三部分n[大量内容]
```

## 配置

在 `TOOLS.md` 中可自定义:

```yaml
message-chunker:
  maxChunkSize: 4000  # 单条最大字符数
  splitOnHeadings: true  # 在标题处分段
  splitOnTables: true  # 表格后分段
  includeContinuation: true  # 添加"续"标记
```

## 注意事项

1. **不要过度分段** - 能合并的内容尽量合并
2. **保持完整性** - 单个表格不要拆分
3. **添加续接标记** - 让用户知道还有下文
4. **重试机制** - 分段后仍失败则记录到失败队列

---

*创建时间: 2026-03-10*
*创建者: 01-老鹰*