← Building with AI

Content research engine

The research layer in front of my video engine. It finds outlier videos, ranks topics, and scores the first 3 seconds of a hook before anything gets made.

Most content fails before it is made. The topic was crowded, or the opening lost people in the first few seconds.

This engine moves the evidence to the front. It is three Claude Code skills that run in sequence. The last one, viral-hook, is open source.

How the content research engine picks a topic and a hookviral-spotter scores videos from YouTube channels as views divided by the channel median. topic-radar combines those outliers with live news and a YouTube demand check, minus a saturation penalty. Its top pick goes to viral-hook, which scores the opening. A retention check and a title and thumbnail score follow, then the topic goes to the video engine.YouTube channelsviral-spotteroutlier = views / mediantopic-radarweighted score minus saturationLive newsYouTube demand checkviral-hook5 hook types, 6-point gateRetention checkTitle + thumbnail scoreVideo enginetop pick
  1. viral-spotter finds outliers. It scores each video as its views divided by the median views of the channel. 3x is an outlier, 5x is strong, 10x is gold. Shorts and long-form are scored apart. Then it takes the winner apart: the hook, the topic and the format.
  2. topic-radar ranks the backlog. It combines outlier signals, live news and a YouTube demand check. Weights: outlier ×2, timeliness ×2, contrarian angle ×1.5, channel fit ×1.5, plus monetization. A saturation penalty drops topics that AI channels already flood.
  3. viral-hook scores the opening. It tests the first 3 seconds against five hook types and a six-point gate. It returns a winner and two alternates. It draws on an OpusClip study of 34,635 clips: the algorithm decides in about 1.5 seconds, so the hook must land by 3.

After that, two more checks run: one on retention across the whole video, and one on whether the title and thumbnail ask one connected question.

Source on GitHub (viral-hook): github.com/abhilashme/viral-hook

Related: Automated video creation workflow for creators