b2b-web-type-conventions

Enforce TypeScript interface versus type usage and naming conventions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/herren-official/product-agents --skill b2b-web-type-conventions
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: b2b-web-type-conventions
Source: https://github.com/herren-official/product-agents/tree/main/skills/b2b-web/type-conventions
Command: npx skills add https://github.com/herren-official/product-agents --skill b2b-web-type-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript에서 interface와 type의 사용 기준을 명확히 정의하고 팀 간 일관성을 확보합니다.

Core Features & Use Cases

  • 인터페이스와 타입 사용 규칙을 구분해 일관된 네임링과 구조를 보장합니다.
  • 코드 리뷰에서 타입 규칙 위반을 빠르게 식별하고 수정 방향을 제시합니다.
  • Use Case: API 응답 모델을 정의할 때 interface를 데이터 형태에 맞춰 사용하고, 단순 타입은 합집합/유니온 등으로 구성합니다.

Quick Start

interface와 type 규칙을 따라 TypeScript 타입 선언을 작성해 코드베이스 전반의 일관성을 확보하세요.

Frequently Asked Questions about b2b-web-type-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use interface vs type in TypeScript?▼

Use TypeScript interfaces for defining API response models and object data shapes, while using type aliases for unions, intersections, and simple primitive compositions. This distinction ensures consistent type naming and structural conventions across your codebase.

How do I enforce consistent TypeScript type usage across my frontend team?▼

Enforce consistent TypeScript type usage by applying standardized interface and type rules during code creation and review. This guides frontend teams to follow unified naming conventions and structural definitions, reducing type errors across the codebase.

What is the best way to define API response models in React TypeScript?▼

The best way to define API response models in React TypeScript is using interfaces to map directly to the data structure. Reserve type aliases for simple unions or intersections to maintain clear structural conventions.

How do I identify type naming convention violations during code review?▼

Identify type naming violations during code review by checking interface versus type usage against established rules. This skill highlights inconsistencies in type definitions and provides actionable modification directions to fix structural errors.

Can I use this interface and type convention guide for non-React TypeScript projects?▼

This interface and type convention guide primarily targets frontend teams using React and TypeScript. While the core interface versus type usage rules apply to any TypeScript project, the implementation focus is tailored for React environments.

Why does my TypeScript codebase have inconsistent type errors?▼

Inconsistent TypeScript type errors often occur when teams lack unified rules for interface versus type usage. Implementing standardized naming conventions and structural checks during type definition creation resolves these inconsistencies.