[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75ZJFVAM84NR96RB1XJM4EN":3,"skill-same:01M75ZJFVAM84NR96RB1XJM4EN":100},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M75ZJFVAM84NR96RB1XJM4EN","hmos-memleak-analysis",null,"Analyzes HarmonyOS source code (ArkTS, JS, C\u002FC++) to detect memory leaks.Use when (1) Performing static code analysis to catch potential leaks before deployment, (2) Reviewing PRs involving complex UI lifecycles or NAPI implementations,(3) Developing NAPI bridges between ArkTS and C++. Maps code to official specifications and applies heuristics for NAPI reference management and lifecycle synchronization.","IsKenKenYa\u002Fskills","IsKenKenYa","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F92219680?v=4","01M75Z8AFJBVH1Y9JJWRT35P0Z","是小啃啃呀","01M75Z8AG6RVC5RF6KTJQ7PQKQ",3,"MIT","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hmos-memleak-analysis\ndescription: Analyzes HarmonyOS source code (ArkTS, JS, C\u002FC++) to detect memory leaks.Use when (1) Performing static code analysis to catch potential leaks before deployment, (2) Reviewing PRs involving complex UI lifecycles or NAPI implementations,(3) Developing NAPI bridges between ArkTS and C++. Maps code to official specifications and applies heuristics for NAPI reference management and lifecycle synchronization.\nlicense: MIT\nmetadata:\n    author: superliet\n    version: 1.1.0\n    category: memleak\n---\n\n# HarmonyOS Memory Leak Expert\n\n## Analysis Workflow\n\n1. **Language Routing**: Based on file extension:\n   - `.ets`, `.ts`, `.js` → use `references\u002FHarmonyOS_App_MemoryLeak_Specifications_arkts_js_api.md`，Before applying any code inspection rules\n   - `.cpp`, `.c`, `.h` → use `references\u002FHarmonyOS_App_MemoryLeak_Specifications_c_api.md`\n   - The final report must include the analysis of the results of 'scripts\u002Ffilter_on.py' and the results of the code review\n\n2. **Script**\n   - you MUST execute an external Python script `scripts\u002Ffilter_on.py` and `scripts\u002Ffilter_risk_func.py` with param `target source code dirpath`. Crucial Note: These candidates are NOT confirmed leaks. They are merely hypotheses or \"leads\" that require human-like verification.\n\n3. **Core Heuristics**:\n   - **Lifecycle Sync**: Use a listener similar to ''. The on() in TS must be deregistered as \"aboutToDisappear()\"\u002F\"onPageHide()\" after its lifecycle ends. You can use scripts\u002Ffilter_on.py to investigate possible on\u002Foff code involved\n   - **NAPI Boundary**: Check `napi_create_reference` balanced with `napi_delete_reference`. Watch for missing `napi_handle_scope` in loops.\n   - **Closure Retention**: Async callbacks capturing `this` cause leaks if component is destroyed before callback executes.\n   - **Singleton\u002FAppStorage**: Large objects in `AppStorage` need explicit cleanup strategy.\n\n4. **Reporting Format(md)**: \nReport MUST list all issue file and generate a structured markdown report named memory_leak_analysis_report_\u003Ctimestamp>.md\n   - **FilePath**: (e.g., D:\u002Fxx\u002Fxxx\u002Fxxx.ts)\n   - **LineNumber**: (e.g. 245)\n   - **IssueType **: Category of the leak (e.g.,\"Unreleased NAPI Reference\", \"Uncleared Timer\", \"Event Listener Leak\", \"Closure Retention\", \"Global Variable Accumulation\")\n   - **Severity**: [Major | Minor], Refer to the rules of HarmonyOS_Sapp_SemoryLeak_Specifications\n   - **CodeSnippet**:  The relevant 5~10 lines of code surrounding the issue for quick context.\n   - **SuggestedFix**:  Concrete code snippet or instruction to resolve the issue (e.g., \"Add `clearTimeout` in `useEffect` cleanup\").\n   - **ConfidenceScore**: A score from 1-10 indicating the certainty of the finding (10 = Definite Leak). \n","# HarmonyOS Memory Leak Expert\n\n## Analysis Workflow\n\n1. **Language Routing**: Based on file extension:\n   - `.ets`, `.ts`, `.js` → use `references\u002FHarmonyOS_App_MemoryLeak_Specifications_arkts_js_api.md`，Before applying any code inspection rules\n   - `.cpp`, `.c`, `.h` → use `references\u002FHarmonyOS_App_MemoryLeak_Specifications_c_api.md`\n   - The final report must include the analysis of the results of 'scripts\u002Ffilter_on.py' and the results of the code review\n\n2. **Script**\n   - you MUST execute an external Python script `scripts\u002Ffilter_on.py` and `scripts\u002Ffilter_risk_func.py` with param `target source code dirpath`. Crucial Note: These candidates are NOT confirmed leaks. They are merely hypotheses or \"leads\" that require human-like verification.\n\n3. **Core Heuristics**:\n   - **Lifecycle Sync**: Use a listener similar to ''. The on() in TS must be deregistered as \"aboutToDisappear()\"\u002F\"onPageHide()\" after its lifecycle ends. You can use scripts\u002Ffilter_on.py to investigate possible on\u002Foff code involved\n   - **NAPI Boundary**: Check `napi_create_reference` balanced with `napi_delete_reference`. Watch for missing `napi_handle_scope` in loops.\n   - **Closure Retention**: Async callbacks capturing `this` cause leaks if component is destroyed before callback executes.\n   - **Singleton\u002FAppStorage**: Large objects in `AppStorage` need explicit cleanup strategy.\n\n4. **Reporting Format(md)**: \nReport MUST list all issue file and generate a structured markdown report named memory_leak_analysis_report_\u003Ctimestamp>.md\n   - **FilePath**: (e.g., D:\u002Fxx\u002Fxxx\u002Fxxx.ts)\n   - **LineNumber**: (e.g. 245)\n   - **IssueType **: Category of the leak (e.g.,\"Unreleased NAPI Reference\", \"Uncleared Timer\", \"Event Listener Leak\", \"Closure Retention\", \"Global Variable Accumulation\")\n   - **Severity**: [Major | Minor], Refer to the rules of HarmonyOS_Sapp_SemoryLeak_Specifications\n   - **CodeSnippet**:  The relevant 5~10 lines of code surrounding the issue for quick context.\n   - **SuggestedFix**:  Concrete code snippet or instruction to resolve the issue (e.g., \"Add `clearTimeout` in `useEffect` cleanup\").\n   - **ConfidenceScore**: A score from 1-10 indicating the certainty of the finding (10 = Definite Leak). \n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26,"category":27},"superliet","1.1.0","memleak","main","581098187aec1258c6d9e65e1b9866c2e7381167","skills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis",0,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills","https:\u002F\u002Fgithub.com\u002FIsKenKenYa","是小啃啃呀-一个初学者，中国开源共享推动者之一。\r\n未来，会涉及OpenHarmony、HarmonyOS（部分应用开源）、Android Open Sources Project等。\r\n\r\n目前正在学习中，欢迎友善的讨论。","2026-10-08 01:02:25",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add IsKenKenYa\u002Fskills --skill hmos-memleak-analysis",{"tool":42,"command":43},"bunx","bunx skills add IsKenKenYa\u002Fskills --skill hmos-memleak-analysis",{"tool":45,"command":46},"pnpm","pnpm dlx skills add IsKenKenYa\u002Fskills --skill hmos-memleak-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002FSKILL.md",true,[50,56,60,64,68,72,76,80,84,88,92,96],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"scripts\u002Fconfig.json","SCRIPT","脚本",1122,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Fconfig.json",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Ffilter_on.py",13215,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Ffilter_on.py",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Ffilter_risk_func.py",22708,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Ffilter_risk_func.py",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fmemleak_report.json",864170,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Fmemleak_report.json",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fmemleak_risk_func_report.json",1418378,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Fmemleak_risk_func_report.json",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002FREADME.md",3018,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002FREADME.md",{"path":77,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fskill_main.py",7201,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Fskill_main.py",{"path":81,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fskill_report.json",5610,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002Fskill_report.json",{"path":85,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002FUSAGE_GUIDE.md",8310,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Fscripts\u002FUSAGE_GUIDE.md",{"path":89,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":90,"sourceHtmlUrl":91},"test_examples\u002Fcomplex_example.ts",864,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Ftest_examples\u002Fcomplex_example.ts",{"path":93,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":94,"sourceHtmlUrl":95},"test_examples\u002Fgood_example.ts",549,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Ftest_examples\u002Fgood_example.ts",{"path":97,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":98,"sourceHtmlUrl":99},"test_examples\u002Fmemory_leak_example.ts",569,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-memleak-analysis\u002Ftest_examples\u002Fmemory_leak_example.ts",[101,109,116,123,130,137],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M75ZN00W20TC7TJ40TDM7E4X","writing-for-agents","为 agent 撰写文档。当创建或编辑 skill、修改 AGENTS.md 或 CLAUDE.md 时使用。","GPL-3.0","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M75ZMZ63RYMNRTPEXW5T82S6","wait-what","停。上一条消息没讲明白：换个说法再讲一遍。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M75ZMXZT6MGCGFMKRTM6V6GW","to-questionnaire","把你无法独自回答的决策转化成一份问卷，交给别人填写。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M75ZMWQGNJW3E592V94ZYJMX","teach","在当前工作区内，教会用户一项新 skill 或概念。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fteach\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M75ZMVQREJR3YDK0XED9AJHB","handoff","把当前对话压缩成一份交接（handoff）文档，供另一个代理接手。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fhandoff\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M75ZMTQAAFGA7QH26WK9Z936","grilling","就一个计划、决策或想法对用户进行无情的访谈。当用户想压力测试自己的思路，或使用任何 'grill' 触发短语时使用。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fgrilling\u002FSKILL.md",[],[]]