Logo Editor

Editor

Cộng đồng
kaigani
editor

Film editor cognitive skill. Teaches Claude to think like an editor — when to cut, what to trim, how to build rhythm, and how to review assembled footage using filmstrip analysis.

Tổng quan

Nhà phát hànhkaigani
Kho mãcodeywood
Tên kỹ năngeditor
Sao
33
Bản fork
4
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được kaigani công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Editor trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/kaigani/codeywood/tree/main/skills/editor
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kaigani/codeywood.git /tmp/codeywood
mkdir -p .claude/skills
cp -r /tmp/codeywood/skills/editor .claude/skills/editor
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Editor trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Editor ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Editor không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Film Editor

Purpose

Transform raw AI-generated clips into a cohesive, well-paced sequence through editorial decisions: what to keep, what to trim, what to re-order, what transitions to use, and when to request a re-generation.


Core Principle: See Before You Cut

Never make editing decisions without first generating a filmstrip.

analyze_clip.py CLIP --quick    → filmstrip + metadata for one clip
analyze_clip.py ASSEMBLY        → filmstrip of current assembly
compare_clips.py REF ASSEMBLY   → side-by-side with reference

The filmstrip is your editing bay. Read it frame by frame. Identify:

  • Where the "good stuff" starts (usually 0.3-0.5s in)
  • Where degradation begins (usually last 0.5-1.0s)
  • Whether the shot composition matches the shot list intent
  • Whether motion is present where expected

The Three Cuts

Every edit point is one of these three:

1. Too Early

The cut happens before the action/emotion has landed. The audience feels jerked away.

Symptoms: Shot feels rushed, character expression not fully formed, action incomplete. Fix: Extend the trim_out (let it breathe).

2. Too Late

The cut happens after the energy has drained. The audience has already moved on mentally.

Symptoms: Lingering on a static frame, repeated motion loops, AI degradation artifacts visible. Fix: Trim more from the tail. AI clips almost always need 0.5-1.0s trimmed from tail.

3. Just Right

The cut happens at the peak of energy or at a natural pause point.

Where to cut:

  • On action: Mid-gesture (hand reaching, head turning, body rising) — the audience's brain completes the motion
  • On stillness: After a beat of held emotion (a look, a breath, a moment of recognition)
  • On dialogue: At the end of a phrase, not mid-word
  • On music: On the beat or on the downbeat

AI Clip Trim Heuristics

AI-generated clips have consistent patterns that differ from live-action footage:

Head Trim (first 0.3-0.5s)

  • Model "settling in" — slight jitter or morphing as generation stabilizes
  • Character may be slightly off-model before identity locks in
  • Camera position may drift before stabilizing
  • Default head trim: 0.3s (increase to 0.5s if visible settling)

Tail Trim (last 0.5-1.5s)

  • Progressive quality degradation (loss of detail, color shift)
  • Motion becoming repetitive or looping
  • Unintended camera drift
  • Character features softening or distorting
  • Default tail trim: 0.5s (increase to 1.0-1.5s for longer clips >10s)

When to Trim vs. Regenerate

SymptomAction
Good composition, minor head/tail artifactsTrim
Correct action but slightly wrong framingTrim + speed ramp
Wrong character appearanceRegenerate (identity issue)
Wrong action/motion directionRegenerate (prompt issue)
AI artifacts throughout (not just edges)Regenerate (model limitation)
Good first 60%, degraded last 40%Trim aggressively — keep the good part
Perfect 3s inside an 8s clipTrim to the perfect 3s, adjust EDL

Rhythm and Pacing

Production Pacing Targets

These targets produce confident, breathing pacing — not the anxious rapid-cutting that hides AI artifacts:

MetricTargetAnti-Pattern
Shots per minute6-814+ (anxiety cutting)
Median shot duration8-10s3s (nothing breathes)
Face close-up ratio<30% of shots65%+ (concentrates artifacts in worst zone)
Minimum shot duration4sSub-2s cuts (except deliberate rhythmic effect)
Dramatic silences4-6 per 5 min0 (missing free storytelling beats)

Longer holds signal confidence. Short cuts signal "don't look closely."

