typescript-fix

typescript-fix is a command for coding agents from biggora/claude-plugins-registry. It costs 23 tokens per session (768 once invoked), scanned A, original, MIT.

A command that checks TypeScript code for type errors, finds their underlying causes, applies small type-safe fixes, and checks the result again.

In plain words
What is it for?
Use it to diagnose and repair TypeScript errors while preserving the project's intended behavior and existing scope.
Why use it?
It removes the need to work out which checker and configuration a project uses or to fix symptoms without verifying the full result.

Command

Part of the project-delivery-orchestrator plugin — 34 skills, 1 command, 5 agents 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 commands/biggora/claude-plugins-registry/typescript-fix
Clone the repo
git clone --depth 1 https://github.com/biggora/claude-plugins-registry

Or install project-delivery-orchestrator, the plugin that ships this one along with the rest of its 34 skills, 1 command, 5 agents.

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 typescript-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/biggora/claude-plugins-registry/typescript-fix.svg)](https://agentmods.dev/commands/biggora/claude-plugins-registry/typescript-fix)
Your own site
<a href="https://agentmods.dev/commands/biggora/claude-plugins-registry/typescript-fix"><img src="https://agentmods.dev/badge/commands/biggora/claude-plugins-registry/typescript-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 768 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.00023 $0.00768
Opus 5 $0.00012 $0.00384
Sonnet 5 $0.00005 $0.00154
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

typescript-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 3d 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.

src/skills/typescript-expert/commands/typescript-fix.md · 75 lines

How it starts

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

Use the typescript-expert skill. Preserve the user's scope and the project's runtime behavior.

1. Discover the Actual Checker

Inspect:

  • package.json, workspaces, and the lockfile to identify the package manager;
  • all relevant tsconfig*.json files and their extends chains;
  • the installed TypeScript version;
  • existing typecheck/build scripts and framework checkers such as vue-tsc, svelte-check, Angular, Astro, or MDX tooling;
  • the current working-tree diff so unrelated user changes are preserved.

If TypeScript 7 is installed or proposed, check whether the toolchain imports the Compiler API or requires the TypeScript 6 compatibility line. Do not upgrade dependencies unless the user requested an upgrade.

2. Establish the Baseline

Run the repository's existing type-check script. If none exists, invoke the local compiler through the detected package manager; do not use a command that can silently download a different TypeScript version.

Examples:

npm exec -- tsc --noEmit
pnpm exec tsc --noEmit
yarn exec tsc --noEmit
bun run tsc --noEmit

Do not force --noEmit when the project validates declarations, uses project references/build mode, or relies on emit. Capture the command, compiler/checker version, exit code, and complete diagnostics.

If the baseline is clean, report it and stop. If the command cannot run for an environmental reason, report BLOCKED rather than editing from guessed diagnostics.

3. Find Root Causes

Group related diagnostics, but fix dependency order rather than raw error count:

  1. wrong project/config or file selection;
  2. missing or incompatible declarations and module resolution;
  3. incorrect shared domain/API types;
  4. implementation narrowing, generics, and nullability;
  5. isolated downstream errors.

For each group, inspect the source, the expected runtime behavior, and the declaring dependency. A single wrong export or widened type can cause many secondary diagnostics.

4. Apply Minimal Type-safe Fixes

Read the full file on GitHub · 75 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. 3d ago First seen · 75 lines · 23 tokens per session scan A 862ba569b7a1

Subscribe to this mod's changes

typescript-fix is a command published in the GitHub repository biggora/claude-plugins-registry (2 stars, last pushed 5d ago), licensed MIT. It adds 23 tokens to every session and 768 once invoked, about $0.0001 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-31.