mcpbeat Sign in

Youtube Content Gen Agent Skill

A complete pipeline to convert YouTube videos into high-quality, SEO-optimized guide pages using Gemini AI.

5k tokens
context cost
the whole folder, loaded on every use
10
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
311
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/kennyzir/7deer_skills --skill youtube-content-gen

What comes with it

19 211 bytes besides the instruction
resources/requirements.txt
resources/scripts/content_analyzer.py
resources/scripts/image_handler.py
resources/scripts/keyword_searcher.py
resources/scripts/page_generator.py
resources/scripts/transcript_extractor.py
resources/scripts/video_processor.py
resources/templates/page.module.css.j2
resources/templates/page.tsx.j2

The instruction itself

8 sections, as written by the author

YouTube Content Generator

A "video-to-page" pipeline that automates the creation of high-quality guide pages from YouTube videos. It extracts transcripts, analyzes content with Gemini AI, and generates Next.js pages with SEO best practices.

Resources Included

Scripts (resources/scripts/)

  • video_processor.py: The main entry point. Orchestrates the flow.
  • transcript_extractor.py: Wraps youtube-transcript-api to get subtitles.
  • content_analyzer.py: Uses Gemini API to understand video content and structure the page.
  • page_generator.py: Renders Jinja2 templates into .tsx and .module.css files.
  • image_handler.py: Downloads and optimizes video thumbnails.

Templates (resources/templates/)

  • page.tsx.j2: Next.js page template with built-in Schema.org, responsive video embed, and SEO metadata.
  • page.module.css.j2: Matching CSS module for the generated page.

Usage

1. Installation

Install the required Python dependencies:

pip install -r resources/requirements.txt

Set your Gemini API key:

$env:GEMINI_API_KEY = "your_api_key_here"

2. Generate a Page

From a YouTube URL:

python resources/scripts/video_processor.py --url "https://www.youtube.com/watch?v=VIDEO_ID"

From a Keyword (Auto-Search):

python resources/scripts/video_processor.py --keyword "game topic to search"

The script will:

  • Analyze the video.
  • Generate a new page in app/guides/[topic-slug]/.
  • Download images to public/images/guides/[topic-slug]/.
  • Print a report.

3. Verify

Run the build to ensure everything is correct:

npm run build

How to use it

Copy the folder

Take kennyzir/youtube-content-gen from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference pip. Without those the skill loads but fails at the first command.