zenstory-ai/drama-skills / skills/short-drama-develop
short-drama-develop
Verified将中文小说、短剧或漫剧点子、梗概、改编材料、系列笔记或多集完整剧本整理成有据可查的改编方案、故事走向、立项简报、导演阐述、核心冲突设定与分集大纲,并按题材与制作形态(画风)匹配写法。用户提出“导入小说做短剧”“从多集剧本生成/补分集大纲”“开发短剧/漫剧”“做故事设定/系列大纲/分集规划”“写导演阐述”“这个题材怎么写”“定画风/制作形态”“把这个点子变成短剧”或需要梳理人物冲突与上下集交接时使用;已有单集剧本可直接进入剧本写作、视觉设定或审查流程,不强制补开发文件。
scripts/selftest.py
View on GitHub#!/usr/bin/env python3
"""Offline self-test for multi-episode source intake."""
from __future__ import annotations
import sys
import tempfile
from pathlib import Path
MINIMUM_PYTHON = (3, 9)
if sys.version_info < MINIMUM_PYTHON:
raise SystemExit("selftest.py requires Python 3.9 or newer")
_SCRIPT_DIR = str(Path(__file__).resolve().parent)
if _SCRIPT_DIR not in sys.path:
sys.path.insert(0, _SCRIPT_DIR)
from episode_intake import build_index, slice_episode, verify_index, write_index # noqa: E402
def require(condition: bool, message: str) -> None:
if not condition:
raise AssertionError(message)
def main() -> int:
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)
source = root / "episodes.md"
index = root / "index.json"
source.write_text("第1集 开端\n行动一。\n第2集 反转\n行动二。\n", encoding="utf-8")
document = build_index(source, source_ref="输入/episodes.md")
require(document["episode_count"] == 2, "episode count")
require(document["problems"] == [], "valid episode index")
write_index(index, document)
require(verify_index(index, source)["verified"] is True, "fresh index")
require(
slice_episode(index, source, "EP002").startswith("第2集".encode()),
"verified episode slice",
)
source.write_text(source.read_text(encoding="utf-8") + "变更。\n", encoding="utf-8")
require(verify_index(index, source)["verified"] is False, "source drift")
print("5 self-tests passed")
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |