typescript
БесплатноБез исполняемых скриптовНе проверенJavaScript/TypeScript language engineering — the strictest-profile type system (discriminated unions, branded types, satisfies), parse-don't-validate…
от olehsvyrydov★ 18 звёзд на GitHubОб этом скилле
TypeScript (language skill)
This is a knowledge skill, not an agent: it loads from context whenever TypeScript or
JavaScript is written or reviewed, and the role agents (/fe, /be, /rev) route into
it for the language-level rules. Framework depth stays with /fe's stack references —
../../frontend/react/frontend-developer/SKILL.md and its
../../frontend/react/frontend-developer/references/react-expertise.md — while this file
owns TS-the-language, the Node runtime, package discipline, the lint/test toolchain, and
non-UI code: CLIs, servers, libraries, scripts.
Trigger
Use this skill when:
- Writing, editing, or reviewing
.ts,.tsx,.js, or.mjsfiles - Changing
tsconfig*.json,package.json, or a lockfile — flags, dependencies, exports, engines - Diagnosing a
tsc, ESLint, or Vitest failure - Designing a TypeScript component — module boundaries, error surface, async topology
- Planning tests for TypeScript code
- Adding a dependency to a JavaScript/TypeScript workspace
Do NOT load it for React/Next/Angular/Vue framework questions — those are /fe's stack
references — nor for E2E automation, which is /e2e's domain.
Context
This skill exists to make TypeScript reviews boring. The compiler is the first reviewer:
the type system exists to make illegal states unrepresentable, and the lint layer exists
to make forgotten awaits impossible, so humans review design instead of hunting typos.
Runtime trust starts at zero at every I/O edge — nothing crossing one is used before it
is parsed into a known type. Policy — compiler flags, lint severities, formatting,
dependency rules, coverage — lives in checked-in files, not in anyone's head, so "what
does this repo require?" has exactly one answer.
Documentation Lookup (MANDATORY)
Before implementing any feature, check current documentation. The TypeScript compiler line split in 2026, Node's LTS lanes rotate on a fixed calendar, and the package managers have tightened their security defaults at every major; recall is not a source.
Context7 MCP
Use Context7 MCP to retrieve up-to-date documentation for any package or tool:
- Resolve library: Call
mcp__context7__resolve-library-idwith the package name - Query docs: Call
mcp__context7__query-docswith the resolved library ID and your question
When to use: Zod 4 schema APIs, typescript-eslint rule options, Vitest configuration,
MSW 2 handlers, fast-check arbitraries, Node core APIs (node: modules).
Example queries:
- "zod 4 discriminated unions and custom error messages"
- "typescript-eslint flat config projectService setup"
- "vitest 4 coverage thresholds and projects config"
- "msw 2 http handlers and server lifecycle in vitest"
- "fast-check property for a round-trip serializer"
- "node 24 AbortSignal.timeout with fetch"
Web Research
Use WebSearch and WebFetch for anything version- or advisory-shaped:
| Question | Source to check |
|---|---|
| What changed in a TypeScript release | the official TypeScript release notes |
| Which Node line is Active LTS today | the Node.js release schedule |
| Is there an advisory against this package | the GitHub / OSV advisory databases |
| What is the current version of a package | its repository / registry page, at task time |
TypeScript-specific lookup rules
- Verify the compiler line before advising on tooling. TypeScript 6.x and 7.x are different compilers — 7 is the native port. Before recommending anything that consumes the compiler API — typescript-eslint, ts-morph, custom transformers, API-driven codegen — check which line the project actually runs. Advice that assumes the programmatic API exists is wrong on 7.0.
- Verify Node LTS status before pinning engines. The
enginesfloor and the CI matrix follow the release schedule, not memory: which line is Active LTS, which is Maintenance, and when the Current line is promoted all change on a fixed calendar.
Rule: When uncertain about any API, configuration, or best practice — search first, code second.
Versions
| Technology | Version | Notes |
|---|---|---|
| TypeScript (checked in) | 6.0 (2026-03-23) | The bridge release — strict by default, module defaults to esnext; the standard checked-in compiler today |
| TypeScript (native) | 7.0 (GA 2026-07-08) | Native Go compiler. No stable programmatic API until 7.1 — typescript-eslint and ts-morph cannot run on it yet. Adopt as a fast CI type-checker where nothing needs the compiler API; adopt fully once 7.1 ships |
| Node.js | 24 (Active LTS) | 22 is in Maintenance; 26 is Current, LTS Oct 2026. Corepack is removed from Node 25+ |
| pnpm | 10+ (11 current) | 10+ blocks dependency lifecycle scripts by default (onlyBuiltDependencies allowlist); 11 defaults minimumReleaseAge to 1440 minutes (one day). Self-manages via the packageManager field — no Corepack |
| Zod | 4.x | Boundary schemas; Zod Mini is the tree |
Установить typescript в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript?
JavaScript/TypeScript language engineering — the strictest-profile type system (discriminated unions, branded types, satisfies), parse-don't-validate boundaries with Zod, ESM and the Node runtime, typescript-eslint discipline (no floating promises), and Vitest/MSW/fast-check testing. Load whenever writing, editing, or reviewing .ts/.tsx/.js/.mjs code, tsconfig or package.json changes, tsc or lint failures, or TypeScript design/test planning — with or without /fe or /be invoked. NOT for React/Next/Angular/Vue framework questions (that is /fe's stack references) and NOT for E2E automation (that is /e2e).
Как установить скилл typescript?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript запускает скрипты?
Нет, скилл состоит только из инструкций (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