text-splitter

text-splitter is a skill for Claude Code from GongLingRui/screen-creative-skills. It costs 38 tokens per session (1,123 once invoked), scanned A, a copy of drama-evaluator, MIT.

A text-splitting tool that divides long text into smaller pieces while trying to keep sentences, paragraphs, and formatting intact.

In plain words
What is it for?
Use it to prepare text for batch processing, summarisation, analysis, or evaluation using character, token, paragraph, or delimiter limits.
Why use it?
It helps when a document is too large for one processing step or needs consistent-sized inputs for analysis.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions Claude Code.

Good fit Use it to prepare text for batch processing, summarisation, analysis, or evaluation using character, token, paragraph, or delimiter limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gonglingrui/screen-creative-skills/text-splitter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GongLingRui/screen-creative-skills --skill text-splitter
Clone the repo
git clone --depth 1 https://github.com/GongLingRui/screen-creative-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text-splitter

README.md
[![agentmods](https://agentmods.dev/badge/skills/gonglingrui/screen-creative-skills/text-splitter/github.svg)](https://agentmods.dev/skills/gonglingrui/screen-creative-skills/text-splitter)
Your own site
<a href="https://agentmods.dev/skills/gonglingrui/screen-creative-skills/text-splitter"><img src="https://agentmods.dev/badge/skills/gonglingrui/screen-creative-skills/text-splitter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for text-splitter

Your own site · 80×15
<a href="https://agentmods.dev/skills/gonglingrui/screen-creative-skills/text-splitter"><img src="https://agentmods.dev/badge/skills/gonglingrui/screen-creative-skills/text-splitter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01123
Opus 5 $0.00019 $0.00562
Sonnet 5 $0.00008 $0.00225
Haiku 4.5 $0.00004 $0.00112

Measured 12d ago against content hash 6c161bcd3084, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

text-splitter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/text_splitter.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to drama-evaluator — 146 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

category/tools/text-splitter/SKILL.md · 106 lines

What it actually says

文本分割工具

功能

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

使用场景

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

核心能力

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

输入要求

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

输出格式

【文本分割报告】

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

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

约束条件

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

示例

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

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

详细文档

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


版本历史

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

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 106 lines · 38 tokens per session scan A 6c161bcd3084

Subscribe to this mod's changes

text-splitter is a skill published in the GitHub repository GongLingRui/screen-creative-skills (402 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 1,123 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to drama-evaluator, differing in 146 lines, and is treated as a copy.

Related

Other skills, from other repositories

voice-extractor

Capture a user's real writing voice from 5-20 prior samples, store a local voice.yaml fingerprint, and enforce it on newsjack drafts so AI tells disappear. Measures voice with named stylometry lenses (Burrows's Delta function-word vector, MATTR lexical diversity, sentence-length burstiness, Biber Dimension-1 register…

elvisun/newsjack · 90 tokens

airflow

Queries, manages, and troubleshoots Apache Airflow using the af CLI. Use when working with anything related to Airflow - a DAG, a DAG run, a task log, an import or parse error, a broken DAG, or any Airflow operation. Covers listing and triggering DAGs, retrying runs, reading task logs, diagnosing failures, debugging…

astronomer/agents · 186 tokens

delegating-to-otto

Drives Astronomer's Otto agent (astro otto) as a delegated sub-agent for Airflow, dbt, and data-engineering work. Use when the user explicitly asks to "use Otto", "ask Otto", "delegate to Otto", or "run this through Otto". Also offer Otto for Airflow 2 → 3 migrations and upgrade planning even when not named — Otto's…

astronomer/agents · 208 tokens

migrating-ai-sdk-to-common-ai

Migrates Airflow projects from airflow-ai-sdk to apache-airflow-providers-common-ai 0.4.0+. Use when replacing airflow-ai-sdk with the official Airflow AI provider - migrating LLM decorators (@task.llm, @task.agent, @task.llmbranch, @task.embed), switching from model strings/objects to connection-based LLM…

astronomer/agents · 151 tokens

annotating-task-lineage

Annotate Airflow tasks with data lineage using inlets and outlets. Use when the user wants to add lineage metadata to tasks, specify input/output datasets, or enable lineage tracking for operators without built-in OpenLineage extraction.

astronomer/agents · 51 tokens

cosmos-dbt-core

Turns a dbt Core project into an Airflow DAG/TaskGroup using Astronomer Cosmos. Use turning a dbt Core project into an Airflow DAG or TaskGroup with Astronomer Cosmos. Before implementing, verify dbt engine, warehouse, Airflow version, execution environment, DAG vs TaskGroup, and manifest availability.

astronomer/agents · 73 tokens