clip-it
The master tool for all advanced audio/video processing.
Installation
npx clawhub@latest install clip-itView the full skill documentation and source below.
Documentation
Smart Media Clipper
This is a specialized tool that performs semantic media processing. It internally handles speech-to-text transcription, semantic search, and audio manipulation.
🧠 Agent Mental Model (Read Carefully)
Triggering Logic
Activate this skill for any of the following intents:- Clipping/Trimming: "Cut the video where...", "Find the part about...", "Trim the section..."
- Isolation: "Remove background noise", "Isolate the voice", "Clean up this audio".
- Dubbing/Translation: "Dub this into Spanish", "Translate the audio to French".
- Summarization by Clip: "Extract the main talking points as audio".
⚠️ CRITICAL INSTRUCTIONS (ANTI-HALLUCINATION)
elevenlabs, clipper, smart-clipper, spleeter, or ffmpeg directly for these tasks.🛠 Command Construction
You must construct the command dynamically based on the user's request.
Base Command:/Users/akdeepankar/clawd/skills/clipit/bin/clipper --input "{INPUT}" --query "{QUERY}"
Flags & Parameters:
| Parameter | User Intent | Flag to Append |
| :--- | :--- | :--- |
| INPUT | A YouTube link or local file path | --input "{INPUT}" |
| QUERY | Description of the part to find | --query "{QUERY}" |
| ISOLATE | "Remove noise", "isolate vocals", "clean audio" | --isolate |
| DUB | "Dub into [Language]", "Translate to [Language]" | --dub "[CODE]" |
- English:
en - Hindi:
hi - Spanish:
es - French:
fr - German:
de - Japanese:
ja
📝 Step-by-Step Execution Plan
INPUT, QUERY (defaults to "whole file" if undefined, but try to infer context), and optional ISOLATE or DUB flags.* Success: Look for the line
OUTPUT_FILE: /path/to/result.wav.* Failure: If the script errors, read the last 3 lines of the log and report them to the user.
* Upload the file found in the
OUTPUT_FILE path.* Respond: "I have processed the audio. Here is the clip matching '{QUERY}'."
💡 Examples
Scenario 1: Simple YouTube Clip
User: "Find the part where they talk about the budget in this video "
>
Command:
/Users/akdeepankar/Projects/clawd/skills/clipper/bin/clipper --input "" --query "talk about the budget"
Scenario 2: Isolation & Cleanup
User: "Take recording.mp3, remove the background noise, and just give me the interview part."
>
Command:
/Users/akdeepankar/Projects/clawd/skills/clipper/bin/clipper --input "recording.mp3" --query "interview conversation" --isolate
Scenario 3: Dubbing
User: "Dub this video into Hindi."
>
Command:
/Users/akdeepankar/Projects/clawd/skills/clipper/bin/clipper --input "" --query "full audio" --dub "hi"(Note: If no specific clip is asked for, use "full audio" or a generic query)
Scenario 4: Sensitive Data Extraction
User: "Trim the part where he says the credit card number."
>
Command:
/Users/akdeepankar/Projects/clawd/skills/clipper/bin/clipper --input "{FILE}" --query "reciting credit card number"