[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7165BTRMECY3E2H6ASJXCWT":3,"skill-same:01M7165BTRMECY3E2H6ASJXCWT":64},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M7165BTRMECY3E2H6ASJXCWT","web-games",null,"Web browser game development principles. Framework selection, WebGPU, optimization, PWA.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fgame-development\u002Fweb-games\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"games","web games","web","game","2026","Game Development Principles","unknown","principles","selection","community","framework selection","pwa","web browser","game development","Optimization","framework","browser","development","webgpu","2026-11-10 10:12:30",false,"---\nname: web-games\ndescription: \"Web browser game development principles. Framework selection, WebGPU, optimization, PWA.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Web Browser Game Development\n\n> Framework selection and browser-specific principles.\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\n│   └── Raw rendering power? → PixiJS\n│\n├── 3D Game\n│   ├── Full engine (physics, XR)? → Babylon.js\n│   └── Rendering focused? → Three.js\n│\n└── Hybrid \u002F Canvas\n    └── Custom → Raw Canvas\u002FWebGL\n```\n\n### Comparison (2025)\n\n| Framework | Type | Best For |\n|-----------|------|----------|\n| **Phaser 4** | 2D | Full game features |\n| **PixiJS 8** | 2D | Rendering, UI |\n| **Three.js** | 3D | Visualizations, lightweight |\n| **Babylon.js 7** | 3D | Full engine, XR |\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 projects**: Use WebGPU with WebGL fallback\n- **Legacy support**: Start with WebGL\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 |\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### Compression Formats\n\n| Type | Format |\n|------|--------|\n| Textures | KTX2 + Basis Universal |\n| Audio | WebM\u002FOpus (fallback: MP3) |\n| 3D Models | glTF + Draco\u002FMeshopt |\n\n### Loading Strategy\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\n\n- Offline play\n- Install to home screen\n- Full screen mode\n- Push notifications\n\n### Requirements\n\n- Service worker for caching\n- Web app manifest\n- HTTPS\n\n---\n\n## 6. Audio Handling\n\n### Browser Requirements\n\n- Audio context requires user interaction\n- Create AudioContext on first click\u002Ftap\n- Resume context if suspended\n\n### Best Practices\n\n- Use Web Audio API\n- Pool audio sources\n- Preload common sounds\n- Compress with WebM\u002FOpus\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\n---\n\n> **Remember:** Browser is the most accessible platform. Respect its constraints.\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n","# Web Browser Game Development\n\n> Framework selection and browser-specific principles.\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\n│   └── Raw rendering power? → PixiJS\n│\n├── 3D Game\n│   ├── Full engine (physics, XR)? → Babylon.js\n│   └── Rendering focused? → Three.js\n│\n└── Hybrid \u002F Canvas\n    └── Custom → Raw Canvas\u002FWebGL\n```\n\n### Comparison (2025)\n\n| Framework | Type | Best For |\n|-----------|------|----------|\n| **Phaser 4** | 2D | Full game features |\n| **PixiJS 8** | 2D | Rendering, UI |\n| **Three.js** | 3D | Visualizations, lightweight |\n| **Babylon.js 7** | 3D | Full engine, XR |\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 projects**: Use WebGPU with WebGL fallback\n- **Legacy support**: Start with WebGL\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 |\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### Compression Formats\n\n| Type | Format |\n|------|--------|\n| Textures | KTX2 + Basis Universal |\n| Audio | WebM\u002FOpus (fallback: MP3) |\n| 3D Models | glTF + Draco\u002FMeshopt |\n\n### Loading Strategy\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\n\n- Offline play\n- Install to home screen\n- Full screen mode\n- Push notifications\n\n### Requirements\n\n- Service worker for caching\n- Web app manifest\n- HTTPS\n\n---\n\n## 6. Audio Handling\n\n### Browser Requirements\n\n- Audio context requires user interaction\n- Create AudioContext on first click\u002Ftap\n- Resume context if suspended\n\n### Best Practices\n\n- Use Web Audio API\n- Pool audio sources\n- Preload common sounds\n- Compress with WebM\u002FOpus\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\n---\n\n> **Remember:** Browser is the most accessible platform. Respect its constraints.\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{"name":5,"risk":25,"source":28,"date_added":43,"description":7},"2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fgame-development\u002Fweb-games","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill web-games",{"tool":56,"command":57},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill web-games",{"tool":59,"command":60},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill web-games","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fgame-development\u002Fweb-games\u002FSKILL.md",true,[],[65,75,82,90,96,104],{"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":69,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":74},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":91,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":74},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":74},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]