Communitygithub.com

reagansaw/jingjian

把真人口播竖屏短视频剪出「网感」——用 Remotion 做文字版式、换场画面、补停顿、配音效,并守住社媒安全区。用于:剪口播、口播精剪、抖音精剪(B-roll / 小人像窗 PIP / 分屏 / 海报大字)、抖音/Reels/Shorts 竖屏短视频、字幕太长或跑边、画面太平没网感、「用剪映那种花字/版式」、talking-head short video editing、Douyin-style 精剪 edit、B-roll、kinetic captions、safe zone。需要 1080×1920 的口播视频;有稿子更好。不用于:没有真人口播的品牌宣传片、多场景长片、纯素材混剪、静态标题卡。

jingjian 是什么?

jingjian is a Claude Code agent skill that 把真人口播竖屏短视频剪出「网感」——用 Remotion 做文字版式、换场画面、补停顿、配音效,并守住社媒安全区。用于:剪口播、口播精剪、抖音精剪(B-roll / 小人像窗 PIP / 分屏 / 海报大字)、抖音/Reels/Shorts 竖屏短视频、字幕太长或跑边、画面太平没网感、「用剪映那种花字/版式」、talking-head short video editing、Douyin-style 精剪 edit、B-roll、kinetic captions、safe zone。需要 1080×1920 的口播视频;有稿子更好。不用于:没有真人口播的品牌宣传片、多场景长片、纯素材混剪、静态标题卡。.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/reagansaw/jingjian/tree/HEAD/skills/video-craft

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

video-craft: Precision Editing for Viral Vertical Shorts

Goal: Take a raw talking-head video and edit it according to these rules to produce a vertical short that is "rhythmic, visually engaging, and text never leaves the safe zone." Rules derived from: statistics from 70 CapCut talking-head projects + practical lessons from the maintainer's numerous finished videos. Every rule cites its source; unverified rules are marked as such.

First, check references/ for details; when choosing a layout, open the library webpage (docs/library.html) to preview each one. For a Douyin-style fine edit (dense material with a visual change every 1.5–3 seconds) → read references/douyin-jingjian.md. Keying · Text Behind Subject · Glass Text → references/text-behind-glass.md. Industry Style Pairing (4 style families + 3 theme presets) → references/industry-styles.md; Precise SFX timing/volume/animation pairing table → references/sfx-timing.md. Typography Pairing (font/color/size ratio/position, layout families) → references/typography-pairing.md; Text Animation (38 entrance animations, 18 presets) → references/motion-vocabulary.md. What properties to write for each layout in edit.json → references/edit-json.md. The skeleton of a video (hook → content pattern → breathing → CTA, common structure from 64 finished videos) → references/essence.md, read it before arranging the video. Answer in the user's language. For English: see SKILL.en.md.

0. Pre-Production Checklist (Ask if any missing; don't guess)

When questions can't be asked (automation / user says don't ask): default values → treat video as acceptable, platform is Douyin, use transcript as script if exists, face is not too large, don't use keying; CTA: use the original CTA from the script (e.g., "click the link below") if it exists, otherwise do not add an ending CTA capsule; do not fabricate account handles. Document these defaults in the report.

  1. Video: Is it 1080×1920 with talking-head audio? If not, don't start editing yet.
  2. Platform: Douyin / Reels / Shorts (determines safe zone; default to the set below).
  3. Do you have a script? Yes → use it to proofread transcription errors; No → transcribe first.
  4. Is the face very large (close-up)? Yes → the footage must be shifted up and zoomed in first, see §3.2.
  5. Can you use keying? Keying only works on macOS (Apple Vision); if not, avoid "reporter" layout.

