kar2phi/video-lens

video-lens-gallery

Open or rebuild the video-lens gallery index — your personal library of saved video summaries.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/kar2phi/video-lens --skill video-lens-gallery

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

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:

bash
_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"

Each Bash call runs in a fresh shell, so $_sd and $_gd do not survive into the next steps. Keep the two printed paths and, where a command below shows SCRIPTS_DIR or GALLERY_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:

bash
python3 "GALLERY_DIR/backfill_meta.py" --dir ~/Downloads/video-lens --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:

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

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

Step 4 — Serve gallery

bash
bash "SCRIPTS_DIR/serve_report.sh" ~/Downloads/video-lens/index.html ~/Downloads/video-lens

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.

같은 저장소의 Skills

더 많은 Skills

모든 Skills