Communitygithub.com

Anhvu1107/all-agent-skill

요청이 Videodb와 일치할 때 항상 사용합니다: 비디오 및 오디오 인식, 인덱싱, 편집.

all-agent-skill란 무엇인가요?

이 스킬은 VideoDB를 기반으로 비디오, 오디오, 라이브 스트림, 데스크톱 세션에 대한 포괄적인 인식, 인덱싱, 검색 및 편집 기능을 제공합니다. 개발자는 파일, URL 또는 데스크톱 캡처를 통해 미디어를 수집하고, 시각적, 음성, 키워드 인덱스를 구축하여 타임스탬프와 재생 가능한 증거 링크로 정확한 순간을 검색할 수 있습니다. 또한 자막 생성/번역/굽기, 오버레이 추가, 배경 음악 또는 음성 해설 삽입, 타임라인 편집 등 고급 편집 작업을 지원하며, RTSP 라이브 피드 연결 및 실시간 모니터링 알림도 가능합니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, 인라인 Python 코드나 heredoc 스크립트를 통해 간편하게 실행할 수 있습니다. 주의할 점은 로컬 인코딩 도구(ffmpeg 등) 대신 VideoDB의 서버 측 기능을 우선 사용해야 하며, 특정 제한 사항(전환, 속도 변경 등)에 대해서만 로컬 도구로 대체해야 합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Anhvu1107/all-agent-skill/tree/HEAD/.agent/skills/videodb

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

VideoDB Skill

선택적 읽기 규칙

다음부터 시작하세요:

  • references/senior-master-standard.md
  • references/usage-routing.md
  • references/quality-checklist.md

그 후 사용자의 실제 작업과 일치하는 상속된 문서, 스크립트, 에셋 또는 예제만 로드하세요.

비디오, 라이브 스트림 및 데스크톱 세션을 위한 인식 + 메모리 + 액션.

다음과 같은 경우 이 스킬을 사용하세요:

사용 시기

  • 파일, URL, 데스크톱 세션 또는 라이브 스트림에서 비디오 또는 오디오 인식, 인덱싱, 검색 또는 타임라인 편집이 필요한 경우.
  • 작업에 타임스탬프, 검색 가능한 증거, 자막, 클립, 오버레이 또는 실시간 모니터링 알림이 포함된 경우.
  • 수집, 이해, 검색 및 미디어 액션을 하나의 워크플로우로 결합하려는 경우.

1) 데스크톱 인식

  • 화면, 마이크 및 시스템 오디오를 캡처하는 데스크톱 세션 시작/중지
  • 라이브 컨텍스트 스트리밍 및 일화적 세션 메모리 저장
  • 화면에서 말하고 일어나는 일에 대한 실시간 알림/트리거 실행
  • 세션 요약, 검색 가능한 타임라인 및 재생 가능한 증거 링크 생성

2) 비디오 수집 + 스트림

  • 파일 또는 URL을 수집하고 재생 가능한 웹 스트림 링크 반환
  • 트랜스코딩/정규화: 코덱, 비트레이트, FPS, 해상도, 종횡비

3) 인덱스 + 검색 (타임스탬프 + 증거)

  • 시각적, 음성 및 키워드 인덱스 구축
  • 타임스탬프 및 재생 가능한 증거와 함께 정확한 순간 검색 및 반환
  • 검색 결과에서 자동으로 클립 생성

4) 타임라인 편집 + 생성

  • 자막: 생성, 번역, 굽기
  • 오버레이: 텍스트/이미지/브랜딩, 모션 캡션
  • 오디오: 배경 음악, 음성 해설, 더빙
  • 타임라인 작업을 통한 프로그래매틱 구성 및 내보내기

5) 라이브 스트림 (RTSP) + 모니터링

  • RTSP/라이브 피드 연결
  • 실시간 시각적 및 음성 이해 실행 및 모니터링 워크플로우를 위한 이벤트/알림 전송

일반적인 입력

  • 로컬 파일 경로, 공개 URL 또는 RTSP URL
  • 데스크톱 캡처 요청: 세션 시작 / 중지 / 요약
  • 원하는 작업: 이해를 위한 컨텍스트 가져오기, 트랜스코딩 사양, 인덱스 사양, 검색 쿼리, 클립 범위, 타임라인 편집, 알림 규칙

일반적인 출력

  • 스트림 URL
  • 타임스탬프 및 증거 링크가 포함된 검색 결과
  • 생성된 에셋: 자막, 오디오, 이미지, 클립
  • 라이브 스트림용 이벤트/알림 페이로드
  • 데스크톱 세션 요약 및 메모리 항목

