Skip to content
Back to skills

Typescript Developer

ASecurity

TypeScript best practices for writing clean, maintainable, type-safe code. ALWAYS use when working with TypeScript: (1) Creating or modifying ANY .ts/.tsx files, (2) Defining types, interfaces, schemas, models, or domain entities, (3) Writing functions, classes, or utilities, (4) Setting up validation with Zod schemas, (5) Creating model definitions, type definitions, or entity types (examples: user models, task schemas, domain types), (6) Any TypeScript development task requiring code qualit...

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 26, 2026
developmenttypescriptreactapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add sergeyzwezdin/huba --skill typescript-developer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Typescript Developer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Typescript Developer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sergeyzwezdin-typescript-developer/badge)](https://www.skillsdirectory.com/skills/sergeyzwezdin-typescript-developer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: typescript-developer
description: >
  TypeScript best practices for writing clean, maintainable, type-safe code. ALWAYS use when
  working with TypeScript: (1) Creating or modifying ANY .ts/.tsx files, (2) Defining types,
  interfaces, schemas, models, or domain entities, (3) Writing functions, classes, or utilities,
  (4) Setting up validation with Zod schemas, (5) Creating model definitions, type definitions,
  or entity types (examples: user models, task schemas, domain types), (6) Any TypeScript
  development task requiring code quality guidance. Provides SOLID principles, strong typing
  patterns, naming conventions, error handling, Zod validation best practices, and code
  organization guidance. Auto-triggers for all TypeScript file operations.
---

# TypeScript Developer

Write clean, maintainable, type-safe TypeScript code following SOLID principles.

## Core Principles

- **Readable & maintainable**: Write straightforward, clean code that's easy to understand and modify
- **SOLID principles**: Follow Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
- **Strong typing**: Explicit types for all variables, parameters, and return values. Never use `any`
- **Performance optimization**: Use `Promise.all()` and other standard techniques for large datasets
- **Zod-first validation**: Define schemas first, infer types using `z.infer<typeof schema>`
- **Documentation**: Use JSDoc to document all public classes, functions, and methods
- **Named exports only**: No default exports. Explicit imports improve discoverability
- **Arrow functions**: Use arrow functions with explicit return types for all functions
- **Single responsibility**: Functions <20 LOC, focused purpose, early returns
- **Prefer `undefined`**: Return `undefined` for empty responses instead of `null`

## Naming Conventions

- **Files/directories**: kebab-case (`user-service.ts`, `get-user.ts`)
- **Classes**: PascalCase (`UserService`, `TaskManager`)
- **Types/Interfaces**: PascalCase (`User`, `UserCardProps`)
- **Functions/variables**: camelCase (`getUser`, `userId`)
- **Booleans**: verb prefix (`isLoading`, `hasError`, `canDelete`)
- **Constants**: UPPERCASE for env (`API_URL`), camelCase for objects
- **Hooks**: `use` prefix (`useUser`, `useAuth`)
- **Functions**: start with verb (`get*`, `create*`, `format*`, `validate*`)

## Reference Documentation

Read the relevant reference when working on specific tasks:

- **Types & interfaces**: [types.md](references/types.md) — type-only imports, props types, RO-RO parameter pattern
- **Function patterns**: [functions.md](references/functions.md) — arrow functions, async patterns, React hooks with stable refs
- **Imports & exports**: [imports-exports.md](references/imports-exports.md) — barrel exports, absolute paths, import organization
- **Validation & Zod**: [validation.md](references/validation.md) — schema-first definitions, safe parsing, enum schemas, deprecated methods
- **Error handling**: [error-handling.md](references/error-handling.md) — throw vs `undefined`, type guard filtering, context checks
- **JSDoc**: [jsdoc.md](references/jsdoc.md) — documentation standards, TypeDoc tags, coverage requirements

Files in this skill

  • SKILL.md3.2 KB
  • references/error-handling.md1.9 KB
  • references/functions.md2.7 KB
  • references/imports-exports.md1.6 KB
  • references/jsdoc.md3.5 KB
  • references/types.md2 KB
  • references/validation.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.