sora
Skill này làm gì
Skill này hướng dẫn agent AI tạo các đoạn video ngắn bằng API Sora của OpenAI. Skill dành cho người làm nội dung và marketer cần video do AI tạo cho bản demo, quảng cáo hoặc các cảnh quay.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một đoạn video ngắn mới từ một prompt văn bản.
- ✓Khi bạn muốn thay đổi một video Sora đã có bằng cách phối lại từ ID video của nó.
- ✓Khi bạn cần kiểm tra trạng thái tác vụ hoặc tải video, ảnh thumbnail hay spritesheet.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/video/sora/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một video demo sản phẩm 10 giây bằng Sora rồi tải tệp về không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng công cụ dòng lệnh đi kèm để tạo tác vụ video, kiểm tra trạng thái và tải các tài nguyên đã hoàn thành.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Sora Video Generation Skill
Creates or manages short video clips for the current project (product demos, marketing spots, cinematic shots, UI mocks). Defaults to sora-2 and a structured prompt augmentation workflow, and prefers the bundled CLI for deterministic runs. Note: $sora is a skill tag in prompts, not a shell command.
When to use
- Generate a new video clip from a prompt
- Remix an existing video by ID
- Poll status, list jobs, or download assets (video/thumbnail/spritesheet)
- Batch runs (many prompts or variants)
Decision tree (create vs remix vs status/download vs batch)
- If the user has a video id and wants a change → remix
- If the user has a video id and wants status or assets → status/poll/download
- If the user needs many prompts/assets → create-batch
- If the user asks for two versions with a small change (same shot, different subject/detail) → create the base, then remix for the variation
- Otherwise → create (or create-and-poll if they need a ready asset in one step)
Workflow
- Decide intent: create vs remix vs status/download vs batch.
- Collect inputs: prompt, model, size, seconds, and any input reference image.
- If batch: write a temporary JSONL under tmp/ (one job per line), run once, then delete the JSONL.
- Prefer CLI augmentation flags (
--use-case,--scene,--camera, etc.) instead of pre-writing a structured prompt. If you already produced a structured prompt file, pass--no-augmentto avoid double-wrapping. - Run the bundled CLI (
scripts/sora.py) with sensible defaults (see references/cli.md). For long prompts, prefer--prompt-fileto avoid shell-escaping issues; pair with--no-augmentif the prompt is already structured. - For async jobs, poll until complete (or use create-and-poll).
- Download assets (video/thumbnail/spritesheet) and save locally.
- Remove intermediate files created during invocation (for example
prompt.txt,remix_job.json, temp JSONL). If the sandbox blocksrm, skip cleanup or truncate the files without surfacing an error. - Iterate with a single targeted change per prompt.
Authentication
OPENAI_API_KEYmust be set for live API calls.
If the key is missing, give the user these steps:
- Create an API key in the OpenAI platform UI: https://platform.openai.com/api-keys
- Set
OPENAI_API_KEYas an environment variable in their system. - Offer to guide them through setting the environment variable for their OS/shell if needed.
- Never ask the user to paste the full key in chat. Ask them to set it locally and confirm when ready.
Defaults & rules
- Default model:
sora-2(usesora-2-profor higher fidelity). - Default size:
1280x720. - Default seconds:
4(allowed: "4", "8", "12" as strings). - Always set size and seconds via API params; prose will not change them.
- Use the OpenAI Python SDK (
openaipackage); do not use raw HTTP. - Require
OPENAI_API_KEYbefore any live API call. - If uv cache permissions fail, set
UV_CACHE_DIR=/tmp/uv-cache. - Input reference images must be jpg/png/webp and should match target size.
- Download URLs expire after about 1 hour; copy assets to your own storage.
- Prefer the bundled CLI and never modify
scripts/sora.pyunless the user asks. - Sora can generate audio; if a user requests voiceover/audio, specify it explicitly in the
Audio:andDialogue:lines and keep it short.
API limitations
- Models are limited to
sora-2andsora-2-pro. - API access to Sora models requires an organization-verified account.
- Duration is limited to 4/8/12 seconds and must be set via the
secondsparameter. - The API expects
secondsas a string enum ("4", "8", "12"). - Output sizes are limited by model (see
references/video-api.mdfor the supported sizes). - Video creation is async; you must poll for completion before downloading.
- Rate limits apply by usage tier (do not list specific limits).
- Content restrictions are enforced by the API (see Guardrails below).
Guardrails (must enforce)
- Only content suitable for audiences under 18.
- No copyrighted characters or copyrighted music.
- No real people (including public figures).
- Input images with human faces are rejected.
Prompt augmentation
Reformat prompts into a structured, production-oriented spec. Only make implicit details explicit; do not invent new creative requirements.
Template (include only relevant lines):
Use case: <where the clip will be used>
Primar
Câu hỏi thường gặp
Tôi cần gì để sử dụng?
Bạn cần OPENAI_API_KEY và quyền truy cập API video Sora.
Tôi có thể làm nhiều video cùng lúc không?
Có. Skill hỗ trợ chạy theo lô từ một danh sách prompt.
Tôi có thể thay đổi video đã làm không?
Có. Skill bao gồm việc phối lại một video có sẵn bằng ID của nó.
Chi tiết
Mô tả gốc của tác giả
Use when the user asks to generate, remix, poll, list, download, or delete Sora videos via OpenAI\u2019s video API using the bundled CLI (`scripts/sora.py`), including requests like \u201cgenerate AI video,\u201d \u201cSora,\u201d \u201cvideo remix,\u201d \u201cdownload video/thumbnail/spritesheet,\u201d and batch video generation; requires `OPENAI_API_KEY` and Sora API access.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #9094
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
blender-motion-state-inspection
280kCho phép kiểm tra chi tiết trong hoạt ảnh 3D. Hữu ích để kiểm tra tư thế, chuyển động và độ thẳng hàng của nhân vật trong hoạt ảnh.
manim-video
280kGiúp agent tạo video giải thích hoạt hình. Dùng Manim để tạo biểu đồ và sơ đồ rõ ràng cho các khái niệm kỹ thuật.
remotion-video-creation
280kHướng dẫn agent tạo video bằng React với thư viện Remotion. Bao gồm các thực hành tốt nhất về hoạt ảnh, âm thanh, phụ đề và các yếu tố hình ảnh khác.