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.

referencesworkflow-diagnostics-reference.md

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

TypeScript 6 Workflow and Diagnostics Reference

Verify the compiler state early and often. In TypeScript 6+, that matters more than guessing at source-level fixes.

Recommended Verification Loop

1. Check health before editing

npx tsc --noEmit

Use this as the first pass after a version bump, config rewrite, or unexplained compiler failure.

2. Confirm the real merged config

npx tsc --showConfig

Use this when the file says one thing but the compiler behaves like another. It is especially useful when extends chains or workspace-level config are involved.

3. See why a file is included

npx tsc --explainFiles

Use this to diagnose:

  • unexpected dist/src/... emit roots
  • test files or config files leaking into production builds
  • monorepo package boundaries that are wider than expected

4. Trace module and type resolution

npx tsc --traceResolution

Use this when debugging:

  • paths aliases
  • types package discovery
  • package.json exports / imports
  • #/ subpath imports under bundler or nodenext

Agent-Safe Workflow

  1. update config
  2. run npx tsc --noEmit
  3. if config still feels wrong, run --showConfig
  4. if file inclusion still feels wrong, run --explainFiles
  5. if import/type resolution still feels wrong, run --traceResolution
  6. only then refactor source types or runtime code

Monorepo / Project References

For package-based repos, make the emitting packages explicit.

{
  "compilerOptions": {
    "composite": true,
    "declaration": true,
    "isolatedDeclarations": true,
    "rootDir": "./src",
    "outDir": "./dist"
  }
}

composite and declaration are not new in TS 6, but they pair well with TS 6's push toward more explicit config and faster incremental tooling.

Quick Reference

Command Use When
npx tsc --noEmit baseline compiler health check
npx tsc --showConfig effective config looks different than expected
npx tsc --explainFiles file graph or include/exclude behavior is confusing
npx tsc --traceResolution path/type/module resolution is failing

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