1. Workflow (Follow in order, don't skip)

  1. Transcription + Word-level Timestamps: Use mlx-whisper (Mac) or any whisper with word_timestamps enabled. Mixed Chinese/English, Malay/Cantonese accents may cause transcription errors (e.g., "网感" → "玩感"); ** subtitles must be manually compared with the script for proofreading**; use the timestamps from transcription, but the corrected words.
  2. Section Structuring: Divide into 8–12 segments based on meaning: Hook (0–5s) → Story/Problem → Turn → Method → Punchline → Sign-off. For each segment, decide "which layout or transition to use." Read references/essence.md first for arrangement: The first second must have a 2–4 character giant word hook; choose a content pattern to follow for the entire video; always end with a CTA.
  3. Insert Pauses: Many people read scripts without taking a breath. Insert 0.2–0.45 seconds between sentences: a freeze frame with silence, paired with a change in shot scale (zoom in/out) on the next sentence to simulate a breathing pause, not a jarring cut. Snap the cut point to a frame boundary (to avoid cumulative audio-video drift). See example script tools/build_master.py.
  4. Assign Layouts / Transitions: Apply the rhythm rules from §4 (change visuals every 5–10 seconds) and the selection table from §5.
  5. Lock Timings: The appearance time for each word/visual = the start time (word-level timestamp) of when it is spoken, not an estimate. This prevents misalignment after re-editing.
  6. Add Sound Effects: Each animation gets a different sound; see §6.
  7. Render + Check: First render a static frame of each layout segment with the safe zone red box overlay for visual inspection, then render the full video and measure loudness. See §7.
  8. BGM is off by default. If the user wants it: use tools/mix_bgm.py (fade in/dip during punchlines/fade out, −15 LUFS).

2. Hard Rules (Rework if violated)

RuleExplanationSource
Safe ZoneAll text must be entirely within x 60–1010, y 250–1250; when y > 900, right edge shrinks to 950Maintainer corrected twice from practice; bottom 35% is covered by captions + buttons
Max 2 lines per subtitle, ≤12 characters per lineIf exceeded, break at punctuation; bottom edge must be ≤ y1230Maintainer repeatedly corrected "subtitles too long"
Text must not cover the faceWhen face is large, place text only in the "chest zone" y≈880–1250; if cards are on screen, push the face up or switch to a picture-in-picture windowPractical finished videos
Only one giant word per segmentOthers use small subtitles; coloring every block dilutes emphasisReview feedback
Two-layer rhythmScene change (full screen composition swap) every 5–10 seconds; visual change (text block pop-in/zoom/material/window) every 1.5–3 seconds. About 1/3 of the time is not a full-face shotReview feedback + maintainer "change every 5–10 seconds"; reference videos "a visual change every 1.5–3 seconds." The two-layer description aligns both rules; not an original quote from references
Hook needs visual contentFirst 3 seconds must include a visual element (card/curve/phone), not just textReview feedback
SFX follows textSound plays on the same frame as the text appears (88% of SFX are on the same frame as text); about 1/3 of text blocks are silent (for breathing room)Statistics from 70 talking-head videos (see §6)

3. Visual Framework (Talking-head)

3.1 Camera

  • Handheld shake: Sum of several sine waves at different frequencies with a 1-second settling period at the start (amplitude ≈ ±7px / ±0.2°).
  • Jump cuts: Alternate between two zoom levels on each sentence, hard cut, zooming in on the face as the center. Practical finished videos use 1.15× / 1.20×; CapCut data median is 1.1×. The starter Edit project defaults to zoom:[1.0,1.12]; use practical values by writing "zoom":[1.15,1.2] in edit.json.
  • Emphasis zoom: At the moment of a key word, zoom in by +0.09 over 0.18 seconds, then decay. Data reference (73 CapCut talking-head project video tracks, template.json.bak): Portrait clip scale median 1.1× (p10 0.8 / p90 1.4), of 1614 video clips 54% were rescaled (= jump cut zoom); 64/73 projects used masks—circular 131, rectangular 120, linear 33, mirror 11, pen 3 (portrait windows are mainly circular or rounded rectangle); 0.9× slow motion used 27 times (for dramatic pause); heavy use of beauty-type effects on portraits (~270 instances, not included in this library).

3.2 When the Face is Very Large (Close-up talking-head, chin at about y860–940)

Shift the entire shot up by 120px and zoom in ≥1.12× (without zooming, the bottom edge will show; text is squeezed into the ~370px "chest zone" between the chin and y1250). Layout coordinates should start from y≈1050, using <Zone> to shift up 150px as a whole.

3.3 Ending

Scale down the person to 0.56× and center them; place a giant word at the top (y≥250); place a signature card below (≤y1240).

4. Rhythm Numbers (70 CapCut talking-head projects, 66 industry finished videos, median duration 23.5 seconds)

MetricMedian
Text segments / minute~69
Sound effects / minute~39
Individual text segment duration1.22 sec (p25 0.88 / p75 1.72)
SFX relative to text start0.00 sec (same frame)
Percentage of text with SFX66%

⚠ This density is for 15–60 second shorts. The 66-second sample for this skill used ~44 SFX/minute (close). Do not blindly copy 69 text blocks/minute for longer videos (it will be tiring); use high density for key beats (hook/turn/punchline/sign-off), and reduce to ~40/minute for the rest—this is based on experience, not verified data.

5. Layout / Transition Selection Table (Preview in library)

Text Layouts (overlaid on face video, placed in chest zone):

idIndex#When to Use
chest-big23A setup phrase + one key word (most common, use at least 3 times per video)
strike-swap24Correcting a misconception: old term is crossed out, new term is slammed in
left-stair53Progression: Cause → Process → Result
a-to-b41Cause and effect / "The more A, the more B"
two-column17Contrasting two options (A|B)
bars9Two parallel points (fluorescent bars)
vertical-wall352–4 character key words, vertically aligned on the right edge
dark-question27Low voice, rhetorical question, suspense (max 1–2 times per video)
chapter—Steps: 01/02 + checkmark card
giant-fill25Landing punchline (max 1 time per video, save for the last sentence)
typed-quote38Quote / punchline: black background, circular window + typewriter effect
signature—Ending signature card
top-titleSkeletonTwo-line column title fixed at the top of the video (needs headroom)
stack-listSkeletonCumulative list: new items appear while old ones dim (≤3 items + punchline)
end-ctaSkeletonEnding blue capsule + arrow pointing to lower-left corner (copy provided by user)
Transitions (replace the entire frame to break up "the same talking head"):
idWhen to Use
------
split-retentionHook / talking about "no one watches till the end": top retention curve card + bottom picture-in-picture
split-compare"Messy vs. neat": top comparison chart + bottom picture-in-picture
phone-swipeTalking about "swiping away": phone plays talking-head, swipe up on the key sentence
reporterSteps: card + keyed person standing in front (requires keying, macOS only)
Douyin-style fine edit · B-roll type (cut to footage when a noun is mentioned; footage not included, passed as broll):
idWhen to Use
------
pip-brollSpecific noun: full-screen footage + you in a small white-bordered circular window (rotate position: top-right/top-left/bottom-center)
split-brollOne side talks, other shows: top: you / bottom: footage + yellow label
broll-bottomLightest B-roll insertion: footage slides up from the bottom to cover the lower half (text must make room)
poster-heroKey noun/pain point word: full-screen poster dimmed 40% + golden (benefit)/red (pain point) big characters, slowly growing
Parameters, avoided scenarios per layout: references/layouts.md; full fine-edit recipe: references/douyin-jingjian.md.

Typography Pairings (5 type pairings, overlaid on face video, placed in chest zone):

idWhen to Use
label-heroSmall label + large word stack (numbers, key words instantly readable)
spread-heroLarge text with wide letter spacing (1–3 characters, the most impactful sentence)
ghost-wordBackground giant word (semi-transparent) + one line of smaller text to drive the point home
quote-cardQuote card: dimmed/blurred background + numbered small label + yellow keyword + attribution
chapter-tagChapter tag: "01 ▶ Title" yellow block + dashed border
Formula (from 81–88 layout statistics; full analysis in typography-pairing.md): ① White base + one accent color (yellow = benefit / red = pain point; 80% of styles use only 1–2 colors) ② ≤2 fonts: main character = bold serif, secondary = sans-serif ③ Secondary : Main ≈ 1 : 2; ≥4× giant words only 1–2 times per video ④ ≤3 lines ⑤ All within safe zone. Four principles of typography (Alignment / Contrast / Proximity / Repetition): one alignment per video; main word is instantly identifiable as main; related lines are grouped; parallel items use the same style.

Text Behind Subject / Glass Text (TextBehind / GlassWord): text-behind (background → text → keyed PNG on top) · glass-hero (semi-transparent gradient with background texture showing through) · glass-behind (combination). Three hard rules: glass text cannot be wrapped in an outer layer with transform / opacity / filter (cannot be placed in Zone/FitBox); text must be in the same shot container as the video; background must have light/dark variation. 🔴 Text must be instantly readable; the person can only obscure a small part (average 8–20%, max ≤30%): use Headroom to create headspace, then measure with tools/check_text_visible.py; do not render text on frames without keying. Keying is macOS only (tools/mk_matte.py for person, tools/mk_subject_matte.py for any subject).

Emotion Words (EmotionWord): emo-cry (crying, red fills from bottom to top) · emo-surprise (surprise, two characters oscillate up-down) · emo-joy (happiness, radiating glow pulse) · emo-shout (shouting, outward tilt + echo). Use 1–2 times per video; place in chest zone (original package placed above the head, but this library's frame lacks headroom). ⚠ Text only; the original package's tears / glow wings are CapCut face effects, not implemented.

Text Animation (18 entrance animation presets, MotionText's preset): fade slide-up reveal-up curtain roll-in leap grow grow-soft shrink slam glow-blur blur-left rise-random wave-bounce typewriter develop tracking-in echo. Rules (statistics from 70 projects): Entrance 0.4 seconds (0.3–0.5; blur/glow type 0.7); 52% of text has no animation at all, 45% has only entrance, 2% has exit—save animation for emphasis; don't animate every word; change entrance per sentence; heavy beats use slam/shrink/echo + heavy SFX. Choose by function: references/motion-vocabulary.md §3.

6. Sound Effects

Principle: One animation gets one different sound; don't use only 10 types throughout the whole video. Peak level: −11 to −20 dBFS; transitions should be lower (≈−22 to −26). Pairing (from 70 talking-head statistics + practice; id is semantic, files must be prepared by user):

Animation/MomentSFX Semantic ID
Typing cursor / typewritertype typing
Blurred glow, soft, emotionaldrip bowl
Random rise / opening (knowledge)paper
Shrink / hit / emphasispeng stamp dong fist clang heavy filmdong
Zoom in / number / pointclick ding ding3 tishi
Roll in / money talkcash gold
Transition / topic changesou sou2 hu shua wind zoom page whoosh
Despair / swipe away / rhetoricalsigh huh sus eerie
Checkmark (✓) / confirmationcorrect bowl
Magic / revealmagic fairy chime
Full list of 57 IDs and semantics: references/sfx-pairing.md.
⚠ This repository does not include sound effect files (sources are CapCut library/paid asset packs; cannot be redistributed). Please prepare your own royalty-free SFX, named as lg-<id>.mp3.

7. Pre-Release Checklist (Go through line by line)

  • Starter project: In edit.json, set "guides": true, run npx remotion still … to capture one frame per layout segment (the old preview composite was called *-guides). Must change back to false before rendering; use npm run final (first runs scripts/check-edit.mjs, rejects output if red box is on): All text is within the red box (x60–1010, y250–1250; y>900 → right edge at 950)
  • Subtitles ≤2 lines, ≤12 chars per line
  • Hook (first 3 seconds) has visual content, not just text
  • A scene transition every 5–10 seconds; about 1/3 of the time is not a full-face shot
  • Only one giant word per segment
  • Each animation has a non-repeating SFX; about 1/3 of text blocks are silent
  • Loudness −15 LUFS, true peak ≤ −2 dBFS
  • Listen to it once, watch it once in motion (static frames don't convey feel; see "Known Limitations" below)

8. Known Limitations (Don't pretend they don't exist)

  • No automatic out-of-bounds detection: relies on measuring during Txt/FitBox rendering → shrinking → pushing back + visual check with red box. Typewriter and nested text may still be off by a few pixels.
  • Dynamic feel can only be judged by human sight: static frame check cannot detect slam force, fade-out timing.
  • Keying is macOS only (Apple Vision).
  • SFX/BGM not included (copyright).
  • Typography / animation not complete yet: white background small block list, white-bordered keyed sticker, frame/REC/scanline, scattered text, emotion word face effects, chat bubble CTA, pinyin annotation; particle / 3D / light effect transition animations, exit animation, loop animation (see "Not done yet" in the two references).
  • Animations only verified on static frames (mid-animation moment); speed curves not checked frame by frame; animation multipliers estimated from frames.
  • Hook is currently a "card"; TV color bars + "boop" type hooks not done yet.
  • B-roll footage not included: fine-edit components use placeholder visuals; real use requires actual footage/stock/AI images; paper tear/motion blur transitions, black field spotlight, square PIP, auto-footage-clipping not done yet (see douyin-jingjian.md).
  • "Fine-edit section: 21–47 cuts per minute" was measured in August; not re-measured this time.
  • Components for real footage ending (real scene + keying + signature) pending.

9. Where is the Code?

Runnable starter project: remotion/ (npm install → put video → write edit.json → npm run check → npm run final (auto-blocks if "red box not off"), details in remotion/README.md). Don't rewrite it elsewhere; use it. Copy before using: When installed as a plugin, these files are in Claude's cache directory and will be cleared on update, do not run npm install or place videos in the original location. First copy the entire remotion/ folder to the user's working folder (cp -R <directory containing this SKILL.md>/remotion ./my-video), then perform all operations in that copy; references/ and tools/ can remain in-place as read-only. remotion/craft/: kit.tsx (SAFE, Zone, Txt/FitBox, themes) · layouts.tsx (12 layouts) · scenes.tsx (4 transitions + 4 fine-edit material types + LabelTag) · typo.tsx (5 typography pairings) · motion.tsx (18 entrance animation presets MotionText) · emotion.tsx (4 emotion words) · glass.tsx (Glass word GlassWord + text behind subject TextBehind) · gallery.tsx (preview composite + registry). Tools: tools/ (pause insertion, BGM mixing, BGM analysis, SFX library building).

相关技能