정식 프롬프트 (예시)

  • "데스크톱 캡처를 시작하고 비밀번호 필드가 나타나면 알림을 보내줘."
  • "내 세션을 녹화하고 종료 시 실행 가능한 요약을 생성해줘."
  • "이 파일을 수집하고 재생 가능한 스트림 링크를 반환해줘."
  • "이 폴더를 인덱싱하고 사람이 있는 모든 장면을 찾아 타임스탬프를 반환해줘."
  • "자막을 생성하고, 굽고, 가벼운 배경 음악을 추가해줘."
  • "이 RTSP URL에 연결하고 사람이 구역에 들어오면 알림을 보내줘."

Python 코드 실행하기

VideoDB 코드를 실행하기 전에 프로젝트 디렉토리로 변경하고 환경 변수를 로드하세요:

from dotenv import load_dotenv
load_dotenv(".env")

import videodb
conn = videodb.connect()

이것은 다음에서 VIDEO_DB_API_KEY를 읽습니다:

  1. 환경 변수 (이미 내보낸 경우)
  2. 현재 디렉토리 프로젝트의 .env 파일

키가 없으면 videodb.connect()가 자동으로 AuthenticationError를 발생시킵니다.

짧은 인라인 명령으로 충분할 때 스크립트 파일을 작성하지 마세요.

인라인 Python (python -c "...")을 작성할 때는 항상 적절히 포맷된 코드를 사용하세요 — 문장을 구분하기 위해 세미콜론을 사용하고 읽기 쉽게 유지하세요. 약 3개 이상의 문장이면 대신 heredoc을 사용하세요:

python << 'EOF'
from dotenv import load_dotenv
load_dotenv(".env")

import videodb
conn = videodb.connect()
coll = conn.get_collection()
print(f"Videos: {len(coll.get_videos())}")
EOF

설정

사용자가 "setup videodb" 또는 유사한 요청을 할 때:

1. SDK 설치

pip install "videodb[capture]" python-dotenv

Linux에서 videodb[capture]가 실패하면 capture extra 없이 설치하세요:

pip install videodb python-dotenv

2. API 키 구성

사용자는 다음 방법 중 하나를 사용하여 VIDEO_DB_API_KEY를 설정해야 합니다:

  • 터미널에서 내보내기 (Claude 시작 전): export VIDEO_DB_API_KEY=your-key
  • 프로젝트 .env 파일: 프로젝트의 .env 파일에 VIDEO_DB_API_KEY=your-key 저장

https://console.videodb.io 에서 무료 API 키를 받으세요 (50회 무료 업로드, 신용카드 불필요).

직접 API 키를 읽거나, 쓰거나, 처리하지 마세요. 항상 사용자가 설정하도록 하세요.

빠른 참조

미디어 업로드

# URL
video = coll.upload(url="https://example.com/video.mp4")

# YouTube
video = coll.upload(url="https://www.youtube.com/watch?v=VIDEO_ID")

# 로컬 파일
video = coll.upload(file_path="/path/to/video.mp4")

트랜스크립트 + 자막

# force=True는 이미 비디오가 인덱싱된 경우 오류를 건너뜁니다
video.index_spoken_words(force=True)
text = video.get_transcript_text()
stream_url = video.add_subtitle()

비디오 내 검색

from videodb.exceptions import InvalidRequestError

video.index_spoken_words(force=True)

# search()는 결과가 없을 때 InvalidRequestError를 발생시킵니다.
# 항상 try/except로 감싸고 "No results found"를 빈 결과로 처리하세요.
try:
    results = video.search("product demo")
    shots = results.get_shots()
    stream_url = results.compile()
except InvalidRequestError as e:
    if "No results found" in str(e):
        shots = []
    else:
        raise

장면 검색

import re
from videodb import SearchType, IndexType, SceneExtractionType
from videodb.exceptions import InvalidRequestError

# index_scenes()에는 force 매개변수가 없습니다 — 장면 인덱스가 이미 존재하면 오류를 발생시킵니다.
# 오류에서 기존 인덱스 ID를 추출하세요.
try:
    scene_index_id = video.index_scenes(
        extraction_type=SceneExtractionType.shot_based,
        prompt="Describe the visual content in this scene.",
    )
except Exception as e:
    match = re.search(r"id\s+([a-f0-9]+)", str(e))
    if match:
        scene_index_id = match.group(1)
    else:
        raise

