[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77GFERAHZFPT8F4J4KT24YA":3,"skill-same:01M77GFERAHZFPT8F4J4KT24YA":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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77GFERAHZFPT8F4J4KT24YA","game-quality-gates",null,"Game development quality gates and mandatory checks. Activate when building, reviewing, debugging, or deploying any game project (H5\u002FCanvas\u002FWebGL\u002FPhaser\u002FThree.js\u002F2D\u002F3D). Covers state cleanup, lifecycle management, input handling, audio, persistence, networking, anti-cheat, and performance. Use as pre-deploy checklist or when diagnosing game-specific bugs (state leaks, phantom timers, buff conflicts, memory growth, touch issues).","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\u002Fclawhub\u002Fg\u002Fgame-quality-gates\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: game-quality-gates\ndescription: Game development quality gates and mandatory checks. Activate when building, reviewing, debugging, or deploying any game project (H5\u002FCanvas\u002FWebGL\u002FPhaser\u002FThree.js\u002F2D\u002F3D). Covers state cleanup, lifecycle management, input handling, audio, persistence, networking, anti-cheat, and performance. Use as pre-deploy checklist or when diagnosing game-specific bugs (state leaks, phantom timers, buff conflicts, memory growth, touch issues).\n---\n\n# Game Quality Gates\n\nMandatory quality standards for all game projects. Based on 70+ real bugs and industry best practices.\n\n## Core Principle\n\n> Bugs come from **cross-state interactions**, not individual features.\n> Each feature works alone; they break in combination.\n\n## 12 Universal Rules (all games)\n\n### 1. Single Cleanup Entry Point 🔄\nAll exit paths (death\u002Flevel-complete\u002Fquit\u002Fpause\u002Fscene-switch) call ONE cleanup method with options.\n\n```js\ncleanupGameState(opts) {\n  \u002F\u002F Fixed order: sub-objects → buffs+timers → UI → projectiles → (optional) enemies\u002Fcontrols\u002Fevents\n}\n\u002F\u002F Every exit: resetBall(), levelComplete(), gameOver(), onShutdown() → calls this\n```\n\n**New feature = add one line here. Never scatter cleanup across exits.**\n\n### 2. Respect Active Buffs ⚡\nAny code modifying attributes (speed\u002Fattack\u002Fsize\u002Fdefense) must check for active temporary effects first.\n\n```js\n\u002F\u002F ❌ speed = Math.max(speed, BASE_SPEED);  \u002F\u002F ignores slow buff\n\u002F\u002F ✅ speed = Math.max(speed, this._currentBaseSpeed);  \u002F\u002F buff-aware baseline\n```\n\n### 3. Cache Before Destroy 📦\nExtract all needed data before `destroy()`\u002F`dispose()`\u002F`remove()`.\n\n```js\nconst { x, y } = obj; const color = obj.getData('color');\nobj.destroy();\nspawnParticles(x, y, color);\n```\n\n### 4. Timers Follow Lifecycle ⏰\nTrack all `setTimeout`\u002F`setInterval`\u002F`delayedCall`\u002F`rAF`. Cancel in cleanup.\n\n```js\nthis.activeTimers.push(this.time.delayedCall(10000, cb));\n\u002F\u002F In cleanup: this.activeTimers.forEach(t => t.remove(false));\n```\n\n### 5. Frame-Rate Independent Logic 🖥️\nMultiply all time-dependent logic by delta. Never assume 60fps.\n\n```js\n\u002F\u002F ✅ player.x += speed * (delta \u002F 1000);\n```\n- Phaser `update(time, delta)`: delta in ms, divide by 1000\n- Three.js `clock.getDelta()`: returns seconds\n- Physics: prefer fixed timestep (accumulate delta, step every 16.67ms)\n\n### 6. Scene Transition = Full Cleanup 🚪\nOn scene\u002Flevel switch, clean: event listeners, timers, rAF, audio nodes, object pools, WebGL resources (geometry\u002Fmaterial\u002Ftexture dispose), global state, pending fetch\u002FXHR.\n\nVerify: Chrome DevTools → Memory → heap snapshots before\u002Fafter transition.\n\n### 7. Audio Lifecycle 🔊\n- iOS: AudioContext must `resume()` inside a user interaction event\n- `visibilitychange` → pause all audio when hidden, resume when visible\n- WeChat WebView: `WeixinJSBridge.invoke('getNetworkType')` before autoplay\n- Pool short sound effects; manage background music separately\n\n### 8. Input Safety 👆\n- Purchase\u002Fconsume actions: mutex lock + visual disable\n- Attack\u002Ffire: cooldown timer\n- State toggles (pause\u002Fresume): state machine guard\n- See **Phaser reference** for multi-touch pointer ID tracking\n\n### 9. Save State Persistence 💾\n- Include `version` field for migration when game updates\n- Only persist meaningful state (not particles\u002Ftemp animations)\n- Auto-save on: level end, manual save, `visibilitychange` (hidden)\n- localStorage limit 5MB; use IndexedDB for larger saves\n- WeChat: use `wx.setStorage` (not localStorage)\n\n### 10. Network Fault Tolerance 🌐\nAll network calls (leaderboard\u002Fshare\u002Fads\u002Fsync): 5s timeout + local cache fallback + no blocking game flow on failure.\n\n### 11. Asset Loading Strategy 📦\nThree tiers: critical (startup, \u003C2s) → level assets (loading screen) → deferred (background lazy load).\nFatal error only for critical failures; degrade gracefully for non-critical.\n\nCompression: GLB+Draco, WebP images, MP3+OGG dual audio, sprite atlases.\n\n### 12. Anti-Cheat Baseline 🛡️\nClient is untrusted. Server validates:\n- One-time raid tokens (bind user+timestamp, single use)\n- Play duration sanity check (can't finish 30 levels in 3 seconds)\n- Score range validation\n- See `references\u002Fanti-cheat.md` for implementation patterns\n\n---\n\n## Engine-Specific Rules\n\nFor Phaser-specific rules (pointer ID tracking, physics group cleanup, OVERLAP_BIAS, time vs physics pause):\n→ Read `references\u002Fphaser.md`\n\nFor Three.js-specific rules (dispose trio, GLB compression pipeline, animation state machine, prune pitfalls):\n→ Read `references\u002Fthreejs.md`\n\n---\n\n## Pre-Deploy Checklist\n\nRun this checklist before every deployment:\n\n### 🔴 Universal (all games)\n- [ ] New objects cleaned in `cleanupGameState()`?\n- [ ] New timers cancelled in cleanup?\n- [ ] Attribute changes respect active buffs?\n- [ ] Data cached before destroy?\n- [ ] Movement\u002Fanimation uses delta time?\n- [ ] No memory leaks across scene transitions? (DevTools verify)\n- [ ] Audio pauses on background\u002Flock?\n- [ ] Purchase\u002Fconsume has duplicate-click prevention?\n- [ ] Save has version number + migration?\n- [ ] Network calls have timeout + fallback?\n- [ ] Asset load failure has graceful degradation?\n- [ ] Critical operations (spend\u002Fsettle) server-validated?\n\n### 🟡 Mobile Extra\n- [ ] Multi-touch: each finger tracked independently?\n- [ ] iOS AudioContext resumed after first interaction?\n- [ ] WeChat WebView compatible (no advanced CSS like backdrop-filter)?\n- [ ] Virtual joystick\u002Fbuttons don't overlap game area?\n- [ ] Orientation change handled?\n\n### 🔵 Engine-specific\n→ See `references\u002Fphaser.md` or `references\u002Fthreejs.md` for engine checklists.\n","# Game Quality Gates\n\nMandatory quality standards for all game projects. Based on 70+ real bugs and industry best practices.\n\n## Core Principle\n\n> Bugs come from **cross-state interactions**, not individual features.\n> Each feature works alone; they break in combination.\n\n## 12 Universal Rules (all games)\n\n### 1. Single Cleanup Entry Point 🔄\nAll exit paths (death\u002Flevel-complete\u002Fquit\u002Fpause\u002Fscene-switch) call ONE cleanup method with options.\n\n```js\ncleanupGameState(opts) {\n  \u002F\u002F Fixed order: sub-objects → buffs+timers → UI → projectiles → (optional) enemies\u002Fcontrols\u002Fevents\n}\n\u002F\u002F Every exit: resetBall(), levelComplete(), gameOver(), onShutdown() → calls this\n```\n\n**New feature = add one line here. Never scatter cleanup across exits.**\n\n### 2. Respect Active Buffs ⚡\nAny code modifying attributes (speed\u002Fattack\u002Fsize\u002Fdefense) must check for active temporary effects first.\n\n```js\n\u002F\u002F ❌ speed = Math.max(speed, BASE_SPEED);  \u002F\u002F ignores slow buff\n\u002F\u002F ✅ speed = Math.max(speed, this._currentBaseSpeed);  \u002F\u002F buff-aware baseline\n```\n\n### 3. Cache Before Destroy 📦\nExtract all needed data before `destroy()`\u002F`dispose()`\u002F`remove()`.\n\n```js\nconst { x, y } = obj; const color = obj.getData('color');\nobj.destroy();\nspawnParticles(x, y, color);\n```\n\n### 4. Timers Follow Lifecycle ⏰\nTrack all `setTimeout`\u002F`setInterval`\u002F`delayedCall`\u002F`rAF`. Cancel in cleanup.\n\n```js\nthis.activeTimers.push(this.time.delayedCall(10000, cb));\n\u002F\u002F In cleanup: this.activeTimers.forEach(t => t.remove(false));\n```\n\n### 5. Frame-Rate Independent Logic 🖥️\nMultiply all time-dependent logic by delta. Never assume 60fps.\n\n```js\n\u002F\u002F ✅ player.x += speed * (delta \u002F 1000);\n```\n- Phaser `update(time, delta)`: delta in ms, divide by 1000\n- Three.js `clock.getDelta()`: returns seconds\n- Physics: prefer fixed timestep (accumulate delta, step every 16.67ms)\n\n### 6. Scene Transition = Full Cleanup 🚪\nOn scene\u002Flevel switch, clean: event listeners, timers, rAF, audio nodes, object pools, WebGL resources (geometry\u002Fmaterial\u002Ftexture dispose), global state, pending fetch\u002FXHR.\n\nVerify: Chrome DevTools → Memory → heap snapshots before\u002Fafter transition.\n\n### 7. Audio Lifecycle 🔊\n- iOS: AudioContext must `resume()` inside a user interaction event\n- `visibilitychange` → pause all audio when hidden, resume when visible\n- WeChat WebView: `WeixinJSBridge.invoke('getNetworkType')` before autoplay\n- Pool short sound effects; manage background music separately\n\n### 8. Input Safety 👆\n- Purchase\u002Fconsume actions: mutex lock + visual disable\n- Attack\u002Ffire: cooldown timer\n- State toggles (pause\u002Fresume): state machine guard\n- See **Phaser reference** for multi-touch pointer ID tracking\n\n### 9. Save State Persistence 💾\n- Include `version` field for migration when game updates\n- Only persist meaningful state (not particles\u002Ftemp animations)\n- Auto-save on: level end, manual save, `visibilitychange` (hidden)\n- localStorage limit 5MB; use IndexedDB for larger saves\n- WeChat: use `wx.setStorage` (not localStorage)\n\n### 10. Network Fault Tolerance 🌐\nAll network calls (leaderboard\u002Fshare\u002Fads\u002Fsync): 5s timeout + local cache fallback + no blocking game flow on failure.\n\n### 11. Asset Loading Strategy 📦\nThree tiers: critical (startup, \u003C2s) → level assets (loading screen) → deferred (background lazy load).\nFatal error only for critical failures; degrade gracefully for non-critical.\n\nCompression: GLB+Draco, WebP images, MP3+OGG dual audio, sprite atlases.\n\n### 12. Anti-Cheat Baseline 🛡️\nClient is untrusted. Server validates:\n- One-time raid tokens (bind user+timestamp, single use)\n- Play duration sanity check (can't finish 30 levels in 3 seconds)\n- Score range validation\n- See `references\u002Fanti-cheat.md` for implementation patterns\n\n---\n\n## Engine-Specific Rules\n\nFor Phaser-specific rules (pointer ID tracking, physics group cleanup, OVERLAP_BIAS, time vs physics pause):\n→ Read `references\u002Fphaser.md`\n\nFor Three.js-specific rules (dispose trio, GLB compression pipeline, animation state machine, prune pitfalls):\n→ Read `references\u002Fthreejs.md`\n\n---\n\n## Pre-Deploy Checklist\n\nRun this checklist before every deployment:\n\n### 🔴 Universal (all games)\n- [ ] New objects cleaned in `cleanupGameState()`?\n- [ ] New timers cancelled in cleanup?\n- [ ] Attribute changes respect active buffs?\n- [ ] Data cached before destroy?\n- [ ] Movement\u002Fanimation uses delta time?\n- [ ] No memory leaks across scene transitions? (DevTools verify)\n- [ ] Audio pauses on background\u002Flock?\n- [ ] Purchase\u002Fconsume has duplicate-click prevention?\n- [ ] Save has version number + migration?\n- [ ] Network calls have timeout + fallback?\n- [ ] Asset load failure has graceful degradation?\n- [ ] Critical operations (spend\u002Fsettle) server-validated?\n\n### 🟡 Mobile Extra\n- [ ] Multi-touch: each finger tracked independently?\n- [ ] iOS AudioContext resumed after first interaction?\n- [ ] WeChat WebView compatible (no advanced CSS like backdrop-filter)?\n- [ ] Virtual joystick\u002Fbuttons don't overlap game area?\n- [ ] Orientation change handled?\n\n### 🔵 Engine-specific\n→ See `references\u002Fphaser.md` or `references\u002Fthreejs.md` for engine checklists.\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fg\u002Fgame-quality-gates",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":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill game-quality-gates",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill game-quality-gates",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill game-quality-gates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fg\u002Fgame-quality-gates\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},"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":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},"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":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},"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":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},"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":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},"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":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},"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",[],[]]