Communitygithub.com

AI エディット:Higgsfield 生成映像追加

Higgsfield を用いて新しい映像素材を生成し、タイムラインに追加します。生成前に必ず料金を提示し、ユーザーの承諾を得た上で、映像をダウンロードして「生成」トラックに配置します。モーショントランスファー、テキスト→動画、画像→動画、テキスト→画像の4種類に対応しています。

AI エディット:Higgsfield 生成映像追加 とは?

このスキルは、動画編集 AI エージェント(Claude Code 等)向けに設計されたツールで、Higgsfield AI プラットフォームを利用して新しい映像素材を生成し、編集中のプロジェクトタイムラインに直接追加します。対応する生成モードは、ユーザーの動画クリップに別のキャラクターやスタイルの動作を移植するモーショントランスファー、文から Bロール動画を生成するテキスト→動画、静止画を動かす画像→動画、カード用の静止画を生成するテキスト→画像の4種類です。各生成前に金額を事前見積もりし、ユーザーに承諾を得てから実行します。予算上限機能もあり、月間使用額を制御できます。生成結果はプロジェクトの `generated/` フォルダに自動ダウンロードされ、タイムラインの「生成」トラックに追加されます。エラーや不適切コンテンツ(NSFW)の場合は課金されず、プロンプトの修正を提案します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Conz-Wilts/ai-editor/tree/HEAD/.claude/skills/generate

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

生成

パス:${CLAUDE_SKILL_DIR} はこの SKILL.md が存在するフォルダ、${CLAUDE_SKILL_DIR}/../.. はエディタフォルダ(このリポジトリの .claude/)の2階層上を示します。

ユーザーへの質問はすべて質問ボックスを使用します:AskUserQuestion ツールを呼び出してください(2~4択、推奨オプションを先頭に)。そのツールがないエージェントでは、番号付きでテキスト質問をしてください。

G="${CLAUDE_SKILL_DIR}/../../lib/ai_editor/gen/gen.py"。python3(Windows では py)で実行します。各モデル、その入力と制限は gen.py models(lib/ai_editor/gen/models.json から)にあります。モデル ID やパラメータを推測しないでください。API の事実と未検証情報:references/higgsfield-api.md

ルール

  • 料金発生はその価格に対する承諾の後でのみ。 常に最初に estimate を実行し、表示されたドル額(ASK: 行)を質問として提示し、ユーザーが承諾した場合のみ submit --confirm <estimate id> を実行します。新しい価格(見積もりが30分以上経過した、または submit が価格変更を通知した場合)は、新たな質問が必要です。
  • ユーザーの映像は同意なしにコンピュータから送信されません。 ユーザーの動画のクリップまたはフレームは submit 時に Higgsfield にアップロードされます。その旨を価格と同じ質問で伝えてください。
  • チャットでキーを決して尋ねないでください。 キーがない場合:ユーザー自身のターミナルで python3 "$G" setkey を実行するよう指示してください(キー ID とシークレットを console.higgsfield.ai から id:secret の形式で入力するよう求められ、入力内容は非表示になります)。
  • profile.json の gen_budget_usd が月間使用額の上限です。submit はこれを超えると拒否します。残高を伝えて停止してください。
  • 失敗および nsfw の結果は課金されません。失敗した場合はその旨を伝え、プロンプトの変更を提案してください。

手順

  1. 内容と場所の特定。 ユーザーの発言と編集内容(edits/<name>/)から:種類(モーショントランスファー、文章からの Bロール、静止画の動画化、カード用静止画)、対象となるタイムライン上の秒数(words.json のトランスクリプトから)、モーショントランスファーの場合はユーザーの動画の範囲(4 秒以上、最大 30 秒)を特定します。モデルは python3 "$G" models --kind <kind> で選択します。
  2. プロンプトの作成。 ユーザーの発言から、主題、設定、カメラ、照明を40語以内で自分自身で記述してください。Bロールは動画の形式に合わせます(縦型編集では縦型のショット)。モーショントランスファーには 1~8 枚の参照画像(--image、ファイルまたは URL)が必要です。動作を移植するスタイルです。
  3. 見積もり。
    python3 "$G" estimate edits/<name> --model <id> --prompt "<prompt>" [--video raw.mp4 --from 12.0 --to 18.0] \
      [--image ref.png] [--param duration=5] --at <timeline seconds>
    
    これにより、クリップが切り出され(無音、H.264)、generated/inputs/ に保存され、アップロードせずにリクエストの見積もりが行われ、見積もり ID、usd、credits、over_budget、および ASK: 行が出力されます。
  4. 質問。 1つの質問ボックスで:ASK: 行を質問文(価格、モデル、アップロード内容)とし、選択肢は「はい、生成します(推奨)」/「プロンプトを変更する」/「いいえ」とします。予算超過の場合はその旨を伝えて停止します。
  5. 承諾後のみ送信: python3 "$G" submit edits/<name> --confirm <estimate id>。これにより入力がアップロードされ、再見積もりが行われ、ジョブ ID が出力されます。
  6. バックグラウンド待機(生成には数分かかります):python3 "$G" wait edits/<name> <job>。指数バックオフでポーリングし、結果を edits/<name>/generated/ にダウンロードし、プローブし、タイムラインの「Generated」トラックに --at で Claude の変更として追加します(project.py apply 経由。プロジェクト文書がまだない場合は generated/<job>.ops.json に書き込み、出力します)。status / list で進捗表示、cancel はキュー中のみ有効です。
  7. 引き継ぎ。 何が追加されたか、場所、費用を伝えてください。ユーザーは他のクリップ同様に移動、トリミング、削除できます。生成結果の見た目の修正指示は taste に追加されます。

