ide-type-mismatch-fix

ide-type-mismatch-fix is a skill for Claude Code, Codex from Oolab-labs/patchwork-os. It costs 64 tokens per session (835 once invoked), scanned A, a copy of ide-type-mismatch-fix, MIT.

A workflow for diagnosing and fixing TypeScript or other language type errors with information from an editor’s language server. Type errors happen when code uses a value in a way its declared type does not allow.

In plain words
What is it for?
Use it to inspect workspace or file-specific diagnostics, check symbol types, review quick fixes, and resolve type errors across grouped files.
Why use it?
It replaces guesswork with the actual expected and received types, plus suggestions supplied by the editor. It focuses on reported errors and can apply available fixes when the required editor connection is active.

Skill for Claude CodeCodex

Part of the claude-ide-bridge plugin — 4 skills, 1 agent, 16 hooks, 1 MCP server shipped together

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/oolab-labs/patchwork-os/ide-type-mismatch-fix
Any agent
npx skills add Oolab-labs/patchwork-os --skill ide-type-mismatch-fix
Clone the repo
git clone --depth 1 https://github.com/Oolab-labs/patchwork-os

Made for: Claude Code, Codex.

Or install claude-ide-bridge, the plugin that ships this one along with the rest of its 4 skills, 1 agent, 16 hooks, 1 MCP server.

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

agentmods badge for ide-type-mismatch-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/oolab-labs/patchwork-os/ide-type-mismatch-fix.svg)](https://agentmods.dev/skills/oolab-labs/patchwork-os/ide-type-mismatch-fix)
Your own site
<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>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod 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.00064 $0.00835
Opus 5 $0.00032 $0.00417
Sonnet 5 $0.00013 $0.00167
Haiku 4.5 $0.00006 $0.00084

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

Security

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.

Origin

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.

claude-ide-bridge-plugin/skills/ide-type-mismatch-fix/SKILL.md · 95 lines

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

  1. Check if getToolCapabilities is 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 extensionConnected is 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

  1. Note the argument: $ARGUMENTS

    • If a specific file path: call getDiagnostics with that uri
    • If empty: call getDiagnostics with no uri (workspace-wide)
  2. Filter diagnostics to severity error only. If zero errors: report "No type errors found" and stop.

  3. 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):

  1. Call getHover at the error position (file, line, column) to fetch:

    • The symbol's actual type
    • The type context (what was expected)
  2. Call getCodeActions at the error range to get quickfix suggestions from the language server

  3. If the error involves a function call or method: call signatureHelp at the call site to see the expected parameter types

  4. 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)

  1. For each error where a quickfix is available AND the fix is low-risk (adds a type annotation, removes any, fixes an import):

    • Call previewCodeAction to show the exact diff
    • If the diff looks correct: call applyCodeAction to apply it
  2. After applying fixes: call getDiagnostics again to verify error count dropped

Read the full file on GitHub · 95 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. 4d ago First seen · 95 lines · 64 tokens per session scan A c74a0f9c16a9

Subscribe to this mod's changes

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.

Related

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.

JansenAnalytics/claudex · 52 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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.

obra/superpowers · 37 tokens

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.

microsoft/vscode · 62 tokens

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.

microsoft/vscode · 51 tokens

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.

microsoft/vscode · 53 tokens