Aller au contenu
Skillpedia
Programmation générale15k · #10975

principle-build-the-lever

Ce qu’il fait

Donne à l'assistant une règle pour automatiser un travail répétable avec un outil qu'un relecteur peut relancer. Elle s'adresse aux ingénieurs confrontés à des modifications volumineuses, répétitives ou difficiles à vérifier.

Quand l’utiliser

  • ✓Quand une modification toucherait de nombreux fichiers de la même façon.
  • ✓Quand vous voulez une analyse ou des contrôles qu'un relecteur peut relancer.
  • ✓Quand un travail est sur le point d'être fait à la main alors qu'un script pourrait le faire de façon fiable.

Lien du skill

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Nous devons renommer cette API dans 200 fichiers. Construis un script que nous pourrons relancer, au lieu de les modifier un par un.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'assistant fait d'abord la première unité à la main pour apprendre le modèle, puis construit un outil relançable, comme un codemod. Il valide l'outil en le relançant sur cette unité et en comparant le résultat à la version faite à la main.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

Questions fréquentes

Quand peut-il éviter de construire un outil ?

Pour un travail trivial, comme quelques modifications évidentes, le faire à la main convient.

Pourquoi un script vaut-il mieux que le travail manuel ?

Il se répète de la même façon à chaque fois, et un relecteur peut le lancer pour vérifier le travail.

Et les agents auxiliaires ?

Si un script peut faire tout le travail en une seule passe, il doit le faire, plutôt que de répartir le travail entre des assistants.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
15k
Position au classement
#10975
Licence
—
Mis à jour
31/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires