audio-loop

audio-loop is a skill for Claude Code, Codex from coroboros/agent-skills. It costs 215 tokens per session (2,803 once invoked), scanned B, original, MIT.

A web-audio skill that turns a sound clip into a seamless background loop for a website. It supports common audio files such as WAV, MP3, and FLAC, and produces a web-ready FLAC file plus JavaScript for browser playback.

In plain words
What is it for?
Use it to prepare quiet looping ambience for heroes, landing pages, portfolios, or other web pages, including the code needed to start audio after a user gesture.
Why use it?
It removes gaps, uneven stereo balance, loudness issues, and browser playback setup that can make background audio distracting or fail to start.

Skill for Claude CodeCodex

Part of the media-skills plugin — 5 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/coroboros/agent-skills/audio-loop
Any agent
npx skills add coroboros/agent-skills --skill audio-loop
Clone the repo
git clone --depth 1 https://github.com/coroboros/agent-skills

Made for: Claude Code, Codex.

Or install media-skills, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audio-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/coroboros/agent-skills/audio-loop.svg)](https://agentmods.dev/skills/coroboros/agent-skills/audio-loop)
Your own site
<a href="https://agentmods.dev/skills/coroboros/agent-skills/audio-loop"><img src="https://agentmods.dev/badge/skills/coroboros/agent-skills/audio-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 215 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,803 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00215 $0.02803
Opus 5 $0.00108 $0.01401
Sonnet 5 $0.00043 $0.00561
Haiku 4.5 $0.00021 $0.00280

Measured 4d ago against content hash 27b2316a3267, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

audio-loop scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audio-loop.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`command -v ffmpeg ffprobe`. Missing → stop and ask the user to install (macOS: `! brew install ffmpeg`, Debian/Ubuntu: `! sudo apt install ffmpeg`). Never auto-install.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bufferPromise = fetch(AUDIO_URL)
skills/audio-loop/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audio Loop

Produce a web-ready seamless audio loop from any source clip: auto-correct stereo balance, normalize loudness, encode lossless FLAC so AudioBufferSourceNode{loop:true} plays it sample-accurate and gapless, emit a drop-in Web Audio snippet that unlocks playback on the first user gesture.

All ffmpeg work happens in scripts/audio-loop.sh — this skill validates the source, orchestrates the pipeline, and turns the script's summary into a report plus a ready-to-paste JS snippet.

Parameters

Flag Default Description
-t <LUFS> -28 Integrated loudness target (ambient web default)
-v <0..1> 0.6 Target volume baked into the emitted JS snippet
-o <dir> input dir Output directory
-s off Save to ~/.agents/output/{project}/audio-loop/{slug}/
-S off Force no-save
-B off Disable stereo balance auto-correction

Where each flag is handled. -t, -o, and -B pass through to scripts/audio-loop.sh. -v is skill-only — the agent reads it from $ARGUMENTS and interpolates it into the TARGET constant of the emitted JS snippet; the script never sees it. -s / -S follow the repo save-mode convention — the agent translates -s into an -o <save_path> passed to the script, where <save_path> is ~/.agents/output/{project}/audio-loop/{slug}/ ({project} = kebab-cased basename of the git toplevel, else cwd; create it $HOME-expanded, report the fully-expanded absolute path — no tilde, no magic).

Deliberately no crossfade flag. If the source WAV has a real sample-level discontinuity at the loop boundary, that's source editing — outside this skill's scope. If the user is hearing a bump with FLAC + Web Audio, see Diagnostic by negative result below.

Workflow

1. Validate tools

command -v ffmpeg ffprobe. Missing → stop and ask the user to install (macOS: ! brew install ffmpeg, Debian/Ubuntu: ! sudo apt install ffmpeg). Never auto-install.

Read the full file on GitHub · 170 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 170 lines · 215 tokens per session scan B 27b2316a3267

Subscribe to this mod's changes

audio-loop is a skill published in the GitHub repository coroboros/agent-skills (4 stars, last pushed 2d ago), licensed MIT. It adds 215 tokens to every session and 2,803 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

optimize-threejs-games

Profile, diagnose, and improve Three.js or WebGL game performance without regressing gameplay. Use for frame-time drops, CPU/GPU pressure, draw calls, texture and geometry budgets, animation loops, adaptive quality, mobile performance, and browser performance verification.

MengTo/Skills · 57 tokens

staggered-word-reveal

Create subtle editorial word-by-word text reveal animations where each word fades and rises into place once it enters the viewport. Use for premium portfolio headlines, hero copy, section intros, and short marketing text that needs a cinematic staggered reveal with IntersectionObserver or in-view detection.

boraoztunc/skills · 61 tokens

pexo-agent

AI video generation skill with auto model selection across Seedance 2, Kling 3.0, HappyHorse, and 10+ models. Produces finished multi-shot videos (5–120s) from text, images, URLs, scripts, or audio — including AI music, lip sync, and multi-shot sequencing. Calls Pexo's external API, manages project status and billing…

pexoai/pexo-skills · 193 tokens

acquiring-skills

Discover and install skills from Hermes, ClawHub, GitHub, and other registries. Load this skill whenever a user asks for a capability you don't already have — image generation, social media, email, calendar, finance, DevOps, search, browser automation, etc.

letta-ai/letta-code · 61 tokens

ai-voice-bots

Builds production voice bots and IVR with Python STT/TTS pipelines. Use when designing telephony, streaming audio, latency budgets, or voice quality monitoring.

vasilyu1983/AI-Agents-public · 39 tokens

performance-budget-lab

Use for website performance planning, Lighthouse/web-vitals checks, bundle/media/font budgets, Core Web Vitals triage, image/video optimization, animation performance, deployment readiness, and premium-site speed audits.

TheGoat395/Codex-Skills · 45 tokens