Agent Skill
2/7/2026

add-video

Add a new YouTube video to the portfolio. New video becomes Horizontal Video Card 1, all other videos shift down, oldest goes to More section. Use when user types /add-video followed by a YouTube URL.

J
jdorfman
4GitHub Stars
1Views
npx skills add jdorfman/www

SKILL.md

Nameadd-video
DescriptionAdd a new YouTube video to the portfolio. New video becomes Horizontal Video Card 1, all other videos shift down, oldest goes to More section. Use when user types /add-video followed by a YouTube URL.

name: add-video description: Add a new YouTube video to the portfolio. New video becomes Horizontal Video Card 1, all others shift down, oldest goes to More section. Use when user types /add-video followed by a YouTube URL.

Add Video to Portfolio

When the user types /add-video <URL> (optional quoted title and category), run the add script from the repo root. Do not edit video HTML in index.html by hand.

Command

node scripts/add-video.mjs "<URL>" ["Custom Title"] ["Category Name"]
  • URL: any YouTube format (watch?v=, youtu.be/, embed/)
  • Title: fetched from YouTube oEmbed unless overridden
  • Category: defaults to Deep Dives / Demos unless overridden

On success

Confirm the video title and that it is now Horizontal Video Card 1 (featured). Mention /git if the user wants to commit and open a PR.

On failure

Report the script error (stderr). Do not fall back to manual HTML edits.

Data source

Videos are stored newest-first in data/videos.json. The script updates JSON and regenerates the marked section in index.html via scripts/render-videos.mjs.

Rotation (unchanged)

PositionRole
JSON index 0Horizontal Card 1 (new video)
1Horizontal Card 2
2–4Small Cards 1–3
5+More section (archived)
Skills Info
Original Name:add-videoAuthor:jdorfman