Communitygithub.com

tpc-pascal/agent-skills

Xử lý media — ffprobe thông số, ffmpeg cắt/ghép/transcode/GIF, trích frame, tách audio, phụ đề (shift/convert/burn), timecode SMPTE, phát hiện shot, OCR frame/ảnh, tải từ URL (yt-dlp), nhạc (thể loại/mood/BPM/lyrics). Dùng khi đưa video/audio/ảnh/URL media và muốn tóm tắt nội dung, trích text, cắt ghép, làm phụ đề, lấy khung hình, hoặc tải xuống.

What is agent-skills?

agent-skills is a Claude Code agent skill that xử lý media — ffprobe thông số, ffmpeg cắt/ghép/transcode/GIF, trích frame, tách audio, phụ đề (shift/convert/burn), timecode SMPTE, phát hiện shot, OCR frame/ảnh, tải từ URL (yt-dlp), nhạc (thể loại/mood/BPM/lyrics). Dùng khi đưa video/audio/ảnh/URL media và muốn tóm tắt nội dung, trích text, cắt ghép, làm phụ đề, lấy khung hình, hoặc tải xuống.

Works with✓Claude Code~Codex CLI~Cursor✓OpenCode
npx skills add https://github.com/tpc-pascal/agent-skills/tree/HEAD/skills/research/media

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Bản tiếng Anh: SKILL.en.md

media — video / audio / ảnh / URL

Skill mỏng, không có code riêng: route tới CLI local (ffprobe, ffmpeg, yt-dlp) và skill bên thứ ba tải theo phiên (mediaskills, watch, music-listener) — xem mục fetch bên dưới.

Bảng route theo loại input

Nhận diện bằng ffprobe/file; URL thì tra tên file trả về.

Input + nhu cầuCông cụGhi chú
Thông số file mediaffprobe (local)không cần skill phiên
Video/URL muốn tóm tắt nội dungskill watch (claude-video)--engine local
Video/URL trích text (SRT/VTT)skill speech-captionstranscribe.py --model tiny; model lớn khi tai to
Phụ đề: shift/convert/burnskill subtitlesshift.py convert.py extract.py burn.py
Cắt/ghép/transcode, GIF, frame/audioskill video-transformationtrim.py trim_multi.py concat.py …
Phát hiện cắt/chuyển shotskill shotsdetect.py extract-frames.py
Phân tích nội dung frame (text trên màn hình)skill vision-analysisagent tự xem frame + script merge JSON
Ảnh/ảnh chụp màn hình: OCR/resize/convertskill imageocr.py (tesseract)
Audio: trim/normalize/silenceskill audio
Nghe nhạc từ URL/file, muốn lờiskill music-listenerfetch theo phiên, xem music-listener/scripts/
Tải media từ URLskill downloadurl.py (yt-dlp)
Timecode SMPTE, broadcast captionsskill timecode, skill captions-complianceđồng bộ caption theo TC
Thiếu ffprobe/tesseract/uv…skill install-media-toolsdoctor.sh kiểm tra, install.sh cài

Skill bên thứ ba theo phiên (fetch, không cài vĩnh viễn)

Repo này không chứa skill bên thứ ba. Tải về session temp:

  1. scripts/fetch-session.sh --list → xem tên; --skill <tên> hoặc --all — script sparse-clone repo nguồn đúng commit SHA, copy vào session temp.
  2. Dùng tại ~/.agents/skills/<tên>/scripts/ (hoặc ~/.config/opencode/skills/<tên>/…).
  3. Offline/mất mạng: thao tác trên file local chạy được nếu CLI và model cần thiết đã sẵn sàng. Tải skill theo phiên, tải URL và tải model chưa cache cần mạng; yt-dlp không tải URL khi offline.

Commit SHA + license của từng skill: bảng TABLE trong scripts/fetch-session.sh.

Quy tắc

  1. Output đặt cạnh nguồn: tóm tắt <tên>.digest.md, phụ đề <tên>.srt|.vtt, clip <tên>.clip-<t1>-<t2>.mp4. Không ghi đè file gốc.
  2. Timestamp/clip dùng frame thật — kiểm tra bằng ffprobe, không ước lượng.
  3. Verify trước khi giao: ffprobe file output phải mở được, thời lượng/codec đúng yêu cầu.
  4. Nhắc ngôn ngữ input — trả lời cùng ngôn ngữ người dùng nói.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

tpc-pascal/agent-skills

Vẽ sơ đồ và biểu đồ đẹp cho báo cáo — flowchart/sequence/class/state/ER/gantt bằng Mermaid (kroki.io, PNG), biểu đồ cột/tròn/line bằng matplotlib (uv), output `<tên>.diagram.png` cạnh nguồn để nhúng vào `.report.docx`. Dùng khi báo cáo cần sơ đồ thay cho ASCII, cần biểu đồ dữ liệu, hoặc user yêu cầu "sơ đồ đẹp".

tpc-pascal/agent-skills

Trích xuất và chuyển đổi tài liệu PDF/DOCX/XLSX — lấy text layer (pdftotext), OCR ảnh scan (pdftoppm + tesseract), chuyển markdown (docling), XLSX → CSV (libreoffice headless), ghép/tách/đảo trang (qpdf/pdftk), kiểm tra output bằng pdfinfo + pdftotext. Dùng khi đưa tài liệu và muốn lấy text, OCR bản scan, chuyển định dạng, tách/ghép/trang, hoặc xác minh nội dung đã trích.

tpc-pascal/agent-skills

Điều phối — nhận input, xác định loại, chuyển tiếp tới skill anh em trong repo — doc (tài liệu), media (video/audio/ảnh), paper (báo cáo), web (đọc web/mạng xã hội/tìm kiếm) — và mở cổng câu hỏi bắt buộc trước khi viết báo cáo. Dùng khi chưa biết skill nào xử lý input đang có, hoặc khi cần quy trình phối hợp nhiều skill.

tpc-pascal/agent-skills

Viết báo cáo theo một trong hai dạng: chuẩn quốc tế hoặc phổ biến tại Việt Nam. Tổng hợp nguồn có trích dẫn, giữ báo cáo chính gọn và tách dữ liệu hỗ trợ khi cần; xuất `.report.md` hoặc `.report.docx`.

Related Skills