Community编程与开发github.com

microsoft/修复错误

用于修复来自 VS Code 错误遥测仪表板的未处理错误的指南。适用于调查带有堆栈跟踪、错误消息和点击/用户计数的错误遥测问题。涵盖通过调用堆栈追踪数据流、识别无效数据生产者与崩溃消费者、为遥测诊断丰富错误消息以及避免常见反模式(如静默吞没错误)。

修复错误 是什么?

该技能提供了一个系统化的方法,用于修复来自 VS Code 错误遥测仪表板的未处理错误。它指导开发者通过使用堆栈跟踪、错误消息和点击/用户计数来调查错误遥测问题。关键技术包括:通过调用堆栈追踪数据流以定位根本原因,区分产生无效数据的模块与实际崩溃的消费模块,以及通过添加上下文信息来丰富错误消息以改善遥测诊断。此外,它还强调了需要避免的常见反模式,例如静默吞没错误或提供无意义的错误消息。该技能支持在 Visual Studio 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 的新对话。

文档

修复错误 是做什么的?

用于修复来自 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.

相关技能