Skip to main content

novel-truncator

Intelligently truncate text while preserving content integrity. Suitable for novel text preprocessing, ensuring text does not exceed specified length limits

インストールへ移動

ソース情報

リポジトリ
VanGong1999/screen-creative-skills
ソースの最終更新活動
2026年1月11日 08:00
検出された SKILL.md の言語
英語
スター
415
フォーク
81

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
2 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
novel-truncator
description
Intelligently truncate text while preserving content integrity. Suitable for novel text preprocessing, ensuring text does not exceed specified length limits
category
novel-screening
version
2.1.0
last_updated
2026-01-11T00:00:00.000Z
license
MIT
compatibility
Claude Code 1.0+
maintainer
Gong Fan
allowed-tools
[]
model
opus
changelog
[{"version":"2.1.0","date":"2026-01-11T00:00:00.000Z","changes":["[Truncated]","[Truncated]","[Truncated]","[Truncated]"]},{"version":"2.0.0","date":"2026-01-11T00:00:00.000Z","changes":["[Truncated]","[Truncated]","[Truncated]"]},{"version":"1.0.0","date":"2026-01-10T00:00:00.000Z","changes":["[Truncated]"]}]
# Text Truncator Tool (Novel Edition) ## Functionality Receive text content and maximum length limit, intelligently truncate text while preserving content integrity. ## Usage Scenarios - Preprocess long novel text to meet length limits - Extract text segments without compromising semantic integrity - Ensure text input to other agents does not exceed their processing capacity ## Truncation Principles 1. **Prioritize Sentence Endings**: Break at periods, question marks, exclamation points 2. **Next Paragraph Endings**: Break at spaces, line breaks 3. **Finally Specified Length**: Ensure not exceeding set maximum length limit ## Input Requirements - **Text Content**: Original text to be truncated (string) - **Maximum Length Limit**: Target maximum character count for text (integer) - **Truncation Marker** (optional): String to identify text truncation location, such as "[...]" ## Output Format ``` [Text Truncation Report] Original Length: [character count] Truncated Length: [character count] Truncation Position: [position description, such as: at period in sentence X] Truncated Text: [text content] ``` ## Constraints - Truncation process should maximally preserve original text's semantic and contextual integrity - Strictly adhere to maximum length limit - Avoid truncating in the middle of words ## Examples See `{baseDir}/references/examples.md` for more detailed examples: - `examples.md` - Contains detailed examples for different truncation scenarios (by sentence, by paragraph, forced truncation) ## Detailed Documentation See `{baseDir}/references/examples.md` for detailed guidance and cases on the text truncator tool. --- ## Version History | Version | Date | Changes | |---------|------|---------| | 2.1.0 | 2026-01-11 | Optimized description field; optimized descriptions for functionality, usage scenarios, truncation principles, input requirements, and output format; added constraints, examples, and detailed documentation sections; changed model to opus | | 2.0.0 | 2026-01-11 | Restructured according to official specifications | | 1.0.0 | 2026-01-10 | Initial version |
GitHubで見る