# Principle build the lever

> Principle build the lever is an open-source agent skill for developer tools. Guides the agent to script or verify non-trivial work instead of doing it by hand. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/principle-build-the-lever
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** principle-build-the-lever
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill tells the agent to treat any non-trivial task, such as edits, migrations, analyses or checks, as a candidate for a reusable tool rather than manual effort. The tool can be a codemod, a script, a generator, a rerunnable check, or a delegate skill that subagents follow. The guidance is to handle the first unit by hand, then build the tool and prove it by rerunning it on that unit, making sure it is safe to run again.

The skill adds specific verification rules. For comparison tools, the agent should seed a known-bad change for each output being compared and confirm the tool flags every mismatch. Missing inputs must produce a refusal or an inconclusive result rather than a match. It also favors deterministic tooling over fan-out, and says the work only counts as done once a script, codemod, generator or delegate skill exists in the diff. The tool should stay small and avoid framework scaffolding.

The skill is plain markdown with no bundled scripts. It is written for Claude Code plugins and sits in the pstack-claude plugin marketplace, and is licensed MIT.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-build-the-lever)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-build-the-lever)

## Features

- **Build reusable tools:** Guides the agent to create a codemod, script, generator or rerunnable check instead of repeating manual edits.
- **Prove tools by rerunning:** Requires running the new tool on the first hand-done unit to confirm it works before relying on it.
- **Comparison tool controls:** Covers seeding known-bad changes to confirm a comparison tool reports each mismatch and never false matches.
- **Deterministic over fan-out:** Prefers scripted execution and, when delegating, a fixed recipe and verification contract that subagents cannot edit.
- **Keep tools minimal:** Advises the smallest script that does or proves the job rather than a framework.

## Good for

- Write a codemod to rename an API across a large codebase
- Build a script that checks a migration produced the expected output
- Create a generator for repetitive boilerplate files
- Set up a rerunnable check that compares two data outputs
- Split a bulk analysis across subagents using a fixed recipe

## Install

### Claude Code

This skill ships in the `pstack` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

Or copy only this skill to `~/.claude/skills/principle-build-the-lever`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/principle-build-the-lever &&
cp -R "$tmp/plugins/pstack/skills/principle-build-the-lever" ~/.claude/skills/principle-build-the-lever &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/principle-build-the-lever` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/principle-build-the-lever` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/principle-build-the-lever &&
cp -R "$tmp/plugins/pstack/skills/principle-build-the-lever" ~/.agents/skills/principle-build-the-lever &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/principle-build-the-lever` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/principle-build-the-lever` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/principle-build-the-lever &&
cp -R "$tmp/plugins/pstack/skills/principle-build-the-lever" ~/.cursor/skills/principle-build-the-lever &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/principle-build-the-lever` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-build-the-lever
```

Or copy the folder to `~/.gemini/skills/principle-build-the-lever` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/principle-build-the-lever`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/principle-build-the-lever &&
cp -R "$tmp/plugins/pstack/skills/principle-build-the-lever" ~/.copilot/skills/principle-build-the-lever &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/principle-build-the-lever` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git
```

Then copy `pstack-claude/plugins/pstack/skills/principle-build-the-lever` into your agent's skills folder as `principle-build-the-lever`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Principle build the lever apply?

It applies to any non-trivial work such as edits, migrations, analyses or checks. The guidance says to skip tooling only for a couple of obvious edits.

### Does Principle build the lever need any scripts or tools installed?

The skill bundles no scripts. It only instructs the agent to build a tool such as a codemod, script or generator as part of the work.

### What does a comparison tool need to pass?

Each output it claims to compare should be checked with a seeded known-bad change, and the tool must report every mismatch. Missing input must yield an inconclusive result, not a match.

### Is the skill user-invocable?

No. The SKILL.md sets user-invocable to false, so it is loaded by the agent when a task matches rather than called directly.

### How do I install Principle build the lever in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-build-the-lever to use it in all your projects, or to .claude/skills/principle-build-the-lever in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

### Does Principle build the lever run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Principle build the lever?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Principle build the lever?

The closest alternatives to Principle build the lever are Principle sequence verifiable units, Principle prove it works, Principle subtract before you add, Principle laziness protocol and Principle never block on the human.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Principle sequence verifiable units](https://ai-powered.com/skills/principle-sequence-verifiable-units): Principle sequence verifiable units is an open-source agent skill for developer tools.
- [Principle prove it works](https://ai-powered.com/skills/principle-prove-it-works): Principle prove it works is an open-source agent skill for developer tools.
- [Principle subtract before you add](https://ai-powered.com/skills/principle-subtract-before-you-add): Principle subtract before you add is an open-source agent skill for developer tools.
- [Principle laziness protocol](https://ai-powered.com/skills/principle-laziness-protocol): Principle laziness protocol is an open-source agent skill for developer tools.
- [Principle never block on the human](https://ai-powered.com/skills/principle-never-block-on-the-human): Principle never block on the human is an open-source agent skill for developer tools.
- [Dopamine](https://ai-powered.com/skills/dopamine): Dopamine is an open-source agent skill for developer tools.
- [Create formal verification skill](https://ai-powered.com/skills/create-formal-verification-skill): Create formal verification skill is an open-source agent skill for developer tools.
- [Figure it out](https://ai-powered.com/skills/figure-it-out): Figure it out is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/principle-build-the-lever
