generate-scriptlisted
Install: claude install-skill huodebing-alt/Agentic-Headshot-Video-Studio
# Generate Script / 生成脚本
## When to use / 何时使用
Use at the start of Phase 1 to turn a one-paragraph brief into a structured, narratable script with hook, sections, and CTA.
用于 Phase 1 起点:把一段简介扩写成结构化、可朗读的讲解脚本,含 hook、分节、结尾 CTA。
## Inputs / 输入
- `inputs/brief.md`: topic, audience, tone, target duration (minutes).
- `config/style.yaml`: voice persona, vocabulary level, bilingual flag.
- Optional `inputs/references/*.md`: source material.
## Output / 输出
- `workspace/script/script.full.md` with H2 section headers and `[BROLL: ...]` cues.
- `workspace/script/script.meta.json`: `{word_count, est_duration_s, sections[]}`.
## Steps / 步骤
1. Read `brief.md` and `style.yaml`; load references if present.
2. Draft hook (15s), 3–7 body sections, conclusion + CTA.
3. Insert `[BROLL: ...]` and `[PAUSE]` cues inline.
4. Estimate duration at 150 wpm (EN) / 240 cpm (zh-CN); adjust to target ±10%.
5. Write outputs; emit a summary table to stdout.
## Examples / 示例
```
claude run generate-script --brief inputs/brief.md --duration 6
```
## Failure recovery / 失败回退
- If brief is too thin, prompt user for missing fields (audience, tone, key takeaways) before drafting.
- If references conflict, prefer the newest dated source and log conflicts to `workspace/logs/script.warn.log`.