sora
できること
このスキルは、OpenAIのSora APIを使って短い動画クリップを作る過程をAIに導きます。デモ、広告、カットの映像にAIで作った動画がほしいクリエイターやマーケター向けです。
使う場面
- ✓テキストのプロンプトから新しい短い動画クリップを生成したいとき。
- ✓既存のSora動画を、その動画IDを使ってリミックスし、変更したいとき。
- ✓ジョブの状態を確認したり、動画、サムネイル、スプライトシートをダウンロードしたりしたいとき。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/video/sora/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Soraで10秒の製品デモ動画を生成して、そのファイルをダウンロードしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、同梱のコマンドラインツールで動画のジョブを作成し、状態を確認して、完成したファイルをダウンロードします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
よくある質問
使うには何が必要ですか?
OPENAI_API_KEYと、Sora動画APIへのアクセスが必要です。
動画を一度に複数作れますか?
はい。プロンプトのリストから、一括での実行に対応しています。
すでに作った動画を変更できますか?
はい。動画のIDを使って、既存の動画をリミックスすることを扱います。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 33k
- ランキング
- #9094
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
owasp-security
33kエージェントがWebアプリ、API、モバイル、コンテナ、AIエージェント向けの OWASP のセキュリティ指針を理解し、よくある弱点を見つけて修正案を出せるよう支援します。
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。
似ているスキル
blender-motion-state-inspection
280k3Dアニメーションの細部を確認できるようにします。ポーズ、動き、キャラクターの位置合わせをチェックするのに役立ちます。
manim-video
280kエージェントがアニメーション付きの解説動画を作成するのを支援します。Manimを使い、技術的な概念を分かりやすく示すグラフや図を生成します。
remotion-video-creation
280kReactとライブラリの Remotion を使って、エージェントが動画を作成するためのガイドです。アニメーション、音声、字幕などの視覚要素に関するベストプラクティスを扱います。