dot_claude/skills/typescript-performance/SKILL.md
Comprehensive TypeScript performance analysis and optimization. Use when users report slow TypeScript compilation, slow editor experience, or want to investigate TypeScript performance issues. This skill provides diagnostic tools, trace analysis workflows, and optimization strategies. Key triggers include mentions of slow builds, type-checking delays, tsc performance, editor lag with TypeScript, or requests to analyze/improve TypeScript performance. Always prioritize data-driven analysis using --extendedDiagnostics, --generateTrace, and TS Server logs before making optimization recommendations.
npx skillsauth add sushichan044/dotfiles typescript-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides a systematic approach to diagnosing and resolving TypeScript performance issues through data-driven analysis.
Never guess at performance issues. Always collect diagnostic data first:
--extendedDiagnostics or generate a performance trace--listFilesOnly and --explainFilesAsk user to clarify:
tsc or bundler compilation is slowQuick Diagnostics:
npx tsc -p . --extendedDiagnostics
Use scripts/analyze_diagnostics.py to parse and interpret the output:
npx tsc -p . --extendedDiagnostics 2>&1 | python scripts/analyze_diagnostics.py -
Detailed Analysis (if needed):
# Generate comprehensive trace
bash scripts/generate_trace.sh . ./trace_output
# Quick automated analysis
npx @typescript/analyze-trace ./trace_output
# Visual analysis in Chrome/Edge
# Open about://tracing and load trace_output/trace.*.json
Get TS Server log in VS Code:
TypeScript: Open TS Server logCheck for common issues:
Use analyze_diagnostics.py output to identify:
High Check time (>70% of total): Type-checking bottleneck → Generate trace for detailed analysis
High I/O Read time (>30% of total): File system issue → Check include/exclude configuration
High file count (>2000): Configuration problem → Review tsconfig.json patterns
High memory usage (>2GB): Project size issue → Consider project references
For detailed trace analysis guidance, read references/trace-analysis-guide.md.
Key steps:
@typescript/analyze-traceBased on diagnostic findings, consult references/performance-checklist.md for specific optimizations.
Configuration Issues (High I/O time, high file count):
Type-Checking Issues (High Check time):
Project Structure Issues (High memory, very large projects):
Build Tool Issues:
After applying fixes:
For specific problem patterns and solutions, read references/common-issues.md.
Common issues covered:
Generates a complete performance trace with diagnostics:
bash scripts/generate_trace.sh [project-path] [output-dir]
Default: current directory, output to ./trace_output
Output includes:
Parses and analyzes extendedDiagnostics output:
# From file
python scripts/analyze_diagnostics.py diagnostics.txt
# From pipe
tsc --extendedDiagnostics 2>&1 | python scripts/analyze_diagnostics.py -
Provides:
For complex cases requiring deep investigation:
File a TypeScript issue if:
Include:
npx tsc -v)node -v)tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.