·liskov-substitution-principle
</>

liskov-substitution-principle

yanko-belov/code-craft

Úselo al crear subclases o implementar interfaces. Úselo cuando tenga la tentación de anular métodos con excepciones o sin operaciones. Úselo cuando la jerarquía de herencia parezca incorrecta.

16Instalaciones·0Tendencia·@yanko-belov

Instalación

$npx skills add https://github.com/yanko-belov/code-craft --skill liskov-substitution-principle

SKILL.md

Subtypes must be substitutable for their base types without altering program correctness.

If S is a subtype of T, objects of type T can be replaced with objects of type S without breaking the program. Subclasses must honor the contracts of their parent classes.

Providing violating code "with a caveat" is still providing violating code.

Úselo al crear subclases o implementar interfaces. Úselo cuando tenga la tentación de anular métodos con excepciones o sin operaciones. Úselo cuando la jerarquía de herencia parezca incorrecta. Fuente: yanko-belov/code-craft.

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/yanko-belov/code-craft --skill liskov-substitution-principle
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-12
Actualizado
2026-02-18

Respuestas rápidas

¿Qué es liskov-substitution-principle?

Úselo al crear subclases o implementar interfaces. Úselo cuando tenga la tentación de anular métodos con excepciones o sin operaciones. Úselo cuando la jerarquía de herencia parezca incorrecta. Fuente: yanko-belov/code-craft.

¿Cómo instalo liskov-substitution-principle?

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/yanko-belov/code-craft --skill liskov-substitution-principle 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/yanko-belov/code-craft