본문으로 건너뛰기
cccskills
무료GitHub에 공개

youtube-transcript

Extract timestamped text from a YouTube video's transcript panel and turn it into summaries, chapter outlines, X threads, blog articles, or notable quotes. Use existing captions to create readable material from video content.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

YouTube transcript extraction and content reformatting: given a YouTube video URL, opens the video's transcript panel, extracts all timestamped segments, and transforms the raw transcript into summaries, chapter outlines, Twitter/X threads, blog posts, or notable quotes. Use when the user shares a YouTube URL or video link, asks to summarize a video, get a transcript, extract content from a YouTube video, get YouTube captions, extract YouTube captions, download YouTube captions, transcribe YouTube video, YouTube video to text, make a thread from YouTube, YouTube to blog post, YouTube to article, pull transcript from YouTube, YouTube content extraction, convert YouTube to text, video to transcript. Also applies when user wants to reformat any YouTube video content into structured output (chapters, threads, blog articles, key quotes).

연동 도구YouTubeX (Twitter)
설치 방법 보기

이럴 때 유용합니다

  • Reviewing a video's main points through a summary
  • Creating timestamped chapter outlines
  • Turning video content into a blog article or X thread
  • Collecting notable quotes with timestamps

포함된 파일(4)

  • SKILL.md8.4 KB
  • scripts/extract-transcript-segments.py2.2 KB
  • scripts/get-languages.py1.1 KB
  • scripts/open-transcript-panel.py1.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

YouTube — Transcript Extraction & Content Reformatting

YouTube video URL → timestamped transcript → summary / chapters / thread / blog / quotes

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Extract the full transcript from a YouTube video's built-in transcript panel, then transform it into the output format the user requests.

Prerequisites

  • Target YouTube video page is already open in the browser: https://www.youtube.com/watch?v={VIDEO_ID}

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py)". Use the bash tool for execution.

DOM: Check transcript availability and list languages

eval "$(python scripts/get-languages.py)"

No parameters. Reads ytInitialPlayerResponse from the current page.

Output example:

{
  "available_languages": [
    {"code": "en", "name": "English", "kind": "manual", "is_auto": false},
    {"code": "en", "name": "English (auto-generated)", "kind": "asr", "is_auto": true}
  ],
  "count": 2
}

Returns {"error": true, "message": "..."} when transcripts are disabled or page is not a YouTube video.

DOM: Open transcript panel

eval "$(python scripts/open-transcript-panel.py)"

No parameters. Clicks the "Show transcript" button below the video (handles multiple UI language variants automatically for robustness).

Must call wait stable after this to allow the panel to fully load.

Output example:

{"success": true, "label": "内容转文字"}

DOM: Extract all transcript segments

eval "$(python scripts/extract-transcript-segments.py)"

No parameters. Scrolls the open transcript panel to trigger lazy loading for long videos, then extracts all segments.

Output example:

{
  "segment_count": 24,
  "segments": [
    {"ts": "0:18", "text": "We're no strangers to love"},
    {"ts": "0:27", "text": "You know the rules and so do I"}
  ],
  "full_text": "We're no strangers to love You know the rules...",
  "timestamped_text": "0:18 We're no strangers to love\n0:27 You know the rules..."
}

Composite: Full transcript fetch workflow

  1. navigate https://www.youtube.com/watch?v={VIDEO_ID} → wait stable
  2. eval "$(python scripts/get-languages.py)" — confirm transcripts are available; note the language list
  3. eval "$(python scripts/open-transcript-panel.py)" — open the panel
  4. wait stable — wait for panel content to load
  5. eval "$(python scripts/extract-transcript-segments.py)" — extract all segments

Use timestamped_text from the output as input for the Transform step below.

Transform: Content Reformatting

After fetching the transcript, transform it based on what the user requests. If the user did not specify a format, default to the Full Document — output all five sections in order.

  • Summary: Concise 5–10 sentence overview of the entire video
  • Chapters: Group by topic shifts, output timestamped chapter list
  • Thread: Twitter/X thread format — numbered posts, each under 280 characters
  • Blog post: Full article with title, H2 sections per major topic, key quotes, and takeaways
  • Quotes: Notable quotes with their timestamps

Default Full Document output order (when no specific format is requested):

  1. Summary
  2. Chapters
  3. Thread
  4. Blog Post
  5. Quotes

Workflow

  1. Fetch transcript using the Composite component above.
  2. Validate: confirm segment_count >= 1. If empty, tell the user the video has transcripts disabled.
  3. Chunk if needed: if full_text exceeds ~50,000 characters, split timestamped_text into overlapping chunks (~40K characters with 2K overlap) and summarize each chunk before merging.
  4. Transform into the requested format(s) using the timestamped_text field. If no format specified, produce all five sections.
  5. Verify: re-read the output for coherence, correct timestamps (if chapters), and completeness before presenting.

