·avoid-unnecessary-type-params
</>

avoid-unnecessary-type-params

marius-townhouse/effective-typescript-skills

Úselo al escribir funciones o tipos genéricos. Úselo al revisar firmas tipográficas. Úselo cuando un parámetro de tipo solo aparece una vez. Úselo cuando tenga la tentación de agregar genéricos para mayor "flexibilidad".

2Instalaciones·0Tendencia·@marius-townhouse

Instalación

$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.

Úselo al escribir funciones o tipos genéricos. Úselo al revisar firmas tipográficas. Úselo cuando un parámetro de tipo solo aparece una vez. Úselo cuando tenga la tentación de agregar genéricos para mayor "flexibilidad". Fuente: marius-townhouse/effective-typescript-skills.

Ver original

Datos (listos para citar)

Campos y comandos estables para citas de IA/búsqueda.

Comando de instalación
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-unnecessary-type-params
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-05
Actualizado
2026-02-18

Respuestas rápidas

¿Qué es avoid-unnecessary-type-params?

Úselo al escribir funciones o tipos genéricos. Úselo al revisar firmas tipográficas. Úselo cuando un parámetro de tipo solo aparece una vez. Úselo cuando tenga la tentación de agregar genéricos para mayor "flexibilidad". Fuente: marius-townhouse/effective-typescript-skills.

¿Cómo instalo avoid-unnecessary-type-params?

Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.) Copia y ejecuta este comando: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-unnecessary-type-params Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code o Cursor

¿Dónde está el repositorio de origen?

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