·avoid-unnecessary-type-params
</>

avoid-unnecessary-type-params

marius-townhouse/effective-typescript-skills

일반 함수나 유형을 작성할 때 사용합니다. 유형 서명을 검토할 때 사용합니다. 유형 매개변수가 한 번만 나타날 때 사용합니다. "유연성"을 위해 제네릭을 추가하고 싶을 때 사용하세요.

2설치·0트렌드·@marius-townhouse

설치

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-unnecessary-type-params

SKILL.md

The "Golden Rule of Generics" states that type parameters should appear twice or more in a function signature. If a type parameter only appears once, it's not relating anything and is likely unnecessary. Unnecessary type parameters create a false sense of type safety and can make inference less successful.

This skill helps you identify and eliminate superfluous type parameters, resulting in cleaner, more maintainable code that TypeScript can infer more effectively.

Type parameters must appear twice or more to establish a relationship. If a type parameter only appears once, strongly reconsider if you need it.

일반 함수나 유형을 작성할 때 사용합니다. 유형 서명을 검토할 때 사용합니다. 유형 매개변수가 한 번만 나타날 때 사용합니다. "유연성"을 위해 제네릭을 추가하고 싶을 때 사용하세요. 출처: marius-townhouse/effective-typescript-skills.

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-unnecessary-type-params
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-05
업데이트
2026-02-18

빠른 답변

avoid-unnecessary-type-params이란?

일반 함수나 유형을 작성할 때 사용합니다. 유형 서명을 검토할 때 사용합니다. 유형 매개변수가 한 번만 나타날 때 사용합니다. "유연성"을 위해 제네릭을 추가하고 싶을 때 사용하세요. 출처: marius-townhouse/effective-typescript-skills.

avoid-unnecessary-type-params 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-unnecessary-type-params 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/marius-townhouse/effective-typescript-skills