bnadlerjr/dotfiles/developing-typescript
Claude Code and agent skill by bnadlerjr/dotfiles
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Comprehensive TypeScript/React development expertise covering advanced type systems, React component architecture, hooks patterns, state management, GraphQL integration with Apollo, and performance optimization. Use when working with .ts/.tsx files, React components, or when the user mentions TypeScript, React, hooks, Context, Apollo, GraphQL codegen, Vite, or Next.js. Also use for generic types, component patterns, or bundle optimization.
Install
npx vskill@latest install bnadlerjr/dotfiles/developing-typescriptSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Developing TypeScript
Expert guidance for building robust, type-safe TypeScript and React applications.
Quick Start
For immediate help, identify your task type and consult the relevant reference:
| Working On | Reference File | Key Topics | |
|---|---|---|---|
| Generics, conditional types, inference | typescript-core | Type system, utility types, declarations | |
| Components, hooks, state management | react-architecture | Composition, Context, reducers | |
| React 19, Server Components, Actions | react-19-patterns | ref as prop, useActionState, use(), Server Actions | |
| Apollo Client, codegen, type safety | graphql-integration | Queries, mutations, cache | |
| React Testing Library, integration tests | testing-react-with-vitest skill | Delegated — RTL queries, user-event, hooks, MSW | |
| Bundle size, memoization, Core Web Vitals | performance-optimization | Code splitting, profiling |
Cross-Cutting Principles
These principles apply across all TypeScript/React development:
Type Safety First
- Prefer compile-time errors over runtime errors
- Use strict mode and appropriate compiler options
- Leverage type inference where it improves readability
- Create discriminated unions for state management
Component Architecture
- Prefer composition over prop drilling
- Keep components focused on single responsibilities
- Use custom hooks to extract reusable logic
- Push side effects to dedicated hooks or boundaries
Performance Mindset
- Measure before optimizing
- Understand React's rendering model
- Use memoization strategically, not reflexively
- Consider bundle size for every dependency
Examples
Creating a type-safe form component:
Optimizing re-renders:
Setting up GraphQL with type safety:
Writing component tests:
Anti-Patterns to Avoid
Premature Abstraction
- Creating generic components before you have 3 similar cases
- Building complex type utilities for one-off uses
- Over-engineering state management with Context
- Adding dependency injection patterns unnecessarily
Type System Misuse
- Using
anyto silence errors instead of fixing types - Over-constraining types that limit legitimate use cases
- Creating deep type hierarchies that confuse inference
- Ignoring TypeScript's structural typing strengths
Performance Anti-Patterns
- Premature memoization without measurement
- useCallback/useMemo on every function/value
- Splitting code before you have bundle size problems
- Optimizing renders that aren't causing issues
Reference File IDs
For programmatic access (e.g., parallel reviews), use these identifiers:
typescript-core · react-architecture · react-19-patterns · graphql-integration · performance-optimization
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/developing-typescript/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bnadlerjr/dotfiles/developing-typescript)