typescript-style-guide
БесплатноБез исполняемых скриптовНе проверенApply, review, and explain the opinionated conventions in the TypeScript Style Guide. Use automatically only when TypeScript conventions are part of the…
от mkosir★ 789 звёзд на GitHubОб этом скилле
TypeScript Style Guide
Apply only the conventions relevant to the current task. Keep TypeScript, linters, and formatters responsible for rules they can enforce automatically.
Workflow
- Inspect the consuming repository's conventions and configuration.
- Let explicit repository conventions take precedence over this opinionated guide.
- Identify which guide topic applies.
- Read only the reference for the task's primary guide topic. Read multiple references only when the task substantively spans multiple topics.
- Apply, review, or explain the conventions in the context of the current task.
- State important tradeoffs when a convention depends on context or judgment.
Reference routing
- Read references/types.md for type modelling, inference, readonly data, constants, template literal types,
any,unknown, assertions, type errors, type definitions, arrays, type imports, and generated service types. This reference takes precedence for narrowingunknownand assertions, including their runtime null checks. - Read references/discriminated-unions.md for general discriminated-union modelling, narrowing, invalid states, exhaustiveness checking, required and optional object properties, application state with variant-specific data, function arguments, and React props. This reference takes precedence when discriminated unions concern application state, function arguments, or React props.
- Read references/functions.md for function responsibility, statelessness, purity, side effects, function arguments, function API design, and return types.
- Read references/variables.md when the task concerns variable declarations, simple literal-union state modelling, enum alternatives, or choosing how application state represents absence with
nullorundefined. Do not read it for incidental variables or runtime checks used only for type narrowing. - Read references/naming.md for named exports, naming conventions, generic type parameters, React naming, comments, and TSDoc.
- Read references/source-organization.md for code collocation, feature-based organization, relative and absolute import paths, and frontend or backend project structure. Do not read it for type-only import semantics, which belong to Types.
- Read references/react.md for React component and hook APIs, props-to-state, component typing and roles, data flow, state placement, and compound components.
- Read references/tests.md for test design, the Arrange-Act-Assert pattern, isolation, implementation details, mocking, test descriptions, and snapshots.
Boundaries
- Do not reimplement deterministic TypeScript, ESLint, or formatting checks.
- Do not introduce unrelated conventions merely because this skill is active.
- Treat guide conventions as defaults when the consuming repository is silent.
Установить typescript-style-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript-style-guide?
Apply, review, and explain the opinionated conventions in the TypeScript Style Guide. Use automatically only when TypeScript conventions are part of the requested task, including type modelling, discriminated unions, function APIs, variables and state, naming, source organization, React props, component APIs, state management, data flow, or tests. Do not use for styling or layout alone.
Как установить скилл typescript-style-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-style-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic