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 tracksdevelopment
Close the loop on a Linear ticket when its work ships - move the status and post a deploy comment with the PR link, what shipped, and a try-it link, mentioning the collaborator. Used as the tail of /ro:linear-nightshift for every merged mirror, or manually after an ad-hoc build. Triggers on "linear update", "update the linear ticket", "mark NUT-x done", "tell eoin it shipped", "/ro:linear-update".
devops
Run a night-shift against a collaborator's Linear board. Pulls the team's Grilled tickets (/ro:linear-grill moves a ticket to Grilled once its questions are answered), VERIFIES the questions were actually answered (unanswered → bounce the ticket to the "Question for <name>" state), mirrors verified tickets to ephemeral GitHub issues with ready-for-agent, then runs the standard /ro:night-shift machinery on GitHub. Tail-calls /ro:linear-update for everything that merged + deployed. Triggers on "linear nightshift", "nightshift linear", "drain the linear board", "run the shift off linear", "/ro:linear-nightshift".
development
Grill a collaborator's Linear tickets and move every processed ticket to where it belongs. Resolves the board from the repo's .ro-linear.json, reads the collaborator's Backlog / Ready-for-agent issues, then per ticket either posts 3-5 decision-extracting questions (state moves to "Question for <name>") or confirms it build-ready (state moves to "Grilled", the gate /ro:linear-nightshift consumes); shipped-and-confirmed tickets close as Done. The async-collaborator counterpart of /ro:day-shift for people who never touch GitHub. Triggers on "grill linear", "grill eoin's tickets", "linear grill", "add questions to the linear tickets", "/ro:linear-grill".
development
--- name: about-page description: Add a standard About page to any web app, what it is, the tech stack, and an FAQ, wired into a footer link with a sticky footer. Built with Spartan + Tailwind (the canonical component layer) and falls back to semantic HTML so it ships reliably. Use whenever building, polishing, or shipping an app, every app should have one. Triggers on "add an about page", "about page", "footer about link", or as a standard step in app build/polish. category: frontend argument-h