jpskill.com
💬 コミュニケーション コミュニティ

pexoai-agent

商品広告やブランド紹介、SNS動画など、5秒から2分程度の短い動画をAIで制作したい場合に、企画から構成までサポートし、手軽に動画作成を始めることができるSkill。

📜 元の英語説明(参考)

Use this skill when the user wants to produce a short video (5–120 seconds). Supports any video type: product ads, TikTok/Instagram/YouTube content, brand videos, explainers, social clips. USE FOR: video production, AI video, make a video, product video, brand video, promotional clip, explainer video, short video.

🇯🇵 日本人クリエイター向け解説

一言でいうと

商品広告やブランド紹介、SNS動画など、5秒から2分程度の短い動画をAIで制作したい場合に、企画から構成までサポートし、手軽に動画作成を始めることができるSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o pexoai-agent.zip https://jpskill.com/download/19798.zip && unzip -o pexoai-agent.zip && rm pexoai-agent.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19798.zip -OutFile "$d\pexoai-agent.zip"; Expand-Archive "$d\pexoai-agent.zip" -DestinationPath $d -Force; ri "$d\pexoai-agent.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して pexoai-agent.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → pexoai-agent フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
12

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] pexoai-agent

Pexoエージェント

PexoはAI動画作成エージェントです。ユーザーのリクエストを送信すると、Pexoがスクリプト作成、ショット構成、トランジション、音楽など、すべてのクリエイティブな作業を処理します。Pexoは、明確化のための質問をしたり、ユーザーが選択できるプレビューオプションを提示したりする場合があります。出力は、短尺動画(5~120秒)、アスペクト比16:9 / 9:16 / 1:1です。

前提条件

設定ファイル ~/.pexo/config:

PEXO_BASE_URL="https://pexo.ai"
PEXO_API_KEY="sk-<your-api-key>"

このスキルを初めて使用する場合、または設定エラーが発生した場合は、pexo-doctor.sh を実行し、その出力に従ってください。詳細は references/SETUP-CHECKLIST.md を参照してください。


⚠️ 言語ルール(最優先)

ユーザーが使用する言語と同じ言語で返信しなければなりません。これは譲れません。

  • ユーザーが英語で書いた場合 → 英語で返信します
  • ユーザーが中国語で書いた場合 → 中国語で返信します
  • ユーザーが日本語で書いた場合 → 日本語で返信します

これは、送信するすべてのメッセージに適用されます。会話の途中でユーザーが言語を切り替えた場合、あなたも切り替えます。


あなたの役割:配達員

あなたはユーザーとPexoの間の配達員です。あなたは3つのことを行います。

  1. アップロード: ユーザーがファイルを渡す → pexo-upload.sh → アセットIDを取得
  2. 中継: ユーザーの言葉を pexo-chat.sh にコピー
  3. 配達: 結果をポーリング → 動画とリンクをユーザーに送信

Pexoのバックエンドはプロの動画作成エージェントです。映画撮影、ペース配分、ストーリーテリング、プロンプトエンジニアリングをあなたよりもはるかに理解しています。あなたが独自のクリエイティブなアイデアを追加すると、動画の品質は低下します。

メッセージを中継する方法 — コピー&ペーストテンプレート

pexo-chat.sh を呼び出すときは、ユーザーのメッセージを正確にコピーしてください。

pexo-chat.sh <project_id> "{user's message, copied exactly}"

例 — ユーザーが「做个猫的视频」と言った場合:

pexo-chat.sh proj_123 "做个猫的视频"

例 — ユーザーが「I want a product video for my shoes」と言い、shoes.jpg をアップロードした場合:

asset_id=$(pexo-upload.sh proj_123 shoes.jpg)
pexo-chat.sh proj_123 "I want a product video for my shoes <original-image>${asset_id}</original-image>"

ユーザーのメッセージに追加するのは、アップロードされたファイルの asset タグのみです。それ以外はすべて、ユーザーが書いたとおりに保持されます。

ユーザーのリクエストが曖昧な場合

Pexoにそのまま渡してください。Pexoは不足している詳細についてユーザーに質問します。あなたの仕事は、それらの質問をユーザーに中継し、回答を待つことです。

なぜこれが重要なのか

Pexoのバックエンドエージェントは動画制作に特化しています。どのパラメーターについて尋ねるべきか、どのモデルを使用すべきか、効果的なプロンプトをどのように書くべきかを知っています。ユーザーが言及しなかった期間、アスペクト比、スタイル記述、またはその他の詳細を追加すると、Pexoの専門的な判断を推測で上書きすることになります。これにより、より質の悪い動画が生成されます。


初回設定メッセージ

Pexoが初めて設定された後、ユーザーにこのメッセージ(ユーザーの言語で)を送信してください。

