Get the FREE Ultimate OpenClaw Setup Guide β†’
v

Youtube Instant Article

Scanned

@viticci

npx machina-cli add skill @viticci/youtube-instant-article --openclaw
Files (1)
SKILL.md
3.7 KB

YouTube Instant Article

Transform YouTube videos into Telegraph Instant View articles with visual slides and timestamped summaries.

When to Use

ALWAYS use this skill when:

  • User shares a YouTube URL (any youtube.com or youtu.be link)
  • "Summarize this video"
  • "What's this video about?"
  • "Turn this into an article"
  • "Give me the gist of this video"

Only use generic summarize for:

  • Non-YouTube URLs (articles, websites, PDFs)
  • Explicit "just give me the transcript" requests

Quick Start

source /Users/viticci/clawd/.env && {baseDir}/scripts/generate.sh "$ARGUMENTS"

Options

FlagDefaultDescription
--slides-max N6Maximum slides to extract
--debugoffKeep temp files for debugging

Environment Variables

Required environment variables are loaded from /Users/viticci/clawd/.env:

  • TELEGRAPH_TOKEN - Telegraph API access token
  • OPENAI_API_KEY - For GPT-5.2 summarization

Output

Telegraph Instant View article with:

  • πŸ“Ί Video link at top
  • πŸ–ΌοΈ Slides interleaved with timestamped sections
  • ⏱️ Key moments with timestamps
  • πŸ’¬ Notable quotes as blockquotes
  • ✨ Proper title from YouTube

Architecture

YouTube URL
    β”‚
    β”œβ”€β–Ί summarize --extract (get video title)
    β”‚
    β”œβ”€β–Ί summarize --slides (extract key frames)
    β”‚
    β”œβ”€β–Ί summarize --timestamps (GPT-5.2 summary)
    β”‚
    β”œβ”€β–Ί catbox.moe (upload images)
    β”‚
    └─► Telegraph API (create article)

Key Features

Image Hosting: catbox.moe

  • No API key required
  • No expiration
  • Reliable CDN
  • Direct URL embedding

LLM: OpenAI GPT-5.2

  • Fast (~4-5 seconds)
  • High quality summaries
  • Automatic timestamp extraction

Layout: Interleaved Images

  • Images distributed across timestamp sections
  • Not grouped at top
  • Each major section gets a relevant slide

⚠️ Important Notes

Instant View Timing

Telegram needs 1-2 minutes to generate Instant View for new pages. If the ⚑ button doesn't appear immediately, wait and try again.

Script Requirements

  • Uses zsh (not bash) for associative array support
  • Requires: summarize, jq, curl
  • Optional: ffmpeg (for local video processing)

Always Use the Script

NEVER manually create Telegraph content. Always use generate.sh:

  • Ensures proper h4 headers (required for Instant View)
  • Distributes images correctly
  • Extracts video title automatically

Dependencies

  • summarize v0.10.0+ (brew install steipete/tap/summarize)
  • jq (brew install jq)
  • curl (pre-installed on macOS)
  • OpenAI API key with GPT-5.2 access

Processing Time

Video LengthApprox. Time
< 15 min20-30s
15-30 min30-45s
30+ min45-60s+

Troubleshooting

"Failed to get summary"

  • Check OPENAI_API_KEY is set
  • Verify API key has GPT-5.2 access
  • Try with --debug flag

No Instant View button

  • Wait 1-2 minutes for Telegram to process
  • Verify article has content (not empty)
  • Check images loaded (visit Telegraph URL directly)

Images not showing

  • catbox.moe might be temporarily down
  • Check upload succeeded in debug output
  • Verify URLs are HTTPS

Source

git clone https://clawhub.ai/viticci/youtube-instant-articleView on GitHub

Overview

This skill automatically converts YouTube URLs into Telegraph Instant View articles with visual slides, timestamped summaries, and quotes. It’s the default workflow for all YouTube video requests, ensuring structured, skimmable content instead of plain transcripts.

How This Skill Works

From a YouTube URL, the system runs a sequence: extract the video title with summarize --extract, generate key slides with summarize --slides, create a GPT-5.2 based summary with timestamps via summarize --timestamps, upload images to catbox.moe, and assemble the Telegraph Instant View article through the Telegraph API using the generate.sh script.

When to Use It

  • User shares a YouTube URL (any youtube.com or youtu.be link)
  • "Summarize this video"
  • "What's this video about?"
  • "Turn this into an article"
  • "Give me the gist of this video"

Quick Start

  1. Step 1: Load your environment and prepare the generate script (example: source /Users/viticci/clawd/.env && {baseDir}/scripts/generate.sh "$ARGUMENTS")
  2. Step 2: Provide a YouTube URL as the argument (youtube.com or youtu.be) to the script
  3. Step 3: Retrieve and share the Telegraph Instant View article link once generation completes

Best Practices

  • Always apply this skill to YouTube links (youtube.com or youtu.be) for summaries and explanations
  • Limit slides with --slides-max to control length and processing time
  • Use the dedicated generate.sh script rather than manual composition
  • Ensure TELEGRAPH_TOKEN and OPENAI_API_KEY are set and accessible
  • Expect a short wait (1-2 minutes) for Telegram Instant View to be generated and verify the article content

Example Use Cases

  • Summarize a product review video and extract key moments with timestamps
  • Explain a technical lecture by converting it into a slide-tlean article with quotes
  • Turn a travel vlog into a structured Telegraph article with interleaved slides
  • Highlight notable quotes from an interview video as blockquotes in the article
  • Create a quick gist from a software demo or tutorial video

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers β†—