typescript-helper
БесплатноБез исполняемых скриптовНе проверенCurrent TypeScript configuration, migration, module, runtime, typing, and tooling guidance. Use when writing or reviewing TypeScript, selecting tsconfig…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
TypeScript Helper
Use TypeScript to make program contracts explicit, then validate data where static types end. Choose compiler and module settings from the actual runtime or bundler instead of applying one universal configuration.
Current status
Verified 2026-08-03.
| Line | Status | Important boundary |
|---|---|---|
| TypeScript 7.0 | Current stable native compiler and language server | No programmatic API in 7.0; tools that import or embed TypeScript may still require 6.x |
| TypeScript 6.x | JavaScript-codebase compatibility bridge | Use it to expose migration issues and stabilize type ordering before 7.0 |
typescript@next |
Nightly builds | Preview only; do not silently use it in production |
TypeScript reports typical 8–12x full-build improvements for the native 7.0 compiler. Treat that as an official benchmark range, not a universal guarantee. The experimental --checkers and --builders controls trade memory for concurrency; do not make them default without measuring the project.
Always inspect the selected toolchain. A bare tsc on PATH can resolve to the
6.x compatibility bridge even when a package also has the native compiler
installed; run from the package that declares @typescript/native, then use
the explicit native-compiler path when both are present. This matters with
isolated workspace linkers because the repository root may not own the package's
compiler dependency. This monorepo's scripts/checks/compliance-check.ts enforces the
same PATH=node_modules/@typescript/native/bin:$PATH tsc form:
cd packages/<package-that-declares-typescript-native>
PATH=node_modules/@typescript/native/bin:$PATH tsc --version
PATH=node_modules/@typescript/native/bin:$PATH tsc --showConfig
Read references/releases-and-migration.md before a TypeScript 6 or 7 upgrade. Read references/configuration.md when creating or reviewing a tsconfig. Read references/modules-and-runtimes.md for Node, Bun, bundler, ESM, and CommonJS decisions. Read references/type-safety.md for narrowing, generics, validation, and exhaustiveness. Read references/tooling.md for ESLint and execution tooling.
Project-safe commands
Type-check through the project configuration or build graph:
cd packages/<package-that-declares-typescript-native>
PATH=node_modules/@typescript/native/bin:$PATH tsc -p tsconfig.json --noEmit
PATH=node_modules/@typescript/native/bin:$PATH tsc -b
Passing source filenames to tsc bypasses project configuration historically. TypeScript 7 errors when a config is present unless that bypass is made explicit with --ignoreConfig. Do not use tsc file.ts as the normal project check.
In this monorepo, prefer its focused Turbo task over invoking a different compiler configuration:
bunx turbo run typecheck --filter=<package>
Model the runtime
| Host | Compiler model | Execution boundary |
|---|---|---|
| Modern Node | module: "nodenext" |
Node's built-in TypeScript ignores tsconfig and directly runs only erasable syntax |
| Node 20 contract | module: "node20" |
Fixed Node 20 behavior; use only when deliberately targeting it |
| Bundler or Bun application | module: "preserve" or "esnext", moduleResolution: "bundler" |
The runtime/bundler resolves and transforms modules; type-check separately |
| Multi-project library | Project references and tsc -b |
Referenced projects require composite |
Do not rank Node, Bun, tsx, or ts-node as universally fastest. Select based on runtime semantics, transformation support, type-checking needs, and repository conventions.
Strict baseline
Start with strict; add checks that reflect the project's boundary and indexing risks. The exact set enabled by strict can grow between releases.
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noUncheckedSideEffectImports": true,
"types": []
}
}
noUncheckedIndexedAccessaddsundefinedto undeclared index-signature lookups.exactOptionalPropertyTypesdistinguishes absence from a presentundefinedvalue.- An explicit
typeslist prevents accidental global-type inclusion and is required during the TypeScript 7 migration because 7.0 defaults it to[]. skipLibCheckis a deliberate compatibility and performance trade-off, not a correctness baseline. Do not use it to hide an upgrade failure.
Validate external data
Static annotations do not validate JSON, environment variables, HTTP bodies, database rows, cache values, or deserialized files. Keep these values unknown until parsed.
import { z } from "zod";
const User = z.object({
id: z.string().uuid(),
email: z.string().email(),
});
type User = z.infer<typeof User>;
async function fetchUser(id: string
Установить typescript-helper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript-helper?
Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance. Use when writing or reviewing TypeScript, selecting tsconfig settings, migrating TypeScript versions, resolving module/runtime mismatches, or designing safe typed boundaries.
Как установить скилл typescript-helper?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-helper запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic