writing-types

Emz1998's avatarfrom Emz1998

Use this skill when you need to write types and interfaces in `srs/types` for the Next.js app

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 11, 2025

When & Why to Use This Skill

This Claude skill automates the creation of modular TypeScript types and interfaces specifically for Next.js applications. It enhances developer productivity and code maintainability by enforcing best practices, such as strict file size limits and logical separation of concerns within the project's type directory, ensuring a clean and type-safe codebase.

Use Cases

  • Defining structured data models and interfaces for API responses to ensure end-to-end type safety in Next.js projects.
  • Refactoring monolithic type files into smaller, modular units (under 50 lines) to improve code readability and navigation.
  • Standardizing the creation of reusable React component prop interfaces and shared domain types across a development team.
  • Quickly scaffolding complex TypeScript definitions while adhering to specific architectural rules and directory structures.
namewriting-types
descriptionUse this skill when you need to write types and interfaces in `srs/types` for the Next.js app

Instructions

  • Follow the rules below to write types and interfaces in srs/types for the Next.js app:

Rules

  • Make it modular
  • Seperate the types and interfaces into multiple files if possible
  • Maximum of 50 lines of code per file