Logo Ugc Editing

Ugc Editing

Tổ chức
palmier-io
ugc-editing

Hướng dẫn ghép cảnh quay thô, cắt đoạn quay lỗi và khoảng lặng, chọn và áp dụng bố cục talking-head/b-roll (xen kẽ trực tiếp, chia khung hình chồng lớp hoặc lớp phủ nổi có mặt nạ) và đặt caption cho nội dung kiểu UGC — áp dụng cho cả clip do AI tạo lẫn cảnh quay thật. Dùng mỗi khi người dùng muốn chỉnh sửa, cắt, ghép, định dạng hoặc thêm caption cho video kiểu UGC, hay chọn bố cục talking-head + b-roll. Tiếp nối sau ugc-photo-prompts/ugc-video-prompts nếu video do AI tạo, hoặc sau khi nhập cảnh quay thật bằng import_media.

Add to TypingMind

Tổng quan

Nhà phát hànhpalmier-io
Kho mãpalmier-skills
Tên kỹ năngugc-editing
Sao
82
Bản fork
10
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
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 dùng hướng dẫn viết bằng Markdown thay vì 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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    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 palmier-io công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ugc Editing 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/palmier-io/palmier-skills/tree/main/skills/ugc-editing
  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/palmier-io/palmier-skills.git /tmp/palmier-skills
mkdir -p .claude/skills
cp -r /tmp/palmier-skills/skills/ugc-editing .claude/skills/ugc-editing
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 Ugc Editing 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ự nạp Ugc Editing 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 bạn có thể dùng Ugc Editing với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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.

UGC Editing

Core principle

Editing is footage-source-agnostic. The same assemble → trim → layout → caption pipeline applies whether the clips came from ugc-video-prompts or a real phone shoot. This skill picks up wherever footage already exists and turns it into a finished vertical post. The single biggest editing mistake in UGC is padding — long pauses, repeated stumbles, slow setups. Cut harder than feels comfortable. Authentically raw ≠ unedited; it means tight pacing with natural-sounding joins.

Tool model (current Palmier): timeline positions are project frames; source trims are seconds via source: [start, end]. Linked A/V is folded into the video clip as audio: { id, … } — mute/edit audio by that nested id. Mutations return a timeline delta — patch from it; don't re-get_timeline after every call. Index 0 renders on top.


Step 0: Pre-flight — always run before touching the timeline

  1. get_timeline — check resolution / canGenerate. Must be 9:16 (typically 1080×1920). If not:

    set_project_settings({ aspectRatio: "9:16", quality: "1080p" })

    Do this before placing clips. Explicitly configured settings stick (the first clip no longer snaps the project to its source aspect — placement may only note a mismatch).

  2. get_media — identify A-roll and b-roll. Note durationSeconds, width/height, hasAudio.

  3. inspect_media on the A-roll:

    • First: overview: true — storyboard + segment timestamps.
    • Then: wordTimestamps: true (window long clips with startSeconds/endSeconds) — read words as prose before cutting. Look for retakes, fillers, false starts, trailing dead air, weak sections.

Step 1: Place A-roll only — no b-roll yet

add_clips({
  entries: [{
    mediaRef: AROLL_ID,
    startFrame: 0,
    // whole asset, or trim in SOURCE seconds (not project frames):
    source: [SKIP_PREROLL_S, END_S]   // omit for full file
  }]
})
// omit trackIndex on every entry → auto-creates video + linked audio tracks
  • Never pass trackIndex here when you want a fresh storyline track. Omitting it auto-creates one shared video track (and linked audio). Specifying an existing index can overwrite whatever is already there.
  • There is no durationFrames / trimStartFrame on add_clips — use source: [startSeconds, endSeconds] for source span, or endFrame (mutually exclusive with source) for an exact timeline occupy range.
  • 16:9 A-roll in a 9:16 project may letterbox. Cover-crop the talking head to full frame:
    apply_layout({
      layout: "full",
      slots: [{ slot: "main", clipIds: [AROLL_CLIP_ID], anchor: "center" }]
    })
    Prefer apply_layout over set_clip_properties transforms — layout sets transform and crop together (transform-only leaves a stale crop and can stretch).

