microsoft/auditoria-de-vazamento-de-memoria

Audite o código em busca de vazamentos de memória e problemas de descarte. Use ao revisar listeners de eventos, manipuladores DOM, callbacks de ciclo de vida ou ao corrigir relatórios de vazamento. Abrange padrões como addDisposableListener, Event.once, MutableDisposable, DisposableStore e onWillDispose.

O que é auditoria-de-vazamento-de-memoria?

Esta skill (microsoft/memory-leak-audit) é uma ferramenta especializada para auditar código-fonte em busca de vazamentos de memória e problemas relacionados a objetos descartáveis, especialmente em ambientes que utilizam o padrão de descarte do VS Code (como DisposableStore, MutableDisposable e onWillDispose). Ela é útil para desenvolvedores que trabalham com plataformas como Claude Code, Cursor ou Codex, pois automatiza a revisão de padrões críticos como listeners de eventos não removidos, manipuladores DOM sem limpeza e callbacks de ciclo de vida que podem causar vazamentos. A skill analisa o código em busca de usos inadequados de addDisposableListener, Event.once, MutableDisposable, DisposableStore e onWillDispose, além de detectar referências soltas e objetos não descartados. Ao integrar esta skill no fluxo de desenvolvimento, você pode prevenir proativamente vazamentos de memória, melhorar a estabilidade da aplicação e garantir que o código siga boas práticas de gerenciamento de recursos. Ela funciona como um linter de memória, fornecendo sugestões corretivas baseadas no SKILL.md, que documenta os padrões a serem evitados e as soluções recomendadas.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/microsoft/vscode/tree/main/skills/memory-leak-audit

Installed? Explore more Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

O que auditoria-de-vazamento-de-memoria faz?

Audite o código em busca de vazamentos de memória e problemas de descarte. Use ao revisar listeners de eventos, manipuladores DOM, callbacks de ciclo de vida ou ao corrigir relatórios de vazamento. Abrange padrões como addDisposableListener, Event.once, MutableDisposable, DisposableStore e onWillDispose.

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/fix-errors

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/user 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.

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/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.

Habilidades Relacionadas