youtube-transcript-analysis-api-skill
This skill helps users extract YouTube video transcripts and perform deep competitive analysis on the content. Agent should proactively apply this skill when users express needs like analyze YouTube video content strategy, perform competitive video content analysis, extract and analyze YouTube subtitles for marketing insights, understand competitor value propositions from their videos, identify target audience from YouTube video content, analyze pain points and needs mentioned in YouTube videos, evaluate competitor CTA strategies in video content, find content gaps in competitor YouTube videos, analyze video narrative structure and hooks, extract key messaging and positioning from YouTube content, benchmark competitor video content quality, research competitor marketing angles through video analysis, identify audience signals and terminology level in videos, analyze emotional tone and persuasion techniques in YouTube content.
What this skill does
# YouTube Transcript Analysis API Skill
## ๐ Brief
This skill provides an end-to-end YouTube video transcript extraction and deep content analysis service. By extracting video transcripts and then systematically analyzing them, users can understand competitors' core value propositions, target audience profiles, pain point strategies, and content gaps โ all without manually watching hours of video.
**This skill works in two phases:**
1. **Phase 1 โ Transcript Extraction**: Uses BrowserAct API to extract raw transcript data (supports single video and batch modes).
2. **Phase 2 โ Deep Analysis**: The Agent performs structured 8-dimension analysis on the extracted transcripts.
## โจ Features
1. **No hallucinations, ensuring stable and accurate data extraction**: Pre-set workflows avoid AI generative hallucinations.
2. **No CAPTCHA issues**: No need to handle reCAPTCHA or other verification challenges.
3. **No IP restrictions or geo-blocking**: No need to handle regional IP restrictions or geofencing.
4. **Faster execution**: Tasks execute faster compared to purely AI-driven browser automation solutions.
5. **Extremely high cost-efficiency**: Significantly reduces data acquisition costs compared to AI solutions that consume massive amounts of tokens.
## ๐ API Key Guide
Before running, you must check the `BROWSERACT_API_KEY` environment variable. If it is not set, do not take other actions first; you should ask and wait for the user to provide it.
**Agent must inform the user**:
> "Since you haven't configured the BrowserAct API Key yet, please go to the [BrowserAct Console](https://www.browseract.com/reception/integrations) to get your Key."
## ๐ ๏ธ Input Parameters
The Agent should determine the extraction mode based on the user's needs:
### Mode A: Single Video Analysis
Use when the user provides a specific YouTube video URL.
1. **TargetURL**
- **Type**: `string`
- **Description**: The URL of the YouTube video to extract and analyze.
- **Example**: `https://www.youtube.com/watch?v=st534T7-mdE`
- **Required**: Yes
### Mode B: Batch Video Analysis
Use when the user wants to search and analyze multiple videos by keyword.
1. **KeyWords**
- **Type**: `string`
- **Description**: The keyword to search for on YouTube.
- **Example**: `AI Automation`, `SaaS Marketing`
- **Required**: Yes
2. **Upload_date**
- **Type**: `string`
- **Description**: Filter for the upload date of the videos.
- **Example**: `This week`
- **Default**: `This week`
3. **Datelimit**
- **Type**: `number`
- **Description**: The number of videos to extract and analyze.
- **Example**: `3`
- **Default**: `3`
### Optional Analysis Parameters
These parameters are set by the user's intent, not script arguments:
4. **Analysis Language**
- **Type**: `string`
- **Description**: The language the analysis report should be written in. Defaults to the same language as the user's request.
- **Example**: `Chinese`, `English`
5. **Analysis Focus**
- **Type**: `string`
- **Description**: The user may specify an analysis focus. The Agent must dynamically adjust the depth of specific dimensions based on this focus. For example:
- *Competitor Analysis* -> Deep dive into Dim 7 (Business Model) and Dim 8 (Gaps).
- *Viral Deconstruction* -> Deep dive into Dim 1 (Hook), Dim 4 (Emotional Arc), and Dim 5 (Viral Drivers).
- *Audience Research* -> Deep dive into Dim 3 (Persona & Intent) and Dim 4 (Pain Points).
- **Default**: All 8 dimensions balanced.
- **Example**: `Competitor Analysis`, `Viral Deconstruction`, `Audience Research`
## ๐ Invocation Method
The Agent should execute the unified extraction script based on the mode:
**Mode A โ Single Video:**
```bash
python -u ./scripts/youtube_transcript_analysis_api.py single "TargetURL"
```
**Mode B โ Batch Videos:**
```bash
python -u ./scripts/youtube_transcript_analysis_api.py batch "keywords" "Upload_date" Datelimit
```
### โณ Running Status Monitoring
Since this task involves automated browser operations, it may take a long time (several minutes). The script will **continuously output status logs with timestamps** while running (e.g., `[14:30:05] Task Status: running`).
**Agent guidelines**:
- While waiting for the script to return results, please keep an eye on the terminal output.
- As long as the terminal continues to output new status logs, it means the task is running normally. Do not misjudge it as a deadlock or unresponsiveness.
- If the status remains unchanged for a long time or the script stops outputting without returning a result, only then consider triggering the retry mechanism.
### Post-Extraction Workflow
After the script completes and returns transcript data, the Agent must proceed with two additional steps:
**Step 1: Present Video Metadata** โ Display the extracted metadata to the user. *(Note: Do NOT output the full raw transcript text in your response, as it is too long. Use it internally for your analysis.)*
**Step 2: Perform Concise 8-Dimension Analysis** โ Analyze the transcript across the 8 dimensions. โ ๏ธ **CRITICAL: The analysis MUST be extremely concise, bullet-point driven, and free of filler words.** Directly state the facts, evidence, and actionable insights without verbose explanations. Use the same language as the user's request.
## ๐ Data Output
After successful execution, the output includes two parts:
### Part 1: Video Metadata
The script returns the following fields for each video:
- `video_title`: The title of the YouTube video
- `video_url`: The direct link to the original video
- `publisher`: The name of the channel publishing the video
- `channel_link`: The URL of the publisher's YouTube channel
- `video_likes_count`: The number of likes the video has received
- `transcript`: The complete extracted transcript/subtitles of the video (used internally for analysis, do not display full text)
### Part 2: 8-Dimension Analysis
After presenting raw data, the Agent must produce structured analysis on the transcript content across the following 8 dimensions:
#### Dimension 1: Content Structure & Hook
Analyze the video's narrative architecture:
- **Opening Hook**: What is the core hook in the first 30 seconds? Quote it and explain the hook logic (e.g., curiosity gap, bold claim).
- **Narrative Framework**: Identify the overall structure (e.g., Problem-Agitate-Solve, Hero's Journey, Listicle).
- **Pacing & Time Allocation**: Proportion of intro vs. core content vs. pitch/CTA.
#### Dimension 2: Core Messaging
Extract the central message:
- **Single Core Viewpoint**: What is the ONE key thesis the video conveys?
- **Supporting Arguments**: How is the viewpoint supported? (Data, analogies, personal experience).
- **Conclusion Clarity**: Is the conclusion clear and memorable?
#### Dimension 3: Audience Persona & Intent
Identify the intended viewer and their mindset:
- **Target Viewer Profile & Level**: Who is this for? (Beginner, Expert) What prior knowledge is assumed?
- **Viewer Intent**: Why are they watching? (To learn a skill, be entertained, make a buying decision, or validate existing beliefs?)
#### Dimension 4: Pain Points & Emotional Arc
Map the emotional journey and problems addressed:
- **Explicit & Implicit Pain Points**: What specific problems are stated or implied? Quote exact words.
- **Emotional Arc**: How does the content shift the viewer's emotion? (e.g., from anxiety/confusion to clarity/relief/empowerment). This emotional shift drives retention and sharing.
#### Dimension 5: Viral & Engagement Drivers
Analyze the spreading mechanism:
- **Shareability Factors**: Why is this video shared? (Controversial takes, highly relatable scenarios, title/thumbnail alignment inferred from script).
- **Memorable/Quotable Phrasing**: Extract unique expressions, catchy concepts, or "aha" moments that stick in the mind.
#### Dimension 6: Evidence & Credibility
Evaluate trust-building elements:
- **Authority Signals**: Data citRelated in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.