agentleFS
Mohcen56Mohcen56/ytb-edit-kit/.agents/skills/edit/SKILL.md

edit

Skill136 starsChanged 5 days agoMITView on GitHub

Edit a long YouTube video (or a reel) in code from the creator's voiceover - word screens, website and app screens with markers, b-roll, GIFs and memes, versus cards, bars, gauges, flows, node diagrams, maps, re-created chats and terminals - in their own design system, rendered with HyperFrames. Use when the creator says "edit this video", "make the edit", "build the video", or drops a voiceover and assets for a new video.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • Yusong-EnceladusSkill

    paper-compile

    Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says \"编译论文\", \"compile paper\", \"build PDF\", \"生成PDF\", or wants to compile LaTeX into a submission-ready PDF.

    Also in 5 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check sfx/ has a file for each sound the shots use.

    line 15
  2. Distinctive:

    Read the script and ask what's unclear (which screen a line means, which file, what text).

    line 16
  3. Very specific:

    Write videos/<name>/shots.py: one shot per visual change, kinds and options in tools/edit_kit/KINDS.md.

    line 22
  4. Very specific:

    Run scene detection (ffmpeg -i <render.mp4> -vf "select='gt(scene,0.25)',showinfo" -f null -) vs your planned cuts so no unplanned cuts …

    line 27
  5. Very specific:

    Run python tools/edit_kit/final_check.py videos/<name> videos/<name>/renders/<name>_v01.mp4 (re-transcribes the render: no sound may hide a …

    line 30
  6. Very specific:

    Keep text above the bottom 30% of the frame (y <= 760 on 1920×1080) so the YouTube player bar never covers it.

    line 45
  7. Distinctive:

    Never show taskbars, OBS/Snipping Tool pop-ups, account choosers, emails, or bookmarks bars.

    line 46
  8. Distinctive:

    No zoom unless it lands on the exact prompt, button, or text being said (and keep the whole target in frame).

    line 50
  9. Distinctive:

    No text on b-roll: full-screen b-roll plays clean, with no captions, stamps or labels on top.

    line 56
  10. Distinctive:

    Never the same chart type in two shots in a row.

    line 62
  11. Very specific:

    Follow the music rule in brand/design.md.

    line 67
  12. Very specific:

    Write each note they give as a dated rule in brand/design.md (so the next edit starts with it), then rebuild only what changed.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Edit a video

Engine: HyperFrames (HTML → MP4, run with npx hyperframes). The kit in tools/edit_kit/ writes the HyperFrames project by default; only invent a new custom motion graphic (as a new kind in tools/edit_kit/kinds.py, using theme.py tokens) when the existing kinds in KINDS.md genuinely don't fit the beat. HyperFrames and its own skills are installed by the creator from the source (github.com/heygen-com/hyperframes); this kit never installs them. If npx hyperframes or its skills are missing, stop and send the creator to that link. With earshot installed, use it to pick sound effects and check the final mix.

Before anything

  1. Design system check. If brand/design.json doesn't exist, first look for a brand they already made elsewhere in the project (the "find a brand they already made" steps in the design-system skill). If one is found, import it and carry on with the edit; never ask them to do the grill again. Only if nothing is found, stop and suggest it before editing: "You don't have a design system yet, so this edit would use the kit's neutral default look (off-white, black text, one blue accent). Want to build yours first? It takes about 10 minutes and every video after uses it." Then:
    • Yes → run the design-system skill, then come back to the edit.
    • No → edit in the neutral default (build.py uses it automatically) and remind them once at the end that build my design system makes it theirs. With a design system, every colour and font comes from it. Check sfx/ has a file for each sound the shots use; if some are missing, tell the creator before building (the edit would have no sound there).
  2. Read the script and ask what's unclear (which screen a line means, which file, what text). Never guess: ask with options.
  3. Ask about GIFs & b-roll: Explicitly ask the creator if they want to add GIFs or b-roll for punchlines and mood. Either let them drop their own files in assets/, or offer to find/fetch royalty-free clips (only with their go-ahead, and only media they have the rights to). Gather all remaining assets with them (screenshots, screen recordings, logos).

Steps

  1. python tools/edit_kit/new_video.py videos/<name> → put the voiceover in audio/voice.mp3, files in assets/.
  2. Word timings: cd videos/<name>/audio && python ../../../tools/transcribe.py voice.mp3 ../script.txt, then python ../../../tools/tighten.py (cuts long pauses, evens loudness).
  3. Write videos/<name>/shots.py: one shot per visual change, kinds and options in tools/edit_kit/KINDS.md.
  4. python tools/edit_kit/build.py videos/<name>: read its warnings and fix them.
  5. Beat plan first: python tools/edit_kit/storyboard.py videos/<name> and show the creator storyboard/storyboard.jpg (one still per shot with its words). Wait for their go. Change shots they flag, rebuild, show again.
  6. Render: cd videos/<name>/project && npx hyperframes check && npx hyperframes render . -o ../renders/<name>_v01.mp4. Never overwrite a render: bump v02, v03.
  7. Check the render yourself before showing it:
    • Run scene detection (ffmpeg -i <render.mp4> -vf "select='gt(scene,0.25)',showinfo" -f null -) vs your planned cuts so no unplanned cuts slip in.
    • Grab frames ±0.06 s at every cut and source-clip edge (not just a 1 fps contact sheet) to catch OBS/pop-ups, taskbars, browser chrome, or white frames.
    • Grab a frame on every boxed text, labeled diagram, and highlight/marker to verify nothing overlaps, text fits centered in its box, and every highlight sits on its exact target.
    • Run python tools/edit_kit/final_check.py videos/<name> videos/<name>/renders/<name>_v01.mp4 (re-transcribes the render: no sound may hide a word; prints loudness). Fix, re-render, then hand it over with what changed.

Default rules (the creator can change any of them in brand/design.md)

Pace and structure

  • Something new on screen every 2-3 s. No dead time, no shot over ~4.5 s unless it's a screen recording that shows an action.
  • Show the first real result or payoff by ~0:15. Keep drawn explainer scenes short (under ~3 s) and hand over to real visuals or recordings.
  • Don't repeat the same block or motion graphic multiple times in a video (e.g. text chips, the same chart, or the same diagram layout). Vary per beat, and only repeat a graphic when it's necessary to track progress (like a step-by-step map or roadmap). No chip-only screens on an empty background.
  • A new beat in the voice gets a new visual. Reveals wait for the voice: every graphic lands on its word (the kit snaps to word onsets).
  • Visuals are literal: show the exact thing the line says (the real page, the real app, the real number). Only real names, dates and numbers on screen.
  • On-screen text uses the creator's exact script words, never a paraphrase. Big-word screens are rare (3-4 per video).
  • The hook shows the result or the problem in the first seconds. No intro card.

Layout and clean frames

  • Nothing overlaps: no text, label, or icon may sit on top of or under another element (a node, line, card, cursor, or frame edge). Leave clear space around every label.
  • Text always fits its box, centered: every label, pill, button, and card holds its whole text with even padding. Size boxes from the text, never a fixed width that text can outgrow.
  • Keep text above the bottom 30% of the frame (y <= 760 on 1920×1080) so the YouTube player bar never covers it.
  • Never show taskbars, OBS/Snipping Tool pop-ups, account choosers, emails, or bookmarks bars. Crop browser chrome off.

Screens

  • Show whole windows, not tight crops. One smooth zoom in, hold, zoom out per shot, never slow drifting zooms.
  • No zoom unless it lands on the exact prompt, button, or text being said (and keep the whole target in frame).
  • Screenshots stay still unless a move is planned.
  • One marker per screen, only on the exact thing the line names.
  • Mix framed and full screen: framed when an action must read, full screen for mood.

B-roll, GIFs, memes

  • No text on b-roll: full-screen b-roll plays clean, with no captions, stamps or labels on top. If a line needs words on screen, give it its own shot.
  • B-roll full screen unless the quality suffers. The same clip at most twice per video (another angle counts as new).
  • GIFs sit straight (no 3D tilt). Never stretch a short GIF to fill a slot: chain another one.
  • Captions under memes use the creator's words.

Explainers

  • Never the same chart type in two shots in a row. Bars and meters: real numbers only.
  • Diagrams show only what the line says; one idea per diagram.
  • Maps: the hub shows the whole video with the current item in focus; give other levels their own layout (flow, nodes).

Sound

  • Follow the music rule in brand/design.md.
  • A sound only where something visibly changes, under the voice, one at a time, never stacked (the kit enforces a 0.35 s gap). Only the creator's own files in sfx/ (names: click, whoosh, pop, ding, typing, error, hit, boom, scratch).

Never

  • Flashy preset transitions (spins, glitches, star wipes), shaky cam, flashing, more than one animated element entering at once.
  • Clips cut from another creator's video.

After the creator's notes

Write each note they give as a dated rule in brand/design.md (so the next edit starts with it), then rebuild only what changed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.