English | 中文
A portable skill for turning film, short, episode scene, novel fragment, or story text into a structured production-ready breakdown.
script-structural-breakdown-skill runs a four-stage pipeline:
- Unit Script — split the source text into continuous, producible narrative units.
- Rhythm Curve — build tension start/end, primary emotion, turning points, and pacing for each unit.
- Beat Segmentation — cut beats only when goal, action, relation, information, emotion, or spatial state changes.
- Beat Detail Completion — fill directing, performance, camera, lighting, blocking, gaze, spatial continuity, editing pace, and sound for every beat.
The skill is resumable: it supports partial results, retry of single stages, and retry of individual beats.
| Path | Purpose |
|---|---|
skill.yaml |
Machine-readable skill manifest |
SKILL.md |
Execution rules and quality checks |
schemas/ |
JSON Schema for input and output |
prompts/ |
Four stage prompts |
examples/ |
Sample input and partial output |
scripts/ |
Helper scripts for packaging and validation |
tests/ |
Basic pytest tests |
# Build a prompt package from an input file
python3 scripts/build_prompt_package.py examples/sample_input.json > prompt_package.json
# Validate an output JSON
python3 scripts/validate_output.py examples/sample_output_partial.json
# Run tests
pytestThis repository follows the common skill conventions:
skill.yamldeclaresname,version,entry,input_schema,output_schema, andprompts.SKILL.mdis the human-readable skill contract.schemas/input.schema.jsonandschemas/output.schema.jsondefine the JSON interface.- Each prompt in
prompts/corresponds to one stage of the pipeline.
Any skill scanner that reads skill.yaml and the adjacent schema files should recognize this package.
script_unitizationrhythm_analysisbeat_segmentationbeat_detail_completionpartial_resumestage_retry
- Input: at least
script_text. Seeschemas/input.schema.json. - Output: structured breakdown with
status,stages,unit_script,rhythm_curve,beats,progress,warnings, andsource_integrity. Seeschemas/output.schema.json.
MIT License — see LICENSE for details.
将电影、短片、剧集单场、小说片段或故事文本转换为结构化、可制作的剧本拆解结果。
script-structural-breakdown-skill 执行四阶段流水线:
- 单元剧本 — 把原文拆分为连续、可制作的叙事单元。
- 节奏曲线 — 为每个单元建立张力起止、主情绪、转折点和节奏速度。
- 节拍切分 — 仅在目标、行动、关系、信息、情绪或空间状态发生实质变化时切分节拍。
- 逐拍补全 — 为每拍补全导演、表演、摄影、灯光、走位、视线、空间连续性、剪辑节奏和声音。
本 Skill 支持断点续跑:可返回部分结果、单独重做某一阶段、或只补全指定节拍。
| 路径 | 用途 |
|---|---|
skill.yaml |
机器可读的 Skill 清单 |
SKILL.md |
执行规则与质量检查 |
schemas/ |
输入、输出 JSON Schema |
prompts/ |
四阶段提示词 |
examples/ |
示例输入与部分输出 |
scripts/ |
打包与校验脚本 |
tests/ |
pytest 测试 |
# 从输入文件构建提示包
python3 scripts/build_prompt_package.py examples/sample_input.json > prompt_package.json
# 校验输出 JSON
python3 scripts/validate_output.py examples/sample_output_partial.json
# 运行测试
pytest本仓库遵循通用 Skill 约定:
skill.yaml声明name、version、entry、input_schema、output_schema和prompts。SKILL.md是人类可读的 Skill 合约。schemas/input.schema.json与schemas/output.schema.json定义 JSON 接口。prompts/下的每个提示词对应流水线的一个阶段。
任何读取 skill.yaml 及相关 Schema 文件的 Skill 扫描器都应能识别本包。
script_unitizationrhythm_analysisbeat_segmentationbeat_detail_completionpartial_resumestage_retry
- 输入:至少包含
script_text。详见schemas/input.schema.json。 - 输出:结构化拆解,包含
status、stages、unit_script、rhythm_curve、beats、progress、warnings和source_integrity。详见schemas/output.schema.json。
MIT License — 详见 LICENSE。