# score_threshold를 사용하여 낮은 관련성의 잡음을 필터링하세요 (권장: 0.3+)
try:
    results = video.search(
        query="person writing on a whiteboard",
        search_type=SearchType.semantic,
        index_type=IndexType.scene,
        scene_index_id=scene_index_id,
        score_threshold=0.3,
    )
    shots = results.get_shots()
    stream_url = results.compile()
except InvalidRequestError as e:
    if "No results found" in str(e):
        shots = []
    else:
        raise

타임라인 편집

중요: 타임라인을 만들기 전에 항상 타임스탬프의 유효성을 검사하세요:

  • start >= 0 (음수 값은 자동으로 수락되지만 깨진 출력을 생성합니다)
  • start < end
  • end <= video.length
from videodb.timeline import Timeline
from videodb.asset import VideoAsset, TextAsset, TextStyle

timeline = Timeline(conn)
timeline.add_inline(VideoAsset(asset_id=video.id, start=10, end=30))
timeline.add_overlay(0, TextAsset(text="The End", duration=3, style=TextStyle(fontsize=36)))
stream_url = timeline.generate_stream()

비디오 트랜스코딩 (해상도/품질 변경)

from videodb import TranscodeMode, VideoConfig, AudioConfig

# 서버 측에서 해상도, 품질 또는 종횡비 변경
job_id = conn.transcode(
    source="https://example.com/video.mp4",
    callback_url="https://example.com/webhook",
    mode=TranscodeMode.economy,
    video_config=VideoConfig(resolution=720, quality=23, aspect_ratio="16:9"),
    audio_config=AudioConfig(mute=False),
)

종횡비 재구성 (사회 플랫폼용)

경고: reframe()은 느린 서버 측 작업입니다. 긴 비디오의 경우 몇 분이 걸리고 시간 초과될 수 있습니다. 모범 사례:

  • 가능하면 항상 start/end를 사용하여 짧은 세그먼트로 제한하세요.
  • 전체 길이 비디오의 경우 비동기 처리를 위해 callback_url을 사용하세요.
  • 먼저 Timeline에서 비디오를 자른 다음, 더 짧은 결과를 재구성하세요.
from videodb import ReframeMode

# 항상 짧은 세그먼트를 재구성하는 것을 선호하세요:
reframed = video.reframe(start=0, end=60, target="vertical", mode=ReframeMode.smart)

# 전체 길이 비디오의 비동기 재구성 (None 반환, webhook을 통한 결과):
video.reframe(target="vertical", callback_url="https://example.com/webhook")

# 프리셋: "vertical" (9:16), "square" (1:1), "landscape" (16:9)
reframed = video.reframe(start=0, end=60, target="square")

# 사용자 정의 치수
reframed = video.reframe(start=0, end=60, target={"width": 1280, "height": 720})

생성 미디어

image = coll.generate_image(
    prompt="a sunset over mountains",
    aspect_ratio="16:9",
)

오류 처리

from videodb.exceptions import AuthenticationError, InvalidRequestError

try:
    conn = videodb.connect()
except AuthenticationError:
    print("Check your VIDEO_DB_API_KEY")

try:
    video = coll.upload(url="https://example.com/video.mp4")
except InvalidRequestError as e:
    print(f"Upload failed: {e}")

일반적인 함정

시나리오오류 메시지해결 방법
이미 인덱싱된 비디오 인덱싱Spoken word index for video already existsvideo.index_spoken_words(force=True) 사용하여 이미 인덱싱된 경우 건너뛰기
장면 인덱스 이미 존재Scene index with id XXXX already existsre.search(r"id\s+([a-f0-9]+)", str(e))로 오류에서 기존 scene_index_id 추출
검색 결과 없음InvalidRequestError: No results found예외를 잡아 빈 결과(shots = [])로 처리
재구성 시간 초과긴 비디오에서 무기한 차단start/end로 세그먼트 제한 또는 비동기를 위해 callback_url 전달
타임라인의 음수 타임스탬프조용히 깨진 스트림 생성VideoAsset 생성 전에 항상 start >= 0 확인
generate_video() / create_collection() 실패Operation not allowed 또는 maximum limit요금제 제한 기능 — 사용자에게 요금제 제한 정보 안내

추가 문서

참조 문서는 이 SKILL.md 파일과 같은 디렉토리의 reference/ 폴더에 있습니다. 필요한 경우 Glob 도구를 사용하여 찾으세요.

화면 녹화 (데스크톱 캡처)

