Skip to content

soya196/learn-udemy-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learn-udemy-skill

Extract transcripts from Udemy videos using Claude Code + Playwright MCP.

Features

  • Extract transcript from single Udemy video
  • Extract full course (all lectures) with batch processing
  • Auto-save to local knowledge base
  • Works with any Udemy account (personal, business, etc.)

Prerequisites

Before installing this skill, make sure you have:

  • Claude Code installed
  • Bun runtime (for save script)
  • Access to Udemy (logged in account)

Installation

Quick Install (Linux/macOS)

# Clone or download this folder
cd learn-udemy-skill

# Run install script
chmod +x install.sh
./install.sh

Manual Install (Windows/All platforms)

  1. Copy skill folder

    # Copy to your Claude skills directory
    cp -r learn-udemy ~/.claude/skills/
  2. Add Playwright MCP to your project

    Add this to your project's .mcp.json:

    {
      "mcpServers": {
        "playwright": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "@playwright/mcp@latest"]
        }
      }
    }
  3. Create output directory (optional)

    mkdir -p ψ/memory/learnings

    Or set PSI_ROOT environment variable to your preferred location.

  4. Restart Claude Code to load the new skill

Usage

Single Video

/learn-udemy https://www.udemy.com/course/my-course/learn/lecture/12345

With Custom Title

/learn-udemy "My Custom Title" https://www.udemy.com/course/my-course/learn/lecture/12345

Full Course Extraction

For extracting entire courses, ask Claude directly:

ช่วย extract transcript ทั้ง course จาก https://www.udemy.com/course/my-course/

Claude will use Playwright MCP to:

  1. Open browser (you'll need to login if not already)
  2. Navigate through each lecture
  3. Extract transcripts
  4. Save to local knowledge base

How It Works

┌─────────────────────────────────────────────────────────────┐
│  /learn-udemy <url>                                         │
│       │                                                     │
│       ▼                                                     │
│  ┌─────────────┐                                            │
│  │ Playwright  │ ──► Opens browser ──► Navigates to URL     │
│  │    MCP      │                                            │
│  └─────────────┘                                            │
│       │                                                     │
│       ▼                                                     │
│  ┌─────────────┐                                            │
│  │   Claude    │ ──► Extracts transcript from page          │
│  │   Code      │                                            │
│  └─────────────┘                                            │
│       │                                                     │
│       ▼                                                     │
│  ┌─────────────┐                                            │
│  │ save-       │ ──► Saves to ψ/memory/learnings/           │
│  │ learning.ts │     YYYY-MM-DD_title.md                    │
│  └─────────────┘                                            │
└─────────────────────────────────────────────────────────────┘

Output Format

Transcripts are saved as Markdown files:

---
title: "Video Title"
source: Udemy
course: "Course Name"
instructor: "Instructor Name"
url: "https://..."
created: 2024-01-25
tags: [udemy, topic, ...]
---

# Video Title

**Course**: Course Name
**Instructor**: Instructor Name

## Transcript

[Full transcript text...]

---

*Extracted via /learn-udemy, 2024-01-25*

File Structure

learn-udemy-skill/
├── README.md                    # This file
├── install.sh                   # Auto-install script
├── learn-udemy/                 # Skill folder (copy to ~/.claude/skills/)
│   ├── SKILL.md                 # Skill definition
│   └── scripts/
│       └── save-learning.ts     # Save transcript script
└── examples/
    └── mcp-config.json          # Example Playwright MCP config

Troubleshooting

"Playwright MCP not found"

Make sure .mcp.json is in your project root with Playwright configured.

"Login required"

When browser opens, login to Udemy manually. Claude will wait for you.

"Transcript not found"

Some videos don't have transcripts. Claude will notify you if extraction fails.

"Permission denied"

Make sure you have access to the course on Udemy.

License

MIT License - Feel free to use, modify, and share!

Credits

Created by sonthaya with Claude Code (Dongky)


Version: 1.0.0 Created: 2026-01-25 Requires: Claude Code, Playwright MCP, Bun

About

Claude Code skill for extracting Udemy video transcripts using Playwright MCP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors