技能圖譜SKILLSGROVE
技能圖譜/短影片與自媒體/kennyzir/7deer_skills/youtube-content-gen

youtube-content-gen

安裝

$npx skills add https://github.com/kennyzir/7deer_skills --skill youtube-content-gen
$git clone --depth 1 https://github.com/kennyzir/7deer_skills.git /tmp/7deer_skills && mkdir -p ~/.claude/skills && cp -r /tmp/7deer_skills/youtube-content-gen ~/.claude/skills/youtube-content-gen
請幫我安裝這個 Agent Skill:https://github.com/kennyzir/7deer_skills/tree/32a68816736567804e4278d67732e6c42d109564/youtube-content-gen ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITA complete pipeline to convert YouTube videos into high-quality, SEO-optimized guide pages using Gemini AI.
以下 SKILL.md 內容轉載自 kennyzir/7deer_skills(提交 32a6881),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 kennyzir 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

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:

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

3. Verify

Run the build to ensure everything is correct:

npm run build
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 kennyzir

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.