Skip to main content

simplify

Reduce a change to the minimum that solves the problem. Use when code is over-engineered or a diff is bloated.

Datos de origen

Repositorio
Archive228/loopkit
Última actividad en el origen
29 de junio de 2026 a las 21:52
Idioma detectado de SKILL.md
inglés
Estrellas
757
Forks
124

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
simplify
description
Reduce a change to the minimum that solves the problem. Use when code is over-engineered or a diff is bloated.
when_to_use
over-abstraction, a 200-line diff for a small ask, premature generality
# Simplify Over-engineering is the default failure mode. Cut it: - **Premature abstraction** — a class/strategy/factory for one caller. Inline it. Abstract on the THIRD use, not the first. - **Speculative config** — a parameter/flag/env var for something that never changes. Hardcode it until there's a real reason. - **Dead flexibility** — an interface with one implementation, a generic with one type. Delete the indirection. - **Defensive noise** — null checks on values that can't be null, try/except for errors that can't happen. Handle only real failure modes. Test: can you justify every changed line by a direct connection to what was asked? If a line is there "while I was in there", revert it.
Ver en GitHub