Step 2: Cut bad takes and filler — words first

Prefer remove_silence first for dead air (no transcript), then word cuts.

Read first, cut once per pass. get_transcript → mark indices → one remove_words call. Indices shift after every cut — re-read before the next pass.

get_transcript()
remove_words({
  words: [
    [FIRST_RETAKE_START, FIRST_RETAKE_END],
    FILLER_INDEX,
    [FALSE_START_START, FALSE_START_END],
  ],
  cutAggressiveness: "tight"   // "balanced" / "loose" if joins feel clipped
})
// bulk fillers: remove_words({ matches: ["um", "uh", "hmm"] })

What to cut: duplicate retakes (keep the most fluent), fillers, false starts, trailing soft endings, off-topic tangents that break hook → value → CTA.

What to keep: natural pauses between real thoughts; best take of each section; the outro/CTA.

Captions block ripple: if a caption track exists, remove it before cutting:

manage_tracks({ remove: [{ trackId: CAPTION_TRACK_ID }] })
// or remove: [index] — prefer trackId from get_timeline

Then cut, then re-add captions. Never caption before cutting is finished. There is no remove_tracks tool.


Step 3: Pick a layout format

Format 0 — Straight intercut (default)
B-roll is supplementary, not simultaneous. Hard cuts alternating full-frame A-roll and b-roll on the same video track every 3–5s. Use add_clips (overwrite landing region) or insert_clips (ripple — requires trackIndex) — no layout tool.

Format 1 — Stacked split, b-roll top / talking head bottom
B-roll is proof (product/result/location). Viewer needs both at once. layout: "top_bottom", b-roll → top, head → bottom.

Format 2 — Stacked split, head top / b-roll bottom
B-roll is filler/retention. Same layout, slots flipped.

Format 3 — Full-bleed b-roll, floating head
Not clean via apply_layout alone — needs chroma/apply_effect + manual framing. Skip unless asked.


Step 4: Place b-roll

Format 0 — intercut on the storyline track

add_clips({
  entries: [
    { mediaRef: BROLL_1, startFrame: F0, source: [0, 4] },
    { mediaRef: BROLL_2, startFrame: F1, source: [0, 3] },
  ]
})
// same track as A-roll → overwrites those ranges (split/trim under the hood)

Mute any linked b-roll audio (nested audio.id on each placed video, or mute the b-roll audio track via manage_tracks).

Format 1–2 — stacked split (critical: span-scope the head)

apply_layout on an existing clip is whole-clip (time-invariant). If you layout the entire A-roll into bottom, the head stays half-frame for the whole video — including stretches with no b-roll (black / empty top).

Do this instead:

  1. split_clips the A-roll at each b-roll span boundary so overlay segments are their own clips.
  2. add_clips each b-roll tile on a new track (omit trackIndex on the whole batch) covering exactly those frames — use startFrame + source or endFrame.
  3. Mute b-roll audio immediately:
    set_clip_properties({
      clipIds: [BROLL_AUDIO_NESTED_IDS],  // video.audio.id from timeline/delta
      volume: 0
    })
  4. For each overlapping pair, apply_layout:
    apply_layout({
      layout: "top_bottom",
      slots: [
        { slot: "top",    clipIds: [BROLL_CLIP_ID], anchorY: 0.4 },
        { slot: "bottom", clipIds: [AROLL_SEGMENT_ID], anchor: "center" }
      ]
    })
  5. Leave non-overlay A-roll segments full-frame (layout: "full" only if something dirtied them).

Do not use insert_clips for overlay b-roll — it ripples the storyline and breaks sync. Do not build splits with set_clip_properties / set_keyframes transforms.

Optional shortcut for a single continuous stacked section: apply_layout placement mode with mediaRef in every slot + startFrame/endFrame creates stacked tracks for that range only — useful when A-roll isn't already on the timeline for that span. Don't mix mediaRef and clipIds across slots in one call.


Step 5: Captions