녹화 세션 중 WebSocket 이벤트를 캡처하려면 ws_listener.py를 사용하세요. 데스크톱 캡처는 macOS만 지원합니다.

빠른 시작

  1. 리스너 시작: python scripts/ws_listener.py &
  2. WebSocket ID 가져오기: cat /tmp/videodb_ws_id
  3. 캡처 코드 실행 (전체 워크플로우는 reference/capture.md 참조)
  4. 이벤트 기록 위치: /tmp/videodb_events.jsonl

이벤트 쿼리

import json
events = [json.loads(l) for l in open("/tmp/videodb_events.jsonl")]

# 모든 트랜스크립트 가져오기
transcripts = [e["data"]["text"] for e in events if e.get("channel") == "transcript"]

# 마지막 5분의 시각적 설명 가져오기
import time
cutoff = time.time() - 300
recent_visual = [e for e in events 
                 if e.get("channel") == "visual_index" and e["unix_ts"] > cutoff]

유틸리티 스크립트

전체 캡처 워크플로우는 reference/capture.md를 참조하세요.

VideoDB가 작업을 지원하는 경우 ffmpeg, moviepy 또는 로컬 인코딩 도구를 사용하지 마세요. 다음은 모두 VideoDB에서 서버 측에서 처리합니다: 트리밍, 클립 결합, 오디오 또는 음악 오버레이, 자막 추가, 텍스트/이미지 오버레이, 트랜스코딩, 해상도 변경, 종횡비 변환, 플랫폼 요구 사항에 맞게 크기 조정, 전사 및 미디어 생성. reference/editor.md의 제한 사항(전환, 속도 변경, 자르기/확대, 색상 보정, 볼륨 믹싱)에 나열된 작업에 대해서만 로컬 도구를 사용하세요.

무엇을 언제 사용할지

문제VideoDB 솔루션
플랫폼이 비디오 종횡비 또는 해상도를 거부함video.reframe() 또는 VideoConfig를 사용한 conn.transcode()
Twitter/Instagram/TikTok용 비디오 크기 조정 필요video.reframe(target="vertical") 또는 target="square"
해상도 변경 필요 (예: 1080p → 720p)VideoConfig(resolution=720)을 사용한 conn.transcode()
비디오에 오디오/음악 오버레이 필요Timeline의 AudioAsset
자막 추가 필요video.add_subtitle() 또는 CaptionAsset
클립 결합/트리밍 필요Timeline의 VideoAsset
음성 해설, 음악 또는 SFX 생성 필요coll.generate_voice(), generate_music(), generate_sound_effect()

저장소

https://github.com/video-db/skills

유지 관리자: VideoDB

제한 사항

  • 이 스킬은 작업이 위에서 설명한 범위와 명확하게 일치하는 경우에만 사용하십시오.
  • 출력물을 환경별 검증, 테스트 또는 전문가 검토의 대체물로 취급하지 마십시오.
  • 필수 입력, 권한, 안전 경계 또는 성공 기준이 누락된 경우 중단하고 설명을 요청하십시오.

Individual skills in this repo

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

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches 007: Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Agentfolio: Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Animejs Animation: Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astropy: Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astro: Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Emotional ARC Designer: One sentence - what this skill does and when to invoke it

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Fixing Motion Performance: Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches I18n Localization: Internationalization and localization patterns.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Interactive Portfolio: Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches JQ: Expert jq usage for JSON querying, filtering, transformation, and pipeline integration.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Landing Page Generator: Generates high-converting Next.js/React landing pages with Tailwind CSS.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches LEX: Centralized ''Truth Engine'' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Magic Animator: AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Makepad Animation: CRITICAL: Use for Makepad animation system.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs APP Router Patterns: Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Anhvu1107/all-agent-skill

ALWAYS use this when the user mentions Nextjs Best Practices, asks to build, debug, review, document, automate, test, configure, migrate, or make decisions in this domain, or the task clearly depends on Nextjs Best Practices; scope: Next.js App Router principles. Apply the bundled workflow, references, scripts, Senior Master standard, and Codex strict review gate before final output.

Anhvu1107/all-agent-skill

description: ALWAYS use this when the work is specifically about modern Next.js or React architecture, data flow, rendering strategy, routing, or performance-sensitive frontend behavior.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs Supabase Auth: Expert integration of Supabase Auth with Next.js App Router

Anhvu1107/all-agent-skill

ALWAYS use this when the task involves reading, extracting, splitting, merging, rotating, creating, validating, OCR-ing, form-filling, or otherwise producing or modifying PDF files.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches React Nextjs Development: React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

관련 스킬