Skip to content
Skillpedia
General coding15k · #10975

principle-build-the-lever

What it does

Gives the assistant a rule to automate repeatable work with a tool a reviewer can rerun. It is for engineers facing large, repetitive or hard-to-verify changes.

When to use it

  • ✓When a change would touch many files in the same way.
  • ✓When you want analysis or checks that a reviewer can rerun.
  • ✓When work is about to be done by hand that a script could do reliably.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“We need to rename this API across 200 files. Build a script we can rerun, instead of editing them one by one.”

5 new skills a week. 1 minute to read.

How it works

The assistant does the first unit by hand to learn the pattern, then builds a rerunnable tool such as a codemod. It proves the tool by rerunning it on that unit and comparing the result with the hand-done version.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

When can it skip building a tool?

For trivial work, such as a couple of obvious edits, doing it by hand is fine.

Why is a script better than manual work?

It repeats the same way each time, and a reviewer can run it to verify the work.

What about helper agents?

If a script can do the whole job in one pass, it should, rather than fanning the work out to helpers.

Details

Original description by the author

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

Popularity

GitHub stars
15k
Ranking position
#10975
License
—
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills