typescript-patterns
БесплатноБез исполняемых скриптовНе проверенTyping rules and anti-patterns for TypeScript code. Use when writing or reviewing TypeScript where type safety at boundaries, error handling, or module…
Об этом скилле
TypeScript patterns
Follow the repo's tsconfig and lint config. Rules that matter most:
- External data (HTTP, JSON.parse, env, storage, LLM output) is
unknownuntil parsed by the repo's schema library. Infer the type from the schema. - No
any,@ts-ignore, orascasts to silence errors. A cast is allowed only after a runtime check, with a comment naming it. - Model states as discriminated unions with an exhaustive
nevercheck, not optional fields. - Throw
Errorsubclasses, never strings. No emptycatch. No floating promises. - Add a generic parameter only when it relates two positions.
- Use
import typefor type-only imports. Noenum, no barrel files outside a package entry point. - Share one schema between client and server instead of redeclaring types.
Установить typescript-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл typescript-patterns?
Typing rules and anti-patterns for TypeScript code. Use when writing or reviewing TypeScript where type safety at boundaries, error handling, or module structure matters.
Как установить скилл typescript-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (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