コマンドが停止した場合

メッセージ対応
No Higgsfield keyユーザー自身のターミナルで python3 "$G" setkey を実行するよう指示し、再開する
needs at least 4 s--from/--to を広げるか、テキストまたは画像モデルを選択する
over this month's generation budget残高を伝える。gen_budget_usd を引き上げ可能
the price is $X, not $Y新しい価格で再質問し、新しく出力された ID で submit --confirm を実行する
Maximum number of concurrent requestsクライアントは既にリトライ済み。実行中のジョブが完了するのを待ってから送信する
ended failed / ended nsfw課金されず。変更したプロンプト(新しい見積もりと質問)を提案する

ファイル

  • lib/ai_editor/gen/gen.py:上記のコマンド、demo 自己チェック(偽の Higgsfield、ネットワーク不要)
  • lib/ai_editor/gen/higgsfield.py:API クライアント。base.py:プロバイダーインターフェースとカタログ
  • lib/ai_editor/gen/jobs.py:edits/<name>/generated/jobs.json と月間使用額
  • references/higgsfield-api.md:API の文書化(ソース付き)

Individual skills in this repo

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

Conz-Wilts/ai-editor

Turns one long video or podcast (a local file or a YouTube link) into the best 3-5 short vertical clips, each cut and styled in the user's profile style. Transcribes once, splits the talk into candidate clips at sentence boundaries inside the chosen length, scores every candidate in code (speech rate, loudness, laughter, numbers and names said), shows the shortlist on one page with a preview of each, then trims, cuts and style-edits each pick as its own edit. Use when the user says "clip this video", "make shorts from my podcast", "find the best clips", "cut this into TikToks", "turn this YouTube video into reels", "repurpose this long video", or drops a long video (over about 3 minutes) or a YouTube link and wants short clips. Not for editing one short take (that is start or cut), and not for measuring someone else's style (that is creator-teardown).

Conz-Wilts/ai-editor

Reverse-engineers a short-form creator's video format from their real numbers. Pulls a TikTok or YouTube Shorts profile (or pasted links, Instagram reels too) with view, like and save counts, transcribes the top videos word for word, measures pace, pauses and fillers, maps each video into timed beats, and writes a teardown.md someone can film from, a teardown.html page of their graphics, motion and sound, and the style.json the style-edit skill edits from (on its own it can write an edit plan as a table and .srt). Use when the user wants to analyse, break down or study a creator ("analyse @handle", "tear down @handle", "teardown of @handle", "break down this creator", "what makes this creator's videos work"), pastes TikTok, YouTube or Instagram links and asks what the pattern is, or asks to set up creator-teardown. Not for editing the user's own video like a creator (that is start), not for researching a topic, and not for cutting raw footage.

Conz-Wilts/ai-editor

Cuts raw talking-head footage into a clean jump cut. Takes one take or several joined (mp4 or mov, any aspect, 4K phone footage is fine), transcribes it word by word, removes retakes, false starts, fillers and dead pauses, and renders cut.mp4 at the source resolution plus words.json timed to the cut. The user approves the cut on a page with the whole transcript and every removed word struck through. Use when the user says "cut my video", "just cut it", "remove my mistakes", "cut out the retakes", "remove the pauses", "clean up this take", "jump cut this", "tighten this clip", or asks only for the cut of a raw take; start calls it for a full edit. Runs before style-edit. Not for a general request to edit a video or to make it look like a creator (that is start), not for adding captions, zooms or cards (style-edit), and not for analysing someone else's videos (creator-teardown).

Conz-Wilts/ai-editor

For the editor's maintainers. Turns what users corrected into lasting fixes in this repo, for every user, enforced by code and tests rather than notes. Reads the suggestions users marked "would help everyone" (~/.ai-video-editor/suggestions.jsonl), taste rules said twice (taste.py report), preview corrections (edits/*/corrections.jsonl), review-page notes (*/review.json) and open GitHub issues labelled feedback; groups repeats; for each item the maintainer accepts, writes the general rule into PRINCIPLES.md and the skill that owns it, adds or tightens the check that enforces it, adds a test that fails before and passes after, and runs the full test set. Use when the maintainer says "improve the editor", "turn feedback into fixes", "process suggestions", "what are users complaining about", "go through the feedback issues". Not for one user's own preferences (that is taste), and not for editing a video.

関連スキル