youtube-to-links
Skill by solana-foundation
Imports a YouTube video or full playlist into the media app's links collection as Keystatic MDX entries. It is for developers working on the Solana Foundation media app.
Install youtube-to-links
Built from the published package, never by AI.
git clone --depth 1 https://github.com/solana-foundation/solana-com /tmp/solana-com && mkdir -p ~/.claude/skills && cp -r /tmp/solana-com/skills/youtube-to-links ~/.claude/skills/youtube-to-linksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/solana-foundation/solana-com /tmp/solana-com && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/solana-com/skills/youtube-to-links ~/.gemini/antigravity-cli/skills/youtube-to-linksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill turns a YouTube URL into one MDX file per video under apps/media/content/links/. It accepts single videos, Shorts and playlists, and it matches the schema in apps/media/keystatic.config.tsx. A helper script, import_youtube.py, runs the import and reads the YouTube API key from the environment or from apps/media/.env.local.
Files are named with a slug that follows Keystatic's own rules, and existing files with the same slug are left untouched, so re-runs are safe. Videos from the Solana Foundation channel (@SolanaFndn) get the solana-foundation tag automatically. After writing, the script checks for duplicate YouTube video IDs and reports any groups it finds. It is intended for users who add YouTube content to the media app's links collection.
Written from the project's SKILL.md and checked against it.
What it can do
- Single video importTurns one YouTube watch, youtu.be or Shorts URL into one MDX entry.
- Playlist importCreates one MDX entry for each video in a YouTube playlist URL.
- Channel taggingAdds the solana-foundation tag to videos from the @SolanaFndn channel.
- Keystatic-compatible slugsBuilds filenames using Keystatic's slug rules so they match CMS-authored entries.
- Safe re-runsLeaves existing files with the same slug untouched when run again.
- Duplicate checkScans existing link files and reports groups that point to the same video.
What you need
- YouTube Data API key in YOUTUBE_DATA_API_KEY or YOUTUBE_API_KEY
- Python 3 to run import_youtube.py
- The media app repository with apps/media/content/links/ and keystatic.config.tsx
Try asking
- Add this YouTube video to the media app's links collection: <url>
- Import every video in this YouTube playlist as link entries: <playlist url>
- Import these YouTube URLs and skip any that already exist in the links folder
Good to know
- The duplicate check reports matching files but does not delete them.
- Categories are left empty by default and must be added in Keystatic.
- Channel tagging is set only for the Solana Foundation channel unless the script is changed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/youtube-to-links/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
import_youtube.py10 KB
Alternatives to youtube-to-links
All alternatives →Generates 3 to 10 second short-form video clips for product reveals, motion teasers and ambient loops. It defaults to Seedance 2 and also works with Kling 3 and 4, Veo 3 and Sora 2, saving one MP4 to the project folder.
Builds a strategic SEO plan for new or existing websites, covering competitors, architecture, content, technical setup and a 12-month roadmap. It is aimed at people who need an SEO strategy rather than a one-time audit.
Audits and rewrites a LinkedIn profile for people who want their headline, About section and other parts improved. It scores the headline, audits the whole profile from 0 to 100 and drafts an About section that works above the fold.
Builds a LinkedIn plan covering content pillars, positioning, posting cadence and whether to start a newsletter. Aimed at people pursuing a career change, consulting, thought leadership or similar goals on LinkedIn.
Guides an AI assistant to design or rewrite a single-offer landing page for SaaS, apps and services. It covers structure, layout, copywriting, conversion tactics, and SEO/AEO.
Analyzes your own exported LinkedIn post data to show which posts worked, test whether a pattern is real, and plan posting experiments. Built for people who want to understand their own LinkedIn numbers. It refuses to draw conclusions from fewer than 10 posts.
Compare with video-shortform, seo-plan or linkedin-profile
youtube-to-links: common questions
What does the youtube-to-links skill write to the repo?
It writes one MDX file per video into apps/media/content/links/. The frontmatter includes the title, URL, linkType video, source YouTube, publishedAt and featured set to false.
Will running the import twice create duplicate entries?
No. Existing files matched by slug are left untouched, so re-runs are safe. The script also reports any duplicate groups by video ID after writing.
How are videos from the Solana Foundation channel tagged?
Videos from the @SolanaFndn channel get the solana-foundation tag automatically. Other channels get no tag unless the script's channel mappings are extended.
How do I install youtube-to-links?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is youtube-to-links free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is youtube-to-links safe to use?
It scores 74 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to youtube-to-links?
Similar skills: video-shortform, seo-plan, linkedin-profile, linkedin-strategy.
