type

Define TypeScript types with type aliases and Zod schema inference.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/naegeon/claude-skill-cli --skill type
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: type
Source: https://github.com/naegeon/claude-skill-cli/tree/main/src/templates/skills/_templates/core/type
Command: npx skills add https://github.com/naegeon/claude-skill-cli --skill type

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill establishes clear guidelines for TypeScript type definitions, preventing type inconsistencies and reducing the risk of runtime errors. It ensures your codebase is strictly typed, making it easier to understand, refactor, and maintain.

Core Features & Use Cases

  • Standardized Type Aliases: Promotes type aliases over interface for consistency.
  • Schema Integration: Prioritizes z.infer for types when Zod schemas are present, avoiding redundant definitions.
  • Strictness Enforcement: Minimizes any and unknown usage, pushing for explicit and safe typing.
  • Use Case: When defining component props or API response structures, this skill ensures you use consistent naming conventions, leverage utility types, and integrate seamlessly with Zod schemas, making your frontend and backend types perfectly aligned.

Quick Start

Define a TypeScript type for a UserProfile component's props, including name (string), age (number, optional), and isActive (boolean).