Skip to content
Back to skills

Novel Truncator

ASecurity

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

  • 415 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentsgodocumentation

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add VanGong1999/screen-creative-skills --skill novel-truncator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Novel Truncator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Novel Truncator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vangong1999-novel-truncator-screen-creative-skills/badge)](https://www.skillsdirectory.com/skills/vangong1999-novel-truncator-screen-creative-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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-11
license: MIT
compatibility: Claude Code 1.0+
maintainer: Gong Fan
allowed-tools: []
model: opus
changelog:
  - version: 2.1.0
    date: 2026-01-11
    changes:
      - type: improved
        content: Optimized description field to be more concise and comply with imperative language standards
      - type: improved
        content: Optimized descriptions for functionality, usage scenarios, truncation principles, input requirements, and output format to comply with imperative language standards
      - type: added
        content: Added constraints, examples, and detailed documentation sections
      - type: changed
        content: Changed model to opus
  - version: 2.0.0
    date: 2026-01-11
    changes:
      - type: breaking
        content: Restructured according to Agent Skills official specifications
      - type: improved
        content: Optimized description, used imperative language, streamlined main content
      - type: added
        content: Added license and compatibility optional fields
  - version: 1.0.0
    date: 2026-01-10
    changes:
      - type: added
        content: Initial version
---

# 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 |

Files in this skill

  • SKILL.md3.4 KB
  • references/examples.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.