Listing Approved
Approved on: December 2, 2026
Principle Laziness Protocol
Apply the Principle Laziness Protocol to implement the smallest change that fully accomplishes the task, avoiding unnecessary complexity.
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.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
---
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.
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.