Agent skill

Audio Trim

by godot-fun in godot-fun/gai

Trims leading and trailing silence from audio files using FFmpeg.

MITAuto-check passedMedia & Creative

Install Audio Trim

skills CLI
$ npx skills add godot-fun/gai --skill audio-trim -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install godot-fun/gai audio-trim --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/audio-trim .claude/skills/audio-trim && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
audio-trim
GitHub stars
183
Token cost
~422 tokens
SKILL.md length
138 words
Files
2
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Trims leading and trailing silence from audio files using FFmpeg.

  • Works in 4 steps: Use the bundled script, not ad-hoc… → Looping BGM — avoid end-trim; can break… → Attack or reverb cut off → raise -t… → …
  • The user wants audio trim
  • SKILL.md covers Rules, Quick Start, Thresholds and Common Flags, plus 2 more sections
  • Calls python

What it does

Audio Trim is an agent skill from godot-fun/gai. Trims leading and trailing silence from audio files using FFmpeg. Use when the user wants audio trim, trim silence at start/end, remove leading/trailing silence, batch SFX cleanup, or voice dialogue preprocessing.

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in Media & Creative, covering Video production. It works with FFmpeg. The repository describes itself as: A lightweight AI agent and skill workflow framework built with Godot. The licence is MIT.

When your agent uses it

  • The user wants audio trim
  • Trim silence at start/end
  • Remove leading/trailing silence
  • Batch SFX cleanup

Example prompts

  • “Use the audio-trim skill to trim leading and trailing silence from audio files using FFmpeg”
  • “/audio-trim”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Use the bundled script, not ad-hoc -ss/-to.
  2. Looping BGM — avoid end-trim; can break loop seams. Skip this skill or trim manually.
  3. Attack or reverb cut off → raise -t (e.g. -45 or -40).
  4. FFmpeg filter details: reference.md

What it can do on your machine

Read from SKILL.md and the folder at commit 6394686. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Audio Trim loads about 422 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 138 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~422

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from godot-fun/gai at commit 6394686, republished under its MIT licence (© godot-fun). 138 words, ~422 tokens.

Download SKILL.mdSave it as .claude/skills/audio-trim/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
audio-trim
description
Trims leading and trailing silence from audio files using FFmpeg. Use when the user wants audio trim, trim silence at start/end, remove leading/trailing silence, batch SFX cleanup, or voice dialogue preprocessing.

Audio Trim

Remove leading/trailing silence via FFmpeg silenceremove.

Rules

When this skill applies, read and follow skill-dependency-manager — run scripts as documented, install missing tools into .dependency/.

Quick Start

Default: threshold -50 dB, both sides, output to <audio-dir>/audio-trim/<audio-name>:

bash
.dependency/python/python .ai/audio-trim/trim.py --audio path/to/audio.wav

Custom threshold:

bash
.dependency/python/python .ai/audio-trim/trim.py --audio audio/sfx.wav -t -45

Thresholds

AssetThreshold
UI / SFX / voice-50 dB (default)
Clipped attack / noisy room-40 to -45 dB
Ambience / loops-60 dB or skip

Common Flags

--audio · -t / --threshold · -o / --output

bash
.dependency/python/python .ai/audio-trim/trim.py --audio audio/sfx.wav -t -50

Originals are never modified. Input must be a single audio file (--audio), not a directory. Supported: .wav, .mp3, .ogg, .flac, .aac, .m4a, .wma.

Agent Notes

  1. Use the bundled script, not ad-hoc -ss/-to.
  2. Looping BGM — avoid end-trim; can break loop seams. Skip this skill or trim manually.
  3. Attack or reverb cut off → raise -t (e.g. -45 or -40).
  4. FFmpeg filter details: reference.md

CLI

Copy-paste commands: cli/audio-trim.md

© godot-fun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/audio-trim of godot-fun/gai.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 6394686

Compare with similar skills

Audio Trim next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Audio Trim compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audio Trim this skillgodot-fun/gai183—~422Automated safety check: PassMIT
Video Understandcalesthio/OpenMontage66k—~841Automated safety check: PassAGPL-3.0
HyperFrames Video Entry Pointheygen-com/hyperframes60k3 repos~5.2kAutomated safety check: PassApache-2.0
Video Shotseternityspring/reelbench-skills8781 repos~1.8kAutomated safety check: NotesApache-2.0
Mobile Demo Film Editorsuperset-sh/superset15k—~1.8kAutomated safety check: PassCustom licence
Video Editcalesthio/OpenMontage66k—~855Automated safety check: NotesAGPL-3.0