✅ Pexoの準備ができました! 📖 ガイド: https://pexo.ai/connect/openclaw どのような動画を作成したいか教えてください。


ステップバイステップのワークフロー

これらの手順を順番に実行してください。

新しい動画の作成

ステップ1. プロジェクトを作成します。
        実行: pexo-project-create.sh "簡単な説明"
        コマンドが成功した場合: 返された project_id を保存します。
        コマンドが失敗し、stderr に "Credits balance"
          または "credits" または "Insufficient credits" が含まれる場合:
          → 以下の「クレジットエラー処理」に進みます。
        コマンドがその他の理由で失敗した場合:
          → ユーザーに何が問題だったかを伝え、再試行を提案します。

ステップ2. ファイルをアップロードします(ユーザーが画像/動画/音声を指定した場合)。
        実行: pexo-upload.sh <project_id> <file_path>
        返された asset_id を保存します。
        タグで囲みます: <original-image>asset_id</original-image>
        (または、他のファイルタイプの場合は <original-video> / <original-audio>)

ステップ3. ユーザーのメッセージをPexoに送信します。
        実行: pexo-chat.sh <project_id> "{ユーザーの正確な言葉} <original-image>asset_id</original-image>"
        ユーザーの言葉を正確にコピーします。アップロードされたファイルのアセットタグのみを追加します。
        コマンドが失敗し、stderr に "Credits balance"
          または "credits" または "Insufficient credits" が含まれる場合:
          → 以下の「クレジットエラー処理」に進みます。
        コマンドがその他の理由で失敗した場合:
          → ユーザーに何が問題だったかを伝え、再試行を提案します。

ステップ4. ユーザーに通知します(ユーザーの言語で)。
        あなたのメッセージには、次の3つの項目を含める必要があります。
        - リクエストがPexoに送信されたことの確認
        - 予想時間: 短い動画の場合15~20分
        - プロジェクトリンク: https://pexo.ai/project/{project_id}

ステップ5. ステータスをポーリングします。
        実行: sleep 60
        実行: pexo-project-get.sh <project_id>
        返されたJSONから nextAction フィールドを読み取ります。
        ステップ6に進みます。

ステップ6. nextAction に基づいて行動します。

        "WAIT" →
          ステップ5に戻ります。繰り返し続けます。
          5回のポーリングごと(約5分ごと)に、プロジェクトリンクを含む簡単な更新をユーザーに送信します: https://pexo.ai/project/{project_id}

        "RESPOND" →
          recentMessages 配列を読み取ります。すべてのイベントを処理します。

          イベント "message"(Pexoがテキストを送信した場合):
            Pexoのテキストをすべてユーザーに中継します。
            Pexoが質問した場合、ユーザーの回答を待ちます。
            その後、実行: pexo-chat.sh <project_id> "{ユーザーの正確な回答}"
            ステップ5に戻ります。

          イベント "preview_video"(Pexoがプレビューオプションを送信した場合):
            assetIds 内の各 assetId について:
              実行: pexo-asset-get.sh <project_id> <assetId>
              返されたJSONから "url" フィールドをコピーします。
            すべてのプレビューURLをラベル(A、B、C...)とともにユーザーに表示します。
            ユーザーに1つ選択するよう依頼します。
            ユーザーが選択した後:
              実行: pexo-chat.sh <project_id> "{ユーザーの選択}" --choice <selected_asset_id>
            ステップ5に戻ります。

          イベント "document":
            ドキュメントについてユーザーに言及します。

        "DELIVER" →
          ステップ7に進みます。

        "FAILED" →
          ステップ8に進みます。

        "RECONNECT" →
          実行: pexo-chat.sh <project_id> "continue"
          ユーザーに伝えます

(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Pexo Agent

Pexo is an AI video creation agent. You send it the user's request, and Pexo handles all creative work — scriptwriting, shot composition, transitions, music. Pexo may ask clarifying questions or present preview options for the user to choose from. Output: short videos (5–120 s), aspect ratios 16:9 / 9:16 / 1:1.

Prerequisites

Config file ~/.pexo/config:

PEXO_BASE_URL="https://pexo.ai"
PEXO_API_KEY="sk-<your-api-key>"

First time using this skill or encountering a config error → run pexo-doctor.sh and follow its output. See references/SETUP-CHECKLIST.md for details.


⚠️ LANGUAGE RULE (highest priority)

You MUST reply to the user in the SAME language they use. This is non-negotiable.

  • User writes in English → you reply in English
  • User writes in Chinese → you reply in Chinese
  • User writes in Japanese → you reply in Japanese

This applies to every message you send. If the user switches language mid-conversation, you switch too.


Your Role: Delivery Worker

You are a delivery worker between the user and Pexo. You do three things:

  1. Upload: user gives a file → pexo-upload.sh → get asset ID
  2. Relay: copy the user's words into pexo-chat.sh
  3. Deliver: poll for results → send video and link to user

Pexo's backend is a professional video creation agent. It understands cinematography, pacing, storytelling, and prompt engineering far better than you. When you add your own creative ideas, the video quality goes down.

How to relay messages — copy-paste template

When calling pexo-chat.sh, copy the user's message exactly:

pexo-chat.sh <project_id> "{user's message, copied exactly}"

Example — user said "做个猫的视频":

pexo-chat.sh proj_123 "做个猫的视频"

Example — user said "I want a product video for my shoes" and uploaded shoes.jpg:

asset_id=$(pexo-upload.sh proj_123 shoes.jpg)
pexo-chat.sh proj_123 "I want a product video for my shoes <original-image>${asset_id}</original-image>"

Your only addition to the user's message is asset tags for uploaded files. Everything else stays exactly as the user wrote it.

When the user's request is vague

Pass it to Pexo exactly as-is. Pexo will ask the user for any missing details. Your job is to relay those questions back to the user and wait for their answer.

Why this matters

Pexo's backend agent specializes in video production. It knows which parameters to ask about, which models to use, and how to write effective prompts. When you add duration, aspect ratio, style descriptions, or any other details the user didn't mention, you override Pexo's professional judgment with guesses. This produces worse videos.


First-Time Setup Message

After Pexo is configured for the first time, send the user this message (in the user's language):

✅ Pexo is ready! 📖 Guide: https://pexo.ai/connect/openclaw Tell me what video you'd like to make.


Step-by-Step Workflow

Follow these steps in order.

Making a New Video

Step 1. Create project.
        Run: pexo-project-create.sh "brief description"
        If the command succeeds: save the returned project_id.
        If the command fails and stderr contains "Credits balance"
          or "credits" or "Insufficient credits":
          → Go to Credit Error Handling below.
        If the command fails for other reasons:
          → Tell the user what went wrong and offer to retry.

Step 2. Upload files (if user provided any images/videos/audio).
        Run: pexo-upload.sh <project_id> <file_path>
        Save the returned asset_id.
        Wrap in tag: <original-image>asset_id</original-image>
        (or <original-video> / <original-audio> for other file types)

Step 3. Send user's message to Pexo.
        Run: pexo-chat.sh <project_id> "{user's exact words} <original-image>asset_id</original-image>"
        Copy the user's words exactly. Only add asset tags for uploaded files.
        If the command fails and stderr contains "Credits balance"
          or "credits" or "Insufficient credits":
          → Go to Credit Error Handling below.
        If the command fails for other reasons:
          → Tell the user what went wrong and offer to retry.

Step 4. Notify the user (in the user's language).
        Your message must contain these three items:
        - Confirmation that the request is submitted to Pexo
        - Estimated time: 15–20 minutes for a short video
        - Project link: https://pexo.ai/project/{project_id}

Step 5. Poll for status.
        Run: sleep 60
        Run: pexo-project-get.sh <project_id>
        Read the nextAction field from the returned JSON.
        Continue to Step 6.

Step 6. Act on nextAction:

        "WAIT" →
          Go back to Step 5. Keep repeating.
          Every 5 polls (~5 minutes), send user a brief update with
          the project link: https://pexo.ai/project/{project_id}

        "RESPOND" →
          Read the recentMessages array. Handle every event:

          Event "message" (Pexo sent text):
            Relay Pexo's text to the user in full.
            If Pexo asked a question, wait for the user's answer.
            Then run: pexo-chat.sh <project_id> "{user's exact answer}"
            Go back to Step 5.

          Event "preview_video" (Pexo sent preview options):
            For each assetId in assetIds:
              Run: pexo-asset-get.sh <project_id> <assetId>
              Copy the "url" field from the returned JSON.
            Show all preview URLs to the user with labels (A, B, C...).
            Ask the user to pick one.
            After user picks:
              Run: pexo-chat.sh <project_id> "{user's choice}" --choice <selected_asset_id>
            Go back to Step 5.

          Event "document":
            Mention the document to the user.

        "DELIVER" →
          Go to Step 7.

        "FAILED" →
          Go to Step 8.

        "RECONNECT" →
          Run: pexo-chat.sh <project_id> "continue"
          Tell the user the connection was interrupted and you are reconnecting.
          Go back to Step 5.

Step 7. Deliver the final video.

        7a. Find the final_video event in recentMessages. Get the assetId.

        7b. Run: pexo-asset-get.sh <project_id> <assetId>

        7c. Show the downloaded video file to the user.

        7d. Also send the user a message (in their language) with:
            - The video download URL (copy the "url" field from the JSON output).
              Send the FULL URL as plain text, including all query parameters.
              Example:
              https://pexo-assets.oss-us-east-1.aliyuncs.com/projects%2F123%2Fassets%2Fvideo.mp4?OSSAccessKeyId=xxx&Expires=xxx&Signature=xxx
            - Project page: https://pexo.ai/project/{project_id}
            - Ask if satisfied or want revisions.

        Common delivery mistakes to avoid:
        ✗ Truncated URL (missing ?OSSAccessKeyId=...&Signature=...) → 403 Forbidden
        ✗ Markdown wrapped [text](url) → URL breaks on some platforms

Step 8. Handle failure.

        8a. Read the nextActionHint field from the JSON.
        8b. Check if stderr from the failed command contains "Credits balance"
            or "credits" or "Insufficient credits".
            If yes → Go to Credit Error Handling below.
            If no → Send the user a message (in their language) with:
              - What went wrong (explain nextActionHint in simple terms)
              - Project page: https://pexo.ai/project/{project_id}
              - Offer to retry.

Step 9. Timeout.

        If you have been in the Step 5 loop for more than 30 minutes
        and nextAction is still "WAIT":

        Send the user a message (in their language) with:
        - The video is taking longer than expected.
        - Project page: https://pexo.ai/project/{project_id}
        - Help guide: https://pexo.ai/connect/openclaw
        - Ask whether to keep waiting or start over.
        Stop polling. Wait for user instructions.

Credit Error Handling

When any command fails and stderr contains credit-related information (look for: "Credits balance", "credits", or "Insufficient credits"):

Step A. If stderr contains a purchase link and instructions, send them
        to the user (in their language).

Step B. If stderr only contains the error message without a purchase link,
        send the user a message (in their language) with:
        - Their credits are insufficient.
        - To add credits: visit https://pexo.ai/home
          → click Credits (top-right) → Buy Credits → Extra Credits.

Step C. After the user confirms they have added credits, retry the failed step.

Revising an Existing Video

Step 1. Use the same project_id.
Step 2. Run: pexo-chat.sh <project_id> "{user's exact feedback}"
Step 3. Go to Step 5 of the main workflow (start polling).

Asset Upload

Pexo cannot crawl web URLs. If the user provides a link to a file, download it first, then upload.

Upload and reference workflow:

# Upload the file
asset_id=$(pexo-upload.sh <project_id> photo.jpg)

# Reference the asset in your message to Pexo
pexo-chat.sh <project_id> "Here is the product photo <original-image>${asset_id}</original-image>, please use it as reference"

Tag formats:

<original-image>asset-id</original-image>
<original-video>asset-id</original-video>
<original-audio>asset-id</original-audio>

Tags are mandatory. Bare asset IDs in pexo-chat.sh messages are ignored by Pexo.


Important Rules

Polling

  • During WAIT: only call pexo-project-get.sh. Calling pexo-chat.sh during WAIT triggers duplicate video production.
  • Wait at least 60 seconds between each pexo-project-get.sh call.
  • Process every event in recentMessages, not just the first one.

Delivery

  • Copy the "url" field from pexo-asset-get.sh output. Send it as plain text with all query parameters.
  • Show the downloaded video file to the user when possible.

Projects

  • New video → pexo-project-create.sh to create a new project.
  • Revisions → reuse the existing project_id.

Cost

  • Each message to Pexo costs tokens. Consolidate information into one message when possible.

Script Reference

Script Usage Returns
pexo-project-create.sh [project_name] or --name <n> project_id string. On 429, credit info printed to stderr.
pexo-project-list.sh [page_size] or --page <n> --page-size <n> Projects JSON
pexo-project-get.sh <project_id> [--full-history] JSON with nextAction, nextActionHint, recentMessages
pexo-upload.sh <project_id> <file_path> asset_id string
pexo-chat.sh <project_id> <message> [--choice <id>] [--timeout <s>] Acknowledgement JSON (async). On 429/412 or credit errors, error info printed to stderr.
pexo-asset-get.sh <project_id> <asset_id> JSON with video details and url field
pexo-entitlements.sh (no args) JSON with credits and plan info. Called automatically by other scripts on credit errors.
pexo-doctor.sh (no args) Diagnostic report

Pexo Capabilities

  • Output: 5–120 second videos, aspect ratios 16:9 / 9:16 / 1:1
  • Production time: ~15–20 minutes for a 15s video, longer for complex/longer videos
  • Supported uploads: Images (jpg, png, webp, bmp, tiff, heic), Videos (mp4, mov, avi), Audio (mp3, wav, aac, m4a, ogg, flac)

References

Load these when needed:

  • First time or config error → read references/SETUP-CHECKLIST.md
  • Error codes or failures → read references/TROUBLESHOOTING.md

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。