# Novel Truncator

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

- **Type:** Skill
- **Install:** `agentstack add skill-vangong1999-screen-creative-skills-novel-truncator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [VanGong1999](https://agentstack.voostack.com/s/vangong1999)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [VanGong1999](https://github.com/VanGong1999)
- **Source:** https://github.com/VanGong1999/screen-creative-skills/tree/master/english-version/category/novel-screening/novel-truncator

## Install

```sh
agentstack add skill-vangong1999-screen-creative-skills-novel-truncator
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [VanGong1999](https://github.com/VanGong1999)
- **Source:** [VanGong1999/screen-creative-skills](https://github.com/VanGong1999/screen-creative-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-vangong1999-screen-creative-skills-novel-truncator
- Seller: https://agentstack.voostack.com/s/vangong1999
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
