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.
npx agentmods add skills/oolab-labs/patchwork-os/ide-type-mismatch-fixnpx skills add Oolab-labs/patchwork-os --skill ide-type-mismatch-fixgit clone --depth 1 https://github.com/Oolab-labs/patchwork-osWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oolab-labs/patchwork-os/ide-type-mismatch-fix)<a href="https://agentmods.dev/skills/oolab-labs/patchwork-os/ide-type-mismatch-fix"><img src="https://agentmods.dev/badge/skills/oolab-labs/patchwork-os/ide-type-mismatch-fix.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00064 | $0.00835 |
| Opus 5 | $0.00032 | $0.00417 |
| Sonnet 5 | $0.00013 | $0.00167 |
| Haiku 4.5 | $0.00006 | $0.00084 |
Grade A, and why
ide-type-mismatch-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 4d 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.
This is a copy
97% identical to ide-type-mismatch-fix — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
IDE Type Mismatch Fixer
Prerequisites
- Check if
getToolCapabilitiesis available.- Not available: tell the user this skill requires the Claude IDE Bridge with a connected VS Code extension, then stop.
- Available: call it. If
extensionConnectedis false: show the same message and stop. If true: proceed.
Goal
Systematically diagnose and fix type errors using LSP intelligence, without guessing or making assumptions about types.
Workflow
Phase 1: Collect type errors
-
Note the argument:
$ARGUMENTS- If a specific file path: call
getDiagnosticswith thaturi - If empty: call
getDiagnosticswith nouri(workspace-wide)
- If a specific file path: call
-
Filter diagnostics to severity
erroronly. If zero errors: report "No type errors found" and stop. -
Group errors by file. Process at most 10 files; note if more exist.
Phase 2: Diagnose each error
For each error (up to 20 total across all files):
-
Call
getHoverat the error position (file,line,column) to fetch:- The symbol's actual type
- The type context (what was expected)
-
Call
getCodeActionsat the error range to get quickfix suggestions from the language server -
If the error involves a function call or method: call
signatureHelpat the call site to see the expected parameter types -
Build a diagnosis entry:
Error: [error message] File: [file]:[line]:[column] Symbol: [symbol from hover] Actual type: [type from hover] Expected type: [inferred from error message + context] Quickfixes available: [list from getCodeActions] Recommended fix: [your recommendation]
Phase 3: Apply fixes (if authorized)
-
For each error where a quickfix is available AND the fix is low-risk (adds a type annotation, removes
any, fixes an import):- Call
previewCodeActionto show the exact diff - If the diff looks correct: call
applyCodeActionto apply it
- Call
-
After applying fixes: call
getDiagnosticsagain to verify error count dropped
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.
- 4d ago First seen · 95 lines · 64 tokens per session scan A c74a0f9c16a9
ide-type-mismatch-fix is a skill published in the GitHub repository Oolab-labs/patchwork-os (30 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 835 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to ide-type-mismatch-fix, differing in 2 lines, and is treated as a copy.
Other skills, from other repositories
draft-queue
Queue an external action (Telegram message, shell command, GitHub comment, PR merge, file write) for the user's explicit approval before it runs. Use when you want to take an outward-facing or irreversible action that needs sign-off first.
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.