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 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/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.
<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>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.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 |
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 1mo 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.
- 1mo 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 (31 stars, last pushed 3d ago), 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.
Other skills, from other repositories
debugging-typescript-errors
Systematically investigates TypeScript compiler errors, traces the real type mismatch, and applies a minimal verified fix. Use when the user wants to debug TypeScript type errors.
ts-debug
TypeScript/Node debugging expert. Use when the user needs to debug, profile, or trace TypeScript or Node.js code — e.g. "how do I debug this", "find the memory leak", "why is this slow", "add a breakpoint", "profile this function", "why won't the process exit".
strict-typescript
Enforce strict TypeScript compiler settings and type narrowing patterns. Use when the user creates a new TypeScript project, configures tsconfig.json, encounters null/undefined errors, deals with indexed access issues, or asks about strict mode, type safety, or narrowing techniques.
typescript-circular-dependency
Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest…
bun-runtime
Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.
cli-wiring
Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.