Text Truncator
Intelligently truncate text while preserving content integrity and semantic coherence. Suitable for long text preprocessing, ensuring text does not exceed specified length limits
Install
npx skills add VanGong1999/screen-creative-skills --skill text-truncatorgit clone --depth 1 https://github.com/VanGong1999/screen-creative-skills.git /tmp/screen-creative-skills
mkdir -p ~/.claude/skills
cp -r /tmp/screen-creative-skills/english-version/category/tools/text-truncator ~/.claude/skills/text-truncatorPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Text Truncator Tool ## Functionality Intelligently truncate text while maintaining content integrity and semantic coherence, limiting text to a specified length. ## Usage Scenarios - Preprocess text that exceeds length limits to meet agent input requirements - Extract key sections for text previews or summary generation to improve efficiency and readability - Assist content creation by intelligently trimming generated long text to avoid redundancy ## Core Capabilities - **Semantic-Priority Truncation**: Prioritize truncation at natural semantic boundaries (periods, question marks, exclamation points) to maximize sentence integrity - **Paragraph Integrity**: When semantic boundaries are insufficient, prioritize truncation at paragraph ends or line breaks to avoid breaking paragraph structure - **Precise Length Control**: Strictly adhere to user-specified maximum length limits, ensuring output text does not exceed limits - **Truncation Marker Insertion** (optional): Automatically add custom truncation markers (such as "...") at the end of truncated text to indicate content omission ## Input Requirements - **Text Content**: Original text to be truncated (string) - **Maximum Length Limit**: Maximum length after text truncation (integer, such as character count or token count) - **Truncation Marker** (optional): Custom truncation marker, such as "..." or "[content truncated]" ## Output Format
Details
- Skill name
text-truncator- Repository
- VanGong1999/screen-creative-skills
- Path
english-version/category/tools/text-truncator/SKILL.md- License
- MIT
- Repo updated
- 20 October 2026
FAQ
What does the Text Truncator skill do?
Intelligently truncate text while preserving content integrity and semantic coherence. Suitable for long text preprocessing, ensuring text does not exceed specified length limits
How do I install the Text Truncator skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add VanGong1999/screen-creative-skills --skill text-truncator. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Text Truncator popular?
It lives in VanGong1999/screen-creative-skills, which has 514 GitHub stars and 86 forks.
Related skills
Character Profile
514VanGong1999/screen-creative-skills
基于故事文本分析人物特征,生成详细人物小传。适用于理解人物设定、为演员塑造角色提供参考、为剧本创作建立人物档案; 当用户提到人物小传、角色档案、人设分析时使用。
Character Profile
514VanGong1999/screen-creative-skills
Analyze story text and generate detailed character profiles. Use when building cast bibles, actor references, or character sheets; triggers: character profile, character bible, persona analysis.
Character Relationships
514VanGong1999/screen-creative-skills
分析故事人物关系网络:类型、特点、发展变化及对情节的推动。 适用于梳理关系网、设计冲突与情感线;提到人物关系、关系图谱时使用。
Wechat Formatter
330Jianing1117/jianing-skills
把一篇 Markdown 格式的文章转成可直接粘贴到微信公众号编辑器的 HTML 推文 + 900x383px 封面图片,沿用「加宁慢慢来」品牌视觉规范。当用户说"排版公众号""帮我生成推文""把这篇文章转成公众号格式""做微信封面""WeChat Article Formatter""WeChat Formatter""wechat-formatter""微信文章排版""微信排版"等相关指令时激活此 skill。
Story Type Analyzer
514VanGong1999/screen-creative-skills
Analyze story genre types, extract creative elements and story features. Suitable for identifying genre positioning, extracting creativity, analyzing market audience
Lessons Record
559KunoLu/640-skills
Use when a durable lesson is needed after a bug fix, rollback, tool or workflow mistake, structural-analysis mismatch, or lost multi-agent context; resolve the lesson writer identity without initializing the whole project.
Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.