Similar skills

  • Video Understand

    calesthio/OpenMontage

    Understand video content locally using ffmpeg frame extraction and Whisper transcription.

    66k GitHub stars~841 tokensUpdated 6 days ago
    Media & CreativeAuto-check passed
  • HyperFrames Video Entry Point

    heygen-com/hyperframes

    Entry point for making, editing and rendering videos from HTML compositions with HyperFrames, routing each request to the right workflow.

    60k GitHub starsUsed in 3 repos~5.2k tokens
    Media & CreativeAuto-check passed
  • Video Shots

    eternityspring/reelbench-skills

    拉片:把一条成片拆成逐镜头的分析表——每个镜头的时长、景别、类别、运镜、画面. An agent skill from eternityspring/reelbench-skills.

    878 GitHub starsUsed in 1 repo~1.8k tokens
    Media & CreativeAuto-check: notes
  • Mobile Demo Film Editor

    superset-sh/superset

    Edits real mobile screen recordings into a configurable demo video with phone framing, title cards, cutaways and an end card, using a bundled renderer.

    15k GitHub stars~1.8k tokensUpdated today
    Media & CreativeAuto-check passed
  • Video Edit

    calesthio/OpenMontage

    Edit videos locally using ffmpeg. An agent skill from calesthio/OpenMontage.

    66k GitHub stars~855 tokensUpdated 6 days ago
    Media & CreativeAuto-check: notes
  • Lemo-Opuscar Short Film Director

    lemomo-ai/lemo-opuscar

    Directs a short film made entirely in code in one of the Lemo-Opuscar library's named visual styles, from fetching the library through production and delivery.

    1.7k GitHub stars~596 tokensUpdated yesterday
    Media & CreativeAuto-check passed

More from godot-fun/gai

All 36 skills in this repo
  • AI Text To Speech

    godot-fun/gai

    Zero-shot text-to-speech with voice cloning via IndexTTS2 (index-tts).

    183 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audio Denoise

    godot-fun/gai

    Reduces background noise in a single audio file using FFmpeg afftdn.

    183 GitHub stars~465 tokensUpdated today
    Auto-check passed
  • Audio Fade

    godot-fun/gai

    Applies fade-in and fade-out at the start and end of a single audio file using FFmpeg.

    183 GitHub stars~652 tokensUpdated today
    Auto-check passed
  • Normalizes a single audio file to consistent LUFS loudness with true-peak limiting using FFmpeg.

    183 GitHub stars~684 tokensUpdated today
    Auto-check passed
  • Standardizes a single audio file to 44100 or 48000 Hz and exports 16-bit PCM WAV using FFmpeg.

    183 GitHub stars~638 tokensUpdated today
    Auto-check passed
  • Audio Split

    godot-fun/gai

    Splits a single audio file into two segments (part 1 before the split point, part 2 after) using FFmpeg.

    183 GitHub stars~554 tokensUpdated today
    Auto-check passed

Works with

Questions about Audio Trim

What does Audio Trim do?

Trims leading and trailing silence from audio files using FFmpeg. Audio Trim is an agent skill from godot-fun/gai. Trims leading and trailing silence from audio files using FFmpeg.

When should I use Audio Trim?

Audio Trim fits situations like: the user wants audio trim; trim silence at start/end; remove leading/trailing silence; batch SFX cleanup.

How do I install Audio Trim in Claude Code?

Run `npx skills add godot-fun/gai --skill audio-trim -a claude-code`. Or copy the skill folder (.agents/skills/audio-trim in godot-fun/gai) into .claude/skills/audio-trim in your project. Claude Code loads it when a task matches its description.

How do I install Audio Trim in Codex?

Run `npx skills add godot-fun/gai --skill audio-trim -a codex`. Or copy the skill folder (.agents/skills/audio-trim in godot-fun/gai) into .agents/skills/audio-trim in your project. Codex loads it when a task matches its description.

Can I use Audio Trim in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add godot-fun/gai --skill audio-trim -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audio-trim, .gemini/skills/audio-trim, .github/skills/audio-trim and .opencode/skills/audio-trim in your project.

What does Audio Trim need to run?

Going by SKILL.md and its folder, Audio Trim needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Audio Trim access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Audio Trim safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Audio Trim use?

Audio Trim is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Audio Trim use?

About 422 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Audio Trim?

Skills that share tags, products or a category with Audio Trim: Video Understand (calesthio/OpenMontage, 66k stars), HyperFrames Video Entry Point (heygen-com/hyperframes, 60k stars), Video Shots (eternityspring/reelbench-skills, 878 stars) and Mobile Demo Film Editor (superset-sh/superset, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audio Trim?

godot-fun (a GitHub organization) maintains it in godot-fun/gai, which has 183 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 10, 2026.

Source: godot-fun/gai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.