principle-build-the-lever
Qué hace
Ofrece al asistente una regla para automatizar trabajo repetible con una herramienta que un revisor pueda volver a ejecutar. Está pensada para ingenieros que se enfrentan a cambios grandes, repetitivos o difíciles de verificar.
Cuándo usarla
- ✓Cuando un cambio tocaría muchos archivos de la misma forma.
- ✓Cuando quieres un análisis o unas comprobaciones que un revisor pueda repetir.
- ✓Cuando un trabajo está a punto de hacerse a mano y un script podría hacerlo de forma fiable.
Link de la skill
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Necesitamos renombrar esta API en 200 archivos. Crea un script que podamos volver a ejecutar, en lugar de editarlos uno por uno.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El asistente hace la primera unidad a mano para aprender el patrón, después crea una herramienta repetible, como un codemod. Demuestra la herramienta volviéndola a ejecutar sobre esa unidad y comparando el resultado con la versión hecha a mano.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Build the Lever
When the work isn't trivial, build the tool that does it instead of doing it by hand.
A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.
- Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
- Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
- A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
- When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
- Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
- Commit the lever when the work outlives the session.
The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the Laziness Protocol, build the smallest script that does or proves the job, never a framework.
Distinct from Encode Lessons in Structure, which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see Prove It Works.
Preguntas frecuentes
¿Cuándo puede omitir crear una herramienta?
Para trabajo trivial, como un par de ediciones obvias, hacerlo a mano está bien.
¿Por qué un script es mejor que el trabajo manual?
Se repite de la misma manera cada vez, y un revisor puede ejecutarlo para verificar el trabajo.
¿Y los agentes ayudantes?
Si un script puede hacer todo el trabajo en una sola pasada, debe hacerlo, en lugar de repartir el trabajo entre ayudantes.
Detalles
Descripción original del autor
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.
repo: cursor/plugins
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #10975
- Licencia
- —
- Actualizada
- 31/10/2026
Comentarios
- …
Más skills de este repositorio
advisor
15 milPermite que tu agente consulte a un segundo modelo más potente en puntos clave, como antes de una decisión importante o si se atasca con un error, si lo activas.
check-agent-compatibility
15 milRevisa si los agentes de IA pueden arrancar, verificar y documentar un repositorio, y devuelve una puntuación de compatibilidad con los problemas principales.
cli-for-agents
15 milEnseña a tu agente a diseñar o revisar herramientas de línea de comandos para que los agentes de IA las ejecuten sin preguntas, con textos de ayuda claros y ejemplos.
continual-learning
15 milMantiene tus notas de AGENTS.md al día entregando la revisión de chats anteriores a un actualizador de memoria dedicado.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.