Best use case
message-chunker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
智能消息分段工具。自动将长消息拆分成多条发送,避免飞书API消息长度限制。当需要发送长消息(如汇报、方案、日志)时自动激活。
Teams using message-chunker 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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/message-chunker/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How message-chunker Compares
| Feature / Agent | message-chunker | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
智能消息分段工具。自动将长消息拆分成多条发送,避免飞书API消息长度限制。当需要发送长消息(如汇报、方案、日志)时自动激活。
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.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# 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-老鹰*Related Skills
jiuwu-message
调用久吾消息网关HTTP接口给企业内部联系人发送消息。使用场景:(1) 需要向企业内部同事发送通知或提醒时,(2) 调用时传入接收人工号(code)、消息内容(text)和标题(title)
Feishu Message Skill
A unified toolkit for Feishu messaging operations, providing a single CLI entry point for common tasks.
send-message
Send and receive direct messages on OpenAnt. Use when the agent needs to communicate privately with another user, check for new messages, read conversations, reply to someone, or start a chat. Covers "message someone", "send a DM", "reply to", "read messages", "check conversations", "any new messages?", "what did they say?", "check inbox".
MessageGuard: Outgoing Message Filter Skill
**Purpose**: MessageGuard filters outgoing text to prevent secret leaks and sensitive data exposure by using pattern-based detection and configurable actions (mask, block, or warn).
medication-adherence-message-gen
Use medication adherence message gen for academic writing workflows that need structured execution, explicit assumptions, and clear output boundaries.
message-friendly
Optimizes Markdown-formatted messages for IM platforms (WeChat, DingTalk, etc.) by removing unsupported markup and using clean text layouts.
message-split
长消息自动拆分 skill。当回复内容超过渠道限制时,自动将消息拆分为多条有序发送,避免截断或丢消息。Auto-split long messages into smaller chunks before sending, with sequence markers.
competitor-message-differ
比较竞品在信息架构和叙事上的差异,找出可借鉴点与应避免模仿点。;use for competitor, messaging, positioning workflows;do not use for 抄袭竞品文案, 编造竞品数据.
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.