
Principle build the lever
Guides the agent to script or verify non-trivial work instead of doing it by hand
Principle build the lever is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Principle build the lever
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (1 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeOr copy only this skill to ~/.claude/skills/principle-build-the-lever:
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.
Copy the skill folder to ~/.agents/skills/principle-build-the-lever to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/principle-build-the-lever to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-build-the-leverOr copy the folder to ~/.gemini/skills/principle-build-the-lever yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/principle-build-the-lever:
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.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen 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.
What it does
- 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
Principle build the lever 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.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

Runs parallel candidate attempts at a task, then merges the best parts into one artifact
- Open source
- 5.1K GitHub stars
- Developer tools

Drafts a personal working-style skill from your past agent conversations
- Open source
- 5.1K GitHub stars
- Developer tools

