ワンクリックで
import-videos
// Import YouTube video details using yt-dlp, automatically generating Astro Markdown pages with metadata, iframe embeds, and descriptions.
// Import YouTube video details using yt-dlp, automatically generating Astro Markdown pages with metadata, iframe embeds, and descriptions.
| name | Import Videos |
| description | Import YouTube video details using yt-dlp, automatically generating Astro Markdown pages with metadata, iframe embeds, and descriptions. |
This skill lets you automatically import YouTube videos into your Astro documentation site. It parses a list of video URLs, fetches their metadata using yt-dlp, and generates dedicated markdown files with rich frontmatter and video embeds.
yt-dlp must be installed and available in the system path.videos.txt file should exist in the root of your workspace, containing one YouTube video URL per line.Use this skill whenever:
videos.txt with new YouTube URLs that need importing.The under-the-hood import script:
videos.txt from the project root.yt-dlp --dump-json to fetch the video's title, description, id, and upload date.https://defuddle.md/youtube.com/watch?v=<id> using curl.src/content/docs/videos/<slug>.md with structured Astro frontmatter (title, summary, date, draft, tags), an embedded <SocialEmbed /> component, and the full timestamped transcript.Ensure videos.txt has the target YouTube URLs, then run this command from the project root to import them:
node .agents/skills/import-videos/scripts/import-videos.mjs
To batch-refresh transcripts for existing markdown files in the repository (e.g., if transcripts were missing or failed to download), use the companion update-transcripts.js script:
Process Everything (Both podcasts and videos):
node .agents/skills/import-videos/scripts/update-transcripts.js
Podcasts Only:
node .agents/skills/import-videos/scripts/update-transcripts.js --podcasts-only
Videos Only:
node .agents/skills/import-videos/scripts/update-transcripts.js --videos-only
Auto-correct relative links, asset paths, and related links in markdown documents based on folder depth.
Ensure all markdown documents have their frontmatter titles injected as standard H1 headings at the start of the body.
Scrape, download, and localize external or relative images referenced in markdown files to Astro's src/assets folder and rewrite image links.
Process all markdown documentation files to generate AI summaries and embeddings (using Ollama), apply taxonomy tags, and compute KNN related links.
Full developer documentation for Astro