Agent skill
youtube-comment-analyzer
Install this agent skill to your Project
npx add-skill https://github.com/drshailesh88/integrated_content_OS/tree/main/skills/cardiology/youtube-comment-analyzer
SKILL.md
YouTube Comment Analyzer
Trigger phrases:
- "Analyze comments for [URL]"
- "Analyze this video: [URL]"
- "What are people asking about [URL]"
- "Comment analysis for [VIDEO_ID]"
- "YouTube comment insights for [URL]"
Source: Based on https://github.com/drshailesh88/youtube-analyzer
What This Does
Analyzes YouTube video comments to extract audience insights:
- Top Questions people are asking (with urgency ratings)
- Top Myths and misconceptions (with danger ratings)
- Pain Points and frustrations
- Content Recommendations (must address, gaps, viral potential)
- Sentiment Analysis (positive/negative/neutral breakdown)
- Recurring Themes in discussions
How to Use (Claude Instructions)
Step 1: Extract Video ID
From URL patterns:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/watch?v=VIDEO_ID&...- Just
VIDEO_ID(11 characters, alphanumeric with - and _)
Step 2: Run the Analyzer
python skills/cardiology/youtube-comment-analyzer/scripts/analyze_comments.py VIDEO_URL_OR_ID
Options:
--max-comments 500— Limit comments scraped (default: 500)--output path/to/file.json— Custom output location--json— Output raw JSON instead of formatted report
Examples:
# Analyze by URL
python skills/cardiology/youtube-comment-analyzer/scripts/analyze_comments.py "https://youtube.com/watch?v=abc123xyz"
# Analyze by ID with limited comments
python skills/cardiology/youtube-comment-analyzer/scripts/analyze_comments.py abc123xyz --max-comments 200
# Get JSON output
python skills/cardiology/youtube-comment-analyzer/scripts/analyze_comments.py abc123xyz --json
Step 3: Read the Output
The script outputs a formatted report directly. Full JSON is saved to:
skills/cardiology/youtube-comment-analyzer/output/analysis_VIDEO_ID_TIMESTAMP.json
Output Format
## Comment Analysis: [Video Title]
**Analyzed:** 1,847 comments | **Time:** 45 seconds
### Top Questions (What viewers want to know)
1. [Question] — HIGH urgency
2. [Question] — MEDIUM urgency
3. ...
### Top Myths (Misconceptions to address)
1. [Myth] — HIGH danger
2. [Myth] — MEDIUM danger
3. ...
### Pain Points (Viewer frustrations)
1. [Pain point]
2. [Pain point]
3. ...
### Content Recommendations
- **Must Address:** [topics]
- **Content Gaps:** [topics]
- **Viral Potential:** [topics]
### Sentiment
Positive: X | Negative: Y | Neutral: Z
Summary: [one line]
### Recurring Themes
theme1, theme2, theme3, ...
API Keys Required
Set one of these in .env:
YOUTUBE_API_KEYorGOOGLE_API_KEY— For fetching comments via YouTube Data API v3ANTHROPIC_API_KEY— For AI analysis (preferred)OPENROUTER_API_KEY— Fallback for AI analysis (uses free Gemini model)
Error Handling
- No comments found: Video may have comments disabled
- API error: Check API key validity
- Rate limited: Wait and retry, or reduce --max-comments
Technical Details
- Uses YouTube Data API v3 for comment fetching
- Uses Claude or OpenRouter (Gemini) for AI analysis
- Handles 500+ comments via map-reduce chunking
- Output saved to JSON for future reference
- Works with any YouTube video with comments enabled
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
pufferlib
This skill should be used when working with reinforcement learning tasks including high-performance RL training, custom environment development, vectorized parallel simulation, multi-agent systems, or integration with existing RL environments (Gymnasium, PettingZoo, Atari, Procgen, etc.). Use this skill for implementing PPO training, creating PufferEnv environments, optimizing RL performance, or developing policies with CNNs/LSTMs.
fluidsim
Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC support, and comprehensive output analysis.
metabolomics-workbench-database
Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.
geniml
This skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspace), single-cell ATAC-seq analysis (scEmbed), building consensus peaks (universes), or any ML-based analysis of genomic regions. Applies to BED file collections, scATAC-seq data, chromatin accessibility datasets, and region-based genomic feature learning.
zinc-database
Access ZINC (230M+ purchasable compounds). Search by ZINC ID/SMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.
astropy
Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
Didn't find tool you were looking for?