link-edit

Edit a talking-head clip from a link. Claude scrapes the real assets with context.dev (logo, brand colors, page screenshots, headlines, live prices, fonts), cuts the speaker out on-device, and renders

SKILL.md

GitHub

link-edit

Paste a link, get the edit. You scrape the assets yourself with context.dev, so the user uploads nothing but their clip.

Setup (once)

  1. Tools. macOS (the cut-out uses Apple's Vision framework, on-device) and Google Chrome, then:
    xcode-select --install
    brew install node ffmpeg
    pip3 install numpy pillow
    cd <skill>/fx && npm install
    
    bin/segment builds itself on first use.
  2. Slash commands. Copy commands/*.md to ~/.claude/commands/.
  3. context.dev. Every asset comes from it, so the skill can't run without it.
    • No account yet: send the user to https://link.context.dev/keeran-jagadesan to sign up, and give them the code KEERAN25OFF for a discount on a paid plan. Always use this link, never the bare context.dev address, and say that it's a referral link. The free plan is enough to start: its 1,000 monthly credits go a long way, and two full reels took about 65.
    • Connect it:
      claude mcp add --transport http context https://mcp.context.dev/mcp
      
      Then have the user open /mcp in Claude Code and sign in to context.
    • If it isn't connected when a command runs, say so, give them the link and the code, and stop.

The commands

Command Input context.dev call Saved to assets/<host>/
/logo-wall domain brand-retrieve-unified logo file, primary color
/site-spin domain web-map, then web-scrape with a screenshot per page 5 page screenshots
/news-hit topic or company get-news-search, then web-scrape screenshot of the best article article.jpg
/price-tag pricing URL web-scrape with formats.json and a plans schema prices in the spec
/brand-caps domain web-styleguide font file, colors, button style

Every run

  1. Prep the clip. Once, for the whole take. Point each effect at the moment it should play with from:
    python3 <skill>/link_edit.py prep raw.mov work/take
    
    That writes 1080x1920 frames, a cut-out per frame, and a head track. Keep effects to 1.5–3.2 s.
  2. Scrape with the call in the table. Screenshot settings: viewport: {width: 1000, height: 1400}, country: "US", waitFor: 2000, screenshotParams: {area: "viewport", format: "jpeg"}, responseMode: "compact". The screenshot comes back as image content and the host saves it; the result names the file. Copy it into assets/. Download logo and font URLs with curl.
  3. Look at what came back before using it. This step is not optional:
    • Open every logo. The brand data can hand you the wrong one (it once returned an investor's logo as the company's own). Check logos[] for another entry, or build a wordmark from the site's font.
    • Open every screenshot. Skip blank heroes, cookie walls and error pages.
    • Check prices against the page. JSON extraction can mix up monthly and yearly.
  4. Write fx/<effect>.json from the specs below. Paths are relative to the spec file.
  5. Check one frame, then render:
    python3 <skill>/link_edit.py render fx/logo-wall.json --still 1.4
    python3 <skill>/link_edit.py render fx/logo-wall.json
    
    Read the still. Fix the framing. The render keeps the clip's own audio and takes about 15 s.

Specs

Common fields: fx, work, from (seconds into the prepped clip, so one long take can feed every effect), dur (seconds), out. Inside data: in (when the effect starts, default ~0.3), personScale and personY (shrink the speaker from the bottom edge and shift them).

{"fx":"logo-wall","work":"../work/take1","dur":3.2,"out":"out/logo-wall.mp4",
 "data":{"logo":"../assets/nvidia.com/logo.svg","aspect":5.42,"color":"#76b900","ink":"#040404","rows":9,"personScale":1}}

aspect is logo width ÷ height. color fills the wall, ink colors the logos. SVG or transparent PNG.

{"fx":"site-spin","work":"../work/take2","dur":3.2,"out":"out/site-spin.mp4",
 "data":{"cards":["../assets/apple.com/iphone.jpg","..."],"personScale":1,"ringY":38,"tilt":20,"cardW":400,"radius":560}}

Six cards. Repeat a page if you have fewer. A positive tilt makes a halo above the head, a negative one an orbit around the chest. Keep front cards off the face.

{"fx":"news-hit","work":"../work/take3","dur":3.2,"out":"out/news-hit.mp4",
 "data":{"shot":"../assets/time.news/article.jpg","focus":{"x":40,"y":262},"top":170,"zoom":1.75,
  "marks":[{"x":378,"y":266,"w":224,"h":40}],"personScale":0.8,"personY":150}}

focus is the top-left of the headline in screenshot pixels. marks are highlight boxes over the words that matter, in the same pixels: open the screenshot and measure. mark sets the highlight color.

{"fx":"price-tag","work":"../work/take4","dur":3.2,"out":"out/price-tag.mp4",
 "data":{"color":"#d97757","personScale":0.8,"personY":70,
  "tags":[{"name":"Pro","price":"$20","x":160,"len":430,"behind":true},
          {"name":"Max","price":"$100","x":925,"len":390,"behind":true},
          {"name":"Team","price":"$150","x":165,"len":1270},
          {"name":"Ultra","price":"$200","x":860,"len":1240,"big":true}]}}

x is the string's position, len how far the tag hangs. behind puts it behind the speaker. One tag gets big, in color. Keep tags off the eyes and mouth.

{"fx":"brand-caps","work":"../work/take5","dur":2.9,"out":"out/brand-caps.mp4",
 "data":{"font":"../assets/vercel.com/GeistSans.woff2","size":176,"top":170,"gap":0.17,
  "lines":["Any site's","font. Any","site's look."],"accent":["look."],"button":"Pulled from vercel.com",
  "styleguide":{"colors":{},"typography":{"headings":{"h1":{}}},"components":{"button":{"primary":{}}}},
  "personScale":0.84,"personY":40}}

Paste colors, typography.headings.h1 and components.button.primary straight from the web-styleguide response. If the speaker's words are on screen, use their exact words and set gap to their pace. Fonts stay under the site's license: use open ones for anything commercial.

Rules

  • Real data only. If a scrape fails, say so. Never invent a price, a headline or a logo.
  • Paid ads: use the advertiser's own assets. Other companies' logos, pages and headlines are fine as editorial on an organic post, not in a paid placement.
  • Framing decides the look. Hold the phone so the speaker's head sits in the lower half of the frame: the headroom is where the effect goes, and personScale can stay at 1. Scaling down a tight selfie shows the cut edge of the shoulders.
  • Don't leave stale data in a render: prices and headlines are true on the day you scraped them. Note the date.