Skip to main content
Glama

POV-Drama-Forge 🎬

First-Person POV AI Short-Drama Screenplay Engine, Payoff & Retention Linter, Prompt Compiler & Zero-Dependency MCP Server.

专注打造第一人称高代入感(First-Person POV)短视频 / AI 短剧的通用 Agent 引擎。
纯 Python 3.9+ 标准库零外部依赖,支持 MCP Server / CLI (--json) / Agent Skill (SKILL.md) / 独立 API 生成 四种接入方式。


✨ 为什么专注第一人称 POV AI 短剧?

普通第三人称 AI 短剧跨场景极易换脸穿帮,而第一人称 POV 不仅天然规避主角换脸难题,还能让观众产生“我就是主角、我在亲自做对每一个选择”的极致代入爽感。
POV-Drama-Forge 内置 4 道结构级爽感防呆锁 + 水下正向内核(Show, Don't Preach):

  1. 禁止“只播种不收割”(LOW_PAYOFF_DENSITY / DELAYED_PAYOFF_ONLY):强制中段关键选择后紧跟「当场结果兑现 + 质疑者石化/震惊/敬畏反应镜头(Reaction Shot)」,爽感实时炸裂;

  2. 压缩弹簧定律:要求每个偏见/施压镜头配具体扎心微动作(拧暗煤油灯、甩回文件等),先压狠 1 分再弹高 5 分;

  3. 波浪式张弛节奏(MONOTONOUS_DURATION_RHYTHM):自动拦截机械平均流水账,强制采用「开篇重场 → 中段快切连击 → 核爆重场 → 终局骤停升华」;

  4. 娱乐糖衣 × 水下正向内核(meaning_core + PREACHY_CLICHE):90% 极致上头爽感 + 10% 藏在画面线索与具体行动里的正向人生智慧,自动拦截生硬说教词,做到初看极爽,难时回想有光。


Related MCP server: Storywriting-MCP

🚀 6 大内置爆款 AI 短剧模式

模式

流派

时长 / 画幅

核心结构与留存公式

AI 友好度

A

极速强反转轻喜剧(起号首选)

20–35s / 9:16

单场景锁定 + 0秒冲突钩子 + 每2–3秒正反打加码 + 尾段反转 + Beat Drop 定格

★★★★★

B

3D 治愈萌宠漫剧

35–55s / 9:16

皮克斯 3D 质感 + 强配饰锚点(围巾/书包)+ 极简台词 + 四拍共情催泪弧

★★★★☆

C

强人设连载情景喜剧

75–150s / 16:9

极致反差主角 + 每5–10秒一个梗 + *综艺花字OS + 被轻视→变装/实力反杀

★★★☆☆

D

荒诞脑洞+情感一刀短片

75–165s / 1:1

0秒荒诞反差开场 + 超现实外衣包裹现实痛点 + 核心情感道具贯穿 + 双重反转

★★★★☆

E

大佬/导师金句情景短剧

30–50s / 16:9

0秒带数字反常识金句 + 权威导师边走边讲 + 3–4递进场景 + 每2–3秒一条干货

★★★★★

F

沉浸式第一人称抉择 POV 爽剧(连载IP爆款)

60–165s / 9:16

0秒开门见山 + 纯电影第一人称POV + 主观发现生活线索 + 果断出手兑现爽感 + 道理全藏画面

★★★★★

支持专项优化的目标 AI 视频工具:seedance(即梦 Seedance 2.5)、kling(可灵)、oiioii、libtv、veo、sora。


📦 安装(零外部依赖,1 秒装好)

pip install git+https://github.com/instl999/pov-drama-forge.git

或本地克隆开发安装:

git clone https://github.com/instl999/pov-drama-forge.git
cd pov-drama-forge
pip install -e .

安装后即可使用 pov-drama-forge / pov-drama-forge-mcp(同时保留 drama-forge / drama-forge-mcp 兼容别名)。


🤖 任意 Agent 接入指南(4 种方式)

方式 1:MCP Server(推荐 — 零额外 API Key)

适用于 Antigravity / Claude Code / Claude Desktop / Cursor / Windsurf / Cline 等任意支持 MCP 的客户端:

{
  "mcpServers": {
    "drama-forge": {
      "command": "drama-forge-mcp",
      "args": []
    }
  }
}

接入后,你的 Agent 将自动获得 9 个 MCP 工具 + 1 个引导 Prompt (write_ai_drama):

  1. list_modes — 查看 6 大模式与 6 款 AI 视频工具规格

  2. recommend_mode — 根据大致话题自动推荐最炸模式

  3. create_blueprint — 输出完整编剧指令、节拍预算、字数红线、JSON Schema 与脚手架(支持传入 series_bible 复用连载 IP 资产)

  4. lint_script — 程序化质检与 0–100 评分(校验 0 秒钩子、时间轴衔接、对口型语速 CPS、角色穿搭锚点漂移、连续重复景别、反生硬说教与 BGM 卡点)

  5. patch_shot — 定点局部改镜:修改单镜台词/动作后自动顺延后续时间轴并即时复检

  6. retime_shots — 一键重算全片连续时间轴,支持按安全语速自动拉长超字数镜头

  7. extract_series_bible — 从爆款第 1 集一键提取可复用连载圣经(供第 2–100 集保持人设与画风锁)

  8. export_script — 一键编译 7 套交付物(含纯净编剧审稿本 review.md、完整剧本 script.md、分平台定制 prompts.txt、自动化 manifest.json、CSV 分镜表、剪映 SRT 字幕、后期卡点表)

  9. generate_script — (可选)通过 OpenAI 兼容 API 直接端到端生成并自动修复

更多客户端配置示例见 examples/mcp_configs/。


方式 2:CLI 命令行(适用于 Codex / Claude Code / Aider / Shell Agent / 自动化脚本)

所有子命令均支持 --json 机器可读输出:

# 1. 查看 5 大爆款模式与工具规范
drama-forge modes

# 2. 输入大致话题,自动推荐最佳模式
drama-forge recommend --topic "打工人以为被裁员结果神反转" --json

# 3. 生成零 API Key 编剧蓝图(供当前 Agent 填充 JSON)
drama-forge blueprint --topic "打工人以为被裁员结果神反转" --tool seedance --out blueprint.json

# 4. 自动化留存率 & AI 工程体检(不通过返回退出码 1,方便 Agent 自修复循环)
drama-forge lint examples/layoff_twist_demo.json

# 5. 一键导出 7 套工业级交付物(含编剧纯净审稿本 review.md 与自动化 manifest.json)
drama-forge export examples/layoff_twist_demo.json --out ./output

# 6. 编剧审稿后局部改单镜并自动重排后续时间轴
drama-forge patch examples/layoff_twist_demo.json --shot 1 --set '{"dialogue": "小陈,这是人事部刚给我的。"}' --json

# 7. 提取连载系列圣经,供第 2 集复用角色与画风锁
drama-forge bible examples/life_sim_1977_2023_demo.json --series-name "时代人生" --out series_bible.json
drama-forge blueprint --topic "职场破局" --bible series_bible.json --json

导出目录 ./output 将生成 7 套交付物:

  • review.md — 纯净编剧审稿本(剥离所有 AI Prompt 技术干扰,含纯台词试念稿与审稿清单)

  • script.md — 完整可读工业级分镜剧本与资产圣经

  • prompts.txt — 按目标平台(即梦 Seedance / 可灵 / Veo)定制的批量生图+生视频提示词

  • manifest.json — 面向 ComfyUI / 下游自动化生片 Agent 的结构化分镜清单

  • storyboard.csv — 可直接导入飞书多维表格 / Notion / Excel 的分镜数据表

  • subtitles.srt — 可直接拖入剪映 / Premiere 的精准时间轴字幕

  • edit_cues.md — 剪映后期音效、BGM 骤停/Beat Drop 卡点与花字贴片清单


方式 3:通用 Agent Skill(SKILL.md & AGENTS.md)

仓库根目录内置标准 SKILL.md 与 AGENTS.md,可直接拷贝或软链至 Antigravity / Claude Code / Codex / Cursor / Gemini CLI 的 Skills 目录,Agent 即可自动按标准 4 步工作流创作、质检并导出剧本。


方式 4:独立一键生成(支持任意 OpenAI 兼容 API)

如果不经过编码 Agent,也可以配置任意 OpenAI 兼容接口(OpenAI / DeepSeek / Gemini / OpenRouter / Ollama),一键完成「生成 → 自动 Lint 质检 → 不达标自动修复 → 导出 5 套交付物」:

export OPENAI_API_KEY="sk-..."
# 可选:切换 DeepSeek / OpenRouter / Ollama 等兼容端点
# export OPENAI_BASE_URL="https://api.deepseek.com/v1"
# export DRAMA_FORGE_MODEL="deepseek-chat"

drama-forge generate \
  --topic "过年亲戚疯狂炫富结果当场社死反转" \
  --mode A \
  --tool seedance \
  --out ./output/new_year_twist

🧪 运行测试

python3 -m unittest discover -s tests -v

📄 License

MIT

Available Tools

6 tools
create_blueprintA

Generate a zero-API-key Agent-native AI short-drama screenplay blueprint, including compiled system/task rules, beat schedule, lip-sync CPS budget, JSON schema, and starter skeleton. Use this first, fill the JSON script yourself, then validate with lint_script and export with export_script.

Inputs: topic (required), mode, target_tool, aspect_ratio, +2 more.

export_scriptA

Compile a validated DramaForgeScript JSON into production deliverables: full Markdown screenplay, copy-paste batch Image/Video Prompts, CSV storyboard, CapCut/JianYing SRT subtitles, and editing cue sheet. Optionally writes all files directly to out_dir.

Inputs: script (required), format, out_dir.

generate_scriptB

Optional end-to-end generator using an OpenAI-compatible API (requires OPENAI_API_KEY or DRAMA_FORGE_API_KEY). Automatically generates, lints, repairs, and returns the script + lint report.

Inputs: topic (required), mode, target_tool, aspect_ratio, +2 more.

lint_scriptA

Programmatically audit an AI short-drama script JSON for viral retention and AI-video production readiness (0-second hook, 2-5s shot pacing, lip-sync CPS <= limit, character/scene lock consistency, AI glitch landmines, BGM climax drop). Returns a 0-100 score and exact per-shot fix suggestions.

Inputs: script (required).

list_modesA

List all 5 viral Douyin AI short-drama modes (A-E) and 6 supported AI video tools (seedance, kling, oiioii, libtv, veo, sora) with pacing, scene limits, and lip-sync CPS limits.

Inputs: no named parameters.

recommend_modeA

Recommend the best viral AI short-drama mode (A-E) and aspect/duration specs for a rough topic.

Inputs: topic (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool maps to a distinct pipeline stage (enumerate modes, recommend, scaffold blueprint, lint, export, generate), so boundaries are mostly clear. The only mild overlap is create_blueprint vs generate_script, both of which produce a script, but the descriptions explicitly distinguish zero-API scaffolding from API-backed end-to-end generation.

    Naming Consistency5/5

    Every tool follows a strict verb_noun snake_case pattern: list_modes, recommend_mode, create_blueprint, lint_script, export_script, generate_script. No camelCase or stylistic mixing anywhere in the set.

    Tool Count5/5

    Six tools is well within the ideal 3-15 range and each maps to a real step in the script production workflow. None feel redundant or padded, and the optional generate_script is clearly flagged as such.

    Completeness4/5

    The surface covers the full lifecycle: discover modes, get a recommendation, scaffold a blueprint, validate, and export deliverables, plus an optional generator. Minor gaps exist — there is no standalone auto-repair/fix tool (repair only happens implicitly inside generate_script) and no way to read back or list previously exported scripts, but agents can work around both.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers