All skills

TypeScript 6+ guidance for project development, tsconfig configuration, diagnostics, module resolution, deprecations, and modern standard-library typings. Use when building or maintaining TypeScript 6+ projects, debugging compiler behavior, or working through TS 6-specific defaults and tooling such as `#/` subpath imports, `ignoreDeprecations`, `RegExp.escape`, `Temporal`, and `--stableTypeOrdering`. Triggers on typescript 6, ts 6, stableTypeOrdering, ignoreDeprecations, types array, noUncheckedSideEffectImports, baseUrl deprecated, moduleResolution node deprecated, and subpath imports.

Use this Skill: https://skilld.dev/gh/nodnarbnitram/claude-code-extensions/typescript-v6

This session only. Nothing lands on disk.

referencesmigration-v6-reference.md

≈534 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TypeScript 6 Migration Reference

Use this reference when a project is moving from TypeScript 5.x-era assumptions into TypeScript 6 behavior.

High-Impact Migration Changes

1. Re-check ambient globals

Projects that rely on Node.js, test, Worker, or Bun globals should make types explicit instead of relying on broad ambient discovery.

{
  "compilerOptions": {
    "types": ["node", "jest"]
  }
}

2. Make rootDir explicit

{
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src/**/*"]
}

This avoids surprising emit-path shifts such as dist/src/....

3. Replace deprecated config early

Look for old settings like:

  • moduleResolution: "node" / "node10"
  • baseUrl
  • downlevelIteration
  • target: "es5"

Move to bundler or nodenext, direct paths, and more modern targets first.

4. Use the compiler before editing code

npx tsc --noEmit
npx tsc --showConfig
npx tsc --explainFiles
npx tsc --traceResolution

These commands usually explain the upgrade faster than rewriting source files blindly.

5. Keep ignoreDeprecations temporary

{
  "compilerOptions": {
    "ignoreDeprecations": "6.0"
  }
}

Use it to create breathing room, then remove it once the real replacements land.

Migration Checklist

  • rootDir is explicit if sources live below the tsconfig.json
  • types is explicit where ambient globals matter
  • moduleResolution is bundler or nodenext
  • deprecated options are removed or scheduled for removal
  • tsc --showConfig and tsc --explainFiles were used if behavior is still surprising
  • runtime support for Temporal, RegExp.escape, and Map.getOrInsert* was checked separately

Quick Reference

Change Area What To Check
Ambient globals types entries
Emit layout rootDir, outDir, include
Module resolution bundler vs nodenext
Legacy config baseUrl, downlevelIteration, ES5-era targets
Debugging --showConfig, --explainFiles, --traceResolution

Source: SKILL.md on GitHub

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides safe and comprehensive guidance for configuring and migrating projects to TypeScript 6. It utilizes standard compiler tools and references official documentation without any detected security risks or malicious patterns.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at aabed46. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
version
1.0.0
metadata
{
  "author": "Brandon Martin"
}

README badge

README badge for nodnarbnitram/claude-code-extensions/typescript-v6