Agent skill

Text Splitter

by VanGong1999 in VanGong1999/screen-creative-skills

将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段. An agent skill from VanGong1999/screen-creative-skills.

MITAuto-check passed

Install Text Splitter

skills CLI
$ npx skills add VanGong1999/screen-creative-skills --skill text-splitter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VanGong1999/screen-creative-skills text-splitter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VanGong1999/screen-creative-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/category/tools/text-splitter .claude/skills/text-splitter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
text-splitter
GitHub stars
446
Token cost
~539 tokens
SKILL.md length
57 words
Files
3 (incl. scripts, references)
Skills in repo
62
Repo updated
First seen
Licence
MIT

At a glance

将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段. An agent skill from VanGong1999/screen-creative-skills.

  • SKILL.md covers 功能, 使用场景, 核心能力 and 输入要求, plus 5 more sections
  • Runs Python scripts from its folder

What it does

Text Splitter is an agent skill from VanGong1999/screen-creative-skills. 将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/examples.md` and `scripts/text_splitter.py`). Compatibility notes: Claude Code 1.0+

The repository describes itself as: Skills for Film and Television Creation Agents|31 个影视创作评估策划Agent Skills|AI影视自动化工作流|竖屏短剧长剧IP改编|情节题材提炼|剧本小说IP创作策划评估|人物小传|拉片人物剧集故事五元素分析|大纲生成|. The licence is MIT.

Example prompts

  • “/text-splitter”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Claude Code 1.0+

What it can do on your machine

Read from SKILL.md and the folder at commit 6ced54f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code 1.0+

    From compatibility in the SKILL.md frontmatter.

Context cost

Text Splitter loads about 539 tokens when it runs, and up to ~1k if it reads all its reference files. Until then it costs about 14 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~539
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VanGong1999/screen-creative-skills at commit 6ced54f, republished under its MIT licence (© VanGong1999). 57 words, ~539 tokens.

Download SKILL.mdSave it as .claude/skills/text-splitter/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
text-splitter
description
将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段
compatibility
Claude Code 1.0+
category
tools
version
2.1.0
last_updated
2026-01-11
license
MIT
maintainer
宫凡
model
opus

文本分割工具

功能

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

使用场景

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

核心能力

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

输入要求

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

输出格式

【文本分割报告】

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

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

约束条件

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

示例

参见 {baseDir}/references/examples.md 目录获取更多详细示例:

  • examples.md - 包含不同长度、不同分割策略和复杂文本结构的分割示例。

详细文档

参见 {baseDir}/references/examples.md 获取关于文本分割工具的详细指导与案例。


版本历史

版本日期变更
2.1.02026-01-11优化 description 字段,使其更精简并符合命令式语言规范;模型更改为 opus;优化功能、核心能力、输入要求、输出格式的描述,使其更符合命令式语言规范;添加使用场景、约束条件、示例和详细文档部分。
2.0.02026-01-11按官方规范重构
1.0.02026-01-10初始版本

© VanGong1999, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in category/tools/text-splitter of VanGong1999/screen-creative-skills.

  • SKILL.md
  • references/examples.md
  • scripts/text_splitter.py

Open the folder on GitHubat commit 6ced54f

Compare with similar skills

Text Splitter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Text Splitter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Text Splitter this skillVanGong1999/screen-creative-skills446—~539Automated safety check: PassMIT
PR Splittermastra-ai/mastra29k—~1.5kAutomated safety check: PassCustom licence
Train Test Splitterjeremylongshore/tons-of-skills-marketplace2.8k—~556Automated safety check: PassMIT
Commit Splittersundial-org/skills152—~860Automated safety check: PassNone
Gif Splitterisjiamu/jiamu-skills139—~610Automated safety check: PassMIT
Novel Episode Splitterjeffstric/ZJT227—~2kAutomated safety check: PassCustom licence

Similar skills

  • PR Splitter

    mastra-ai/mastra

    A skill your agent uses when breaking a large, complex, messy, or hard-to-review pull request into multiple smaller PRs; planning stacked PRs; extracting independent changes from a branch; splitting…

    29k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Train Test Splitter

    jeremylongshore/tons-of-skills-marketplace

    Test train test splitter operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~556 tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Commit Splitter

    sundial-org/skills

    Split large sets of uncommitted changes into logical, well-organized commits.

    152 GitHub stars~860 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Gif Splitter

    isjiamu/jiamu-skills

    GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。

    139 GitHub stars~610 tokensUpdated 2 mo ago
    Auto-check passed
  • 小说剧本分集工具,读取用户输入的小说剧本,根据每集时长自动分集,智能检测重复内容并处理差异。当需要导入小说并分集时使用。

    227 GitHub stars~2k tokensUpdated 17 days ago
    Writing & ContentAuto-check passed
  • Scene Splitter

    hassancs91/claude-image-generation

    Splits a plain English story into a numbered list of SCENES — each scene being one moment that gets exactly one illustration AND one narration clip downstream.

    101 GitHub stars~2.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed

More from VanGong1999/screen-creative-skills

All 62 skills in this repo
  • Drama Creator

    VanGong1999/screen-creative-skills

    Create vertical short drama scripts covering macro construction, episode writing, precise optimization, and creative ideation using Emotional Spring Theory.

    446 GitHub stars~2.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Drama Workflow

    VanGong1999/screen-creative-skills

    Orchestrate the full plot-point dramatic function analysis pipeline — text preprocessing, parallel segment analysis, result integration, and report generation — for long-form story content.

    446 GitHub stars~850 tokensUpdated 4 mo ago
    Auto-check passed
  • Novel Evaluator

    VanGong1999/screen-creative-skills

    Evaluate and score story text across market potential, innovation attributes, and content highlights dimensions, producing structured scoring reports with development recommendations.

    446 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Script Evaluator

    VanGong1999/screen-creative-skills

    Evaluate film and TV scripts across ideological, artistic, and entertainment value dimensions, producing structured scoring reports with follow-up recommendations.

    446 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Story Five Elements

    VanGong1999/screen-creative-skills

    Analyze five core story elements — genre type, story summary, character biographies, character relationships, and major plot points — producing a structured comprehensive report with optional mind…

    446 GitHub stars~781 tokensUpdated 4 mo ago
    Auto-check passed
  • Character Profile

    VanGong1999/screen-creative-skills

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

    446 GitHub stars~609 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Text Splitter

What does Text Splitter do?

将文本分割成指定大小的块,保持语义完整性。适用于长文本批处理、将文本分割为可处理的片段. An agent skill from VanGong1999/screen-creative-skills. Text Splitter is an agent skill from VanGong1999/screen-creative-skills.

How do I install Text Splitter in Claude Code?

Run `npx skills add VanGong1999/screen-creative-skills --skill text-splitter -a claude-code`. Or copy the skill folder (category/tools/text-splitter in VanGong1999/screen-creative-skills) into .claude/skills/text-splitter in your project. Claude Code loads it when a task matches its description.

How do I install Text Splitter in Codex?

Run `npx skills add VanGong1999/screen-creative-skills --skill text-splitter -a codex`. Or copy the skill folder (category/tools/text-splitter in VanGong1999/screen-creative-skills) into .agents/skills/text-splitter in your project. Codex loads it when a task matches its description.

Can I use Text Splitter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VanGong1999/screen-creative-skills --skill text-splitter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/text-splitter, .gemini/skills/text-splitter, .github/skills/text-splitter and .opencode/skills/text-splitter in your project.

What does Text Splitter need to run?

Going by SKILL.md and its folder, Text Splitter needs Python for the scripts in its folder. Our summary lists: Python 3. Compatibility (from SKILL.md): Claude Code 1.0+.

Does Text Splitter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Text Splitter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Text Splitter use?

Text Splitter is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Text Splitter use?

About 539 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 509 tokens, read only when the agent opens those files.

What are the alternatives to Text Splitter?

Skills that share tags, products or a category with Text Splitter: PR Splitter (mastra-ai/mastra, 29k stars), Train Test Splitter (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Commit Splitter (sundial-org/skills, 152 stars) and Gif Splitter (isjiamu/jiamu-skills, 139 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Text Splitter?

VanGong1999 (a GitHub user) maintains it in VanGong1999/screen-creative-skills, which has 446 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on May 26, 2026.

Source: VanGong1999/screen-creative-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.