script-rewriter
- Repo stars 12,584
- Author updated Live
- Author repo huobao-drama
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @chatfire-AI · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: script-rewriter
description: 黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。 小明独自坐在角落卡座,低头看手机,神情有些焦虑。 门铃响起,小红推门而入。她看到小明,微笑着走过去。 格式化剧本相比原始内容增加约 20…
category: other
runtime: no special runtime
---
# script-rewriter output preview
## PART A: Task fit
- Use case: 黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。 小明独自坐在角落卡座,低头看手机,神情有些焦虑。 门铃响起,小红推门而入。她看到小明,微笑着走过去。 格式化剧本相比原始内容增加约 20-30%,主要增量是场景头标记和对白格式化,不是扩写。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “改写原则 / 格式化剧本格式 / S01 | 内景 · 咖啡厅 | 黄昏” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。 小明独自坐在角落卡座,低头看手机,神情有些焦虑。 门铃响起,小红推门而入。她看到小明,微笑着走过去。 格式化剧本相比原始内容增加约 20-30%,主要增量是场景头标记和对白格式化,不是扩写。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “改写原则 / 格式化剧本格式 / S01 | 内景 · 咖啡厅 | 黄昏” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “改写原则 / 格式化剧本格式 / S01 | 内景 · 咖啡厅 | 黄昏”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: script-rewriter
description: 黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。 小明独自坐在角落卡座,低头看手机,神情有些焦虑。 门铃响起,小红推门而入。她看到小明,微笑着走过去。 格式化剧本相比原始内容增加约 20…
category: other
source: chatfire-AI/huobao-drama
---
# script-rewriter
## When to use
- 1. 保留核心情节:不改变主线故事和角色关系 2. 增强画面感:将叙述性文字转化为可视化的场景描写 3. 对话驱动:用对白推动情节,减少旁白 4. 节奏把控:每场戏控制在 30-60 秒,适合短视频 5. 不写镜头语言:不涉及景别、角度…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “改写原则 / 格式化剧本格式 / S01 | 内景 · 咖啡厅 | 黄昏” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "script-rewriter" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 改写原则 / 格式化剧本格式 / S01 | 内景 · 咖啡厅 | 黄昏
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} 剧本改写指南
改写原则
- 保留核心情节:不改变主线故事和角色关系
- 增强画面感:将叙述性文字转化为可视化的场景描写
- 对话驱动:用对白推动情节,减少旁白
- 节奏把控:每场戏控制在 30-60 秒,适合短视频
- 不写镜头语言:不涉及景别、角度、运镜,这些属于分镜拆解步骤
格式化剧本格式
## S01 | 内景 · 咖啡厅 | 黄昏
黄昏的光线透过落地窗洒进咖啡厅,吧台上咖啡杯热气升腾。
小明独自坐在角落卡座,低头看手机,神情有些焦虑。
门铃响起,小红推门而入。她看到小明,微笑着走过去。
小红:(微笑)等很久了吗?
小明:(抬头)还好,刚到。
格式规则
## S编号 | 内景/外景 · 地点 | 时间段— 场景头- 动作描写自然段 — 不包含任何镜头语言
角色名:(状态/表情)台词内容— 对白格式
内容量参考
格式化剧本相比原始内容增加约 20-30%,主要增量是场景头标记和对白格式化,不是扩写。
改写步骤
- 先调用
read_episode_script读取原始内容 - 分析内容结构(对话、叙述、心理描写的比例)
- 调用
rewrite_to_screenplay执行改写 - 检查改写结果,确认符合格式化剧本格式
- 调用
save_script保存最终结果
注意事项
- 心理描写可转化为角色表情/动作或画外音
- 长段叙述拆分为多个短场景
- 确保每个场景有明确的情绪转折点
- 保持角色语言风格一致性
- 场景编号连续递增(S01, S02, S03...)
- 时间段要具体(黄昏、深夜、清晨),不要笼统写"白天"
Decide Fit First
Design Intent
How To Use It
Boundaries And Review