novel-truncator

Truncate novel texts to a maximum length at chapter or sentence boundaries.

330|71|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/GongLingRui/screen-creative-skills --skill novel-truncator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: novel-truncator
Source: https://github.com/GongLingRui/screen-creative-skills/tree/main/category/novel-screening/novel-truncator
Command: npx skills add https://github.com/GongLingRui/screen-creative-skills --skill novel-truncator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

智能截断文本,保持内容完整性。适用于小说文本预处理、确保文本不超过指定长度限制。

Core Features & Use Cases

  • 智能截断:在尽量保留情节与段落的前提下,将文本截断至目标长度。
  • 章节边界优先:优先在章节标题处截断,避免破坏章节结构。
  • 语句边界保护:如无法在章节边界截断,将优先选择句子边界进行截断,确保语义连贯。
  • 输出信息:返回截断后的文本及元数据,便于后续处理和统计。

Quick Start

Provide the original novel text and the maximum length, and request intelligent truncation that preserves the gist while meeting the length limit.

Frequently Asked Questions about novel-truncator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I truncate long novel texts without breaking sentences or chapters?

To truncate novel texts without breaking sentences or chapters, this Skill applies chapter-boundary prioritization and sentence-boundary safety. It intelligently cuts your input to a specified maximum length while preserving narrative integrity and avoiding mid-scene cuts.

What is the best way to preprocess novels for text length limits during NLP tasks?

The best way to preprocess novels for NLP length limits is using intelligent text-truncation that respects narrative structure. It outputs the truncated text alongside metadata and provenance, ensuring your content remains structurally intact for downstream processing.

How do I truncate text at a chapter boundary instead of a fixed character count?

You truncate text at a chapter boundary by providing the input text and maximum length to this Skill. It prioritizes chapter boundaries for cutting typical novel formats, falling back to sentence boundaries if needed to avoid mid-sentence splits.

Does this text truncation method work with any novel format?

This text truncation method works across typical novel formats by detecting chapter and sentence boundaries. You only need to provide the original text and maximum length limit to receive truncated content and metadata without requiring additional dependencies.

Why does my truncated text cut off mid-scene, and how do I prevent it?

Your truncated text cuts off mid-scene because standard cutters ignore narrative structure. Prevent this by using chapter-boundary prioritization and sentence-boundary safety, which actively avoid breaking mid-scene or mid-sentence during text truncation.