skills/sfx-elevenlabs/SKILL.md
Generate sound effects from text prompts via ElevenLabs Sound Effects API. Outputs MP3 files. Use for video SFX, UI sounds, ambient backgrounds, transition effects.
npx skillsauth add RonanCodes/ronan-skills sfx-elevenlabsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate sound effects from text descriptions using the ElevenLabs Sound Effects API. Outputs an MP3 file — anything from a UI click to a thunderstorm to a spaceship engine.
/sfx-elevenlabs "door creaking open in a haunted house" [--duration <seconds>] [--output <path>] [--loop]
/sfx-elevenlabs "gentle rain on a window" --duration 10 --loop
--duration — length in seconds (0.5–30). Default: auto-detected from prompt.--output — output file path. Default: /tmp/sfx-elevenlabs-<timestamp>.mp3.--loop — generate a seamlessly looping sound effect (v2 model only).--influence — prompt influence (0–1). Higher = stricter adherence to prompt. Default: 0.3.--format — output format. Default: mp3_44100_128. Options: mp3_44100_128, pcm_16000, opus_48000_64.if [ -z "$ELEVENLABS_API_KEY" ]; then
echo "❌ ELEVENLABS_API_KEY not set."
echo ""
echo "Get your key at: https://elevenlabs.io/app/settings/api-keys"
echo "Then set it: export ELEVENLABS_API_KEY=sk_..."
echo "Or add to: ~/.claude/.env"
exit 1
fi
PROMPT="$1"
DURATION="${DURATION:-null}" # null = auto-detect
INFLUENCE="${INFLUENCE:-0.3}"
LOOP="${LOOP:-false}"
MODEL="eleven_text_to_sound_v2"
FORMAT="${FORMAT:-mp3_44100_128}"
OUTPUT="${OUTPUT_PATH:-/tmp/sfx-elevenlabs-$(date +%s).mp3}"
curl -s -X POST "https://api.elevenlabs.io/v1/sound-generation?output_format=${FORMAT}" \
-H "xi-api-key: $ELEVENLABS_API_KEY" \
-H "Content-Type: application/json" \
-d "$(python3 -c "
import json, sys
data = {
'text': '''$PROMPT''',
'model_id': '$MODEL',
'prompt_influence': $INFLUENCE,
'loop': $LOOP
}
dur = $DURATION
if dur != 'null' and dur is not None:
data['duration_seconds'] = float(dur)
print(json.dumps(data))
")" \
--output "$OUTPUT"
if [ ! -f "$OUTPUT" ] || [ "$(wc -c < "$OUTPUT")" -lt 100 ]; then
echo "❌ Sound effect generation failed. Response:"
cat "$OUTPUT" 2>/dev/null
exit 1
fi
DURATION_ACTUAL=$(ffprobe -v quiet -show_entries format=duration -of csv=p=0 "$OUTPUT" 2>/dev/null | cut -d. -f1)
SIZE=$(wc -c < "$OUTPUT" | tr -d ' ')
✅ Sound effect generated
Prompt: <first 80 chars>...
Model: eleven_text_to_sound_v2
Duration: <N>s
Loop: <true|false>
Influence: <0-1>
Size: <N> KB
Output: <output path>
Play: open <output path>
# Quick test — generates a 2-second click sound
export $(grep ELEVENLABS_API_KEY ~/.claude/.env)
curl -s -X POST "https://api.elevenlabs.io/v1/sound-generation" \
-H "xi-api-key: $ELEVENLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "short UI button click", "duration_seconds": 1, "prompt_influence": 0.5}' \
--output /tmp/sfx-test.mp3 && \
echo "✅ API key works" && open /tmp/sfx-test.mp3
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| ELEVENLABS_API_KEY | yes | — | API key from elevenlabs.io/app/settings/api-keys |
eleven_text_to_sound_v2)rate_limit_error. When batch-generating, throttle parallel curls (e.g. while [[ $(jobs -r | wc -l) -ge 4 ]]; do sleep 0.2; done).A good video SFX prompt has three parts: texture + character + duration cue. Vague prompts ("glitch sound") produce generic noise; specific prompts ("short digital glitch stutter, lo-fi corruption, punchy distortion") produce usable hits.
| Pattern | Template | Example |
|---------|----------|---------|
| Short hit | <texture>, <mood>, short and <quality> | magical chime burst, rising shimmer, short and energetic |
| Whoosh | <material> whoosh and <tail>, <feel>, quick | card whoosh and soft thump, tactile, quick |
| Ambient pad | <instrument>, <mood>, <adjective> | warm synth pad swell, psychedelic ambient, dreamy |
| Tech/UI | <action>, <descriptor>, <pacing cue> | digital counter ticking up rapidly then stopping with a soft ding |
| Glitch/distortion | short <type> <motion>, lo-fi <qualifier>, punchy <descriptor> | short digital glitch stutter, lo-fi corruption, punchy distortion |
Avoid: single-word prompts, overly long narrative descriptions, conflicting adjectives (e.g. "soft aggressive"). When a generation sounds wrong, rewrite the prompt — don't tweak prompt_influence hoping for a miracle.
When layering multiple SFX in a video, generated loudness varies wildly across prompts even at the same prompt_influence. Budget a second pass to tune per-effect volume rather than fighting the generation. Typical tuning range in Remotion <Audio volume={N} />:
Listen on headphones at moderate volume — what sounds fine on speakers often clips in earbuds.
| Category | Prompt | Duration | |----------|--------|----------| | UI | "short satisfying button click" | 0.5s | | Transition | "cinematic swoosh transition" | 2s | | Ambient | "gentle rain on a window with distant thunder" | 15s | | Impact | "spacious braam suitable for movie trailer" | 5s | | Nature | "birds chirping in a morning forest" | 10s | | Tech | "futuristic computer startup sequence" | 3s | | Notification | "gentle chime notification sound" | 1s |
generate-video — SFX for transitions, intros, outros in Remotion videosmusic-elevenlabs — combine SFX with background music for full audio designaudio-mix — layer SFX over voice and music trackstesting
--- name: linear-pipeline description: The Fable orchestrator for a single dispatched Linear ticket. Holds almost no context itself; it receives `--issue <ID> --detached`, decides the stage sequence, and fans out a sub-agent per stage, passing forward only each stage's artifact (never re-derived, never inlined into its own context). Step zero, before any planning or stage routing, is a boundary triage against `canon/security-boundary.md` (#199): a match tags Ronan Connolly and stops the run, no
development
--- name: in-your-face description: Capture a chat-only answer into a durable artifact (markdown + HTML, PDF when cheap) and launch it automatically so the user cannot miss it. Use when user says "in your face", "don't let me lose this", "save that answer", "make that durable", or right after answering a substantive side question (a recipe, comparison, how-to, or generated prompt) that would otherwise die with the context. category: workflow argument-hint: [--no-open] [--vault <short>] [hint of
tools
One-shot headless OpenAI Codex CLI calls for background/admin AI tasks — summaries, classification, extraction, admin glue. The default engine for anything that runs AI constantly in the background (daemon-driven, per-event), because it bills the flat ChatGPT subscription instead of Claude usage or per-token API spend, and it keeps working while Claude is rate-limited. NEVER for coding — coding stays Claude. Use when a skill or daemon needs a cheap always-on AI call, when the user says "use codex", "ask codex", "codex as backup", or when building a background summarizer/classifier into a listener or loop. Reads auth from ~/.codex/auth.json (ChatGPT account, no API key).
research
Turn a warranty rejection, repair quote, or RMA email into a cited decision brief — legal read (NL/EU consumer law), is the part user-serviceable, live part and new-unit prices, repair-vs-DIY-vs-new economics, before-you-send-it checklist, deadlines. Use when the user pastes or screenshots a repair quote, warranty rejection, "not covered" email, onderzoekskosten fee, or asks "should I repair or replace this".