config-optimizer

A tool for reviewing and improving tsconfig.json, the file that controls how a TypeScript project is checked and built. It adapts its review to project types such as libraries, web apps, services, and monorepos, which are repositories containing multiple related packages.

In plain words
What is it for?
Use it to review compiler settings, file inclusion rules, strictness, path mappings, and performance-related options, including during TypeScript upgrades or monorepo changes.
Why use it?
It helps find configuration choices that cause slow type checking, build problems, warnings, or poor editor performance.

Skill for Claude CodeCodex

Part of the typescript-pro plugin — 5 skills, 10 commands, 8 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 skills/andronics/claude-plugin-typescript-pro/config-optimizer
Any agent
npx skills add andronics/claude-plugin-typescript-pro --skill config-optimizer
Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-typescript-pro

Made for: Claude Code, Codex.

Or install typescript-pro, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 8 agents.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,651 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.00055 $0.02651
Opus 5 $0.00028 $0.01326
Sonnet 5 $0.00011 $0.00530
Haiku 4.5 $0.00006 $0.00265

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

Security

Grade A, and why

config-optimizer 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 2d 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.

skills/config-optimizer/SKILL.md · 479 lines

How it starts

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

You are a TypeScript Configuration Optimization Specialist that analyzes and improves TypeScript configuration files for better performance, type safety, and developer experience.

When to Activate

Automatically activate when detecting:

  • Slow type-checking performance
  • Build performance issues
  • New TypeScript project setup
  • Configuration errors or warnings
  • Migration to newer TypeScript versions
  • Monorepo setup or changes
  • Framework-specific configuration needs
  • Strict mode adoption planning
  • IDE performance issues

Analysis Process

1. Detect Project Type

Analyze package.json and file structure to determine:

  • Library: Publishing to npm
  • Web Application: React, Vue, Svelte, etc.
  • Node Service: Express, NestJS, etc.
  • Monorepo: Multiple packages
  • Desktop App: Electron
  • Mobile: React Native
  • Full-stack: Frontend + Backend

2. Review Current Configuration

Check tsconfig.json for:

  • Compiler options appropriateness
  • Target and lib settings
  • Module configuration
  • Strict mode settings
  • Path mappings
  • Include/exclude patterns
  • Performance-impacting options

3. Measure Performance

Run diagnostics:

# Type-checking time
time npx tsc --noEmit

# Extended diagnostics
npx tsc --extendedDiagnostics

# Generate trace
npx tsc --generateTrace trace

Optimization Strategies

Performance Optimization

High-Impact Performance Settings:

{
  "compilerOptions": {
    // Skip checking node_modules .d.ts files (major performance boost)
    "skipLibCheck": true,

    // Skip default lib checking
    "skipDefaultLibCheck": true,

    // Enable incremental compilation
    "incremental": true,

    // Faster module resolution (if using bundler)
    "moduleResolution": "bundler",

    // For monorepos: enable project references
    "composite": true,

    // Only generate .d.ts for public packages
    "declaration": false, // Enable only for libraries

    // Disable if not debugging types
    "declarationMap": false,

    // Disable if not needed
    "sourceMap": false
  }
}

Read the full file on GitHub · 479 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. 2d ago First seen · 479 lines · 55 tokens per session scan A 26cbd22e193a

Subscribe to this mod's changes

config-optimizer is a skill published in the GitHub repository andronics/claude-plugin-typescript-pro (4 stars, last pushed 10mo ago), licensed MIT. It adds 55 tokens to every session and 2,651 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

client-setup

Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.

trpc/trpc · 63 tokens

custom-features

Author a TanStack Table v9 feature plugin across every FeatureMap and API installation surface: state, options, column definitions, table, column, row, cell, header, row-model functions/caches, defaults, prototypes, and table/row/column instance data lifecycles. Load for initTableInstanceData, resetTableInstanceData…

TanStack/table · 93 tokens

effect-and-errors

Composing Effect programs, domain errors, HttpError, repository error types, or error propagation at HTTP boundaries.

latitude-dev/latitude-llm · 26 tokens

migrate-better-result-3

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

dmmulroy/better-result · 52 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

typescript-magician

Designs complex generic types, refactors any types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing any types, strict typing, type errors, infer, extends…

mcollina/skills · 108 tokens