typescript-v6
БесплатноБез исполняемых скриптовНе проверенTypeScript 6+ guidance for project development, tsconfig configuration, diagnostics, module resolution, deprecations, and modern standard-library typings. Use…
от nodnarbnitram★ 19 звёзд на GitHubОб этом скилле
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.
| Metric | Without Skill | With Skill |
|---|---|---|
| Upgrade Investigation Time | ~90 min | ~30 min |
| Common tsconfig Regressions | 5+ | 0-1 |
| Token Usage | High (manual diffing) | Low (release-note-grounded guidance) |
Known Issues This Skill Prevents
- Surprise build failures from missing
typesentries after upgrading - Unexpected
dist/src/...output becauserootDirwas never explicit - Deprecated
moduleResolution nodeorbaseUrlsettings surviving into a TS 6 migration - Confusion about when to use
bundlervsnodenext - Overusing
ignoreDeprecations: "6.0"as a long-term fix instead of a temporary migration aid - Misunderstanding
--stableTypeOrderingas a production performance flag instead of a TS 6→7 comparison tool - Missing Node/test globals because TS 6+ projects often need explicit
typesentries - 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
rootDirexplicit when your sources are nested below thetsconfig.json - Make the
typesarray 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 andmoduleResolution: "nodenext"for modern Node.js packages - Treat
ignoreDeprecations: "6.0"as a short-term migration escape hatch, not the destination - Use
pathsdirectly instead of relying on deprecatedbaseUrl - Make
typesexplicit 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, orRegExp.escape - Use
--stableTypeOrderingonly when comparing TS 6 and TS 7 behavior or investigating ordering-sensitive issues - Use
satisfies, exhaustiveneverchecks, and assertion functions when TS 6+ code exposes type ambiguity that should be made explicit - Re-run
tsc --noEmitafter 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
typesimplicit 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 predic
Установить typescript-v6 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript-v6?
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.
Как установить скилл typescript-v6?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-v6 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic