Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

video-lens-gallery

БесплатноЗапускает вложенные скриптыНе проверен

Open or rebuild the video-lens gallery index — your personal library of saved video summaries. Use this whenever the user wants to browse, open, or search…

kar2phiот kar2phi★ 143 звезды на GitHub

Об этом скилле

video-lens-gallery

Manage and browse your saved video-lens reports.

Step 1 — Locate skill scripts

Find both video-lens/scripts and video-lens-gallery/scripts with the standard 8-agent discovery loop:

_sd=$(for d in ~/.agents ~/.claude ~/.copilot ~/.gemini ~/.cursor ~/.windsurf ~/.opencode ~/.codex; do
  [ -d "$d/skills/video-lens/scripts" ] && echo "$d/skills/video-lens/scripts" && break
done)
_gd=$(for d in ~/.agents ~/.claude ~/.copilot ~/.gemini ~/.cursor ~/.windsurf ~/.opencode ~/.codex; do
  [ -d "$d/skills/video-lens-gallery/scripts" ] && echo "$d/skills/video-lens-gallery/scripts" && break
done)
[ -z "$_sd" ] && echo "video-lens skill not found — install it first: npx skills add kar2phi/video-lens" && exit 1
[ -z "$_gd" ] && echo "video-lens-gallery skill not found — install it first: npx skills add kar2phi/video-lens" && exit 1
echo "SCRIPTS_DIR: $_sd"; echo "GALLERY_DIR: $_gd"; echo "LIBRARY_DIR: $(python3 "$_sd/library.py")"

Each Bash call runs in a fresh shell, so $_sd and $_gd do not survive into the next steps. Keep the three printed paths and, where a command below shows SCRIPTS_DIR, GALLERY_DIR or LIBRARY_DIR, substitute the path as a literal, never as $VAR.

Step 2 — Backfill metadata (only if requested)

If the user's request mentions "backfill", run:

python3 "GALLERY_DIR/backfill_meta.py" --dir "LIBRARY_DIR" --channel-ids

--channel-ids adds channel ids to older reports by name; add --lookup when the user asks to fill the rest from YouTube (one yt-dlp call per channel).

Step 3 — Rebuild index

Check that the reports directory exists before running:

[ -d "LIBRARY_DIR" ] || { echo "No reports directory found — save some videos first with the video-lens skill."; exit 1; }
python3 "GALLERY_DIR/build_index.py" --dir "LIBRARY_DIR"

Tell the user the number of reports indexed, from the script's output.

Step 4 — Serve gallery

bash "SCRIPTS_DIR/serve_report.sh" "LIBRARY_DIR/index.html" "LIBRARY_DIR"

If serve_report.sh prints an ERROR: line (e.g. ERROR:SERVE_PORT_BUSY when port 8765 is held by another program), report the message and stop. Otherwise — confirmed by its HTML_REPORT: line — tell the user the gallery is now available at http://localhost:8765/index.html.

Установить video-lens-gallery в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read

Вложенные файлы

index.htmlscripts/backfill_meta.pyscripts/build_index.py

FAQ

Что делает скилл video-lens-gallery?

Open or rebuild the video-lens gallery index — your personal library of saved video summaries. Use this whenever the user wants to browse, open, or search saved video reports: "show my gallery", "open video library", "browse saved videos", "build gallery", "what videos have I saved", "show my video notes", "my video summaries", "find my saved summary for [topic]", "rebuild the index", "show video-lens index", "backfill metadata", "update index".

Как установить скилл video-lens-gallery?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл video-lens-gallery запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить video-lens-gallery с