[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F9F9W979VKVDWAE2KGPVMK":3,"skill-same:01M7F9F9W979VKVDWAE2KGPVMK":49},{"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":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7F9F9W979VKVDWAE2KGPVMK","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.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\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","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fgame-development\u002Fweb-games",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill web-games",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill web-games",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill web-games","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fgame-development\u002Fweb-games\u002FSKILL.md",true,[],[50,57,62,69,76,83],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":58,"name":52,"nameZh":6,"description":53,"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},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\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},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\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},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\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},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\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},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]