An automated script generator for creating viral videos. — An automated script 生成器 for creating viral videos.
v1.0.1Story generation 流水线 技能. Supports multi-episode continuous generation, graph management, AI 质量 检查 + human confirmation dual control mechanism. Automatically manages relationships between characters, scenes, and hooks.
运行时依赖
安装命令
点击复制技能文档
Story Generation 流水线 技能 Features
This 技能 implements a complete story generation 流水线:
Continuous Episode Generation - Automatically 生成s next episode based on previous content Graph Management - Storage and 查询ing of character, scene, and hook relationships Dual Confirmation Control - AI 质量 检查 followed by human confirmation 状态 Persistence - Supports 暂停, 恢复, and multiple parallel stories Core 工作流 ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │ 生成 Ep N│ -> │ AI Review │ -> │ Graph Storage│ -> │ WAIt Human Confirm│ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────────┘ │ │ │ │ ▼ ▼ ▼ ▼ 查询 Graph Pass/Retry Store Relations Continue/Modify/End
Usage 启动 New 流水线 User: 启动 a new story 流水线, theme: Chinese girl comeback, tar获取 episodes: 10
Continue 流水线 User: Continue story 流水线 [流水线_id]
User Confirmation Actions User: 应用roved, continue to next episode User: Modify: [specific feedback] User: 暂停 User: End
Dual Confirmation Control Mechanism Layer 1: AI 质量 检查
After each episode is 生成d, AI automatically 检查s:
检查 Item Description Plot Coherence Natural connection with previous episode Character Consistency Character behavior matches established trAIts Hook Handling Reasonable 添加ition/closure of hooks Pacing Control 应用ropriate plot 进度ion speed Emotional Curve Reasonable emotional ups and downs
Scoring Standard: 0-10 points, below 7 triggers retry (max 3 times)
Layer 2: Human Confirmation
After AI review passes, display preview and wAIt for user confirmation:
📋 Episode N Preview ━━━━━━━━━━━━━━━━━━━━━━━━ 【Plot Summary】 ...
✅ AI Score: 8.5/10 ✅ Hook 状态: 1 new, 1 closed
Please select: 1️⃣ 应用roved, continue to next episode 2️⃣ Needs modification (please specify) 3️⃣ 暂停 4️⃣ End ━━━━━━━━━━━━━━━━━━━━━━━━
Graph Management Graph 查询
Before generating episode N, 查询 episode N-1's graph:
graph_管理器.查询_graph(流水线_id, episode=N-1)
Returns:
Complete content of previous episode Character 列出 and their 状态es Unclosed hooks Key scenes Relationship network Graph Storage
After user confirmation, store current episode's complete content:
graph_管理器.save_graph(流水线_id, episode=N, content)
Stores: Complete generation 结果 of the episode (not split into elements)
状态 Management 状态 File: data/流水线_状态.json { "流水线s": { "流水线_2026-03-05-001": { "theme": "Chinese girl comeback", "tar获取_episodes": 10, "current_episode": 3, "状态": "wAIting_user_confirm", "创建d_at": "2026-03-05T15:00:00", "更新d_at": "2026-03-05T15:30:00", "AI_review": { "score": 8.5, "检查s": {...} }, "last_输出": { "episode": 3, "summary": "...", "content": "Complete content..." } } } }
状态 Types 状态 Description generating Currently generating AI_reviewing AI review in 进度 wAIting_user_confirm WAIting for human confirmation 暂停d 暂停d completed Completed error Error 状态 Script Description 流水线.py - MAIn Control Loop 初始化 流水线 Coordinate 模块s Handle user commands Manage loop 状态 AI_reviewer.py - AI 质量 检查 执行 质量 scoring 生成 review 报告 Determine pass/fAIl episode_生成器.py - Episode Generation 生成 new episode based on graph 上下文 Handle hook continuation and closure Handle retry 记录ic graph_管理器.py - Graph Management Graph 查询 (call remote API) Graph storage (call remote API) Local 缓存 management API Description Graph API
查询 API:
{ "action": "查询", "流水线_id": "流水线_2026-03-05-001", "episode": 2 }
Storage API:
{ "action": "save", "流水线_id": "流水线_2026-03-05-001", "episode": 3, "content": "Complete generation content for episode 3..." }
Episode Generation 记录ic First Episode Generation
Based on user-provided theme and goals, 生成:
MAIn character 设置tings Initial scenes Core conflict Open hooks Subsequent Episode Generation
Based on graph 查询 结果s:
Read previous episode content and unclosed hooks Continue mAIn plot line Handle hooks (continue/close/添加) Advance character growth arc Adjust emotional curve Finale Generation
When tar获取 episodes reached or user 请求s end:
Close all remAIning hooks Complete character growth arcs 生成 conclusive ending 导入ant Notes Retry Mechanism - Max 3 retries when AI review fAIls 暂停/恢复 - Can 恢复 via 流水线_id after 暂停 Multiple 流水线s - Supports 运行ning multiple different-themed 流水线s simultaneously Graph Consistency - Ensure correct character and hook relationships Hook Management - 追踪 creation and closure 状态 of each hook Complete 工作流 Step 1: 创建 流水线 U