Skip to content
Skill

Principle laziness protocol

Keeps the agent biased toward deletion and the smallest change during refactors

Principle laziness protocol 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 laziness protocol

This skill nudges the agent away from over-engineering while it edits code. When a task involves refactoring, judging how large a diff has become, or feeling pulled toward new abstractions, layers or threaded signals, the guidance favours removing code and choosing the minimal change that resolves the issue.

The protocol is short and rule-based rather than tool-driven. It asks the agent to keep a decision in one place instead of repeating it across several files, and to pass the outcome along as a simple flag. It also asks for the smallest working edit, treating fewer lines as better than boilerplate that looks polished.

The skill ships as a single instruction file with no scripts and no tool restrictions, so it only shapes how the agent reasons and edits. It is part of a Claude Code plugin in the pstack-claude marketplace.

When your agent uses it

Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion and the smallest change that solves the problem.

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 (586 bytes) 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-claude

Or copy only this skill to ~/.claude/skills/principle-laziness-protocol:

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-laziness-protocol &&
cp -R "$tmp/plugins/pstack/skills/principle-laziness-protocol" ~/.claude/skills/principle-laziness-protocol &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/principle-laziness-protocol inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/principle-laziness-protocol 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-laziness-protocol &&
cp -R "$tmp/plugins/pstack/skills/principle-laziness-protocol" ~/.agents/skills/principle-laziness-protocol &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/principle-laziness-protocol inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/principle-laziness-protocol 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-laziness-protocol &&
cp -R "$tmp/plugins/pstack/skills/principle-laziness-protocol" ~/.cursor/skills/principle-laziness-protocol &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/principle-laziness-protocol inside it instead.

Cursor docs on skills

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-laziness-protocol

Or copy the folder to ~/.gemini/skills/principle-laziness-protocol yourself.

Gemini CLI docs on skills

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

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-laziness-protocol &&
cp -R "$tmp/plugins/pstack/skills/principle-laziness-protocol" ~/.copilot/skills/principle-laziness-protocol &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/principle-laziness-protocol inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Single source of truth
Guides the agent to keep each decision in one place rather than duplicating it across the codebase.
Minimal diff focus
Encourages the smallest change that solves the problem, with fewer lines preferred over polished boilerplate.
Deletion-first refactoring
Biases refactoring work toward removing code instead of adding new layers or abstractions.
Simple flag passing
Suggests passing a resolved decision along as a plain flag instead of threading signals through many layers.

Good for

  • Refactor this module without adding new abstractions
  • Review whether my diff is larger than it needs to be
  • Simplify this function by removing unnecessary layers
  • Fix this bug with the smallest possible change

Principle laziness protocol FAQ

Does Principle laziness protocol need any tools or scripts?

No scripts are included and no allowed tools are set. It is a single instruction file.

When does the skill apply?

It applies when refactoring, evaluating diff size, or when the agent is tempted to add abstractions, layers or signal threading.

Is Principle laziness protocol user-invocable?

No. The skill is set to user-invocable false, so the agent loads it when the task matches.

How do I install Principle laziness protocol in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-laziness-protocol to use it in all your projects, or to .claude/skills/principle-laziness-protocol 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 laziness protocol 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 laziness protocol?

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 laziness protocol?

The closest alternatives to Principle laziness protocol are Principle subtract before you add, Code simplifier, Principle never block on the human, Principle minimize reader load and Principle build the lever.

Where this comes from

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

More from michael-denyer/pstack-claude

  1. Makes the agent read pstack's poteto-mode skill first and follow its routing

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  2. Has the agent restate your goals and the problem you're solving in its own words

    • Open source
    • 5.1K GitHub stars
    • Productivity
  3. Sketches types, signatures and module layout before the agent writes code

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

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

    • Open source
    • 5.1K GitHub stars
    • Developer tools