script-rewriter

chatfire-AI/huobao-drama · Agent Skill

Converts prose into a formatted screenplay, focusing on visualization, dialogue, and pacing for short videos.

Jump to install ↓

Overview

Publisherchatfire-AIOrganization
Repositorychatfire-AI/huobao-drama ↗
Skill folderscript-rewriter
Stars14,828
Bundled files1
Licensenot specified — check with the author
Last updatedAugust 1, 2026
LinksSkill source ↗ · Repository ↗

Mozgi check

What we found in the skill files. Details come with a subscription.

Security
low risk · no obvious risks found — the full report shows the details
Compatibility
instructions only — works with most agents
Similar skills
133 similar skills found
Also with subscription

Installation

A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.

Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.

Install the “script-rewriter” skill from mozgi.io (https://mozgi.io/skills/script-rewriter/) for me.

1. Download the archive: https://mozgi.io/skills/script-rewriter/download
   If it fails, take the skill folder from the source: https://github.com/chatfire-AI/huobao-drama/tree/master/backend/workspace/skills/script-rewriter
2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me.
3. Put the “script-rewriter” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.).
4. Make sure <skills folder>/script-rewriter/SKILL.md exists.
5. Briefly tell me what this skill does and offer to try it on my task.

If you cannot do a step yourself, tell me what to click or type.

Review the source files

1 file Download Zip

Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.

SKILL.md contents

Original author text · read-only

剧本改写指南

改写原则

1. 保留核心情节:不改变主线故事和角色关系

2. 增强画面感:将叙述性文字转化为可视化的场景描写

3. 对话驱动:用对白推动情节,减少旁白

4. 节奏把控:每场戏控制在 30-60 秒,适合短视频

5. 不写镜头语言:不涉及景别、角度、运镜,这些属于分镜拆解步骤

格式化剧本格式

## S01 | 内景 · 咖啡厅 | 黄昏

黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。

小明独自坐在角落卡座,低头看手机,神情有些焦虑。

门铃响起,小红推门而入。她看到小明,微笑着走过去。

小红:(微笑)等很久了吗?
小明:(抬头)还好,刚到。

格式规则

  • ## S编号 | 内景/外景 · 地点 | 时间段 — 场景头
  • 动作描写自然段 — 不包含任何镜头语言
  • 角色名:(状态/表情)台词内容 — 对白格式

内容量参考

格式化剧本相比原始内容增加约 20-30%,主要增量是场景头标记和对白格式化,不是扩写。

改写步骤

1. 先调用 read_episode_script 读取原始内容

2. 分析内容结构(对话、叙述、心理描写的比例)

3. 调用 rewrite_to_screenplay 执行改写

4. 检查改写结果,确认符合格式化剧本格式

5. 调用 save_script 保存最终结果

注意事项

  • 心理描写可转化为角色表情/动作或画外音
  • 长段叙述拆分为多个短场景
  • 确保每个场景有明确的情绪转折点
  • 保持角色语言风格一致性
  • 场景编号连续递增(S01, S02, S03...)
  • 时间段要具体(黄昏、深夜、清晨),不要笼统写"白天"

Frequently asked questions

What does the script-rewriter skill do?

Converts prose into a formatted screenplay, focusing on visualization, dialogue, and pacing for short videos.

How do I install script-rewriter?

Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.

Which AI models work with script-rewriter?

Skills are plain Markdown instructions (the Agent Skills format), so script-rewriter works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.

Is script-rewriter free?

The skill is published openly by chatfire-AI. The skill itself costs nothing — you only pay your AI provider for the tokens you use. No license is specified in the repository — check the terms with the author before commercial use.

Is it safe to install skills?

A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.

How is a skill different from an MCP server or a plugin?

An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.

Related skills

All skills →