AGENT SKILL

silence-trim

Use when removing long silence, dead air, or filler pauses from speech video while preserving natural padding and synchronized captions.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
silence-trim
description
Use when removing long silence, dead air, or filler pauses from speech video while preserving natural padding and synchronized captions.

03 SKILL.md 正文

silence-trim — remove dead air with silencedetect + keep-span re-cut

Distilled from the REAL media-studio implementation. Cite these when in doubt:

  • sidecar/media_studio/features/silencetrim.py — detect → invert → re-cut, the silence.trim RPC, the no-silent-fallback notice.
  • sidecar/media_studio/features/boundary.py — build_silencedetect_argv, the silence_start/silence_end regexes, the dB / min-duration defaults.
  • sidecar/media_studio/features/fillers.py — build_segment_cut_argv (the trim/atrim+concat re-cut), remap_time / remap_cues (cue re-time).
  • sidecar/media_studio/ffmpeg.py — build_probe_argv (ffprobe duration), run (drained -progress runner), binary resolution by absolute path.
  • sidecar/media_studio/features/cues.py — word_cues (the WORD-level cue shape {index,start,end,text} that remap_cues re-times).

This is NOT audio_saliency. audio_saliency.py scores interest (laughter / applause / music / loudness) with a PANNs CNN14 model for the short-maker's unified scorer. silence-trim is amplitude-only timeline surgery: it never loads a model, never tags events, and only removes/keeps spans of time.


The recipe (4 stages — exactly what the module does)

duration  -> detect (silencedetect) -> invert (keep_spans + pad) -> re-cut (trim/atrim+concat)
                                                                  \-> remap_cues (re-time captions)
  1. Probe duration — ffprobe for format=duration. If it fails or is ≤0,

Defaults (from boundary.py / silencetrim.py)

Exact commands (real argv — no invented flags)

Stage 1 — probe duration (ffmpeg.build_probe_argv)

Stage 2 — detect silence (boundary.build_silencedetect_argv)

Stage 3 — re-cut keeps (fillers.build_segment_cut_argv)

Pitfalls that actually bite

GPU / model notes

Worked example

Quick reference — the pure functions to lean on

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

演示文稿测试与质量
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0