duanju-script-creator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "duanju-script-creator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8205c85ac8fb76ced390bea2a75deeec50ba892df91ca8a07b1a6342ea053a0c. Verify the upstream source and version against https://skillhub.cn/skills/user_ff429dcb/duanju-script-creator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Create batches of shootable short-drama scripts based on web-searched trending and viral topics. Used when a user requests short video/short-drama scripts, episode outlines, individual episode scripts, or wants to leverage trending topics to create viral content.
Introduction source: third_party · user_ff429dcb · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 短剧剧本创作
slug: duanju-script-creator
description: 基于网络搜索爆款热点趋势,批量创作可拍摄的短剧剧本。当用户要求写短视频/短剧剧本、生成分集大纲、写某集剧本、或希望借热点打造爆款内容时使用。
version: 1.0.0短剧剧本创作 Skill
定位
只做"搜热点爆款 → 写剧本"。搜热点增强创作前的数据喂入;不涉及上线后的完播率、数据回流、权重演化。
核心原则
- LLM 只创作,脚本管一切 IO/状态/校验/格式化。
- 阶段不可越:story → structure → script → review → done,脚本强制状态机。
- 单一真相源:
state/story_state.json由脚本独占读写,你不直接改它。 - 人在回路:每个阶段产出后展示给用户确认,再
advance进入下一阶段。 - 防幻觉:
checker.py做确定性防幻觉校验(角色/场景清单一致性、对白角色入出场名单),命中即阻断通过;另提供verify跨集全局扫描。
工作流
第 0 步:初始化
python scripts/cli.py init --genre 甜宠 --episodes 12 --platform 抖音
可选先用 config/genres.json 查该赛道的默认集数/时长/基调。
用户自定义起步(跳过搜热点):若你已明确想写的方向,直接带 --brief:
python scripts/cli.py init --genre 甜宠 --episodes 12 --platform 抖音 --brief "豪门继兄×落魄少女,慢热救赎向"
或用 save-brief 补充更结构化的简报(初始化后任意时刻均可):
python scripts/cli.py save-brief --text "追妻火葬场+契约婚姻,甜中带虐"
# 或:python scripts/cli.py save-brief --file my_brief.json
设置后 compose 会自动以你的方向注入,无需 fetch-trend。
第 1 步:采集爆款热点(前置情报)
python scripts/cli.py fetch-trend --genre 甜宠 --platform 抖音
- 脚本返回
trend_fetch.md填充后的 prompt。 - 你按此 prompt 调用 web_search 工具搜索热点,生成
trend_brief.json(严格 JSON,含 hot_topics / viral_structures / recommended_hooks 等)。 - 落盘并保存:
python scripts/cli.py save-trend --file <trend_brief.json路径> - 同时可参考同赛道爆款结构:
python scripts/cli.py lookup --genre 甜宠 --top 3 - 把热点与爆款结构摘要给用户确认选题方向。
第 2 步:故事引擎(模块①)
python scripts/cli.py compose --stage story
- 脚本注入 trend_brief 变量,返回完整 story_engine prompt。
- 你据此创作 story_core(严格 JSON),保存:
python scripts/cli.py save --stage story --file <story_core.json路径> - 展示给用户确认 → 确认后:
python scripts/cli.py advance
第 3 步:结构规划(模块②)
python scripts/cli.py compose --stage structure
- 你创作分集大纲
outline.json→save --stage structure --file ...→ 用户确认 →advance。
第 4 步:剧本生成(模块③,逐集)
对每一集 N(1..总集数):
python scripts/cli.py compose --stage script --episode N
python scripts/cli.py save --stage script --episode N --file <episode_N.txt路径>
save自动跑确定性校验(对白长度/命名一致性/热点契合/结尾钩子 + 防幻觉:角色幻觉、对白角色未入出场名单、场景清单与正文不一致),返回check;命中blockers则pass=false,必须修正后重存。- 用户可要求改稿:
rollback --episode N仅重做该集,或rollback --to structure整体回退。
第 5 步:质量校验(模块④)
对每一集 N:
python scripts/cli.py review --episode N
- 脚本返回确定性
check+ 创作性评判所需need_judge变量。 - 你用 quality_judge 评估(输出 JSON),保存:
python scripts/cli.py save --stage review --episode N --file <review_N.json路径> - score ≥ 7 通过;< 7 按 issues 修改后重评(最多 3 轮)。
- 终态自动推进:当全部剧集都评审通过(score≥7),
stage自动置done;也可手动advance(从review_pending→done)强制进入导出阶段。
第 6 步:导出
python scripts/cli.py export --format <fmt>
fmt 可选:
full:交付总包(总览 + 人物设定表 + 故事核 + 大纲 + 全部剧集 + 自动聚合的场景清单/道具清单)script_only/plain:纯文字剧本(平台备案/投稿,去掉镜头/音效/字幕等指示)storyboard:分镜脚本表格(镜号/景别/运镜/画面内容/台词音效/时长,导演拍摄用)actor:角色分词本(仅该角色台词+动作提示,演员用)aivideo:AI 视频生成 Prompt 化描述(每镜头画面提示词)episodes:按集拆成独立.md文件episodes_docx:按集拆成独立.docx文件(零依赖,标准库生成)docx:整包导出为单个EXPORT_full.docx
全部剧本由 LLM 在文末输出【场景清单】与【道具服装清单】两张表,full 导出时自动聚合为项目级统筹表。.docx 由 Python 标准库直接生成,分享他人无需安装任何第三方库。
其他命令
verify:跨集全局防幻觉扫描(人物设定之外的角色、场景清单漂移),导出前建议执行。reset:清空state与output,重新开始(需--yes确认)。rollback --to <story|structure|script|review|done>:整体回退;rollback --episode N:仅重做第 N 集(同步删除对应output/episode_N.txt)。lookup --genre <赛道>:查知识库爆款结构,结果会被注入 story 阶段 prompt 的kb_structures。init未显式给--episodes/--duration/--tone时,自动采用config/genres.json中该赛道的默认值。
文件结构
短剧剧本创作/
├── SKILL.md
├── config/genres.json # 赛道默认参数
├── scripts/ # 所有确定性逻辑
│ ├── cli.py # 统一入口
│ ├── state_manager.py # 状态机
│ ├── checker.py # 确定性校验
│ ├── formatter.py # 格式化/导出
│ ├── trend_fetcher.py # 热点 prompt 拼装
│ └── knowledge_base.py # 爆款结构查表
├── prompts/ # 含 {占位符} 的提示词模板
├── templates/ # 人物卡/节拍/剧本格式
├── knowledge/viral_structures/ # 人工维护的爆款结构库
├── state/story_state.json # 唯一真相源(脚本维护)
└── output/ # 生成的剧本与导出包
铁律
- 任何创作前必须先
compose拿注入了变量的 prompt,不得凭空写。 - 任何创作后必须
save落盘,不得自己写文件。 review未过不许标记完成。- 脚本返回 JSON,你读取其中
prompt/next/check字段决定下一步。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 精准解决短视频/短剧创作者选题难、结构乱、效率低的核心痛点
- 结合热点趋势批量生成可拍摄剧本,具备高频刚需属性
- 提供从故事核到分镜导出的完整创作闭环
Areas to improve
-
description内容重复 Reported severity: Minor
顶层frontmatter与skill_body内部均包含相同description内容
Recommendation: 建议移除skill_body内重复的frontmatter,保持单一描述源
Highlights
- 触发场景定义清晰:写短视频/短剧剧本、生成分集大纲、写某集剧本、借热点打造爆款
- 边界明确,不易与其他Skill混淆
Areas to improve
-
缺少显式When to Use章节 Reported severity: Minor
文档未设置独立'When to Use'章节,但description已实质覆盖使用场景
Recommendation: 建议增加显式'When to Use'章节以提升可读性
Highlights
- 六阶段工作流清晰(初始化→热点采集→故事引擎→结构规划→剧本生成→质量校验→导出)
- 每个阶段含明确出口条件与用户确认机制
- 提供完整端到端命令示例与文件路径规范
Highlights
- 脚本统一管理状态与IO,LLM仅负责创作,职责分离清晰
- 防幻觉校验机制完善(角色/场景一致性、对白名单校验)
- 提供rollback与review阻断机制,确保输出质量
- 不可逆操作需显式确认(如reset --yes)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.