Community程式設計與開發github.com

microsoft/fix-errors

修復來自 VS Code 錯誤遙測儀表板的未處理錯誤。用於調查包含堆疊追蹤、錯誤訊息和觸發/使用者計數的錯誤遙測問題。涵蓋追蹤資料在呼叫堆疊中的流動、識別無效資料的產生者與崩潰的消費者、豐富錯誤訊息以利遙測診斷,以及避免常見的反模式(如靜默吞嚥錯誤)。

fix-errors 是什麼?

此技能為開發者和 AI 代理提供了修復來自 VS Code 錯誤遙測儀表板之未處理錯誤的系統性指南。它主要用於調查內含堆疊追蹤、錯誤訊息以及觸發次數和受影響使用者計數的錯誤遙測問題。該技能的核心在於教導如何追蹤資料在呼叫堆疊中的流動,以區分是產生無效資料的生產者還是因處理異常而崩潰的消費者。同時,它也強調如何豐富錯誤訊息以增強遙測診斷的效用,並特別提醒要避免如悄無聲息地吞沒錯誤等常見的反模式。此技能適用於 VS Code 的開發和除錯流程,支援任何需要分析和修復錯誤遙測資料的場景。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/microsoft/vscode/tree/main/skills/fix-errors

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

fix-errors 是做什麼的?

用於修復來自 VS Code 錯誤遙測儀表板的未處理錯誤指南。在調查包含堆疊追蹤、錯誤訊息以及觸發/使用者計數的錯誤遙測問題時使用。涵蓋追蹤資料在呼叫堆疊中的流動、識別無效資料的生產者與崩潰的消費者、豐富錯誤訊息以利遙測診斷,以及避免常見的反模式(如靜默吞嚥錯誤)。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

microsoft/accessibility

Primary accessibility skill for VS Code. REQUIRED for new feature and contribution work, and also applies to updates of existing UI. Covers accessibility help dialogs, accessible views, verbosity settings, signals, ARIA announcements, keyboard navigation, and ARIA labels/roles.

microsoft/agent-sessions-layout

Agents workbench layout — covers the fixed layout structure, grid configuration, part visibility, editor modal, titlebar, sidebar footer, and implementation requirements. Use when implementing features or fixing issues in the Agents workbench layout.

microsoft/author-contributions

Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.

microsoft/azure-pipelines

Use when validating Azure DevOps pipeline changes for the VS Code build. Covers queueing builds, checking build status, viewing logs, and iterating on pipeline YAML changes without waiting for full CI runs.

microsoft/hygiene

Use when making code changes to ensure they pass VS Code's hygiene checks. Covers the pre-commit hook, unicode restrictions, string quoting rules, copyright headers, indentation, formatting, ESLint, and stylelint. Run the hygiene check before declaring work complete.

microsoft/memory-leak-audit

Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports. Covers addDisposableListener, Event.once, MutableDisposable, DisposableStore, and onWillDispose patterns.

microsoft/sessions

Agents window architecture — covers the agents-first app, layering, folder structure, chat widget, menus, contributions, entry points, and development guidelines. Use when implementing features or fixing issues in the Agents window.

microsoft/tool-rename-deprecation

Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

microsoft/update-screenshots

Download screenshot baselines from the latest CI run and commit them. Use when asked to update, accept, or refresh component screenshot baselines from CI, or after the screenshot-test GitHub Action reports differences. This skill should be run as a subagent.

microsoft/validate-ui-scenario

Use when reproducing a UI bug or verifying a fix by driving a real VS Code window end to end and capturing evidence. Writes a scenario file, runs it against a dev build or installed Insiders, and produces a captioned video, per-step screenshots, a Playwright trace, and an HTML report to attach to an issue or pull request.

相關技能