tsc-trace-analyzer

tsc-trace-analyzer is a skill for Claude Code, Codex from itaisatati/tsc-trace-analyzer. It costs 62 tokens per session (3,690 once invoked), scanned C, original, MIT.

A guide for finding why the TypeScript compiler, which checks TypeScript code, is slow. It uses compiler trace files to connect slow checking work to source code.

In plain words
What is it for?
Use it to profile a TypeScript project with --generateTrace, analyze trace.json and types.json files, locate slow source areas, and suggest fixes.
Why use it?
It helps identify type-checking bottlenecks instead of guessing which code is making compilation slow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to profile a TypeScript project with --generateTrace, analyze trace.json and types.json files, locate slow source areas, and suggest fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer
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 itaisatati/tsc-trace-analyzer --skill tsc-trace-analyzer
Clone the repo
git clone --depth 1 https://github.com/itaisatati/tsc-trace-analyzer

Made for: Claude Code, Codex.

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 tsc-trace-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer/github.svg)](https://agentmods.dev/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer)
Your own site
<a href="https://agentmods.dev/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer"><img src="https://agentmods.dev/badge/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer/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 tsc-trace-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer"><img src="https://agentmods.dev/badge/skills/itaisatati/tsc-trace-analyzer/tsc-trace-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00062 $0.03690
Opus 5 $0.00031 $0.01845
Sonnet 5 $0.00012 $0.00738
Haiku 4.5 $0.00006 $0.00369

Measured 12d ago against content hash 8ffd56ed7cba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

tsc-trace-analyzer scanned grade C with 1 finding 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 12d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/tsc-trace-analyzer-trace /tmp/tsc-trace-analyzer-emit
SKILL.md · 304 lines

How it starts

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

tsc-trace-analyzer

Run tsc --generateTrace on a TypeScript project, parse the resulting trace files, identify compilation bottlenecks, and suggest concrete code fixes.

When to use

Use this skill whenever the user complains that the TypeScript compiler or compilation is slow, or when they want to investigate where tsc is spending time. Triggers include — but are not limited to — any of the following:

  • "The TypeScript compiler is slow" / "tsc is slow" / "compilation is slow"
  • "My TypeScript build is slow" / "the build takes forever"
  • "Type checking is slow" / "type checking takes forever" / "tsc takes forever"
  • "Why is my TypeScript project so slow to compile?"
  • "How do I make tsc faster?" / "How do I speed up TypeScript?"
  • "Find TypeScript performance bottlenecks" / "Find type-checking hotspots"
  • "Profile the TypeScript compiler" / "profile tsc"
  • Any mention of --generateTrace, trace.json, types.json, "tsc trace", or "TypeScript tracing"
  • tsc is crashing with a JavaScript heap out-of-memory error and the user wants to understand or fix it
  • The user wants to know what the TypeScript compiler is spending its time on
  • The user asks for help reducing TypeScript compile times, build times, or CI times caused by tsc

Also use it proactively if the user shares a slow tsc build log, a long type-checking duration, or asks for advice on TypeScript performance optimization.

Instructions

Follow these steps in order:

Step 1: Find tsconfig.json

Search for tsconfig.json files in the project:

  • Use Glob to find **/tsconfig.json files, excluding node_modules
  • If exactly one is found, use it
  • If multiple are found, pick by this priority order:
    1. Root tsconfig.json at the project root — use it if present
    2. src/tsconfig.json — use it if there is no root tsconfig
    3. Otherwise, ask the user which one to analyze
  • If none are found, tell the user this skill requires a TypeScript project with a tsconfig.json

Read the full file on GitHub · 304 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. 12d ago First seen · 304 lines · 62 tokens per session scan C 8ffd56ed7cba

Subscribe to this mod's changes

tsc-trace-analyzer is a skill published in the GitHub repository itaisatati/tsc-trace-analyzer (5 stars, last pushed 5mo ago), licensed MIT. It adds 62 tokens to every session and 3,690 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

cli-wiring

Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.

github/gh-aw · 0 tokens

node-modules-inspector

Inspects a project's installed nodemodules and produces three reports: duplicated packages (installed in multiple versions), packages sorted by install size, and maintenance actions (dep-upgrade opportunities + publint findings, grouped by consumer/author). Use when the user wants to audit dependencies, find duplicate…

antfu/node-modules-inspector · 156 tokens

agents-sdk-typescript-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft/agents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD…

microsoft/Agents · 125 tokens

config

How to author a kubb.config.ts and pick the right @kubb/plugin- packages when generating TypeScript from an OpenAPI/Swagger spec. Use whenever setting up Kubb, adding a generator, or debugging codegen output.

kubb-labs/kubb · 49 tokens

agent-inspect

Local evidence debugger and trajectory-test toolkit for TypeScript AI agents. Use when capturing framework-faithful traces, asserting TraceContract/TraceFacts, packaging Evidence v2, or inspecting local runs over read-only MCP (gettracefacts).

rajudandigam/agent-inspect · 52 tokens

mintlify-api

Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.

mintlify/docs · 26 tokens