sweeper-fix

A guide for applying a narrow fix to a microsoft/vscode GitHub issue that the VS Code Sweeper has reviewed as suitable for an agent. The process includes checking the review, changing the code, adding a test, and opening a draft pull request.

In plain words
What is it for?
Use it when asked to fix a Sweeper-reviewed VS Code issue from a clean VS Code checkout with the required GitHub authentication.
Why use it?
It turns a pre-analyzed issue into a small, reviewable change while protecting existing uncommitted work and checking required access first.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/vscode/sweeper-fix
Any agent
npx skills add microsoft/vscode --skill sweeper-fix
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code, Codex.

Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00094 $0.01736
Opus 5 $0.00047 $0.00868
Sonnet 5 $0.00019 $0.00347
Haiku 4.5 $0.00009 $0.00174

Measured 2d ago against content hash 8113671a75b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sweeper-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/sweeper-fix/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sweeper-fix — implement a sweeper-reviewed fix

You are implementing a narrow, localized fix for a single microsoft/vscode issue, on behalf of the maintainer who invoked you. The VS Code Sweeper reviewed this issue, judged it agent-fixable, and wrote a fix spec while tracing the defect in the source. Your job: verify the review still holds, turn the spec into the smallest correct change plus a test, and open a draft PR the maintainer owns.

0 · Preconditions (refuse if unmet)

  • The working directory must be a microsoft/vscode checkoutgit remote -v must list microsoft/vscode. If not, stop: "run this from your vscode checkout".
  • The checkout must have no tracked modifications and no staged changes (git status --porcelain, ignoring untracked files). Dirty → stop and say so; do NOT stash, discard, or commit the maintainer's work-in-progress. Untracked files may stay — the ship step commits only files this skill created or edited.
  • gh auth status must succeed (the gates and the PR need it).

1 · Fetch the review record

The issue number comes from the maintainer's request. Fetch the record (public, no special access):

gh api "repos/egamma/vscodesweeper-state/contents/records/microsoft/vscode/items/<issue-number>.md?ref=state" -H "Accept: application/vnd.github.raw"

No record → stop: this issue hasn't been reviewed by the sweeper; the skill only fixes reviewed, agent-fixable issues.

2 · Gate — every check against LIVE GitHub state, not just the record

Fetch the live issue with the repo pinned explicitly — never rely on gh's default-repo resolution, which a fork remote can redirect to the wrong repo's issue <n>:

gh issue view <issue-number> --repo microsoft/vscode --json state,labels,updatedAt

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 126 lines · 94 tokens per session scan A 8113671a75b7

Subscribe to this mod's changes

sweeper-fix is a skill published in the GitHub repository microsoft/vscode (190,061 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 1,736 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nemoclaw-contributor-implement-issue

Implement an accepted NemoClaw GitHub issue in the current checkout. Use when a user asks to pick up an issue for implementation, implement or fix a named issue, or add the issue's tests. Confirm accepted scope, deliver the smallest independently valuable capability slice, and record validation and remaining gates…

NVIDIA/NemoClaw · 134 tokens

nemoclaw-contributor-onboard

Prepare a NemoClaw source checkout for compliant contribution through the repository's one-command setup and readiness doctor. Use when a new contributor asks to set up a development machine, prepare a checkout for a first PR, repair local contributor tooling, verify contributor readiness, launch the pinned coding…

NVIDIA/NemoClaw · 99 tokens

chrome-release-cls

Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CL that fixed it by searching the local Chromium checkout and sub-repos. Use when asked to map Chrome security release notes to fixing CLs, or to find which commits correspond to CVEs in a Chrome…

electron/electron · 76 tokens

nemoclaw-contributor-update-docs

Find user-visible changes merged to NemoClaw and update their owning documentation. Use in the post-merge documentation workflow or for direct documentation catch-up. Derive pages, commands, variants, and validation from the current checkout. Trigger keywords - update docs, docs from commits, catch up docs, docs drift.

NVIDIA/NemoClaw · 71 tokens

docx

使用 OpenXML SDK (.NET) 进行专业的 DOCX 文档创建、编辑和格式化。 三种管道:(A) 从零创建新文档,(B) 在已有文档中填充/编辑内容, (C) 应用模板格式化并通过 XSD 验证门控检查。 当用户需要生成、修改或格式化 Word 文档时,必须使用此 skill—— 包括他们说"写一份报告"、"起草建议书"、"制作合同"、 "填写此表单"、"按此模板重新排版",或任何最终输出为 .docx 文件的任务。 即使用户未明确提及 "docx",如果任务暗示生成可打印/正式文档,也应使用此 skill。.

Playa-0v0/Cyrene-Agent · 169 tokens

cyrene-plan-mode

当 Cyrene 处于 Plan Mode(计划模式),正在讨论、调查、细化或准备代码/文件改动的实施计划时使用。.

Playa-0v0/Cyrene-Agent · 37 tokens