ide-type-mismatch-fix

ide-type-mismatch-fix is a skill for Claude Code 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 Code

Written for Claude Code: argument-hint in frontmatter. Also seen: agent in frontmatter.

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

Good fit Use it to inspect workspace or file-specific diagnostics, check symbol types, review quick fixes, and resolve type errors across grouped files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oolab-labs/patchwork-os/ide-type-mismatch-fix
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.

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.

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

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ide-type-mismatch-fix

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00064 $0.00835
Opus 5.5 $0.00026 $0.00334
Sonnet 5.5 $0.00013 $0.00167
Haiku 4.5 $0.00006 $0.00084

Measured 3mo ago against content hash c74a0f9c16a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (33 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 835 once invoked, about $0.0003 per session on Opus 5.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

ide-type-mismatch-fix compared with skills from other repositories

ide-type-mismatch-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ide-type-mismatch-fixOolab-labs/patchwork-osSkill33yesterdayMITA64Claude Code
debugging-typescript-errorsdork-labs/dorkosSkill11todayMITA39Claude Code
ts-debugberekvolgyipeter/dotclaudeSkill2yesterdayMITA68Claude Code, Codex
typescript-async-concurrencyLu1sDV/skillsmdSkill24d agononeA70Codex
typescript-type-modelingLu1sDV/skillsmdSkill24d agononeA69Codex
typescript-language-runtimeLu1sDV/skillsmdSkill24d agononeA71Codex
strict-typescriptVersoXBT/claude-initial-setupSkill46mo agoMITA58Claude Code