# Build the Lever: Create a Tool to Automate Non-Trivial Work

Create a tool (such as a script, codemod, or generator) to perform or prove non-trivial work, ensuring it is deterministic and safe to rerun. The tool should be committed when the work outlives the session.

**Canonical URL:** https://skillshunter.net/skills/discovered-806279c21144e31e8b694190cc07336c45507efbd8014511

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-806279c21144e31e8b694190cc07336c45507efbd8014511

**Markdown URL:** https://skillshunter.net/skills/discovered-806279c21144e31e8b694190cc07336c45507efbd8014511.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-806279c21144e31e8b694190cc07336c45507efbd8014511/download

**Category:** Software & Development

**Source URL:** https://github.com/jueyi6/empstack/blob/74181e31d2f00313f8683ba157966efcabbe109e/skills/principle-build-the-lever/SKILL.md

**Source commit:** 74181e31d2f00313f8683ba157966efcabbe109e

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:56:02.000000Z

**Updated at:** 2026-12-02T09:15:14.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before applying this skill, manually complete the first unit of work. Then, build a tool that can rerun the same task safely and deterministically. Ensure the tool is committed when the work is no longer temporary.

### When to use it

- Automating repetitive code changes with a codemod
- Creating a script to validate data transformations
- Generating boilerplate code with a reusable tool

## Skill instructions

---
name: principle-build-the-lever
description: For non-trivial work, build a tool that does or proves it instead of working by hand.
disable-model-invocation: true
---

# Build the Lever

When the work isn't trivial, build the tool that does it (a codemod, script, generator, or rerunnable check) instead of doing it by hand. The bar is triviality, not repetition. Skip the tool only for a couple of obvious edits.

- Do the first unit by hand, then build the tool and prove it by rerunning it on that unit. Make it safe to rerun.
- A deterministic tool beats fan-out. When you do fan out, write the recipe, the verification contract, and the fences as one skill the subagents read and cannot edit.
- Applying this produces a file. No script, codemod, generator, or subagent skill in the diff means you didn't apply it. Commit it when the work outlives the session.
- Build the smallest script that does or proves the job, never a framework.

