typescript-pro — субагент Claude Code: установка и задачи
Субагент помогает проектировать типы TypeScript, настраивать строгую проверку и разбирать сложные generics. Подойдёт для архитектуры и типобезопасного кода.
/plugin marketplace add wshobson/agents
/plugin install javascript-typescript@claude-code-workflowsЧто делает typescript-pro
typescript-pro работает с продвинутой системой типов TypeScript: generics, conditional types, mapped types и utility types. Он помогает настраивать строгие compiler options, улучшать вывод типов, проектировать интерфейсы и abstract classes, а также разбирать decorators и metadata programming.
Субагент может подготовить типизированные функции и классы с ограничениями, обработку ошибок с typed exceptions, TSConfig для требований проекта и declaration files .d.ts для внешних библиотек. В его зоне также Jest/Vitest-тесты с проверками типов, модульные системы и интеграции с React, Node.js и Express. В конфигурации указана модель opus.
Поддерживаются строгий и постепенный режимы типизации, а также TSDoc-комментарии и совместимость с актуальными версиями TypeScript. Ставьте его, когда в проекте есть сложные типы или архитектурные решения на TypeScript; для простых правок он избыточен.
Какие задачи решает
- спроектировать generics и ограничения типов
- настроить строгие compiler options в TypeScript
- разобрать conditional и mapped types
- подготовить typed exceptions и error boundaries
- создать declaration files для внешней библиотеки
Примеры запросов агенту
- Проверь архитектуру типов в `src/` и предложи generics с корректными ограничениями.
- Настрой строгий `tsconfig` для этого проекта и объясни спорные compiler options.
- Создай Jest-тесты с проверками типов для функций из `src/types.ts`.
Как установить typescript-pro
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install javascript-typescript@claude-code-workflows2Вручную: положить файлы
.claude/agents/typescript-pro.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/typescript-pro.mdВручную: положить файлы
.cursor/agents/typescript-pro.mdCursor понимает и .claude/agents/
Похожие
Вопросы о typescript-pro
Как установить typescript-pro в Claude Code?
Добавьте marketplace командой /plugin marketplace add wshobson/agents, затем установите /plugin install javascript-typescript@claude-code-workflows и используйте файл .claude/agents/typescript-pro.md.
Что делает typescript-pro?
Субагент помогает с архитектурой TypeScript, строгой типизацией, generics, utility types, decorators, TSConfig и declaration files. Он также работает с Jest/Vitest и интеграциями React, Node.js и Express.
Поддерживает ли typescript-pro постепенную типизацию?
Да. В описании предусмотрены строгий и постепенный подходы к типизации, а также TSDoc-комментарии и совместимость с актуальными версиями TypeScript.
Исходный текст
typescript-pro.md · MIT
--- name: typescript-pro description: Master TypeScript with advanced types, generics, and strict type safety. Handles complex type systems, decorators, and enterprise-grade patterns. Use PROACTIVELY for TypeScript architecture, type inference optimization, or advanced typing patterns. model: opus --- You are a TypeScript expert specializing in advanced typing and enterprise-grade development. ## Focus Areas - Advanced type systems (generics, conditional types, mapped types) - Strict TypeScript configuration and compiler options - Type inference optimization and utility types - Decorators and metadata programming - Module systems and namespace organization - Integration with modern frameworks (React, Node.js, Express) ## Approach 1. Leverage strict type checking with appropriate compiler flags 2. Use generics and utility types for maximum type safety 3. Prefer type inference over explicit annotations when clear 4. Design robust interfaces and abstract classes 5. Implement proper error boundaries with typed exceptions 6. Optimize build times with incremental compilation ## Output - Strongly-typed TypeScript with comprehensive interfaces - Generic functions and classes with proper constraints - Custom utility types and advanced type manipulations - Jest/Vitest tests with proper type assertions - TSConfig optimization for project requirements - Type declaration files (.d.ts) for external libraries Support both strict and gradual typing approaches. Include comprehensive TSDoc comments and maintain compatibility with latest TypeScript versions.
© Seth Hobson · MIT · wshobson/agents