# Principle laziness protocol

> Principle laziness protocol is an open-source agent skill for developer tools. Keeps the agent biased toward deletion and the smallest change during refactors. 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-laziness-protocol
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** principle-laziness-protocol
- **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 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.

## 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-laziness-protocol)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-laziness-protocol)

## Features

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

## 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-laziness-protocol`:

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

### Codex

Copy the skill folder to `~/.agents/skills/principle-laziness-protocol` 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-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.

### Cursor

Copy the skill folder to `~/.cursor/skills/principle-laziness-protocol` 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-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.

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

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

### VS Code

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

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

### 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-laziness-protocol` into your agent's skills folder as `principle-laziness-protocol`. Agents that support SKILL.md read one folder per skill.

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

## Alternatives

- [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.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier 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.
- [Principle minimize reader load](https://ai-powered.com/skills/principle-minimize-reader-load): Principle minimize reader load is an open-source agent skill for developer tools.
- [Principle build the lever](https://ai-powered.com/skills/principle-build-the-lever): Principle build the lever is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.
- [Principle redesign from first principles](https://ai-powered.com/skills/principle-redesign-from-first-principles): Principle redesign from first principles is an open-source agent skill for developer tools.
- [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.

---
Source: https://ai-powered.com/skills/principle-laziness-protocol
