MCPInstall

text-splitter

将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段

Installs
127
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/vangong1999/screen-creative-skills --skill text-splitter
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads text-splitter automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

文本分割工具

功能

将文本分割成指定大小的块,保持语义完整性,便于后续的批处理和分析。

使用场景

  • 处理超长文本,将其拆分为智能体可处理的片段。
  • 进行文本预处理,为后续的内容分析、摘要或评估任务提供标准化输入。
  • 优化文本处理流程,确保每个处理单元的大小可控且语义完整。

核心能力

  • 语义完整性优先: 在分割时尽量避免截断句子或段落,优先在自然边界处(如句号、换行符)分割,确保每个块的语义完整性。
  • 保持原始格式: 在分割过程中,努力保留文本的原始格式和结构,例如Markdown、HTML标签等。
  • 精确控制块大小: 严格按照指定的大小限制进行分割,确保每个文本块不超过预设的最大长度。
  • 多种分割策略: 支持基于字符数、token数、段落数或特定分隔符等多种分割策略。

输入要求

  • 文本内容: 待分割的原始文本。
  • 块大小限制: 每个文本块的最大长度(建议提供字符数或 token 数)。
  • 分割策略(可选): 指定分割时优先考虑的策略,如按句分割、按段落分割、按特定分隔符分割等。

输出格式

【文本分割报告】

- 原始文本长度: [整数] 字/Token
- 目标块大小: [整数] 字/Token
- 实际分割块数: [整数] 块

### 分割结果
- 块1 (长度: [整数] 字/Token): "[内容预览...]"
- 块2 (长度: [整数] 字/Token): "[内容预览...]"
- 块3 (长度: [整数] 字/Token): "[内容预览...]"
...

约束条件

  • 分割结果必须严格符合指定的块大小限制。
  • 确保在分割时最大限度地保持文本的语义完整性。
  • 输出格式必须结构化,清晰展示每个文本块的内容和长度。
  • 避免在输出中引入任何额外信息或解释,只提供分割结果。

硬性约束

  • 优先按章节、场次、空行等自然边界分割
  • 单段尽量语义完整,避免从对话中间切断
  • 输出保留顺序索引,便于后续合并

参考资料

  • examples.md

FAQ

What does the text-splitter skill do?

将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段

How do I install text-splitter?

Run npx skills add https://github.com/vangong1999/screen-creative-skills --skill text-splitter in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/text-splitter/ (personal) or .claude/skills/text-splitter/ (project).

Which AI agents can use text-splitter?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is text-splitter safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains text-splitter?

It is published by vangong1999 in vangong1999/screen-creative-skills. It has 127 recorded installs.

More from vangong1999/screen-creative-skills

View all →

drama-creator

vangong1999/screen-creative-skills

创作与优化竖屏短剧剧本:宏观建构、分集撰写、节奏台词优化、打脸/悬念创意。 适用于从零写短剧、改剧本、设计大纲与钩子时使用。

Media & Creative990 installs

drama-planner

vangong1999/screen-creative-skills

制定竖屏短剧专业策划方案,含情绪价值分析、黄金三秒钩子设计、三幕式结构规划等。适用于短剧项目前期策划、商业化方案设计、创作指导

Media & Creative438 installs

drama-evaluator

vangong1999/screen-creative-skills

依据竖屏短剧评估标准,从核心爽点、故事类型等维度评估打分。适用于评估故事改编为竖屏短剧的潜力、分析市场竞争力

Media & Creative269 installs

drama-analyzer

vangong1999/screen-creative-skills

分析故事文本,提炼主要情节点并分析戏剧功能。适用于分析小说、剧本大纲、故事梗概等文本,识别关键转折点和情感节点

Media & Creative210 installs

character-profile

vangong1999/screen-creative-skills

基于故事文本分析人物特征,生成详细人物小传。适用于理解人物设定、为演员塑造角色提供参考、为剧本创作建立人物档案; 当用户提到人物小传、角色档案、人设分析时使用。

Media & Creative180 installs

novel-evaluator

vangong1999/screen-creative-skills

仅依据用户提供的故事文本做多维度初筛打分(市场潜力、创新属性、内容亮点)。 适用于小说/故事文本初筛、无外网信息时的质量判断;不要在需要联网查热度、作者履历、版权数据时使用(那时用 ip-evaluator)。

Media & Creative179 installs

Popular media & creative skills

View category →

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.2M installs

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.1M installs

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1M installs

hyperframes-creative

heygen-com/hyperframes

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.

Media & Creative916.5K installs

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative881.5K installs

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative880.3K installs