[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75ZJQVEE2W2DGR4HACJB1N2":3,"skill-same:01M75ZJQVEE2W2DGR4HACJB1N2":110},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75ZJQVEE2W2DGR4HACJB1N2","hmos-runtime-fix-skill",null,"Load for ArkTS\u002FJavaScript jscrash, runtime crash, uncaught exception, stack trace, faultlog, or hilog diagnosis. Also load when the app 闪退\u002F崩溃\u002F白屏, exits after 点击\u002F启动\u002Flaunch, or build succeeds but runtime fails (no compile error). Use before broad Read\u002FGlob on crash-only tasks.","IsKenKenYa\u002Fskills","IsKenKenYa","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F92219680?v=4","01M75Z8AFJBVH1Y9JJWRT35P0Z","是小啃啃呀","01M75Z8AG6RVC5RF6KTJQ7PQKQ",3,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hmos-runtime-fix-skill\ndescription: Load for ArkTS\u002FJavaScript jscrash, runtime crash, uncaught exception, stack trace, faultlog, or hilog diagnosis. Also load when the app 闪退\u002F崩溃\u002F白屏, exits after 点击\u002F启动\u002Flaunch, or build succeeds but runtime fails (no compile error). Use before broad Read\u002FGlob on crash-only tasks.\n---\n\n# Harmony JSCrash Fixes\n\nUse this skill to diagnose and fix ArkTS or JavaScript runtime crashes with minimal edits.\n\nUse `devecocli` for device discovery and log acquisition. Use this skill's private Node scripts under `skills\u002Farkts-runtime-fix\u002Fscripts\u002F` only to parse evidence or save a hilog snapshot.\n\nIf `node` is unavailable, stop and explain that the private scripts cannot run.\n\n## When To Load\n\nLoad this skill when the issue looks like one of these:\n\n- Runtime logs show `TypeError`, `ReferenceError`, `RangeError`, `SyntaxError`, `BusinessError`, or similar exceptions.\n- The app exits, flashes back, or white-screens during launch or after a tap.\n- The user provides a `jscrash` log, stack trace, or a temporary log file with `@file`.\n- Build succeeds, but runtime behavior fails immediately.\n\n## Core Approach\n\nPrefer a concrete crash anchor before broad code exploration. A good anchor can come from:\n\n- a provided crash log\n- a stack trace\n- a clear page or module named by the user\n- a recent device-side faultlog or hilog when no better evidence is available\n\nAvoid broad `Read` \u002F `Glob` \u002F `Explore` across the whole project until you have at least one concrete anchor such as:\n\n- `error_type`\n- `error_message`\n- `suspected_file`\n- `top_stack`\n- or a clearly named crash entry point from the user\n\nDo not over-collect logs. If the user already gave enough crash evidence, parse that evidence first and move into focused reading and minimal fixes.\n\n## CLI And Script Contract\n\nRun `devecocli` through Shell. Do not call `hdc`, read `DEVECO_HOME`, or use DevEco Code-specific device\u002Flog tools directly.\n\n### Private Node scripts\n\nRun the private scripts through Shell like this:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002F\u003Cscript>.mjs\" ...\n```\n\n`{SKILL_DIR}` is the absolute path of this skill directory at runtime.\n\nScripts print stable `key: value` text to stdout. A non-zero exit code means the current step could not continue and the agent should report the reason instead of guessing.\n\n## Preferred Flows\n\n### Case A: The user already provided raw crash text\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fjscrash-report.mjs\" --log-text \"{crashLog}\" --bundle-name \"{bundleName}\" --include-text\n```\n\n### Case B: The user provided `@file` or a local log path\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fparse-jscrash-log.mjs\" --log-file \"{logFilePath}\" --bundle-name \"{bundleName}\" --include-text\n```\n\n### Case C: The user only described symptoms and did not provide logs\n\nLog collection is optional here. Use it when you still need a concrete runtime anchor.\n\nBefore collecting device evidence:\n\n1. Read `AppScope\u002Fapp.json5` and take the exact `app.bundleName` value (for example `com.example.hmos.sample`). Use that string as `{bundleName}` in every script below.\n2. Do not guess `bundleName` from `vendor`, module folder names, or prefixes such as `com.example`.\n3. Resolve the target device:\n   - If the user provided a `deviceId`, use it for every device-side command.\n   - If no `deviceId` is provided, run `devecocli device list` first.\n   - If exactly one device is connected, use that device.\n   - If multiple devices are connected, ask the user which device to inspect. Do not collect logs until the user selects a device.\n   - If no devices are connected, report that device-side evidence cannot be collected and ask for a connected device or a local crash log.\n\nAfter the user reproduces the crash on the selected device, fetch and parse the latest matching crash log:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fjscrash-report.mjs\" --bundle-name \"{bundleName}\" --device-id \"{deviceId}\" --include-text\n```\n\nWith no `--log-text` or `--log-file`, `jscrash-report.mjs` runs `devecocli log --crash --device ... --bundle-name ...` and parses its output. If no matching crash is returned, ask the user to reproduce and retry immediately; do not guess from symptoms alone.\n\nIf the crash log is unavailable or insufficient, fall back to hilog. The collector runs `devecocli log --device ... --tail ...` and only handles the local snapshot file itself:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fcollect-hilog.mjs\" --device-id \"{deviceId}\" --lines \"4000\" --output-dir \"{tempDir}\"\nnode \"{SKILL_DIR}\u002Fscripts\u002Fparse-jscrash-log.mjs\" --log-file \"{hilogPathFromCollect}\" --bundle-name \"{bundleName}\" --source hilog --include-text\n```\n\n## Output Contract\n\nThe leading `key: value` block from `jscrash-report.mjs` and `parse-jscrash-log.mjs` includes:\n\n- `status`: `detected` | `no_crash_signature` | `parse_failed`\n- `source`: `file` | `text` | `hilog` and similar sources\n- `error_type`\n- `error_message`\n- `suspected_file`\n- `top_stack`: `|`-joined frames\n- `keywords`: comma-separated\n- `next_action`\n\n`--include-text` appends a human-readable summary after the structured block.\n\nIf `status: no_crash_signature`, explain that the evidence is weak and ask for a better log, clearer repro, or an additional runtime clue before broad code reading.\n\n## JSCrash Fix Knowledge Base\n\nKnowledge source (synced): [hmos-jscrash-analysis](https:\u002F\u002Fgitcode.com\u002FHarmonyOS_Skills\u002Fharmonyos-agent-skills\u002Ftree\u002Fmain\u002F03-solutions\u002Fquality\u002Fstability\u002Fhmos-jscrash-analysis).\n\nAfter parsing crash evidence and obtaining `error_type`, match patterns from the knowledge base and apply the corresponding fix. Do not invent root causes or fixes outside these references.\n\n### Using the Fix Knowledge Base\n\n1. Parse crash evidence with scripts to obtain `error_type`, `error_message`, and `top_stack`.\n2. Read [reference\u002Ffault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) first. Match `JSError` → secondary cause → tertiary cause using `Reason` \u002F `Error name` \u002F `Error message`.\n3. Based on `error_type`, read only the corresponding patterns file:\n   - `ReferenceError` → [reference\u002Freferenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md)\n   - `TypeError` → [reference\u002Ftypeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md)\n   - `Error` → [reference\u002Ferror_patterns.md](.\u002Freference\u002Ferror_patterns.md)\n   - `BusinessError` → [reference\u002Fbusinesserror_patterns.md](.\u002Freference\u002Fbusinesserror_patterns.md)\n   - `SyntaxError` → [reference\u002Fsyntaxerror_patterns.md](.\u002Freference\u002Fsyntaxerror_patterns.md)\n   - `RangeError` → [reference\u002Frangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md)\n   - `OutOfMemoryError` → [reference\u002Foutofmemoryerror_patterns.md](.\u002Freference\u002Foutofmemoryerror_patterns.md)\n   - `URIError` → [reference\u002Furierror_patterns.md](.\u002Freference\u002Furierror_patterns.md)\n4. When multiple patterns match, prefer the one supported by `Error message` + `Error code` + top application stack frame simultaneously (see credibility rules in each reference file).\n5. Apply a minimal fix to the suspected file from the stack. Do not refactor broadly.\n\n### Quick Reference\n\n| Error type \u002F message keyword | Root cause | Reference |\n|---|---|---|\n| ReferenceError + `@Provide` \u002F `@Consume` | Missing or duplicate @Provide\u002F@Consume | [referenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md) |\n| ReferenceError + `is not initialized` | Variable used before assignment | [referenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md) |\n| ReferenceError + `\u003Cname> is not defined` | Variable scope or import missing | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| ReferenceError + `super()` before `this` | super() not called before this | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| TypeError + `Cannot read property` \u002F `null or undefined` | Accessing property on undefined\u002Fnull | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `is not callable` | Calling a non-function value | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `circular structure` | Circular reference in JSON.stringify | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `Receiver is not a JSObject` \u002F N-API scope | N-API receiver type mismatch | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| SyntaxError + `Unexpected Text in JSON` \u002F `Invalid Token` | Malformed JSON.parse input | [syntaxerror_patterns.md](.\u002Freference\u002Fsyntaxerror_patterns.md) |\n| RangeError + `Invalid array length` | Negative or non-integer array length | [rangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md) |\n| RangeError + `Stack overflow` | Unbounded recursion | [rangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md) |\n| URIError + `DecodeURI: invalid character` | Malformed URI in decodeURI | [urierror_patterns.md](.\u002Freference\u002Furierror_patterns.md) |\n| Error + `UI execution context not found` \u002F `100001` | UI context not bound to router | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `WebviewController must be associated` \u002F `17100001` | WebviewController not linked to Web component | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `ForEach id` \u002F id generator | ForEach keyGenerator missing or invalid | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `ArrayBuffer is null or detached` | Using detached ArrayBuffer | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| Error + `Map's constructor cannot be directly invoked` | ArkTS Map constructor misuse | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| Error + SQLite \u002F RDB \u002F resource ID \u002F window state | DB handle, resource ID, or window API misuse | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| BusinessError + `Parameter error` \u002F URL \u002F JSON \u002F XML | Invalid API parameter type or value | [businesserror_patterns.md](.\u002Freference\u002Fbusinesserror_patterns.md) |\n| OutOfMemoryError + allocate \u002F leak | Heap allocation failure or memory leak | [outofmemoryerror_patterns.md](.\u002Freference\u002Foutofmemoryerror_patterns.md) |\n| TerminationError + `Terminate execution!` | Forced termination by runtime | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| AggregateError + `Promise.any()` all rejected | All promises in Promise.any() rejected | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n\n## Interpretation Rules\n\n- Prefer application frames over framework noise.\n- Treat the first concrete `.ets`, `.ts`, or `.js` path as the starting point, not the final truth.\n- If the user gave repro steps, trust them over a simplistic stack-only guess.\n- If the stack points to a non-entry page, assume an interaction-triggered path unless evidence proves a cold-start crash.\n- Do not refactor broadly. Fix the crash path first.\n\n## Conversational Shape\n\n1. Say what evidence you already have.\n2. If logs are missing, say whether you are using a crash log or hilog to get a better anchor.\n3. Once you have an anchor, switch into focused code reading and minimal fixing.\n\n## Constraints\n\n- Never claim a crash fix from prompt reasoning alone.\n- Never replace a root-cause fix with retries, arbitrary delays, or broad defensive rewrites.\n- If unfamiliar `@ohos.*` or `@kit.*` APIs are involved, check their constraints before editing.\n- This skill does not decide the final compile \u002F run \u002F verification order; the primary agent owns that.\n","# Harmony JSCrash Fixes\n\nUse this skill to diagnose and fix ArkTS or JavaScript runtime crashes with minimal edits.\n\nUse `devecocli` for device discovery and log acquisition. Use this skill's private Node scripts under `skills\u002Farkts-runtime-fix\u002Fscripts\u002F` only to parse evidence or save a hilog snapshot.\n\nIf `node` is unavailable, stop and explain that the private scripts cannot run.\n\n## When To Load\n\nLoad this skill when the issue looks like one of these:\n\n- Runtime logs show `TypeError`, `ReferenceError`, `RangeError`, `SyntaxError`, `BusinessError`, or similar exceptions.\n- The app exits, flashes back, or white-screens during launch or after a tap.\n- The user provides a `jscrash` log, stack trace, or a temporary log file with `@file`.\n- Build succeeds, but runtime behavior fails immediately.\n\n## Core Approach\n\nPrefer a concrete crash anchor before broad code exploration. A good anchor can come from:\n\n- a provided crash log\n- a stack trace\n- a clear page or module named by the user\n- a recent device-side faultlog or hilog when no better evidence is available\n\nAvoid broad `Read` \u002F `Glob` \u002F `Explore` across the whole project until you have at least one concrete anchor such as:\n\n- `error_type`\n- `error_message`\n- `suspected_file`\n- `top_stack`\n- or a clearly named crash entry point from the user\n\nDo not over-collect logs. If the user already gave enough crash evidence, parse that evidence first and move into focused reading and minimal fixes.\n\n## CLI And Script Contract\n\nRun `devecocli` through Shell. Do not call `hdc`, read `DEVECO_HOME`, or use DevEco Code-specific device\u002Flog tools directly.\n\n### Private Node scripts\n\nRun the private scripts through Shell like this:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002F\u003Cscript>.mjs\" ...\n```\n\n`{SKILL_DIR}` is the absolute path of this skill directory at runtime.\n\nScripts print stable `key: value` text to stdout. A non-zero exit code means the current step could not continue and the agent should report the reason instead of guessing.\n\n## Preferred Flows\n\n### Case A: The user already provided raw crash text\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fjscrash-report.mjs\" --log-text \"{crashLog}\" --bundle-name \"{bundleName}\" --include-text\n```\n\n### Case B: The user provided `@file` or a local log path\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fparse-jscrash-log.mjs\" --log-file \"{logFilePath}\" --bundle-name \"{bundleName}\" --include-text\n```\n\n### Case C: The user only described symptoms and did not provide logs\n\nLog collection is optional here. Use it when you still need a concrete runtime anchor.\n\nBefore collecting device evidence:\n\n1. Read `AppScope\u002Fapp.json5` and take the exact `app.bundleName` value (for example `com.example.hmos.sample`). Use that string as `{bundleName}` in every script below.\n2. Do not guess `bundleName` from `vendor`, module folder names, or prefixes such as `com.example`.\n3. Resolve the target device:\n   - If the user provided a `deviceId`, use it for every device-side command.\n   - If no `deviceId` is provided, run `devecocli device list` first.\n   - If exactly one device is connected, use that device.\n   - If multiple devices are connected, ask the user which device to inspect. Do not collect logs until the user selects a device.\n   - If no devices are connected, report that device-side evidence cannot be collected and ask for a connected device or a local crash log.\n\nAfter the user reproduces the crash on the selected device, fetch and parse the latest matching crash log:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fjscrash-report.mjs\" --bundle-name \"{bundleName}\" --device-id \"{deviceId}\" --include-text\n```\n\nWith no `--log-text` or `--log-file`, `jscrash-report.mjs` runs `devecocli log --crash --device ... --bundle-name ...` and parses its output. If no matching crash is returned, ask the user to reproduce and retry immediately; do not guess from symptoms alone.\n\nIf the crash log is unavailable or insufficient, fall back to hilog. The collector runs `devecocli log --device ... --tail ...` and only handles the local snapshot file itself:\n\n```bash\nnode \"{SKILL_DIR}\u002Fscripts\u002Fcollect-hilog.mjs\" --device-id \"{deviceId}\" --lines \"4000\" --output-dir \"{tempDir}\"\nnode \"{SKILL_DIR}\u002Fscripts\u002Fparse-jscrash-log.mjs\" --log-file \"{hilogPathFromCollect}\" --bundle-name \"{bundleName}\" --source hilog --include-text\n```\n\n## Output Contract\n\nThe leading `key: value` block from `jscrash-report.mjs` and `parse-jscrash-log.mjs` includes:\n\n- `status`: `detected` | `no_crash_signature` | `parse_failed`\n- `source`: `file` | `text` | `hilog` and similar sources\n- `error_type`\n- `error_message`\n- `suspected_file`\n- `top_stack`: `|`-joined frames\n- `keywords`: comma-separated\n- `next_action`\n\n`--include-text` appends a human-readable summary after the structured block.\n\nIf `status: no_crash_signature`, explain that the evidence is weak and ask for a better log, clearer repro, or an additional runtime clue before broad code reading.\n\n## JSCrash Fix Knowledge Base\n\nKnowledge source (synced): [hmos-jscrash-analysis](https:\u002F\u002Fgitcode.com\u002FHarmonyOS_Skills\u002Fharmonyos-agent-skills\u002Ftree\u002Fmain\u002F03-solutions\u002Fquality\u002Fstability\u002Fhmos-jscrash-analysis).\n\nAfter parsing crash evidence and obtaining `error_type`, match patterns from the knowledge base and apply the corresponding fix. Do not invent root causes or fixes outside these references.\n\n### Using the Fix Knowledge Base\n\n1. Parse crash evidence with scripts to obtain `error_type`, `error_message`, and `top_stack`.\n2. Read [reference\u002Ffault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) first. Match `JSError` → secondary cause → tertiary cause using `Reason` \u002F `Error name` \u002F `Error message`.\n3. Based on `error_type`, read only the corresponding patterns file:\n   - `ReferenceError` → [reference\u002Freferenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md)\n   - `TypeError` → [reference\u002Ftypeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md)\n   - `Error` → [reference\u002Ferror_patterns.md](.\u002Freference\u002Ferror_patterns.md)\n   - `BusinessError` → [reference\u002Fbusinesserror_patterns.md](.\u002Freference\u002Fbusinesserror_patterns.md)\n   - `SyntaxError` → [reference\u002Fsyntaxerror_patterns.md](.\u002Freference\u002Fsyntaxerror_patterns.md)\n   - `RangeError` → [reference\u002Frangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md)\n   - `OutOfMemoryError` → [reference\u002Foutofmemoryerror_patterns.md](.\u002Freference\u002Foutofmemoryerror_patterns.md)\n   - `URIError` → [reference\u002Furierror_patterns.md](.\u002Freference\u002Furierror_patterns.md)\n4. When multiple patterns match, prefer the one supported by `Error message` + `Error code` + top application stack frame simultaneously (see credibility rules in each reference file).\n5. Apply a minimal fix to the suspected file from the stack. Do not refactor broadly.\n\n### Quick Reference\n\n| Error type \u002F message keyword | Root cause | Reference |\n|---|---|---|\n| ReferenceError + `@Provide` \u002F `@Consume` | Missing or duplicate @Provide\u002F@Consume | [referenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md) |\n| ReferenceError + `is not initialized` | Variable used before assignment | [referenceerror_patterns.md](.\u002Freference\u002Freferenceerror_patterns.md) |\n| ReferenceError + `\u003Cname> is not defined` | Variable scope or import missing | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| ReferenceError + `super()` before `this` | super() not called before this | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| TypeError + `Cannot read property` \u002F `null or undefined` | Accessing property on undefined\u002Fnull | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `is not callable` | Calling a non-function value | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `circular structure` | Circular reference in JSON.stringify | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| TypeError + `Receiver is not a JSObject` \u002F N-API scope | N-API receiver type mismatch | [typeerror_patterns.md](.\u002Freference\u002Ftypeerror_patterns.md) |\n| SyntaxError + `Unexpected Text in JSON` \u002F `Invalid Token` | Malformed JSON.parse input | [syntaxerror_patterns.md](.\u002Freference\u002Fsyntaxerror_patterns.md) |\n| RangeError + `Invalid array length` | Negative or non-integer array length | [rangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md) |\n| RangeError + `Stack overflow` | Unbounded recursion | [rangeerror_patterns.md](.\u002Freference\u002Frangeerror_patterns.md) |\n| URIError + `DecodeURI: invalid character` | Malformed URI in decodeURI | [urierror_patterns.md](.\u002Freference\u002Furierror_patterns.md) |\n| Error + `UI execution context not found` \u002F `100001` | UI context not bound to router | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `WebviewController must be associated` \u002F `17100001` | WebviewController not linked to Web component | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `ForEach id` \u002F id generator | ForEach keyGenerator missing or invalid | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| Error + `ArrayBuffer is null or detached` | Using detached ArrayBuffer | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| Error + `Map's constructor cannot be directly invoked` | ArkTS Map constructor misuse | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| Error + SQLite \u002F RDB \u002F resource ID \u002F window state | DB handle, resource ID, or window API misuse | [error_patterns.md](.\u002Freference\u002Ferror_patterns.md) |\n| BusinessError + `Parameter error` \u002F URL \u002F JSON \u002F XML | Invalid API parameter type or value | [businesserror_patterns.md](.\u002Freference\u002Fbusinesserror_patterns.md) |\n| OutOfMemoryError + allocate \u002F leak | Heap allocation failure or memory leak | [outofmemoryerror_patterns.md](.\u002Freference\u002Foutofmemoryerror_patterns.md) |\n| TerminationError + `Terminate execution!` | Forced termination by runtime | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n| AggregateError + `Promise.any()` all rejected | All promises in Promise.any() rejected | [fault-mode-library.md](.\u002Freference\u002Ffault-mode-library.md) |\n\n## Interpretation Rules\n\n- Prefer application frames over framework noise.\n- Treat the first concrete `.ets`, `.ts`, or `.js` path as the starting point, not the final truth.\n- If the user gave repro steps, trust them over a simplistic stack-only guess.\n- If the stack points to a non-entry page, assume an interaction-triggered path unless evidence proves a cold-start crash.\n- Do not refactor broadly. Fix the crash path first.\n\n## Conversational Shape\n\n1. Say what evidence you already have.\n2. If logs are missing, say whether you are using a crash log or hilog to get a better anchor.\n3. Once you have an anchor, switch into focused code reading and minimal fixing.\n\n## Constraints\n\n- Never claim a crash fix from prompt reasoning alone.\n- Never replace a root-cause fix with retries, arbitrary delays, or broad defensive rewrites.\n- If unfamiliar `@ohos.*` or `@kit.*` APIs are involved, check their constraints before editing.\n- This skill does not decide the final compile \u002F run \u002F verification order; the primary agent owns that.\n",{"name":5,"description":7},"main","581098187aec1258c6d9e65e1b9866c2e7381167","skills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add IsKenKenYa\u002Fskills --skill hmos-runtime-fix-skill",{"tool":38,"command":39},"bunx","bunx skills add IsKenKenYa\u002Fskills --skill hmos-runtime-fix-skill",{"tool":41,"command":42},"pnpm","pnpm dlx skills add IsKenKenYa\u002Fskills --skill hmos-runtime-fix-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80,84,90,94,98,102,106],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fbusinesserror_patterns.md","REFERENCE","参考文档",1386,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Fbusinesserror_patterns.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Ferror_patterns.md",3491,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Ferror_patterns.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Ffault-mode-library.md",4196,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Ffault-mode-library.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Foutofmemoryerror_patterns.md",1321,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Foutofmemoryerror_patterns.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Frangeerror_patterns.md",712,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Frangeerror_patterns.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Freferenceerror_patterns.md",1336,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Freferenceerror_patterns.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fsyntaxerror_patterns.md",693,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Fsyntaxerror_patterns.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"reference\u002Ftypeerror_patterns.md",1643,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Ftypeerror_patterns.md",{"path":81,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":82,"sourceHtmlUrl":83},"reference\u002Furierror_patterns.md",756,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Freference\u002Furierror_patterns.md",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fcollect-hilog.mjs","SCRIPT","脚本",3324,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fcollect-hilog.mjs",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fjscrash-report.mjs",3878,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fjscrash-report.mjs",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fparse-jscrash-log.mjs",3443,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fparse-jscrash-log.mjs",{"path":99,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fshared\u002Fdeveco-cli.mjs",2504,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fshared\u002Fdeveco-cli.mjs",{"path":103,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fshared\u002Fjscrash-parse.mjs",10289,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fshared\u002Fjscrash-parse.mjs",{"path":107,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Fshared\u002Futils.mjs",890,"https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fharmonyos\u002Fsolutions\u002Fstability\u002Fhmos-runtime-fix-skill\u002Fscripts\u002Fshared\u002Futils.mjs",[111,118,125,132,139,146],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M75ZN00W20TC7TJ40TDM7E4X","writing-for-agents","为 agent 撰写文档。当创建或编辑 skill、修改 AGENTS.md 或 CLAUDE.md 时使用。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M75ZMZ63RYMNRTPEXW5T82S6","wait-what","停。上一条消息没讲明白：换个说法再讲一遍。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M75ZMXZT6MGCGFMKRTM6V6GW","to-questionnaire","把你无法独自回答的决策转化成一份问卷，交给别人填写。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M75ZMWQGNJW3E592V94ZYJMX","teach","在当前工作区内，教会用户一项新 skill 或概念。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fteach\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":19},"01M75ZMVQREJR3YDK0XED9AJHB","handoff","把当前对话压缩成一份交接（handoff）文档，供另一个代理接手。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fhandoff\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":19},"01M75ZMTQAAFGA7QH26WK9Z936","grilling","就一个计划、决策或想法对用户进行无情的访谈。当用户想压力测试自己的思路，或使用任何 'grill' 触发短语时使用。","https:\u002F\u002Fgithub.com\u002FIsKenKenYa\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fgrilling\u002FSKILL.md",[],[]]