Edits Hook Overlay 标志

Edits Hook Overlay

社区
mrpaidsocial
edits-hook-overlay

无需在 Edits 中逐个打开视频,即可为多个视频添加 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 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mrpaidsocial 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Edits Hook Overlay AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

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

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Edits Hook Overlay。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Edits Hook Overlay 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Edits Hook Overlay AI 技能有什么作用?

无需在 Edits 中逐个打开视频,即可为多个视频添加 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,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Edits Hook Overlay?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Edits Hook Overlay 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Edits Hook Overlay 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Edits Hook Overlay AI 技能免费吗?

mrpaidsocial 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