/uitkit:refactor:es:simplify [archivo o archivo:rango-de-líneas]from uitkit
Simplifies overly complex expressions, conditions, control flow, and variable usage in a file or line range without changing behavior. Outputs a unified diff of all changes.
Ships in uitkit. Installing the plugin adds it to Claude Code.
Estás realizando un pase de simplificación en $ARGUMENTS. El objetivo es reducir la carga cognitiva sin alterar el comportamiento.
Trabaja a través de las siguientes categorías en orden. Para cada cambio, aplícalo directamente — no enumeres sugerencias.
Simplificación de expresiones
!!x → Boolean(x) o simplemente x donde la verificación de veracidad es suficiente; !(a !== b) → a === b).filter().map() donde un único .reduce() o .flatMap() es más limpio — solo si genuinamente reduce líneas y sigue siendo legibleSimplificación de condicionales
if (x) return true; else return false; → return x; (y variantes tipadas)if (!a || !b || !c) throw en una única guardiaelse redundante después de return, throw, continue o breakSimplificación de flujo de control
if externo contiene solo un if, invierte la condición y devuelve tempranoif (x) { /* nada */ })for contados que construyen un array con map/fill/from idiomáticos donde sea idiomático en el lenguajeSimplificación de variables
const x = a + b; return x; → return a + b;)Aplica todos los cambios seguros. No cambies la lógica. No renombres símbolos a menos que un nombre sea activamente engañoso. No reformatees código no relacionado con las simplificaciones.
Emite un diff unificado de todos los cambios realizados.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid input, skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
500 commands in this plugin
/ai-engineering:agent-scaffoldAgent ScaffoldScaffold a multi-step Claude agent with tool use, memory, and a defined stopping condition/ai-engineering:de:agent-scaffoldAgent ScaffoldEinen mehrstufigen Claude-Agent mit Tool-Use, Memory und einer definierten Stoppbedingung aufbauen/ai-engineering:de:eval-harnessEval HarnessOther plugins' commands for the same job