add_captions finds spoken audio itself — there is no clipIds filter. Mute all b-roll / non-dialogue audio before captioning or captions will pick up the wrong speech.

add_captions({
  animation: "highlightPop",          // or "wordPop"
  highlightColor: "#FFD700",
  maxWords: 3,
  transform: { centerY: 0.5 },        // 0.5 seam (split); 0.82 lower-third (full-frame)
  style: {
    color: "#FFFFFF",
    bold: true,
    fontSize: 48,                     // ~48 split; 60+ full-frame
    fontCase: "mixed"                 // NOT "uppercase" — natural case
  }
})
  • Restyle later: update_text({ captionGroupId, style: {…}, transform: {…}, animation }).
  • fontCase is display casing (mixed / uppercase / lowercase). Prefer mixed.
  • Caption clips show as captionGroups summaries on get_timeline — use captionDetail: true only when editing individual caption clips.

Step 6: Verify

inspect_timeline({ startFrame: 0, endFrame: totalFrames, maxFrames: 6 })

Check samples for: b-roll filling its half only during overlay spans; talking head full-frame elsewhere; captions at the seam/lower-third; no stretched clips (stale crop — reset with apply_layout full).


Common failure modes

SymptomCauseFix
B-roll overwrites A-rolltrackIndex pointed at storylineRe-add b-roll with trackIndex omitted
Head stuck in bottom half foreverapply_layout on whole A-roll clipSplit A-roll; layout only overlay segments
Clip looks stretchedTransform without clearing cropapply_layout({ layout: "full", slots: [{ slot: "main", clipIds: [ID] }] })
Captions from b-roll dialogueB-roll audio still audiblevolume: 0 on nested b-roll audio ids, then regenerate captions
remove_words sync-lockCaption track presentmanage_tracks remove caption track → cut → re-caption
add_clips rejectedUsed durationFrames / bare arrayUse { entries: [{ mediaRef, startFrame, source? }] }
Stale timeline mental modelRe-read skipped after foreign editsPatch from mutation deltas; get_timeline after failures / user edits

Track order — typical end state

Index 0 = top (what you see on top in the preview).

IndexContent
0Captions (text)
1B-roll video (muted linked audio)
2A-roll video
…A-roll audio (linked; may appear as nested audio on the video clip)

Pacing benchmarks

  • Hook in the first 2–3 seconds.
  • A cut, b-roll switch, or caption change roughly every 3–5 seconds.
  • Most UGC ads: 15–60s (30–45s sweet spot for Reels with CTA).
  • Captions are not optional — most social video is watched muted.
  • AI talking heads: keep faces to 2–3s before cutting to b-roll.

Guardrails

  • Build fictional, generic personas — don't edit in a specific real, identifiable person without consent, and don't recreate a named public figure's likeness.
  • Keep wardrobe/pose/action choices brand-safe and non-sexualizing by default; only go further if the user explicitly asks.

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

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

Hướng dẫn ghép cảnh quay thô, cắt đoạn quay lỗi và khoảng lặng, chọn và áp dụng bố cục talking-head/b-roll (xen kẽ trực tiếp, chia khung hình chồng lớp hoặc lớp phủ nổi có mặt nạ) và đặt caption cho nội dung kiểu UGC — áp dụng cho cả clip do AI tạo lẫn cảnh quay thật. Dùng mỗi khi người dùng muốn chỉnh sửa, cắt, ghép, định dạng hoặc thêm caption cho video kiểu UGC, hay chọn bố cục talking-head + b-roll. Tiếp nối sau ugc-photo-prompts/ugc-video-prompts nếu video do AI tạo, hoặc sau khi nhập cảnh quay thật bằng import_media.

Vì sao nên dùng Ugc Editing 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. Ugc Editing 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 Ugc Editing trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/palmier-io/palmier-skills/tree/main/skills/ugc-editing. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Ugc Editing?

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.

Có thể dùng Ugc Editing 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 Ugc Editing 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 Ugc Editing có miễn phí không?

Có. Kỹ năng này được palmier-io phát hành trên GitHub theo giấy phép Apache-2.0. 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