Example — Chapters Output

0:00 Introduction — host opens with the problem statement
3:45 Background — prior work and why existing solutions fall short
12:20 Core method — walkthrough of the proposed approach
24:10 Results — benchmark comparisons and key takeaways
31:55 Q&A — audience questions on scalability and next steps

Example — Thread Output

1/ Just watched an incredible video on [topic]. Key takeaways 🧵

2/ First insight: [point]. This matters because [reason].

3/ The surprising part: [finding]. Most assume [belief], but this shows otherwise.

4/ Practical takeaway: [action].

5/ Full video: [URL]

Error Handling

  • Transcripts disabled: get-languages.py returns error; tell user and suggest checking if captions are available on the video page
  • Private/unavailable video: page will not load correctly; relay the error and ask user to verify the URL
  • Transcript button not found: usually means the user is not on a video page, or the page hasn't finished loading; navigate to the URL and retry
  • No segments after panel opens: retry open-transcript-panel.py + wait stable + extract-transcript-segments.py once

Known Limitations

  • Language selection: the transcript panel shows the language YouTube defaults to for the user's region. Switching to a specific language requires changing the caption language in the player's CC settings first; automatic language switching is not implemented.
  • Auto-generated transcripts (kind: asr) may have lower accuracy than manual captions.
  • Videos that require login to view will not have a transcript panel accessible.

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through video URLs serially within a single session — navigate to each video, run the 3-step composite workflow, save result, then move to the next. Do not parallelize within one browser. To increase throughput for large batches, open multiple stealth browser sessions and distribute URLs across them.
  • Test before batch execution: After writing a batch script, first test with 1–2 videos to confirm the full workflow runs correctly; only then run the full batch.
  • Reduce redundant pre-operations: Pre-execution checks (tool readiness) only need to run once per session; skip them for subsequent videos in the same batch.
  • Error resumption: Save each video's result immediately after extraction; on failure, resume from the failed video rather than starting over.

Success Criteria

segment_count >= 1 AND full_text length > 0

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/youtube-content-youtube-transcript.memory.md

Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.

After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Extract wholesale product details from 1688.com, including quantity-based prices, product variants with dimensions and weight, seller information, shop scores, promotions, and review summaries. Organize these details to compare sourcing options and supplier metrics.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Compare wholesale prices by order quantity
  • Check dimensions and weight for product variants
  • Compare supplier scores and repeat purchase rates
browser-act/skills6.2천2026년 8월 24일 업데이트

Retrieve Airbnb property details from a numeric listing ID, including descriptions, amenities, photos, location, house rules, ratings, and bedroom arrangements. Gather structured information for reviewing accommodation options, with dates required for nightly pricing.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking amenities and house rules before a stay
  • Organizing property details for accommodation comparisons
  • Reviewing bedroom arrangements and property photos
browser-act/skills6.2천2026년 8월 24일 업데이트

Collect Airbnb accommodation search results for a destination, including listing links, locations, ratings, prices, photos, and badges. Specify dates, guest counts, and budget filters, then retrieve multiple pages of accommodation options.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Collecting accommodation options for a destination
  • Finding listings within a budget for specific dates
  • Comparing accommodation ratings and photos
browser-act/skills6.2천2026년 8월 24일 업데이트

Submit shopping questions to Amazon's Alexa/Rufus assistant and collect answers as JSON, a structured data format. Use product search results as context for category research, or run a series of general shopping questions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Collecting product recommendations for a specific category
  • Gathering answers to a batch of shopping questions
  • Researching deals and shopping trends
browser-act/skills6.2천2026년 8월 24일 업데이트

Look up Amazon products using an ASIN, Amazon's unique product identifier. Retrieve structured details such as title, current price, ratings, brand, description, and material to enrich product catalogs or support price and rating comparisons.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Enriching product catalogs using ASINs
  • Comparing Amazon prices with other retailers
  • Checking changes in average ratings and rating counts
browser-act/skills6.2천2026년 8월 24일 업데이트

Research Amazon best-selling products by keyword and regional marketplace. Collect structured product details, including prices, ratings, review counts, past-month sales, availability, and promotions, to compare competitors and investigate product markets.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Research best-selling products for a keyword
  • Compare competitor prices, promotions, and sales
  • Compare prices and availability across regional marketplaces
browser-act/skills6.2천2026년 8월 24일 업데이트

browser-act의 스킬 모두 보기

이 스킬의 문제 신고