/game:game-audiofrom Game Design and Build
Make, wire and measure a Godot game's audio by numbers: seeded procedural sound effects and ambient loops that render the same bytes each time, a file report (length, LUFS, peak, onset, leading silence, loop seam), a bounded audio autoload with tests, a played-mix loudness measure from Movie Maker recordings (integrated LUFS, true peak, momentary max, duck depth), and music sets made by script or by an AI music web service that must loop, hit loudness and tempo targets and render deterministically. Use it whenever someone wants to add or change sound effects, generate SFX in code, fix a click at a loop seam, tune buses, ducks or a limiter, check that the mix is too loud or too quiet, re-check audio review findings, or add a soundtrack or a second music set, even if nobody says "loudness" or "procedural audio".
Ships in Game Design and Build. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Game audio drifts when nobody measures it. A regenerated sound changes without notice, a loop clicks at its seam, a reward cue is quieter than a footstep, and a mix change "sounds better" on one pair of speakers only. This skill treats every sound as a build product with numbers. A seeded script makes the files, and a report proves each file meets its rules. A recording of the real played mix proves the buses meet their loudness targets. It works because the numbers catch regressions that ears miss, and a human listen pass is still left for the things that numbers cannot judge.
This is the procedure for scripted sound effects and ambient loops. Each step names the check that proves it.
.import file keeps its loop setting.loop_ prefix). Tests and tools use that rule, not a hand-kept table, so a new loop does not break 2 tests.File numbers do not prove the mix. Buses, ducks, a limiter and overlapping cues change what the player hears. Measure the mix from a recording of the real game.
ebur128 within 0.1 LU. A meter that fails this makes every later number useless.--write-movie <path> and a fixed frame rate at a small window resolution. Movie Maker mode mixes audio offline, so the recording holds the real mix at a steady rate. A record effect on the master bus can record silence on some multi-channel devices. Record several fights or scenes and normal play, with and without music. Record single buses (solo each bus) when you tune one bus..ogg), not only on the source WAV. A codec can add error at the edges..uid file.Reward cues need care. Use the maximum momentary loudness, not gated integrated loudness, to rank short reward tiers. Normalize them by loudness, not by peak, so a bigger reward is louder.
This skill owns loop-seam measurement. Other skills (for example release-and-store for a trailer music bed) call this section instead of a second procedure. A seam is the join where the last sample of a loop plays next to the first sample.
.ogg, .mp3, a QOA import), decode it to integer PCM first, at its own rate: ffmpeg -v error -i loop_wind.ogg -c:a pcm_s16le /tmp/seam/loop_wind.wav. Measure the source WAV too, so you can tell a recipe fault from a codec fault.python3 -I scripts/wav_report.py /tmp/seam/*.wav. Read 2 fields:
loop_seam_ratio: the step from the last sample to the first sample, divided by the 99th-percentile step inside the file;edge_step_ratio: the largest step across the last N and the first N samples joined (N is 64 by default; set it with --edge), divided by the same 99th-percentile step.loop_seam_ratio at most 1.0. The seam step is then no larger than a normal step inside the file, so the ear does not hear a click.edge_step_ratio under a limit that you set and write in the audio contract (for example 1.5, a sample value). This catches a codec ramp or a short glitch near the edges.A video music bed that loops (a trailer or a store clip) uses the same steps. Measure the seam on the audio that the final encode holds. Decode the audio track of the video to PCM. Cut exactly 1 loop period that starts at the loop start, and run the report on that cut.
A music set is a group of tracks for areas, fights and menus. It can come from a procedural generator, from edited album tracks, or from an AI music web service.
.import file for the loop setting and a uid. Run the audio tests with the real files.AI music web service rules.
| Symptom | Cause | Fix |
|---|---|---|
| A 48 kHz file reports 9 % too long | The report tool assumed 44.1 kHz | Read the rate from the header, or pass it |
| A one-shot feels late | Leading silence (for example 36 ms) in the recipe | Trim the start under 1 ms |
| A loop clicks once per cycle | Seam step above the 99th-percentile step | Render as a circular buffer; match the end values |
| WAV seams pass but the game clicks | Codec error at the edges of the encoded file | Measure the decoded file; render again |
| An 8 s loop stops at about 3 s | A fixed loop end after a compressed import | Set the loop end from the stream length at run time |
| Each new loop file breaks tests | Hard-coded loop tables in tests | One name rule for loops |
| A focused file test passes, the suite fails | Rules in other audio tests | Run the whole audio folder |
| A new file fails to load | First import pass | Import twice; judge the second pass |
| An audio timer runs in pause | Audio nodes process in pause | Stop the timer on pause |
| A duck still fires with its source muted | A muted bus still feeds a sidechain | Bypass the compressor to switch a duck off |
| A cue sounds harsh | Too much high energy | Compare the energy share above 3 kHz with a known soft cue |
| The mix recording is all zeros | A real-time record effect on a multi-channel device | Use Movie Maker mode |
| A recording runs far too long | Movie Maker time keeps the results screen open | Meter only the play part |
| Session WAV too big to load | A whole-file meter | Use a streaming meter or ffmpeg |
| The meter is off by more than 0.1 LU | A filter shape that does not match BS.1770 | Use the bilinear K-weighting form; check with the sine |
| Reward tiers do not rise in loudness | Gated loudness on short cues; peak normalization | Use momentary max; normalize by loudness |
| A latency probe passes in CI | Headless gives a dummy 0 ms latency; some drivers read 0.0 | Make the probe fail in headless and on 0.0 |
| The cue log misses physics-step cues | Entries keyed by frame number | Key log entries by identity |
| A scripted fight never reaches later phases | The scripted player deals too little damage | Lower boss health at set times in the recorder |
| A capture writes no result once | A flaky capture run | Retry once and record the retry |
A connect with unbind(0) prints an error | The signal has no arguments | Handle 0-argument signals in a separate path |
| A typed read fails on event data | The field holds a different type | Read it untyped; report the contract mismatch |
| The bus file shows a large diff | The editor rewrote it in its own format | Commit the rewritten file with its .uid |
Reported folder size disagrees with du | du counts disk blocks | Report the apparent size |
| Notes state wrong seam results | Written from memory | Check each number with a script |
| A drum stem disappears in the mix | Stem never measured alone | Measure each stem alone first |
An in-place sed -i edit fails on macOS | BSD sed needs a suffix argument | Use a Python edit or the editor tool |
scripts/wav_report.py in this skill is a standard-library version; run python3 -I scripts/wav_report.py --selftest first.headless-godot-runs: the safe flags and cleanup for headless imports and tool runs.godot-testing: the test loop, how to prove a test can fail, and the finish gate.visual-verification: windowed captures; a Movie Maker recording needs a real window too.feature-seams-and-saves: ship a new music set behind a settings choice and a data seam.release-and-store: the trailer and store audio use the same loudness numbers, and its music-bed seam check calls "Measure a loop seam" in this skill.fleet-game-dev: shared-file waits, shell pitfalls and when to ask before a paid step.What SKILL.md sets; muted values are Claude Code's defaults
30 skills in this plugin
/art-directionUse when a game concept needs its visual direction set: a style sheet (palette, shape language, lighting, texture), a shot list tied to the target fun, and image-generation prompts for a key art, hero and gameplay-mock placeholder. Trigger on: "art direction", "style sheet", "what should this look like", "shot list", or when `game-brief` needs its art section. Every image prompt carries fixed content-boundary negatives and never names a living artist./balance-model-dataKeep a game's numbers in a scripted balance model (for example Python modules) that checks design targets and exports the JSON the Godot game loads, and change that data without drift. It covers the edit-export-diff loop, FAIL-key baselines, deterministic exports, parity fixtures between the model and GDScript, what-if and lever searches inside the model, and design docs whose tables must match the model. Use it whenever someone wants to change a price, a yield, a pacing curve, a content table or an upgrade row that a script exports; asks why the model and the game disagree, why a parity test fails, or why a chapter runs too long; wants to tune or fit levers before touching game data; or writes a design doc full of numbers, even if nobody says "balance model" or "source of truth"./bot-balance-loopTune bosses, encounters and game rules with scripted bots that play the real Godot game headless, then compare the measured tables against written target bands. The loop writes the bands first, builds a fight tool with several bot steerings (coached, tight, wide, wait, ram), runs fixed seeds with repeatable flags, builds a table of first-try wins, mean tries, resource left and fight length, names each odd result BOT or GAME, and changes 1 lever at a time. It also covers model start states, rule probes, a shared pipeline, wall triage by snapshot replay, a full-playthrough bot, coach text from winning fights and telegraph-to-hit tests. Use it whenever someone wants to balance or retune a boss, check a kill rate or a difficulty band, find out why players or bots stall at an encounter, measure a rule change with encounter bots or a full-playthrough bot, or run a bot playthrough of the whole game, even if nobody says "bot table" or "target band"./core-loopUse when designing or diagramming a game's core loop — applies Stone Librande's "flowchart first" to draw the moment-to-moment, session and long-term loops, each as player action → system response → feedback → next decision, as Mermaid flowcharts, with every feedback edge labeled by the kind of fun it serves (LeBlanc's eight kinds), and checks that the inner loops (not the long-term loop) produce every target kind. Trigger on: "core loop", "gameplay loop", "draw the loop", "moment-to-moment", "session loop", "long-term loop", "retention loop", or the loop step of the game-design pipeline. Runs headless: never asks, infers and states assumptions./design-diagramsUse when a game design needs the right diagram, not more prose: an engine loop, a whole-game storyboard, a time-and-space map, a faction relationship chart, an axes-first matrix, or a module map. Trigger on: "what diagram should I use", "map out the loop", "chart the factions", "storyboard the game", or when `core-loop` or `game-brief` needs a diagram picked and drawn. Picks the diagram from Librande's vocabulary, applies the "wrong metaphor" check, and emits a Mermaid or JSON/SVG recipe./feature-seams-and-savesAdd new content, variants and whole modes to a Godot game through data seams and off-by-default flags, and keep player saves and settings safe across versions. It covers a new playable variant (vehicle, class, character) or encounter batch on a shared base class, an optional row key whose default keeps old rows exact, a prototype branch plus a flagged landing for a big mode, mode fields on content rows, atomic signed saves with backups, save-version migration tested with a real old save, graphics presets with a first-launch Auto pick, and setup tools that give the same project file on a second run. Use it whenever someone wants to add a character, enemy, boss, level type, game mode or data field, bump the save format, rename a settings key, harden saves against corruption or edits, or asks "will old saves still load?" or "how do I add this without breaking the base game?", even if nobody says "seam" or "migration".npx claudepluginhub mattmakes/skill-marketplace --plugin game