К основному содержанию
скилл CX Codex

ts-coder — скилл для Claude Code: что делает и как установить

Скилл ts-coder для Claude Code помогает писать и рефакторить TypeScript и TSX с учётом устройства репозитория. Он подключается к задачам с типами, API и миграциями.

Apache-2.0 ★ 869 обновлён 2026-11-16

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add sno-ai/sno-station-skills --skill ts-coder -a claude-code
Открыть на GitHub

Что делает ts-coder

ts-coder задаёт правила для изменений в TypeScript-коде: сначала агент читает инструкции проекта, целевые файлы, вызывающий их код и тесты, затем вносит только нужные правки. Скилл требует явной типизации экспортов, сужения типов вместо any и проверки внешних данных существующими схемами проекта.

Проверки начинают с типа изменённого пакета и тестов для затронутого поведения. Полный набор тестов нельзя запускать без прямой просьбы человека; каждое заявление о готовности должно подтверждаться командой, запущенной в этой сессии. Для изменений сторонних API или зависимостей нужны актуальные официальные документы и, при смене версии, примечания к релизам.

Какие задачи решает

  • рефакторить TypeScript и TSX без лишних изменений
  • типизировать экспортируемые функции и сужать неизвестные типы
  • проверять внешние данные схемами репозитория
  • выбирать узкие проверки для изменённого поведения
  • проводить миграцию без устаревших путей и резервной логики

Примеры запросов агенту

  • Рефакторни этот модуль на TypeScript и сохрани стиль репозитория.
  • Добавь API для этого сценария и проверь затронутое поведение.
  • Замени старый формат данных новым без режима совместимости.

Как установить ts-coder

1Через Skills CLI (Vercel)

npx skills add sno-ai/sno-station-skills --skill ts-coder -a claude-code

2Вручную: положить файлы

~/.claude/skills/ts-coder/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/ts-coder/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о ts-coder

Как установить ts-coder в Claude Code?

Выполни npx skills add sno-ai/sno-station-skills --skill ts-coder -a claude-code. Файл скилла находится по пути ~/.claude/skills/ts-coder/SKILL.md.

Что делает ts-coder?

Задаёт правила для реализации и рефакторинга TypeScript и TSX, миграций и работы с API. Также описывает, как выбирать проверки и отчитываться об их результатах.

Как ts-coder выбирает тесты для запуска?

Он начинает с наиболее узких проверок, связанных с изменением. Полный набор тестов требует прямой просьбы человека.

Исходный текст

SKILL.md · Apache-2.0
---
name: ts-coder
description: "Implement and refactor production TypeScript/TSX, strict types, APIs, and migrations."
requires:
  programs: []
  harness:
    - {slot: 4.shell, need: required}
    - {slot: 4.file-read-write, need: required}
---

# TypeScript Coder

Every development task has a finite budget including setup, tests, and reporting.
Before running tests, estimate duration from available timings and identify the changed
behavior or directly affected consumer. If timing is unknown, state an estimate; do not
build a timing system or run a preliminary suite. Full evaluation, unit, integration,
or repository suites require the owner's explicit request, never a skill, PRD, review,
or default command. Remove checks that neither prove the requested main function nor
expose its defects. Repeat only after a relevant change or failure.
Every new security check requires the owner's explicit approval for that specific check;
remove auxiliary security, assertion, hash, or bookkeeping blockers of useful work.


Write TypeScript that fits the current repository, stays small, and is easy to verify. Local repo instructions add project-specific detail; they do not weaken these rules.

## Boundaries

- **No backward compatibility by default.** No legacy paths, compatibility wrappers, migration shims, dual-format support, or fallback behavior unless explicitly requested. A published external contract is the only exception, and only when the user or repo instructions confirm it is published.
- **Read before writing.** Runtime and package manager from local files (`package.json`, lockfiles, `tsconfig*`); the target file, its exports, direct callers, shared helpers, and tests. Reuse source-of-truth schemas/types instead of duplicating shapes.
- **Official docs for third-party behavior.** Before changing a dependency version, or using a third-party API, SDK, CLI, or service in a way neither the PRD nor existing code already shows, read its current official documentation; for a version change, read the release notes between the two versions. Name the page and version in the report. When a PRD governs the work and lacks or contradicts that fact, add it to the PRD's execution notes.
- **Surgical changes.** Touch only files the task needs. No unrequested options/flags/configurability, no new helpers that duplicate existing utilities, no formatting churn, renames, or opportunistic cleanup.
- **Deterministic code for deterministic decisions.** Routing, retries, status handling, validation, and parsing belong in code, never in a model call.
- **Conflicting local patterns:** pick one source of truth (by authority, recency, test coverage), state the choice, flag the other for cleanup — never blend into a third style.
- State uncertainty that affects behavior, public API, data shape, or migration semantics before coding, and decide the verification command before coding.

## Standards

- `unknown` + narrowing over `any`. Type guards or schema validation over assertions; a narrow assertion only at a validated boundary, with a short comment. No non-null assertions — narrow with control flow or fail early.
- Exported functions explicitly typed. Named exports unless the repo or framework requires default exports.
- Discriminated unions where impossible states matter; `as const satisfies` for literal maps that need exhaustiveness.
- Functions under ~50 lines, max 3 indentation levels; extract only when it clarifies real complexity.
- Validate external boundaries with the repo's existing parser/schema library (`zod`, `valibot`, generated types, or local validators). Fail clearly — no fallback behavior that hides invalid state.
- Clean up timers, listeners, subscriptions, and abort controllers in `finally` or explicit teardown.
- Keep fixed-format parsing and protocol literals in code; use existing translation resources only for text that requires localization. Reuse the repository's configuration approach rather than introducing a configuration or translation system for an ordinary change.

## Migrations

Hard cut by default: replace the old path rather than running old and new together. No compatibility aliases, duplicate parsing, legacy env names, or fallback resolution unless explicitly requested. For a published package, inspect its actual external contract and the owner's settled instruction. Preserve that contract unless a breaking change is authorized. Resolve routine implementation choices directly; ask only if a new fact requires an owner decision, and continue independent work. Preserve unrelated local modifications and user work; never rewrite history or reset files to make a migration easier.

## Verification

Narrowest relevant checks first, broader when the change touches shared behavior:

1. Typecheck the edited package.
2. Run focused tests for changed behavior.
3. Lint/format only through the repo's existing commands.
4. For shared/public behavior, check the changed behavior and directly affected consumers. Never expand to a package-wide or workspace-wide test suite without an explicit human request.

Every "done" claim must trace to a command actually run this session; if a check fails, report the failure with its output — never report done with errors outstanding.

## Delivery

Report: what changed and why; the compatibility decision if the task touched public API, data formats, env/config names, or migration behavior; the verification commands actually run and their results; any remaining conflict or cleanup item intentionally not changed.

© sno-ai · Apache-2.0 · sno-ai/sno-station-skills

Похожие скиллы

Все скиллы по теме «Языки программирования» →
typescript-refactor pproenca Скилл typescript-refactor для Claude Code проверяет TypeScript и React-код на типобезопасность, убирает as и переводит на возможности TS 5.x–6.0. Включается при рефакторинге, типизации хуков и миграции. CX Codex +1 808установок coder ruvnet Субагент coder пишет и рефакторит код, проектирует API и обрабатывает ошибки. Подключайте его, когда нужно реализовать задачу с тестами и последующей проверкой. CX Codex ★ 850звёзд репо backend-security-coder rmyndharis Скилл backend-security-coder для Claude Code помогает писать защищённый код бэкенда и проводить ревью безопасности. Включается для реализации проверок ввода, аутентификации и защиты API. CX Codex +1 142установок 03-build-config codeaashu Промпт 03-build-config для Claude Code задаёт план сборки CLI-проекта через esbuild: от установки зависимости до проверки dist/cli.mjs. Собирает TypeScript и TSX для запуска в Bun или Node.js 20+. GP ChatGPT ★ 3 444звёзд репо ns-coder nextstage-brasil Скилл ns-coder реализует небольшие изменения в коде: исправления, рефакторинг, скрипты и миграции. Он пригодится для разовой задачи вне многоэтапной разработки по SDD. CX Codex +1 151установок bun-jest-migration secondsky Скилл bun-jest-migration для Claude Code помогает перенести тесты с Jest на Bun test runner. Он подключается к задачам с моками, импортами и настройкой конфигурации. CX Codex +1 405установок

Из того же набора40

Весь набор →
cross-vendor-security-audit Скилл cross-vendor-security-audit для Claude Code разбирает вопросы безопасности и проверяет код на уязвимости. Полный аудит запускается по явному запросу на аудит, пентест или отчёт. CX Codex +1 ★ 869звёзд репо catch-report Скилл catch-report для Claude Code сопоставляет результаты взаимной проверки моделей и самопроверки агента. Запускается по запросу о результатах ревью или проверках за неделю. CX Codex +1 ★ 869звёзд репо away-brief Скилл away-brief для Claude Code собирает краткий отчёт о работе, блокерах, вопросах и квотах. Запускается по запросу о том, что произошло за время отсутствия. CX Codex +1 ★ 869звёзд репо agentic-time-estimate Скилл agentic-time-estimate для Claude Code оценивает длительность работы ИИ-агента и оставшееся время по измеренным данным. Для времени на часах он запускает sno report-time, а время работы разработчика не оценивает. CX Codex +1 ★ 869звёзд репо test-writer Скилл test-writer для Claude Code пишет и улучшает тестовый код. Запускается, когда Codex просят создать или изменить тесты. CX Codex +1 ★ 869звёзд репо shellscript-coder Скилл shellscript-coder для Claude Code, который помогает писать и рефакторить shell-скрипты и CLI-инструменты. Включается при задачах с автоматизацией, Git и инфраструктурными помощниками. CX Codex +1 ★ 869звёзд репо rust-coder Скилл rust-coder для Claude Code помогает писать и менять код на Rust с учётом устройства репозитория. Включается для новых функций, рефакторинга и миграций, в том числе при крупных изменениях .rs и Cargo.toml. CX Codex +1 ★ 869звёзд репо python-coder Скилл python-coder для Claude Code помогает писать и перерабатывать production-код на Python, включая FastAPI и Pydantic. Подключается к задачам с асинхронным кодом и миграциями. CX Codex +1 ★ 869звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой