[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K049CY1NGVYGFH4KX0ES64":3,"skill-same:01M6K049CY1NGVYGFH4KX0ES64":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6K049CY1NGVYGFH4KX0ES64","fix-errors",null,"Guidelines for fixing unhandled errors from the VS Code error telemetry dashboard. Use when investigating error-telemetry issues with stack traces, error messages, and hit\u002Fuser counts. Covers tracing data flow through call stacks, identifying producers of invalid data vs. consumers that crash, enriching error messages for telemetry diagnosis, and avoiding common anti-patterns like silently swallowing errors.","sigitpoerwo\u002Frepoworkspace_zahra","sigitpoerwo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260207224?v=4","01M6K000PB6NA0N6SQ7VFMEAFZ","01M6K000V4N0CEHNPPQA9TNQNX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Ffix-errors\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"errors","fix errors","fix","use","for","with","error","diagnosis","invalid","call","anti-patterns","dashboard","common","stack","messages","error messages","issues","code","guidelines","telemetry","2026-11-10 10:12:30",false,"---\nname: fix-errors\ndescription: Guidelines for fixing unhandled errors from the VS Code error telemetry dashboard. Use when investigating error-telemetry issues with stack traces, error messages, and hit\u002Fuser counts. Covers tracing data flow through call stacks, identifying producers of invalid data vs. consumers that crash, enriching error messages for telemetry diagnosis, and avoiding common anti-patterns like silently swallowing errors.\n---\n\nWhen fixing an unhandled error from the telemetry dashboard, the issue typically contains an error message, a stack trace, hit count, and affected user count.\n\n## Approach\n\n### 1. Do NOT fix at the crash site\n\nThe error manifests at a specific line in the stack trace, but **the fix almost never belongs there**. Fixing at the crash site (e.g., adding a `typeof` guard in a `revive()` function, swallowing the error with a try\u002Fcatch, or returning a fallback value) only masks the real problem. The invalid data still flows through the system and will cause failures elsewhere.\n\n### 2. Trace the data flow upward through the call stack\n\nRead each frame in the stack trace from bottom to top. For each frame, understand:\n- What data is being passed and what is expected\n- Where that data originated (IPC message, extension API call, storage, user input, etc.)\n- Whether the data could have been corrupted or malformed at that point\n\nThe goal is to find the **producer of invalid data**, not the consumer that crashes on it.\n\n### 3. When the producer cannot be identified from the stack alone\n\nSometimes the stack trace only shows the receiving\u002Fconsuming side (e.g., an IPC server handler). The sending side is in a different process and not in the stack. In this case:\n\n- **Enrich the error message** at the consuming site with diagnostic context: the type of the invalid data, a truncated representation of its value, and which operation\u002Fcommand received it. This information flows into the error telemetry dashboard automatically via the unhandled error pipeline.\n- **Do NOT silently swallow the error** — let it still throw so it remains visible in telemetry, but with enough context to identify the sender in the next telemetry cycle.\n- Consider adding the same enrichment to the low-level validation function that throws (e.g., include the invalid value in the error message) so the telemetry captures it regardless of call site.\n\n### 4. When the producer IS identifiable\n\nFix the producer directly:\n- Validate or sanitize data before sending it over IPC \u002F storing it \u002F passing it to APIs\n- Ensure serialization\u002Fdeserialization preserves types correctly (e.g., URI objects should serialize as `UriComponents` objects, not as strings)\n\n## Example\n\nGiven a stack trace like:\n```\nat _validateUri (uri.ts)       ← validation throws\nat new Uri (uri.ts)            ← constructor\nat URI.revive (uri.ts)         ← revive assumes valid UriComponents\nat SomeChannel.call (ipc.ts)   ← IPC handler receives arg from another process\n```\n\n**Wrong fix**: Add a `typeof` guard in `URI.revive` to return `undefined` for non-object input. This silences the error but the caller still expects a valid URI and will fail later.\n\n**Right fix (when producer is unknown)**: Enrich the error at the IPC handler level and in `_validateUri` itself to include the actual invalid value, so telemetry reveals what data is being sent and from where. Example:\n```typescript\n\u002F\u002F In the IPC handler — validate before revive\nfunction reviveUri(data: UriComponents | URI | undefined | null, context: string): URI {\n    if (data && typeof data !== 'object') {\n        throw new Error(`[Channel] Invalid URI data for '${context}': type=${typeof data}, value=${String(data).substring(0, 100)}`);\n    }\n    \u002F\u002F ...\n}\n\n\u002F\u002F In _validateUri — include the scheme value\nthrow new Error(`[UriError]: Scheme contains illegal characters. scheme:\"${ret.scheme.substring(0, 50)}\" (len:${ret.scheme.length})`);\n```\n\n**Right fix (when producer is known)**: Fix the code that sends malformed data. For example, if an authentication provider passes a stringified URI instead of a `UriComponents` object to a logger creation call, fix that call site to pass the proper object.\n\n## Guidelines\n\n- Prefer enriching error messages over adding try\u002Fcatch guards\n- Truncate any user-controlled values included in error messages (to avoid PII and keep messages bounded)\n- Do not change the behavior of shared utility functions (like `URI.revive`) in ways that affect all callers — fix at the specific call site or producer\n- Run the relevant unit tests after making changes\n- Check for compilation errors via the build task before declaring work complete\n","When fixing an unhandled error from the telemetry dashboard, the issue typically contains an error message, a stack trace, hit count, and affected user count.\n\n## Approach\n\n### 1. Do NOT fix at the crash site\n\nThe error manifests at a specific line in the stack trace, but **the fix almost never belongs there**. Fixing at the crash site (e.g., adding a `typeof` guard in a `revive()` function, swallowing the error with a try\u002Fcatch, or returning a fallback value) only masks the real problem. The invalid data still flows through the system and will cause failures elsewhere.\n\n### 2. Trace the data flow upward through the call stack\n\nRead each frame in the stack trace from bottom to top. For each frame, understand:\n- What data is being passed and what is expected\n- Where that data originated (IPC message, extension API call, storage, user input, etc.)\n- Whether the data could have been corrupted or malformed at that point\n\nThe goal is to find the **producer of invalid data**, not the consumer that crashes on it.\n\n### 3. When the producer cannot be identified from the stack alone\n\nSometimes the stack trace only shows the receiving\u002Fconsuming side (e.g., an IPC server handler). The sending side is in a different process and not in the stack. In this case:\n\n- **Enrich the error message** at the consuming site with diagnostic context: the type of the invalid data, a truncated representation of its value, and which operation\u002Fcommand received it. This information flows into the error telemetry dashboard automatically via the unhandled error pipeline.\n- **Do NOT silently swallow the error** — let it still throw so it remains visible in telemetry, but with enough context to identify the sender in the next telemetry cycle.\n- Consider adding the same enrichment to the low-level validation function that throws (e.g., include the invalid value in the error message) so the telemetry captures it regardless of call site.\n\n### 4. When the producer IS identifiable\n\nFix the producer directly:\n- Validate or sanitize data before sending it over IPC \u002F storing it \u002F passing it to APIs\n- Ensure serialization\u002Fdeserialization preserves types correctly (e.g., URI objects should serialize as `UriComponents` objects, not as strings)\n\n## Example\n\nGiven a stack trace like:\n```\nat _validateUri (uri.ts)       ← validation throws\nat new Uri (uri.ts)            ← constructor\nat URI.revive (uri.ts)         ← revive assumes valid UriComponents\nat SomeChannel.call (ipc.ts)   ← IPC handler receives arg from another process\n```\n\n**Wrong fix**: Add a `typeof` guard in `URI.revive` to return `undefined` for non-object input. This silences the error but the caller still expects a valid URI and will fail later.\n\n**Right fix (when producer is unknown)**: Enrich the error at the IPC handler level and in `_validateUri` itself to include the actual invalid value, so telemetry reveals what data is being sent and from where. Example:\n```typescript\n\u002F\u002F In the IPC handler — validate before revive\nfunction reviveUri(data: UriComponents | URI | undefined | null, context: string): URI {\n    if (data && typeof data !== 'object') {\n        throw new Error(`[Channel] Invalid URI data for '${context}': type=${typeof data}, value=${String(data).substring(0, 100)}`);\n    }\n    \u002F\u002F ...\n}\n\n\u002F\u002F In _validateUri — include the scheme value\nthrow new Error(`[UriError]: Scheme contains illegal characters. scheme:\"${ret.scheme.substring(0, 50)}\" (len:${ret.scheme.length})`);\n```\n\n**Right fix (when producer is known)**: Fix the code that sends malformed data. For example, if an authentication provider passes a stringified URI instead of a `UriComponents` object to a logger creation call, fix that call site to pass the proper object.\n\n## Guidelines\n\n- Prefer enriching error messages over adding try\u002Fcatch guards\n- Truncate any user-controlled values included in error messages (to avoid PII and keep messages bounded)\n- Do not change the behavior of shared utility functions (like `URI.revive`) in ways that affect all callers — fix at the specific call site or producer\n- Run the relevant unit tests after making changes\n- Check for compilation errors via the build task before declaring work complete\n",{"name":5,"description":7},"main","000d804ba753926ec0eca35be68bdb42da72c672","skills\u002F01-SIAP-PAKAI\u002Fcoding\u002Ffix-errors","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo","2026-04-05 09:27:05",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill fix-errors",{"tool":55,"command":56},"bunx","bunx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill fix-errors",{"tool":58,"command":59},"pnpm","pnpm dlx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill fix-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Ffix-errors\u002FSKILL.md",true,[],[64,91,114,130,136,142],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":38},"01M6K0FJ41XMDT72PK0E3ZJF9P","zahra-workspace-manager","Comprehensive workspace management skill for Zahra Maurita's development environment. Use when managing projects across 8 divisions (Web, App, AI Agent, Bot, Content, Marketing, Research, Business), organizing files, tracking progress, managing memory, or coordinating multi-domain work. Triggers on mentions of workspace organization, project management, division-specific tasks, memory updates, or cross-domain coordination.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002Fzahra-workspace-manager\u002FSKILL.md",[],[71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],"workspace","workspace manager","manager","zahra workspace manager","work","updates","progress","app","project","across","multi-domain","files","command","coordination","projects","search","tasks","ai agent","memory","bot",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":38},"01M6K0FBZYXG5M8VBW5R6TPKEP","tinyfish","AI-powered web automation using TinyFish Web Agent. Use when you need to scrape data from websites, automate form filling, extract structured information, or perform any web-based task using natural language instructions. Works with any website including those with JavaScript, dynamic content, and bot protection.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish\u002FSKILL.md",[],[93,23,98,99,100,101,102,103,104,105,21,106,107,90,108,109,110,111,112,113],"natural language","web automation","form","information","scrape","task","language","protection","instructions","automate","you","website","web","javascript","automation","data",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6K0F57WDT62QNXTTC6YS34D","tinyfish-openclaw","TinyFish Web Agent integration for OpenClaw. Use this skill to scrape websites, automate web tasks, extract structured data, and perform browser automation using natural language. Works seamlessly with OpenClaw's MCP protocol.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish-openclaw\u002FSKILL.md",[],[93,121,122,112,123,124,125,110,107,22,23,98,21,102,113,126,127,128,129,87],"openclaw","tinyfish openclaw","structured data","browser automation","MCP","integration","mcp protocol","browser","protocol",{"skillNo":131,"name":132,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":38},"01M6K0E9ZWFTG44SK6G2ARS39Z","autoresearchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002FSKILL.md",[],[132],{"skillNo":137,"name":138,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6K0E6ZAEJFYDXM4GANCKZY0","researchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002F.claude\u002Fskills\u002Fresearchclaw\u002FSKILL.md",[],[138],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6K0E1B6RZ8T2S7RMWQ6BVWW","academic-research-assistant","Research assistant for management & digital business academics - literature review, paper analysis, citation management, research methodology","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Facademic-research-assistant\u002FSKILL.md",[],[149,150,151,152,153,154,22,155,156,157,158,159,160,161,162,163,164,165],"research assistant","academic research assistant","Academic","assistant","research","paper analysis","literature","paper","Citation","research methodology","business","management","literature review","analysis","citation management","methodology","review"]