Auto installer cài cái gì?Cài tự động module Asset Index — watcher chạy nền + DB SQLite + lệnh Search/Status. Đây là phần cốt lõi để mọi skills truy vấn asset bằng ngôn ngữ tự nhiên.Chưa bao gồm: Node.js cho render Remotion, AusyncLab cho voice TTS. Nếu muốn full pipeline → đọc Cài đặt đầy đủ.
Installer tự kiểm tra Python 3.10+ và
ffmpeg/ffprobe. Nếu thiếu sẽ in link cách cài (brew install ffmpeg / winget install Gyan.FFmpeg) và dừng. API keys (OpenAI + Gemini) sẽ được prompt trong quá trình cài — trình duyệt tự mở trang tạo key.Bước 1 — Tải repo về máy
Cách 1 — Git (khuyến nghị)
Cách 1 — Git (khuyến nghị)
Cần Git cài sẵn (
git --version). Nếu chưa có:- macOS:
xcode-select --install(Apple cài kèm Git CLI). - Windows:
winget install Git.Git. - Linux:
sudo apt install git/sudo dnf install git.
Cách 2 — Download ZIP
Cách 2 — Download ZIP
- Mở https://github.com/bachdyon/video-automator-skills.
- Click nút Code (xanh) → Download ZIP.
- Giải nén:
- macOS: double-click file
.ziptrong Finder. - Windows: chuột phải → Extract All….
- macOS: double-click file
- Đổi tên folder thành
video-automator-skills(bỏ hậu tố-mainnếu có).
Bước 2 — Mở folder & cài skill bên thứ ba
Repo có sẵn
AGENTS.md ở root + 13 project skills trong skills/<name>/SKILL.md. Codex, Cursor, Claude Code đều tự pickup khi mở folder. Bạn chỉ cần thêm 1 skill bên thứ ba $remotion-best-practices (cài bằng scripts/ensure-remotion-skill.sh) để render Remotion.Cursor (khuyến nghị)
Cursor (khuyến nghị)
-
Mở folder qua File → Open Folder…, hoặc CLI từ trong repo:
-
Cursor tự nhận
AGENTS.mdlàm workspace rule. Verify ở Settings → Rules → mục Project rules phải hiệnAGENTS.md. -
13 project skills nằm trong
skills/<name>/SKILL.mdđược tham chiếu qua$skill-nametừAGENTS.md— Cursor sẽ tự load đúngSKILL.mdkhi task trùng. -
Cài skill bên thứ ba
$remotion-best-practicesbằng terminal tích hợp (mở bằng phím tắt mở terminal trong Cursor):
Codex
Codex
-
Cài Codex CLI nếu chưa có:
-
cdvào folder repo và mở session:Codex tự đọcAGENTS.mdở root → pickup pipeline rule + danh sách 13 project skills ($asset-semantic-extractor,$video-creative-planner, …). -
Cài skill bên thứ ba
$remotion-best-practices:Script wrapnpx skills add remotion-dev/skills --yes, ghiskills-lock.jsonvà tạo symlink.claude/skills/remotion-best-practices(cho Claude Code dùng chung).
Claude Code
Claude Code
-
Cài Claude Code nếu chưa có:
-
cdvào folder repo và mở session:Claude tự discover.claude/skills/*/SKILL.md(đã symlink sangskills/và.agents/skills/remotion-best-practices). -
Trong session gõ
/skillsđể verify danh sách. Phải thấy đủ 13 skill, kể cảremotion-best-practices. -
Nếu thiếu
remotion-best-practices(chưa cài hoặc symlink bị xoá), chạy:Script tự tái tạo symlink.claude/skills/remotion-best-practices.
Bước 3 — Chạy installer
macOS
macOS
- Mở Finder, vào thư mục
video-automator-skillsvừa clone/giải nén. - Vào folder
setup/, double-clickInstall.command. - Khi terminal hiện, làm theo prompt:
- Trình duyệt tự mở 2 trang tạo key — copy về và dán vào terminal.
- Installer tự tạo
.venv, cài deps, đăng ký watcher chạy nền (launchd).
- Xong. Watcher chạy nền và tự bật lại sau khi reboot.
Windows
Windows
- Mở File Explorer, vào thư mục
video-automator-skillsvừa clone/giải nén → foldersetup\. - Double-click
Install.bat. - Khi PowerShell/cmd hiện, làm theo prompt:
- Trình duyệt tự mở 2 trang tạo key — copy về và dán vào terminal.
- Installer tự tạo
.venv, cài deps, đăng ký watcher chạy nền (Task Scheduler).
- Xong. Watcher chạy nền và tự bật lại sau khi đăng nhập lại.
Linux
Linux
Auto installer chỉ hỗ trợ macOS/Windows. Linux dùng Cài đặt đầy đủ.
Bước 4 — Sau khi cài
Thả file vào raw_assets/
Drop ảnh/video/audio vào một trong 3 folder:
raw_assets/images/raw_assets/videos/raw_assets/audio/
.asset_index/index.db.Tìm asset
macOS: double-click
setup/Search.command
Windows: double-click setup/Search.batGõ truy vấn tiếng Việt (ví dụ phong cảnh núi, người đang nói, nhạc buồn). Top 5 kết quả khớp ngữ nghĩa nhất sẽ hiện.Kiểm tra trạng thái watcher
macOS:
setup/Status.command
Windows: setup/Status.batOutput gồm pid, processed_count, last_error. Nếu pid rỗng → watcher chưa chạy, xem Khắc phục sự cố.Verify
Drop 1 file ảnh test vào
raw_assets/images/, đợi ~5 giây, chạy Search với từ khoá khớp nội dung ảnh. Phải trả về ≥ 1 kết quả. Nếu không → xem Khắc phục sự cố.Bước tiếp theo
Cài đầy đủ cho full pipeline
Thêm Node.js cho Remotion render và AusyncLab cho voice TTS.
Khám phá skills
Mỗi skill đóng gói 1 bước pipeline.
Cấu trúc dự án
Hiểu các thư mục
skills/, jobs/, tools/, raw_assets/.Nâng cao: Asset Index
CLI dev, idempotency, cross-platform notes.