Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

typescript-v6TypeScript V6 搜索

Agent Skill

typescript-v6 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

466

周安装

20

GitHub Stars

8

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typescript-v6(TypeScript V6 搜索)
来源仓库:https://github.com/nodnarbnitram/claude-code-extensions
仓库路径:skills/typescript-v6
安装命令:
npx skills add https://github.com/nodnarbnitram/claude-code-extensions --skill typescript-v6
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nodnarbnitram/claude-code-extensions --skill typescript-v6

简介

提供 TypeScript V6 相关信息检索与筛选功能,支持基于关键词查找答案。

  • 适合在需要了解新版本特性或迁移方案时使用。
  • 通过 GitHub 仓库安装,使用标准 npx skills add 命令集成。
  • 使用前应核实仓库维护状态及是否涉及敏感数据处理。
  • typescript-v6 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

TypeScript 6 Skill

Build, configure, and debug TypeScript 6+ projects with precise compiler guidance and modern module/runtime patterns.

Before You Start

This skill is for real TypeScript 6+ project work: daily development, configuration, debugging, and upgrades.

MetricWithout SkillWith Skill
Upgrade Investigation Time~90 min~30 min
Common tsconfig Regressions5+0-1
Token UsageHigh (manual diffing)Low (release-note-grounded guidance)

Known Issues This Skill Prevents

  1. Surprise build failures from missing types entries after upgrading
  2. Unexpected dist/src/... output because rootDir was never explicit
  3. Deprecated moduleResolution node or baseUrl settings surviving into a TS 6 migration
  4. Confusion about when to use bundler vs nodenext
  5. Overusing ignoreDeprecations: "6.0" as a long-term fix instead of a temporary migration aid
  6. Misunderstanding --stableTypeOrdering as a production performance flag instead of a TS 6→7 comparison tool
  7. Missing Node/test globals because TS 6+ projects often need explicit types entries
  8. New side-effect import errors because TS 6 applies stricter side-effect import checking

Quick Start

Step 1: Make the important options explicit

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

Why this matters: TypeScript 6 changed enough defaults and behaviors that explicit configuration now matters more in everyday work. rootDir and types are two of the most important settings to keep intentional.

Step 2: Pick module resolution deliberately

{
  "compilerOptions": {
    "module": "esnext",
    "moduleResolution": "bundler"
  }
}

Why this matters: TypeScript 6 deprecates moduleResolution: "node"/"node10". Bundled apps should usually choose bundler, while Node.js packages should usually choose nodenext.

Step 3: Use TS 6-era library typings only when the target/lib/runtime really supports them

const escaped = RegExp.escape('(hello)');

const value = new Map<string, number>().getOrInsert('count', 0);

const tomorrow = Temporal.Now.instant().add({ hours: 24 });

Why this matters: TypeScript 6 can type new platform APIs before every runtime ships them. Distinguish compiler types available from runtime support available.

Step 4: Verify config and resolution before changing code

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

Why this matters: TS 6+ projects often fail because the effective config or included file graph is not what the project expects. Validate that first, then refactor.

Critical Rules

Always Do

  • Make rootDir explicit when your sources are nested below the tsconfig.json
  • Make the types array explicit for Node, test runners, Workers, Bun, or other global type providers when the project relies on those ambient globals
  • Prefer moduleResolution: "bundler" for bundled web apps and moduleResolution: "nodenext" for modern Node.js packages
  • Treat ignoreDeprecations: "6.0" as a short-term migration escape hatch, not the destination
  • Use paths directly instead of relying on deprecated baseUrl
  • Make types explicit when the project truly depends on Node, test, Worker, or Bun globals
  • Treat side-effect imports as intentionally checked and fix their paths deliberately
  • Verify runtime support before recommending Temporal, getOrInsert, or RegExp.escape
  • Use --stableTypeOrdering only when comparing TS 6 and TS 7 behavior or investigating ordering-sensitive issues
  • Use satisfies, exhaustive never checks, and assertion functions when TS 6+ code exposes type ambiguity that should be made explicit
  • Re-run tsc --noEmit after config changes and again after type-pattern refactors

Never Do

  • Never recommend deprecated moduleResolution: "node" / "node10" as the forward-looking path
  • Never recommend removed moduleResolution: "classic" as a fallback path
  • Never leave types implicit if a project depends on @types/node, test globals, or platform globals
  • Never assume ignoreDeprecations: "6.0" will keep working in TypeScript 7
  • Never present TS 7 preview context as if it were already the default compiler runtime
  • Never imply that TypeScript types guarantee runtime availability for new ECMAScript APIs
  • Never import pre-TS 6 tsconfig advice that still uses skipDefaultLibCheck, downlevelIteration, or old AMD/UMD/SystemJS examples

Common Mistakes

Wrong - relying on pre-TS 6 ambient type loading:

{
  "compilerOptions": {
    "outDir": "./dist"
  }
}

Correct - declare what global types the project actually needs:

{
  "compilerOptions": {
    "outDir": "./dist",
    "types": ["node"]
  }
}

Why: In TS 6+, explicit types improves performance and predictability when the project depends on ambient globals.

Wrong - keep deprecated path alias setup unchanged:

{
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@app/*": ["app/*"]
    }
  }
}

Correct - inline the source prefix in paths:

{
  "compilerOptions": {
    "paths": {
      "@app/*": ["./src/app/*"]
    }
  }
}

Why: baseUrl is deprecated in TS 6. The forward-looking setup is direct paths entries.

Wrong - type widening hides the real config contract:

const compilerMode = {
  moduleResolution: 'bundler',
  strict: true,
};

Correct - keep literals checked without widening:

const compilerMode = {
  moduleResolution: 'bundler',
  strict: true,
} satisfies {
  moduleResolution: 'bundler' | 'nodenext';
  strict: boolean;
};

Why: satisfies is not new in TS 6, but it is one of the cleanest ways to make config and option objects precise without losing inference.

Wrong - union handling silently misses a new case:

type ResolutionMode = 'bundler' | 'nodenext' | 'preserve';

function describeMode(mode: ResolutionMode) {
  if (mode === 'bundler') return 'bundled app';
  return 'node-style runtime';
}

Correct - exhaustive union handling:

type ResolutionMode = 'bundler' | 'nodenext' | 'preserve';

function describeMode(mode: ResolutionMode) {
  switch (mode) {
    case 'bundler':
      return 'bundled app';
    case 'nodenext':
      return 'node-style runtime';
    case 'preserve':
      return 'mixed emit strategy';
    default: {
      const exhaustive: never = mode;
      return exhaustive;
    }
  }
}

Why: TypeScript 6+ projects often rely on unions for config, platform, and runtime state. Exhaustive never checks make missing cases obvious.

Wrong - use stableTypeOrdering as a normal build flag:

tsc --stableTypeOrdering --build

Correct - use it only for comparison/debugging:

tsc --noEmit --stableTypeOrdering

Why: The flag exists to reduce TS 6 vs TS 7 output noise. It can meaningfully slow type-checking and is not intended as a permanent default.

Known Issues Prevention

IssueRoot CauseSolution
process / describe / fs suddenly missingThe project relied on ambient type discovery that is no longer safe to assume during TS 6 migration workAdd explicit entries like "types": ["node", "jest"]
Output moves to dist/src/...The project relied on inferred source-root behavior that TS 6 migration work often needs to replace with explicit configSet rootDir explicitly, usually ./src
Upgrade warnings explodeDeprecated module resolution or emit-era options survived from older configsMigrate to bundler or nodenext; remove deprecated options
Side-effect imports suddenly errorSide-effect import checking is stricter in TS 6+ projectsFix typos, add explicit files, or tighten import paths intentionally
#/ imports do not resolveRuntime or resolution mode does not match TS 6 support requirementsUse Node 20+ support with moduleResolution: "bundler" or "nodenext"
New ES APIs compile but fail at runtimeTS lib types are present, runtime support is notVerify runtime compatibility and polyfill strategy separately
Type ordering changes create noisy diffsTS 6/TS 7 ordering differs during migration experimentsUse --stableTypeOrdering temporarily

Bundled Resources

References

Configuration Reference

Bundled application baseline

{
  "compilerOptions": {
    "target": "es2025",
    "module": "esnext",
    "moduleResolution": "bundler",
    "lib": ["es2025", "dom"],
    "rootDir": "./src",
    "outDir": "./dist",
    "strict": true,
    "noUncheckedSideEffectImports": true
  },
  "include": ["src/**/*"]
}

Key settings:

  • rootDir: Prevents accidental dist/src/... nesting
  • types: Add it explicitly only when the project actually depends on Node/test/platform globals
  • moduleResolution: "bundler": Best fit for Vite/esbuild/Rollup/Webpack-style app builds
  • target: "es2025" / lib: ["es2025",...]: Gives access to TS 6-era built-in types such as RegExp.escape

Node package baseline

{
  "compilerOptions": {
    "target": "es2022",
    "module": "nodenext",
    "moduleResolution": "nodenext",
    "lib": ["es2022"],
    "rootDir": "./src",
    "outDir": "./dist",
    "types": ["node"],
    "strict": true
  },
  "include": ["src/**/*"]
}

Key settings:

  • nodenext: Use when the package's runtime semantics should follow modern Node.js ESM/CJS rules
  • Explicit .js import specifiers and package.json module settings still matter; TS 6 does not remove that responsibility

Project Structure

my-ts-project/
├── src/
├── dist/
├── package.json
└── tsconfig.json

Why this matters: TS 6 rewards explicit, boring project structure. Most upgrade pain comes from old implicit config behavior, not from source code syntax.

Common Patterns

Direct paths migration

{
  "compilerOptions": {
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Use this instead of keeping deprecated baseUrl around.

#/ subpath imports for package-internal aliases

{
  "name": "my-package",
  "type": "module",
  "imports": {
    "#/*": "./dist/*"
  }
}
import * as utils from '#/utils.js';

Use this when your package/runtime already supports Node's imports field and you want package-native aliases instead of bundler-only conventions. Keep the exact mapping aligned with the files the package actually ships.

Temporary migration shield

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

Use this only long enough to unblock the migration. Plan to remove it before TS 7.

Monorepo/project-reference check

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

Use this when packages emit .d.ts files or participate in project references. isolatedDeclarations is not TS 6-exclusive, but it fits the stricter, more explicit TS 6+ workflow well.

Verification Workflow

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

When to use each command:

  • --noEmit: First-pass health check after config or type changes
  • --showConfig: Confirm the effective merged config before debugging phantom settings
  • --explainFiles: Understand why a file is in the program or why a file graph changed
  • --traceResolution: Debug paths, package exports, types, or #/ import resolution

Troubleshooting

"Cannot find name 'process'" / "Cannot find name 'describe'"

Add the appropriate types entries and install the matching @types/* package if needed.

Output path changed unexpectedly

Set rootDir explicitly. This is one of the most common TS 6 upgrade regressions.

Deprecated option warnings keep appearing

Migrate away from deprecated settings; use ignoreDeprecations: "6.0" only while the real replacement work is still in progress.

New side-effect import errors appear in TS 6+

Inspect the import path and whether the file is intended as a side-effect-only module. TS 6 applies stricter checking here, so old typos or vague side-effect imports can surface now.

RegExp.escape / Temporal / getOrInsert compile but fail in production

Check runtime support. TS 6 can expose types before every target environment implements the runtime API.

Setup Checklist

  • rootDir is explicit if source files live below the tsconfig.json
  • types is explicit for Node, tests, Workers, Bun, or other ambient platforms
  • moduleResolution is bundler or nodenext, not deprecated node / node10
  • Removed classic resolution, skipDefaultLibCheck, and downlevelIteration are not lingering in copied config
  • Deprecated baseUrl / downlevelIteration / ES5-era settings are removed or scheduled for removal
  • tsc --showConfig and tsc --explainFiles were used if the upgrade behavior is still surprising
  • ignoreDeprecations: "6.0" is temporary and tracked
  • New TS 6 APIs are validated against actual runtime support
  • --stableTypeOrdering is only used for migration comparisons, not normal builds

Official Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.29%
按下载量换算56

Claude

29.99%
按下载量换算49

Cursor

19.53%
按下载量换算32

Gemini CLI

8.84%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills