<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: epongzhao-sketch</title>
    <description>The latest articles on DEV Community by epongzhao-sketch (@epongzhaosketch).</description>
    <link>https://dev.to/epongzhaosketch</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262148%2Fd7470ec3-18e2-4b28-9d78-ca473c8f59e9.png</url>
      <title>DEV Community: epongzhao-sketch</title>
      <link>https://dev.to/epongzhaosketch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/epongzhaosketch"/>
    <language>en</language>
    <item>
      <title>I distilled 65 viral short dramas into a "writing DNA" and built an AI pipeline that re-skins them beat by beat</title>
      <dc:creator>epongzhao-sketch</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:28:23 +0000</pubDate>
      <link>https://dev.to/epongzhaosketch/i-distilled-65-viral-short-dramas-into-a-writing-dna-and-built-an-ai-pipeline-that-re-skins-them-22oc</link>
      <guid>https://dev.to/epongzhaosketch/i-distilled-65-viral-short-dramas-into-a-writing-dna-and-built-an-ai-pipeline-that-re-skins-them-22oc</guid>
      <description>&lt;p&gt;Vertical short dramas (ReelShort, DramaBox…) are a multi-billion-dollar market&lt;br&gt;
built on a simple observation: hits aren't luck. They're structure.&lt;/p&gt;

&lt;p&gt;A hit episode opens with a visual hook in 3 seconds, stacks an information hook&lt;br&gt;
in 30, drops a "golden hook" in 60, and ends on a cliffhanger that makes you&lt;br&gt;
pay. The industry calls this craft. I wanted to know if it could be&lt;br&gt;
&lt;em&gt;engineered&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;So I distilled 65 overseas vertical dramas — about 3,420 episodes and 55,000&lt;br&gt;
lines of dialogue — into a writing methodology ("writing DNA"), then built&lt;br&gt;
&lt;strong&gt;Drama Forge&lt;/strong&gt;, an open-source pipeline that turns one proven hit into a&lt;br&gt;
complete, production-ready re-skin.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Upload a hit sample, and the pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deconstructs&lt;/strong&gt; it into a six-dimension report plus a per-episode beat map:
what each beat &lt;em&gt;does&lt;/em&gt; (humiliation / restraint / reversal / face-slap),
its emotional intensity, where the paywall sits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-skins&lt;/strong&gt; it into 10 concept variants. The core promise ("contract
marriage → real love", "hidden identity revenge") stays locked; only the
surface genre swaps — mafia, werewolf, billionaire, royal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Produces&lt;/strong&gt; a full script package per concept: direction card, character
bios, season outline, a coherent block of opening episodes, and two
ad-creative episodes. After final review, it keeps writing to the season
finale in resumable background batches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grades&lt;/strong&gt; everything with an editor-in-chief review pass.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The key discipline is &lt;strong&gt;beat-level mirroring&lt;/strong&gt;: each new episode mirrors the&lt;br&gt;
original's beat functions and emotional curve, but every event, scene, and&lt;br&gt;
line of dialogue is rewritten. You copy the skeleton of what converts, never&lt;br&gt;
the words.&lt;/p&gt;

&lt;h2&gt;
  
  
  The engineering that made it survivable
&lt;/h2&gt;

&lt;p&gt;A 60-episode script package is 10+ long LLM calls. Naive implementations die&lt;br&gt;
to proxy timeouts. What worked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Streamed structured output everywhere&lt;/strong&gt; (&lt;code&gt;streamObject&lt;/code&gt; + a 15-minute
undici agent). Non-streaming calls get killed by intermediaries after ~10
minutes of silence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tRPC with JSONL heartbeats&lt;/strong&gt; (&lt;code&gt;pingMs: 4000&lt;/code&gt;) so long requests never go
quiet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Async jobs with server-side checkpoints&lt;/strong&gt;: the browser submits and polls;
every batch is persisted, so a restart resumes from the exact missing
episodes. Idempotent merges by episode number make retries free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing-episode self-healing&lt;/strong&gt;: LLMs sometimes return 4 episodes when
asked for 5. Each batch retries up to 3 rounds and refuses to advance the
pipeline until the set is complete.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stack: React 19 + Hono + tRPC 11 + Drizzle + MySQL, all TypeScript.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned about AI writing
&lt;/h2&gt;

&lt;p&gt;The model doesn't need to be "creative". It needs rails: a beat map to mirror,&lt;br&gt;
an outline to stay on, per-episode volume targets (scene count / dialogue&lt;br&gt;
lines), and a checklist of hard rules (5.5 words per dialogue line, VO ratio&lt;br&gt;
by audience gender, cliffhanger taxonomy). Creativity is what you get when&lt;br&gt;
the constraints are good.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it / break it
&lt;/h2&gt;

&lt;p&gt;Repo (Apache-2.0): &lt;a href="https://github.com/epongzhao-sketch/drama-forge" rel="noopener noreferrer"&gt;https://github.com/epongzhao-sketch/drama-forge&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The corpus-distilled DNA ships in the repo. A newer rule pack, corrected&lt;br&gt;
against live ad-delivery data, is what I use in production — happy to talk&lt;br&gt;
about it in the comments or Issues.&lt;/p&gt;

&lt;p&gt;If you work in short-drama production and want to see what a full package&lt;br&gt;
looks like, open an issue — I'll show you one.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
