add-audio

Scaffold Web Audio API modules for browser game music and sound effects.

307|37|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/PlayableIntelligence/game-creator --skill add-audio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-audio
Source: https://github.com/PlayableIntelligence/game-creator/tree/main/skills/add-audio
Command: npx skills add https://github.com/PlayableIntelligence/game-creator --skill add-audio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add immersive audio to browser games by synthesizing music and sound effects with no runtime dependencies, enabling rich audio experiences without managing external assets.

Core Features & Use Cases

  • Web Audio-based BGM sequencer for looping background music.
  • One-shot SFX generation for responsive gameplay cues.
  • No dependencies; scaffolds modules and wires into the game's event system.

Quick Start

Run /add-audio in your project to scaffold the audio subsystem and wire it into your game engine.

Frequently Asked Questions about add-audio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add background music and sound effects to a browser game using Web Audio?

This approach uses the Web Audio API to generate looping background music and one-shot SFX directly in the browser. It scaffolds an AudioManager and AudioBridge to synthesize audio without managing external audio files or runtime dependencies.

How do I play audio in a web browser game after the first user interaction?

Web Audio API requires a first-user-interaction activation to start playing audio in a browser game. This integration handles that activation automatically, wiring the audio subsystem into your game's EventBus to ensure sounds trigger correctly after user input.

Can I generate game sound effects and music without external audio files or dependencies?

Yes, you can generate game sound effects and music without external audio files by using a Web Audio-based BGM sequencer and one-shot SFX generation. This method synthesizes all audio in-browser, eliminating runtime dependencies and external asset management.

What is the best way to implement a mute toggle for Web Audio API in a game?

The best way to implement a mute toggle for Web Audio API is to wire it through a central AudioManager module. This setup connects the toggle directly to your game's EventBus, allowing you to globally mute and unmute synthesized BGM and SFX.

How do I trigger event-driven SFX in JavaScript game development?

You trigger event-driven SFX in JavaScript game development by wiring one-shot SFX generation modules into your game's EventBus. This connects gameplay events directly to the Web Audio API, playing synthesized sound effects responsively without external files.

Are there limitations to using synthesized Web Audio for browser game BGM?

A limitation of using synthesized Web Audio for browser game BGM is that audio is generated programmatically rather than playing recorded tracks. This means complex, vocal, or highly orchestrated music may be difficult to reproduce compared to using standard audio files.