MCPInstall

novel-truncator

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

Installs
126
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/vangong1999/screen-creative-skills --skill novel-truncator
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads novel-truncator automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

文本截断工具(小说版)

功能

接收文本内容与最大长度限制,智能截断文本,保持内容完整性。

使用场景

  • 对长篇小说文本进行预处理,使其符合长度限制。
  • 在不破坏语义完整性的前提下,截取文本片段。
  • 确保输入到其他智能体的文本不超过其处理能力。

截断原则

  1. 优先句子结束: 在句号、问号、感叹号处断开。
  2. 其次段落结束: 在空格、换行符处断开。
  3. 最后指定长度: 确保不超过设定的最大长度限制。

输入要求

  • 文本内容: 待截断的原始文本(字符串)。
  • 最大长度限制: 目标文本的最大字符数(整数)。
  • 截断标记(可选): 用于标识文本截断位置的字符串,如 "[...]"。

输出格式

【文本截断报告】

原始长度:[字符数]
截断后长度:[字符数]
截断位置:[位置描述,如:在第 X 句句号处]

截断后的文本:
[文本内容]

约束条件

  • 截断过程应最大限度地保留原文的语义和语境完整性。
  • 严格遵守最大长度限制。
  • 避免在词语中间进行截断。

参考资料

  • examples.md

FAQ

What does the novel-truncator skill do?

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

How do I install novel-truncator?

Run npx skills add https://github.com/vangong1999/screen-creative-skills --skill novel-truncator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/novel-truncator/ (personal) or .claude/skills/novel-truncator/ (project).

Which AI agents can use novel-truncator?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is novel-truncator safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains novel-truncator?

It is published by vangong1999 in vangong1999/screen-creative-skills. It has 126 recorded installs.

More from vangong1999/screen-creative-skills

View all →

drama-creator

vangong1999/screen-creative-skills

创作与优化竖屏短剧剧本:宏观建构、分集撰写、节奏台词优化、打脸/悬念创意。 适用于从零写短剧、改剧本、设计大纲与钩子时使用。

Media & Creative990 installs

drama-planner

vangong1999/screen-creative-skills

制定竖屏短剧专业策划方案,含情绪价值分析、黄金三秒钩子设计、三幕式结构规划等。适用于短剧项目前期策划、商业化方案设计、创作指导

Media & Creative438 installs

drama-evaluator

vangong1999/screen-creative-skills

依据竖屏短剧评估标准,从核心爽点、故事类型等维度评估打分。适用于评估故事改编为竖屏短剧的潜力、分析市场竞争力

Media & Creative269 installs

drama-analyzer

vangong1999/screen-creative-skills

分析故事文本,提炼主要情节点并分析戏剧功能。适用于分析小说、剧本大纲、故事梗概等文本,识别关键转折点和情感节点

Media & Creative210 installs

character-profile

vangong1999/screen-creative-skills

基于故事文本分析人物特征,生成详细人物小传。适用于理解人物设定、为演员塑造角色提供参考、为剧本创作建立人物档案; 当用户提到人物小传、角色档案、人设分析时使用。

Media & Creative180 installs

novel-evaluator

vangong1999/screen-creative-skills

仅依据用户提供的故事文本做多维度初筛打分(市场潜力、创新属性、内容亮点)。 适用于小说/故事文本初筛、无外网信息时的质量判断;不要在需要联网查热度、作者履历、版权数据时使用(那时用 ip-evaluator)。

Media & Creative179 installs

Popular media & creative skills

View category →

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.2M installs

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.1M installs

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1M installs

hyperframes-creative

heygen-com/hyperframes

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.

Media & Creative916.5K installs

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative881.5K installs

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative880.3K installs