Edits Hook Overlayのロゴ

Edits Hook Overlay

コミュニティ
mrpaidsocial
edits-hook-overlay

Editsを1本ずつ開くことなく、多数の動画にInstagram標準のテキストフック(Editsアプリ独自のフォント、ボックス、スタイル)を追加します。USB接続したiPhoneでEditsを開き、黒または白の背景上に各フックを一度入力して書き出します。テキストを差分マットで正確な透明PNGとして取り出し、HDR(HLG)のスマートフォン映像を変更せずに、任意の数の動画に焼き込みます。「これらの動画にIGのテキストフックを追加して」「全部にInstagram標準のタイトルを付けて」「100本のクリップに同じフックを重ねて」「Editsのテキストを一度作って再利用して」「このバッチにフィードのスタイルに合ったフックテキストを付けて」などの依頼や、標準的な見た目のタイトルが必要なクリップの一括処理に使います。アニメーションテキスト、自動字幕(プラットフォーム標準の字幕を使用)、投稿、デザインされたモーショングラフィックのタイトル(branded-ad-edit/reel-recut)には使いません。

Add to TypingMind

概要

公開者mrpaidsocial
リポジトリmrpaidsocial-video-editor-agent
スキル名edits-hook-overlay
スター
114
フォーク
34
同梱ファイル
5
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mrpaidsocialがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Edits Hook Overlay」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/edits-hook-overlay
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent.git /tmp/mrpaidsocial-video-editor-agent
mkdir -p .claude/skills
cp -r /tmp/mrpaidsocial-video-editor-agent/.claude/skills/edits-hook-overlay .claude/skills/edits-hook-overlay
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEdits Hook Overlayを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にEdits Hook Overlayを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Edits Hook Overlayは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Edits hook overlay

Instagram's native text (Edits / the IG composer) is a look you cannot reproduce exactly in a renderer: its font, per-line rounded boxes and anti-aliasing are Instagram's. This skill gets that exact look onto any number of videos while the phone only ever touches a 6-second template project.

plate (black 3 s | white 3 s) ──► Edits template project: ONE styled text clip over both halves
        │  per hook: retype text → Export → Download          (scripts/edits_hooks.py)
        ▼
 hook-NN.mp4 (camera roll → pulled over USB)
        │  difference matte                                  (scripts/extract_overlay.py)
        ▼
 hook-NN.png  +  hook-NN-sprite.png  +  hook-NN.json (bbox, checks)
        │  scale · place · time · HLG-safe burn-in            (scripts/apply_overlay.py)
        ▼
 <video>-hook.mp4   × as many videos as you like

Why a black and a white plate, not a mask or chroma key: for every pixel, black = a·C and white = a·C + (1−a), so a = 1 − (white − black) and C = black / a. That recovers Instagram's own soft edges, rounded box corners, outlines and any partial opacity exactly. A key or a threshold mask would eat the anti-aliasing and fringe on the box corners. Both plates must show identical, static text.

Requirements

  • An iPhone with Edits, over USB, with WebDriverAgent running and port-forwarded (--wda, default http://localhost:8100) and the screen unlocked. Where that runner and its helper live is machine-specific: see MASTER_CONTEXT.md.
  • pymobiledevice3 (camera-roll listing + pull; --pmd3 or PMD3=), ffmpeg/ffprobe (or FFMPEG/FFPROBE), Python 3 with numpy + Pillow.
  • No phone? Steps 2–3 work on ANY export of static text over the plate, made by hand.

One-time template (by hand, ~2 minutes)

  1. scripts/make_plate.sh plate-bw.mp4 → get it into the phone's Photos (AirDrop, iCloud, or the working repo's phone hand-off).
  2. Edits → + → Gallery → the plate → Add. Text → type a placeholder → set the style (e.g. font Classic, emphasis Background = black box / white text; Inverted Background = white box; red text + Background = red box) → Done.
  3. Stretch the text clip across the whole plate. Edits gives new text 3 s by default, which only covers the black half: select the clip and drag its right handle past 3 s. No text animation (Animation tab = none); the extractor refuses moving text.
  4. Rename the project (project name ▾ → Rename), e.g. HOOK TEMPLATE black box. One template per style; position and size in the template don't matter much, because placement is decided at burn-in.

1. Render the hooks on the phone

bash
python3 scripts/edits_hooks.py --template "HOOK TEMPLATE black box" --out <project>/exports \
  "FIRST HOOK\nSECOND LINE" "ANOTHER HOOK"

Per hook: open the template from the grid, open the text clip → Edit, delete the old text, type the new one at ~6 keys/s, verify the clip's label equals the hook, Next → (accepts the "export at higher resolution anyway" prompt if Edits shows it) → Download, wait for exactly one new camera-roll MP4, pull it to hook-NN.mp4. Writes hook-manifest.json. About 40 s per hook. It never shares or posts; the template keeps the last hook's text.

Line breaks are yours (\n); Edits wraps long lines on its own. ALL CAPS reads like the native feed titles. Hook copy is public copy: write it from the speaker's own words and run the house copy QA before rendering.

2. Lift each hook out

bash
python3 scripts/extract_overlay.py <project>/exports/hook-01.mp4 <project>/overlays --name hook-01

Medians many frames from each half (HEVC noise cancels), writes the full-frame RGBA PNG, a cropped -sprite.png and a .json. Gates, read every time: recomposite_mean_abs_err_8bit (re-composite over both plates vs the export; ~0.01 is normal, > 1 means the plates or text differ) and motion_between_black_frames (> 3 = animated text, fix the template). Fails loudly if the text does not cover both halves.

3. Burn it onto videos

bash
python3 scripts/apply_overlay.py <project>/overlays/hook-01-sprite.png <project>/out \
  video1.mov video2.mp4 … [--center-y 0.165] [--start 0] [--end 3.2] [--trim 8]
  • Size: scaled by video_width / export_width, i.e. the size it had in Edits.
  • Place: centred horizontally; --center-y = box centre as a fraction of height (native = where it sat in Edits). Check the face and the platform's UI bands in the first frame; a feed-measured title position may sit inside the top UI band, which is a per-account call.
  • Time: --start/--end (the native-feed habit is "on from 0 s until the first hard cut").
  • HDR (HLG) phone footage stays untouched: the sprite goes through an SDR709→HLG2020 LUT (make_hlg_lut.py, generated once into ~/.cache/edits-hook-overlay/; SDR white → --hlg-white, default 0.91, so text white sits just above skin; BT.2408's 0.75 reads as a grey filter on bright selfies) and is overlaid on the original pixels, out as HEVC Main10 HLG with the source tags. SDR sources → H.264. Audio is stream-copied.

4. Verify, then deliver

  • Look at a frame of every output in the medium the reviewer uses. For HLG, use an AVFoundation/Apple SDR frame grab plus a colour-managed conversion, not a naive ffmpeg PNG (that shows HLG as washed-out 709).
  • Outside the box the output must match the source (mean abs diff ≈ 1/255 = encode noise).
  • Run video-qa on finished edits and deliver on video-review-canvas.

Scaling to a batch

  • Same hook on N videos: one export, one apply_overlay.py call with N files.
  • Different hook per video: one edits_hooks.py call with all the hook texts (one template, sequential exports), then pair hook i with video i in a loop.
  • A new style (red box, white box, outline) = a second template project, made once.

Gotchas

SymptomCauseFix
Hook shows dropped letters ("MADES HOOK")WDA types too fast for Edits' text box/wda/keys with frequency ≈ 6 (the script verifies the label and stops)
Text missing on the white halfnew text clips default to 3 sstretch the clip across the plate in the template
filter… No such file / quoting errorsapostrophes or colons in the LUT path break ffmpeg's filter parserthe script runs ffmpeg beside the cached LUT and refers to it by name
Script stuck before DownloadEdits' "HD is the best fit… export anyway" prompthandled; if Edits adds another dialog, the wait names the missing id
Wrong project openedtemplate name not unique / grid not at topunique template names; the script taps the status bar to scroll up first
Washed-out text or footage on HDR clipsan 8-bit/SDR path somewherekeep apply_overlay.py's HLG branch; never tone-map the base

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Edits Hook Overlay」では何ができますか?

Editsを1本ずつ開くことなく、多数の動画にInstagram標準のテキストフック(Editsアプリ独自のフォント、ボックス、スタイル)を追加します。USB接続したiPhoneでEditsを開き、黒または白の背景上に各フックを一度入力して書き出します。テキストを差分マットで正確な透明PNGとして取り出し、HDR(HLG)のスマートフォン映像を変更せずに、任意の数の動画に焼き込みます。「これらの動画にIGのテキストフックを追加して」「全部にInstagram標準のタイトルを付けて」「100本のクリップに同じフックを重ねて」「Editsのテキストを一度作って再利用して」「このバッチにフィードのスタイルに合ったフックテキストを付けて」などの依頼や、標準的な見た目のタイトルが必要なクリップの一括処理に使います。アニメーションテキスト、自動字幕(プラットフォーム標準の字幕を使用)、投稿、デザインされたモーショングラフィックのタイトル(branded-ad-edit/reel-recut)には使いません。

TypingMindでEdits Hook Overlayを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Edits Hook Overlayはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEdits Hook Overlayをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/edits-hook-overlayを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Edits Hook Overlayを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Edits Hook Overlayで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEdits Hook Overlayを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Edits Hook Overlay」は無料ですか?

mrpaidsocialがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