video-lens-gallery
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesevideo-lens-gallery
video-lens-gallery
Manage and browse your saved video-lens reports.
管理和浏览你已保存的video-lens报告。
Step 1 — Locate skill scripts
步骤1 — 定位skill脚本
Discover both () and () using the standard 8-agent discovery loop:
video-lens/scripts$_sdvideo-lens-gallery/scripts$_gdbash
_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使用标准8-agent发现循环查找()和():
video-lens/scripts$_sdvideo-lens-gallery/scripts$_gdbash
_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 1Step 2 — Backfill metadata (only if requested)
步骤2 — 回填元数据(仅在用户要求时执行)
If the user's request mentions "backfill", run:
bash
python3 "$_gd/backfill_meta.py" --dir ~/Downloads/video-lens如果用户的请求中提到"backfill",运行:
bash
python3 "$_gd/backfill_meta.py" --dir ~/Downloads/video-lensStep 3 — Rebuild index
步骤3 — 重建索引
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 "$_gd/build_index.py" --dir ~/Downloads/video-lensTell the user the number of reports indexed, from the script's output.
运行前先检查报告目录是否存在:
bash
[ -d ~/Downloads/video-lens ] || { echo "No reports directory found — save some videos first with the video-lens skill."; exit 1; }
python3 "$_gd/build_index.py" --dir ~/Downloads/video-lens根据脚本输出告知用户已索引的报告数量。
Step 4 — Serve gallery
步骤4 — 启动图库服务
bash
bash "$_sd/serve_report.sh" ~/Downloads/video-lens/index.html ~/Downloads/video-lensTell the user the gallery is now available at .
http://localhost:8765/index.htmlbash
bash "$_sd/serve_report.sh" ~/Downloads/video-lens/index.html ~/Downloads/video-lens告知用户图库现在可通过访问。
http://localhost:8765/index.html