[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBCKGNSGCMBADE302AZWN9":3,"skill-same:01M7FBCKGNSGCMBADE302AZWN9":47},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7FBCKGNSGCMBADE302AZWN9","web-games",null,"Web browser game development. Framework selection (Phaser, PixiJS, Kaplay, Canvas\u002FWebGL, Three.js, Babylon.js), hybrid DOM+canvas, WebGPU, optimization, PWA, audio unlock. Use when building HTML5\u002FWebGL\u002FWebGPU games or choosing a browser runtime.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fgame-development\u002Fgame-development\u002Fweb-games\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: web-games\ndescription: >-\n  Web browser game development. Framework selection (Phaser, PixiJS, Kaplay,\n  Canvas\u002FWebGL, Three.js, Babylon.js), hybrid DOM+canvas, WebGPU, optimization,\n  PWA, audio unlock. Use when building HTML5\u002FWebGL\u002FWebGPU games or choosing a\n  browser runtime.\nrisk: none\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Web Browser Game Development\n\n> Framework selection and browser-specific principles. For stack choice details see `game-development\u002Fengine-selection`.\n\n---\n\n## 1. Framework Selection\n\n### Decision Tree\n\n```\nWhat type of game?\n│\n├── 2D Game\n│   ├── Full game engine features? → Phaser 4\n│   ├── Fast prototype \u002F jam?      → Kaplay\n│   ├── Raw rendering power?       → PixiJS 8\n│   └── Tiny \u002F no dependency?      → Raw Canvas \u002F WebGL\n│\n├── 3D Game\n│   ├── Full engine (physics, XR)? → Babylon.js\n│   └── Rendering focused?         → Three.js\n│\n├── Hybrid (DOM UI + canvas moments)\n│   └── Custom shell + guest viewport\n│       (Canvas\u002FKaplay\u002FPhaser\u002FPixi inside a region\u002Fmodal)\n│\n└── Narrative-first\n    └── Ink (inkjs) or Twine export + DOM host\n```\n\n### Comparison\n\n| Framework | Type | Best For |\n|-----------|------|----------|\n| **Raw Canvas \u002F WebGL** | 2D \u002F low-level | Small scope, full control |\n| **Kaplay** | 2D toolkit | Rapid prototypes |\n| **Phaser 4** | 2D engine | Full game features |\n| **PixiJS 8** | 2D renderer | Rendering, custom systems |\n| **Three.js** | 3D renderer | Visualizations, lightweight 3D |\n| **Babylon.js** | 3D engine | Full engine, XR |\n\n### Hybrid shell + guest\n\nUse when chrome is HTML (menus, inventories, text, dashboards) but bursts of play need a canvas:\n\n1. Mount guest in a container; pass context in.\n2. Run a **local** game loop in the guest.\n3. Return results (score, pass\u002Ffail); **destroy** guest (RAF, listeners, GL context as needed).\n\nDo not let the guest own global app routing unless the product *is* a full-screen game.\n\n---\n\n## 2. WebGPU Adoption\n\n### Browser Support (2025)\n\n| Browser | Support |\n|---------|---------|\n| Chrome | ✅ Since v113 |\n| Edge | ✅ Since v113 |\n| Firefox | ✅ Since v131 |\n| Safari | ✅ Since 18.0 |\n| **Total** | **~73%** global |\n\n### Decision\n\n- **New GPU-heavy projects**: Use WebGPU with WebGL fallback\n- **Broad legacy \u002F simple 2D**: Start with WebGL or Canvas 2D\n- **Feature detection**: Check `navigator.gpu`\n\n---\n\n## 3. Performance Principles\n\n### Browser Constraints\n\n| Constraint | Strategy |\n|------------|----------|\n| No local file access | Asset bundling, CDN |\n| Tab throttling | Pause when hidden (`visibilitychange`) |\n| Mobile data limits | Compress assets |\n| Audio autoplay | Require user interaction |\n\n### Optimization Priority\n\n1. **Asset compression** - KTX2, Draco, WebP\n2. **Lazy loading** - Load on demand\n3. **Object pooling** - Avoid GC\n4. **Draw call batching** - Reduce state changes\n5. **Web Workers** - Offload heavy computation\n\n---\n\n## 4. Asset Strategy\n\n| Type | Format |\n|------|--------|\n| Textures | KTX2 + Basis Universal (or WebP\u002FPNG for simple 2D) |\n| Audio | WebM\u002FOpus (fallback: MP3) |\n| 3D Models | glTF + Draco\u002FMeshopt |\n\n| Phase | Load |\n|-------|------|\n| Startup | Core assets, \u003C2MB |\n| Gameplay | Stream on demand |\n| Background | Prefetch next level |\n\n---\n\n## 5. PWA for Games\n\n**Benefits:** offline play, install, fullscreen, optional push.\n**Requirements:** service worker, web app manifest, HTTPS.\n\n---\n\n## 6. Audio Handling\n\n- Create\u002Fresume `AudioContext` on first click\u002Ftap\n- Prefer Web Audio API; pool sources; preload common SFX\n- Compress with WebM\u002FOpus when possible\n\n---\n\n## 7. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Load all assets upfront | Progressive loading |\n| Ignore tab visibility | Pause when hidden |\n| Block on audio load | Lazy load audio |\n| Skip compression | Compress everything |\n| Assume fast connection | Handle slow networks |\n| Leave canvas engines running off-screen | Tear down guests |\n\n---\n\n> **Remember:** Browser is the most accessible platform. Respect its constraints.\n\n## When to Use\n\nUse when building HTML5\u002FWebGL\u002FWebGPU games, choosing a browser runtime, or wiring hybrid DOM+canvas guests.\n\n## Limitations\n\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# Web Browser Game Development\n\n> Framework selection and browser-specific principles. For stack choice details see `game-development\u002Fengine-selection`.\n\n---\n\n## 1. Framework Selection\n\n### Decision Tree\n\n```\nWhat type of game?\n│\n├── 2D Game\n│   ├── Full game engine features? → Phaser 4\n│   ├── Fast prototype \u002F jam?      → Kaplay\n│   ├── Raw rendering power?       → PixiJS 8\n│   └── Tiny \u002F no dependency?      → Raw Canvas \u002F WebGL\n│\n├── 3D Game\n│   ├── Full engine (physics, XR)? → Babylon.js\n│   └── Rendering focused?         → Three.js\n│\n├── Hybrid (DOM UI + canvas moments)\n│   └── Custom shell + guest viewport\n│       (Canvas\u002FKaplay\u002FPhaser\u002FPixi inside a region\u002Fmodal)\n│\n└── Narrative-first\n    └── Ink (inkjs) or Twine export + DOM host\n```\n\n### Comparison\n\n| Framework | Type | Best For |\n|-----------|------|----------|\n| **Raw Canvas \u002F WebGL** | 2D \u002F low-level | Small scope, full control |\n| **Kaplay** | 2D toolkit | Rapid prototypes |\n| **Phaser 4** | 2D engine | Full game features |\n| **PixiJS 8** | 2D renderer | Rendering, custom systems |\n| **Three.js** | 3D renderer | Visualizations, lightweight 3D |\n| **Babylon.js** | 3D engine | Full engine, XR |\n\n### Hybrid shell + guest\n\nUse when chrome is HTML (menus, inventories, text, dashboards) but bursts of play need a canvas:\n\n1. Mount guest in a container; pass context in.\n2. Run a **local** game loop in the guest.\n3. Return results (score, pass\u002Ffail); **destroy** guest (RAF, listeners, GL context as needed).\n\nDo not let the guest own global app routing unless the product *is* a full-screen game.\n\n---\n\n## 2. WebGPU Adoption\n\n### Browser Support (2025)\n\n| Browser | Support |\n|---------|---------|\n| Chrome | ✅ Since v113 |\n| Edge | ✅ Since v113 |\n| Firefox | ✅ Since v131 |\n| Safari | ✅ Since 18.0 |\n| **Total** | **~73%** global |\n\n### Decision\n\n- **New GPU-heavy projects**: Use WebGPU with WebGL fallback\n- **Broad legacy \u002F simple 2D**: Start with WebGL or Canvas 2D\n- **Feature detection**: Check `navigator.gpu`\n\n---\n\n## 3. Performance Principles\n\n### Browser Constraints\n\n| Constraint | Strategy |\n|------------|----------|\n| No local file access | Asset bundling, CDN |\n| Tab throttling | Pause when hidden (`visibilitychange`) |\n| Mobile data limits | Compress assets |\n| Audio autoplay | Require user interaction |\n\n### Optimization Priority\n\n1. **Asset compression** - KTX2, Draco, WebP\n2. **Lazy loading** - Load on demand\n3. **Object pooling** - Avoid GC\n4. **Draw call batching** - Reduce state changes\n5. **Web Workers** - Offload heavy computation\n\n---\n\n## 4. Asset Strategy\n\n| Type | Format |\n|------|--------|\n| Textures | KTX2 + Basis Universal (or WebP\u002FPNG for simple 2D) |\n| Audio | WebM\u002FOpus (fallback: MP3) |\n| 3D Models | glTF + Draco\u002FMeshopt |\n\n| Phase | Load |\n|-------|------|\n| Startup | Core assets, \u003C2MB |\n| Gameplay | Stream on demand |\n| Background | Prefetch next level |\n\n---\n\n## 5. PWA for Games\n\n**Benefits:** offline play, install, fullscreen, optional push.\n**Requirements:** service worker, web app manifest, HTTPS.\n\n---\n\n## 6. Audio Handling\n\n- Create\u002Fresume `AudioContext` on first click\u002Ftap\n- Prefer Web Audio API; pool sources; preload common SFX\n- Compress with WebM\u002FOpus when possible\n\n---\n\n## 7. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Load all assets upfront | Progressive loading |\n| Ignore tab visibility | Pause when hidden |\n| Block on audio load | Lazy load audio |\n| Skip compression | Compress everything |\n| Assume fast connection | Handle slow networks |\n| Leave canvas engines running off-screen | Tear down guests |\n\n---\n\n> **Remember:** Browser is the most accessible platform. Respect its constraints.\n\n## When to Use\n\nUse when building HTML5\u002FWebGL\u002FWebGPU games, choosing a browser runtime, or wiring hybrid DOM+canvas guests.\n\n## Limitations\n\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"none","community","2026-02-27","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fgame-development\u002Fgame-development\u002Fweb-games","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill web-games",{"tool":39,"command":40},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill web-games",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill web-games","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fgame-development\u002Fgame-development\u002Fweb-games\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]