# Principle Laziness Protocol

Apply the Principle Laziness Protocol to implement the smallest change that fully accomplishes the task, avoiding unnecessary complexity.

**Canonical URL:** https://skillshunter.net/skills/discovered-ddef6eef4935db377cc30e8113a47c12ba1cec4e9240b9bf

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-ddef6eef4935db377cc30e8113a47c12ba1cec4e9240b9bf

**Markdown URL:** https://skillshunter.net/skills/discovered-ddef6eef4935db377cc30e8113a47c12ba1cec4e9240b9bf.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-ddef6eef4935db377cc30e8113a47c12ba1cec4e9240b9bf/download

**Category:** Software & Development

**Source URL:** https://github.com/jueyi6/empstack/blob/74181e31d2f00313f8683ba157966efcabbe109e/skills/principle-laziness-protocol/SKILL.md

**Source commit:** 74181e31d2f00313f8683ba157966efcabbe109e

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:56:15.000000Z

**Updated at:** 2026-12-02T09:15:14.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before writing new code, check if an existing helper, standard library feature, or installed dependency can fulfill the requirement. If not, write the least code that works, ensuring validation, error handling, and security are not omitted.

### When to use it

- Refactoring a feature to use an existing helper function
- Replacing custom logic with a standard library function
- Avoiding the addition of new dependencies for simple tasks

## Skill instructions

---
name: principle-laziness-protocol
description: When tempted to add layers, make the smallest change instead.
disable-model-invocation: true
---

# Laziness Protocol

Be lazy about the solution, never about finishing it.

Before you write new code, go down this list and stop at the first rung that fully does the job.

1. **Skip it.** Drop the option, flag, or generality nobody asked for, and name what you dropped in one line of the reply. A loose request gets the smallest version that does its core job.
2. **Reuse it.** Take the helper, component, or pattern this codebase already has, and call it the way its neighbors do.
3. **Take it from the platform.** Use the standard library or a built-in feature, unless the project already wraps it.
4. **Take it from an installed dependency.** A few lines never justify adding one.
5. **Write one plain line.** It counts only if a reader gets it at a glance.
6. **Write the least code that works.**

- **Reach every place the change breaks.** Find its callers, tests, fixtures, and config before you edit, and update them all. A small diff that leaves a caller broken is unfinished.
- **Minimize the diff.** Make the smallest change that solves the problem. Fewer lines beat "elegant" boilerplate.
- **Consolidate decisions.** Do not repeat the same choice in several places. Put it behind one source of truth and pass the result as a simple flag.
- **Keep the codebase's shape.** Add no layer, wrapper, or type conversion it does not already use. Deleting beats adding.
- **Break ties on correctness.** Between two changes of the same size, take the one that handles the edge cases.

Never cut these to save lines: validation where untrusted input enters, error handling that prevents data loss, security checks, accessibility, and anything the user asked for.

The list sizes the option you build. While the design is still open, the **exhaust-the-design-space** principle skill decides how many options to try.

