[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783SEJAZQ6CH8ES4Y9PK8PS":3,"skill-same:01M783SEJAZQ6CH8ES4Y9PK8PS":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M783SEJAZQ6CH8ES4Y9PK8PS","add-audio",null,"Add music and sound effects to a game using the Web Audio API — background music, gameplay themes, and SFX. Zero dependencies. Use when the user says \"add music\", \"add sound effects\", \"add audio\", \"make it sound good\", \"add BGM\", or \"add SFX to my game\". Do NOT use for gameplay features or visual design.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_opusgamelabs_game-creator_add-audio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-audio\ndescription: Add music and sound effects to a game using the Web Audio API — background music, gameplay themes, and SFX. Zero dependencies. Use when the user says \"add music\", \"add sound effects\", \"add audio\", \"make it sound good\", \"add BGM\", or \"add SFX to my game\". Do NOT use for gameplay features or visual design.\nargument-hint: \"[path-to-game]\"\nlicense: MIT\nmetadata:\n  author: OpusGameLabs\n  version: 1.3.0\n  tags: [game, audio, music, sfx, web-audio-api]\n---\n\n## Performance Notes\n\n- Take your time to do this thoroughly\n- Quality is more important than speed\n- Do not skip validation steps\n\n# Add Audio\n\nAdd procedural music and sound effects to an existing game. BGM uses a Web Audio API step sequencer for looping patterns. SFX use the Web Audio API directly for true one-shot playback. No audio files or npm packages needed — everything is synthesized in the browser.\n\n## Instructions\n\nAnalyze the game at `$ARGUMENTS` (or the current directory if no path given).\n\nFirst, load the game-audio skill to get the full Web Audio patterns and integration guide.\n\n### Step 1: Audit\n\n- Read `src\u002Fcore\u002FEventBus.js` to see what game events exist (flap, score, death, etc.)\n- Read all scene files to understand the game flow (gameplay, game over)\n- Identify what music and SFX would fit the game's genre and mood\n\n### Step 2: Plan\n\nPresent a table of planned audio:\n\n| Event \u002F Scene | Audio Type | Style | Description |\n|---------------|-----------|-------|-------------|\n| GameScene | BGM | Chiptune | Upbeat square wave melody + bass + drums |\n| GameOverScene | BGM | Somber | Slow descending melody |\n| Player action | SFX | Retro | Quick pitch sweep |\n| Score | SFX | Retro | Two-tone ding |\n| Death | SFX | Retro | Descending crushed notes |\n\nExplain in plain English: \"Background music will automatically loop during each scene. Sound effects will play when you do things like jump, score, or die. The first time you click\u002Ftap, the audio system will activate (browsers require a user interaction before playing sound).\"\n\n### Step 3: Implement\n\n1. Create `src\u002Faudio\u002FAudioManager.js` — AudioContext init, master gain node, BGM sequencer play\u002Fstop\n2. Create `src\u002Faudio\u002FAudioBridge.js` — wires EventBus events to AudioManager for BGM, calls SFX functions directly\n3. Create `src\u002Faudio\u002Fmusic.js` with BGM patterns for each scene (Web Audio step sequencer — note arrays that loop continuously)\n4. Create `src\u002Faudio\u002Fsfx.js` with SFX for each event (Web Audio API — OscillatorNode + GainNode + BiquadFilterNode for true one-shot playback)\n5. Add audio events to `EventBus.js` if not present (`AUDIO_INIT`, `MUSIC_GAMEPLAY`, `MUSIC_GAMEOVER`, `MUSIC_STOP`, `AUDIO_TOGGLE_MUTE`)\n6. Wire `initAudioBridge()` in `main.js`\n7. Emit `AUDIO_INIT` on first user interaction (game starts immediately, no menu)\n8. Emit music events at scene transitions and SFX events at game actions\n9. Add mute toggle — `AUDIO_TOGGLE_MUTE` event, UI button, M key shortcut\n\n### Step 4: Verify\n\n- Run `npm run build` to confirm no errors\n- List all files created\u002Fmodified\n- Remind the user: \"Click\u002Ftap once to activate audio, then you'll hear the music\"\n\n## Example Usage\n\n### Full audio pass\n```\n\u002Fadd-audio examples\u002Fflappy-bird\n```\nResult: Creates `src\u002Faudio\u002FAudioManager.js`, `music.js` (gameplay + game-over BGM patterns), `sfx.js` (flap, score, death, button SFX) → wires via AudioBridge → mute toggle on M key. First click activates audio.\n\n## Troubleshooting\n\n### No sound plays\n**Cause:** AudioContext not resumed after user interaction (browser autoplay policy).\n**Fix:** Ensure AudioContext.resume() is called on first user input (click\u002Ftap\u002Fkeydown). Check for AUDIO_INIT event wiring.\n\n### Audio causes lag spikes\n**Cause:** Creating new OscillatorNodes every frame.\n**Fix:** SFX should be one-shot (create, connect, start, stop). BGM uses a single looping sequencer. Never create nodes in update().\n\n## Next Step\n\nTell the user:\n\n> Your game now has music and sound effects! Next, run `\u002Fgame-creator:qa-game` to add automated tests that verify your game boots correctly, scenes transition properly, scoring works, and visuals haven't broken.\n>\n> **Pipeline progress:** ~~\u002Fviral-game~~ → ~~\u002Fdesign-game~~ → ~~\u002Fadd-audio~~ → `\u002Fqa-game` → `\u002Freview-game`\n>\n> *(This is the `\u002Fviral-game` one-shot pipeline — not the `\u002Fmake-game` multi-session, milestone-driven workflow.)*\n","## Performance Notes\n\n- Take your time to do this thoroughly\n- Quality is more important than speed\n- Do not skip validation steps\n\n# Add Audio\n\nAdd procedural music and sound effects to an existing game. BGM uses a Web Audio API step sequencer for looping patterns. SFX use the Web Audio API directly for true one-shot playback. No audio files or npm packages needed — everything is synthesized in the browser.\n\n## Instructions\n\nAnalyze the game at `$ARGUMENTS` (or the current directory if no path given).\n\nFirst, load the game-audio skill to get the full Web Audio patterns and integration guide.\n\n### Step 1: Audit\n\n- Read `src\u002Fcore\u002FEventBus.js` to see what game events exist (flap, score, death, etc.)\n- Read all scene files to understand the game flow (gameplay, game over)\n- Identify what music and SFX would fit the game's genre and mood\n\n### Step 2: Plan\n\nPresent a table of planned audio:\n\n| Event \u002F Scene | Audio Type | Style | Description |\n|---------------|-----------|-------|-------------|\n| GameScene | BGM | Chiptune | Upbeat square wave melody + bass + drums |\n| GameOverScene | BGM | Somber | Slow descending melody |\n| Player action | SFX | Retro | Quick pitch sweep |\n| Score | SFX | Retro | Two-tone ding |\n| Death | SFX | Retro | Descending crushed notes |\n\nExplain in plain English: \"Background music will automatically loop during each scene. Sound effects will play when you do things like jump, score, or die. The first time you click\u002Ftap, the audio system will activate (browsers require a user interaction before playing sound).\"\n\n### Step 3: Implement\n\n1. Create `src\u002Faudio\u002FAudioManager.js` — AudioContext init, master gain node, BGM sequencer play\u002Fstop\n2. Create `src\u002Faudio\u002FAudioBridge.js` — wires EventBus events to AudioManager for BGM, calls SFX functions directly\n3. Create `src\u002Faudio\u002Fmusic.js` with BGM patterns for each scene (Web Audio step sequencer — note arrays that loop continuously)\n4. Create `src\u002Faudio\u002Fsfx.js` with SFX for each event (Web Audio API — OscillatorNode + GainNode + BiquadFilterNode for true one-shot playback)\n5. Add audio events to `EventBus.js` if not present (`AUDIO_INIT`, `MUSIC_GAMEPLAY`, `MUSIC_GAMEOVER`, `MUSIC_STOP`, `AUDIO_TOGGLE_MUTE`)\n6. Wire `initAudioBridge()` in `main.js`\n7. Emit `AUDIO_INIT` on first user interaction (game starts immediately, no menu)\n8. Emit music events at scene transitions and SFX events at game actions\n9. Add mute toggle — `AUDIO_TOGGLE_MUTE` event, UI button, M key shortcut\n\n### Step 4: Verify\n\n- Run `npm run build` to confirm no errors\n- List all files created\u002Fmodified\n- Remind the user: \"Click\u002Ftap once to activate audio, then you'll hear the music\"\n\n## Example Usage\n\n### Full audio pass\n```\n\u002Fadd-audio examples\u002Fflappy-bird\n```\nResult: Creates `src\u002Faudio\u002FAudioManager.js`, `music.js` (gameplay + game-over BGM patterns), `sfx.js` (flap, score, death, button SFX) → wires via AudioBridge → mute toggle on M key. First click activates audio.\n\n## Troubleshooting\n\n### No sound plays\n**Cause:** AudioContext not resumed after user interaction (browser autoplay policy).\n**Fix:** Ensure AudioContext.resume() is called on first user input (click\u002Ftap\u002Fkeydown). Check for AUDIO_INIT event wiring.\n\n### Audio causes lag spikes\n**Cause:** Creating new OscillatorNodes every frame.\n**Fix:** SFX should be one-shot (create, connect, start, stop). BGM uses a single looping sequencer. Never create nodes in update().\n\n## Next Step\n\nTell the user:\n\n> Your game now has music and sound effects! Next, run `\u002Fgame-creator:qa-game` to add automated tests that verify your game boots correctly, scenes transition properly, scoring works, and visuals haven't broken.\n>\n> **Pipeline progress:** ~~\u002Fviral-game~~ → ~~\u002Fdesign-game~~ → ~~\u002Fadd-audio~~ → `\u002Fqa-game` → `\u002Freview-game`\n>\n> *(This is the `\u002Fviral-game` one-shot pipeline — not the `\u002Fmake-game` multi-session, milestone-driven workflow.)*\n",{"name":5,"license":15,"metadata":24,"description":7,"argument-hint":33},{"tags":25,"author":31,"version":32},[26,27,28,29,30],"game","audio","music","sfx","web-audio-api","OpusGameLabs","1.3.0","[path-to-game]","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_opusgamelabs_game-creator_add-audio",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-audio",{"tool":49,"command":50},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-audio",{"tool":52,"command":53},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-audio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_opusgamelabs_game-creator_add-audio\u002FSKILL.md",true,[],[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]