The Rhythm Grid

Map out your intended rhythm before assembling:

[SLOW — 8s] [FAST — 3s] [FAST — 4s] [SLOW — 10s] [MED — 6s]
  establish    action      action      emotional     resolve

Scene Type Rhythms

Dialogue Scene:

  • Establish (wide, 8-10s) → Shot/reverse-shot (6-8s each) → Close-up reaction (5-6s) → Return to wide (6-8s)
  • Use L-cuts for natural conversation flow (audio leads video by 0.5-1.0s)
  • Total clips: scene_duration / 10

Action Scene:

  • Build (medium, 5-6s) → Accelerate (3-4s clips) → Peak (2-3s) → Impact (held 6-8s) → Aftermath (8s)
  • Hard cuts throughout, speed ramps on impacts
  • Total clips: scene_duration / 5

Atmosphere/Montage:

  • Long holds (8-12s) with crossfades (1.0-1.5s)
  • Minimal cuts — let the mood build
  • Total clips: scene_duration / 8

Syncopation

Break rhythmic expectations intentionally:

  • Three fast cuts followed by one long hold = tension release
  • Two long holds followed by a sudden fast cut = surprise
  • Alternating short/long = heartbeat rhythm

Transition Guide

TransitionEffectBest For
Hard cutSharp, immediateAction, dialogue, time jumps
Crossfade (0.5-1.5s)Gradual blendTime passage, mood shifts, montage
L-cutAudio leads videoDialogue (hear next speaker before seeing them)
J-cutVideo leads audioReveals (see location before hearing narration)
Speed rampTime manipulationImpacts, establishing shots, transitions

When NOT to use transitions:

  • Crossfade between two dialogue close-ups (disorienting)
  • L/J-cut when there's no meaningful audio difference
  • Speed ramp on a static shot (nothing to ramp)

Assembly Best Practices

Single-Pass Concat

Never use pairwise concatenation (concat(A, concat(B, concat(C, ...)))) for more than a few clips. Iterating pairwise across 17+ clips produces progressive quality degradation and unreadable output.

Always use single-pass concat with a file list: trim all clips, re-encode to uniform H.264/AAC, then concatenate in one ffmpeg pass.

trim_and_reencode()

Combined trim + re-encode in one ffmpeg pass avoids intermediate format issues. Default behavior: keep audio (-c:a aac), retry with -an on failure.

Stream Count Consistency

The concat demuxer maps streams from the first file. If file 1 has no audio track, ALL subsequent audio is silently dropped.

Rule: Ensure uniform stream layout before concat. Use add_silent_audio() for any clips that lack an audio track.

Audio Track Requirement

ALL clips need audio tracks for concat — even silent ones. Use add_silent_audio() to add a silent AAC track to clips with no dialogue or ambient sound. This prevents the concat demuxer from dropping audio from all subsequent clips.

Never Stream-Copy Concat (-c copy)

Stream copy (-c copy) in concat is unsafe unless you can guarantee every single clip has byte-identical encoding parameters: same resolution, pixel format, H.264 profile/level, GOP structure, frame rate, and audio sample rate. In practice, this guarantee almost never holds — especially when clips come from different generation pipelines or different input image sizes.

Symptoms of -c copy concat failure:

  • Video "sticks" on one frame during playback (decoder waiting for a keyframe that never comes)
  • Audio drops out mid-playback (AAC frame boundary misalignment)
  • Player shows corruption or artifacts at clip boundaries
  • File plays fine in some players but fails in others

Root causes:

  • Resolution mismatch: Source images at different sizes (e.g., 1392x752 vs 1280x720 vs 1024x1024) produce clips the decoder can't seamlessly switch between
  • GOP boundary misalignment: Clips of different durations have keyframes at different offsets; stream copy preserves these, creating discontinuities
  • Profile/level inconsistency: One clip encoded as Baseline, another as Main — stream copy can't reconcile them

The fix: Always re-encode during concat. Use -preset ultrafast to keep it cheap:

bash
ffmpeg -y -f concat -safe 0 -i list.txt \
  -c:v libx264 -preset ultrafast -crf 18 \
  -pix_fmt yuv420p -r 25 \
  -c:a aac -b:a 192k -ar 44100 -ac 2 \
  output.mp4

This adds a few seconds of processing but eliminates an entire class of playback bugs. The shared concatenate_clips() function in scripts/lib/ffmpeg.py enforces this by default.

Resolution Normalization at Source

When creating clips from images (paper cuts, storyboards, title cards), always normalize input images to a consistent resolution before encoding. The image_to_clip() function handles this with a scale+pad filter:

scale=1280:720:force_original_aspect_ratio=decrease,
pad=1280:720:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1

This ensures all clips are 1280x720 regardless of input image size, with letterboxing if the aspect ratio differs. Combined with explicit H.264 profile (-profile:v main -level:v 4.0), this makes every clip concat-safe at the source.


Review Protocol

Per-Clip Review

For each clip, evaluate:

  1. Intent match: Does this deliver what the shot list requested?
  2. Composition: Is the framing effective? Subject placement?
  3. Motion quality: Is movement natural? Any loops/artifacts?
  4. Identity: Do characters look correct? Consistent with refs?
  5. Technical: Resolution, color, exposure acceptable?

Rating: KEEP / TRIM (specify head/tail amounts) / REDO (specify what's wrong)

Sequence Continuity Check

After individual review, check across the sequence:

  1. Eye-line match: Do characters look in consistent directions between cuts?
  2. Position continuity: Does a character's screen position make spatial sense across cuts?
  3. Color consistency: Major shifts in color temperature between adjacent clips?
  4. Scale jumps: Avoid cutting from ECU to wide — step through medium
  5. Motion continuity: If action carries across a cut, does direction match?

EDL Drafting

After review, produce the EDL YAML:

yaml
output: assembly_v2.mp4
clips:
  - path: clip_001.mp4
    trim_in_s: 0.3        # Default head trim
    trim_out_s: 0.5        # Default tail trim
    transition_out: hard_cut
    # Review: KEEP — good establishing shot, trim settling

  - path: clip_002.mp4
    trim_in_s: 0.0
    trim_out_s: 1.0        # Heavy tail trim — degradation at 7s
    transition_out: crossfade
    transition_duration: 0.8
    # Review: TRIM — good first 7s, crossfade into mood shift

  - path: clip_003.mp4
    trim_in_s: 0.5
    trim_out_s: 0.5
    transition_out: l_cut
    audio_lead_s: 1.0
    # Review: KEEP — strong close-up, L-cut into dialogue

Assembly-Time Visual Effects

When a story requires progressive visual change (deterioration, damage, environmental shift) across clips, handle it in assembly rather than regenerating:

  • Color grade arc: Apply colorbalance or curves filters that shift across the EDL (e.g., warm start → desaturated end) to communicate physical/emotional decline without touching source clips.
  • Screen-glitch overlays: Insert 2-4 frame static/noise bursts at specific timestamps via ffmpeg overlay to simulate display flicker or malfunction. No regeneration needed.
  • These techniques pair with audio deterioration (see sound-designer skill) for a full sensory arc built entirely in post.

Common Mistakes

  1. Over-cutting: Too many clips for the scene type. A dialogue scene with 15 clips is almost always wrong.
  2. Under-trimming: Leaving AI artifacts at head/tail because "it's mostly fine."
  3. Monotonous rhythm: Every clip the same duration. Vary it.
  4. Transition abuse: Crossfading everything. Most cuts should be hard cuts.
  5. Ignoring audio: Cutting on video beats only. Audio rhythm matters more than visual rhythm.
  6. Not comparing to reference: If there's a reference cut, always run compare_clips.py before and after.

Câu hỏi thường gặp

Kỹ năng AI Editor làm được gì?

Film editor cognitive skill. Teaches Claude to think like an editor — when to cut, what to trim, how to build rhythm, and how to review assembled footage using filmstrip analysis.

Vì sao nên dùng Editor trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Editor là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Editor trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kaigani/codeywood/tree/main/skills/editor. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Editor?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Editor với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Editor với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Editor có miễn phí không?

Kỹ năng này được kaigani phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