{"data":{"slug":"discovered-806279c21144e31e8b694190cc07336c45507efbd8014511","title":"Build the Lever: Create a Tool to Automate Non-Trivial Work","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/discovered-806279c21144e31e8b694190cc07336c45507efbd8014511\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: principle-build-the-lever\ndescription: For non-trivial work, build a tool that does or proves it instead of working by hand.\ndisable-model-invocation: true\n---\n\n# Build the Lever\n\nWhen 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.\n\n- Do the first unit by hand, then build the tool and prove it by rerunning it on that unit. Make it safe to rerun.\n- 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.\n- 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.\n- Build the smallest script that does or proves the job, never a framework.\n","use_cases":["Automating repetitive code changes with a codemod","Creating a script to validate data transformations","Generating boilerplate code with a reusable tool"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jueyi6\/empstack\/blob\/74181e31d2f00313f8683ba157966efcabbe109e\/skills\/principle-build-the-lever\/SKILL.md","source_commit":"74181e31d2f00313f8683ba157966efcabbe109e","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:56:02.000000Z","updated_at":"2026-12-02T09:15:14.000000Z","seo_title":"Build the Lever: Automate Non-Trivial Work with a Tool","seo_description":"Create a deterministic tool to perform or prove non-trivial work instead of doing it by hand. Ensure the tool is safe to rerun and committed when the work outlives the\u4e34\u65f6\u4f1a","seo_keywords":["tool automation","codemod","script generation","deterministic tool","non-trivial work automation"]}}