less-code
Skill0 starsChanged 13 days agoMITView on GitHub
Solve a coding task with the least code that fully meets the request, or audit a diff or module for code that can be deleted, without cutting input validation, error handling, security checks or tests. Use when the user asks for a minimal, lean or simple solution, says a change is over-engineered or bloated, asks whether code can be simpler or what can be deleted, or wants a diff trimmed before merge. Skip for code golf or fewest-characters requests, performance optimization, formatting or naming clean-up, and refactors whose goal is structure rather than size.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- eabz/tiriththeir own version, first seen Oct 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- eabz/tirith★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- architecture-sketchSkill
- brief-modeSkill
- design-directionSkill
- diagram-kitSkill
- doc-builderSkill
- idea-to-specSkill
- landing-copySkill
- marketing-basicsSkill
- natural-writingSkill
- next-step-firstSkill
- plan-firstSkill
- poke-holesSkill
- recent-briefSkill
- role-reviewsSkill
- self-reviewSkill
- ship-checklistSkill
- site-styleSkill
- ui-critiqueSkill
- verify-before-doneSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Add a dependency only for security-sensitive work (cryptography, token parsing, HTML sanitizing) or when rung 5 would exceed about 50 lines.
- Distinctive: line 45
Read all of it and the code that calls it.
- Distinctive: line 46
Put each candidate for deletion in one class:
- Distinctive: line 63
Never cut these to save lines, in either mode: validation of external input.
- Very specific: line 94
No drive-by deletions: When writing code, do not remove unrelated code you happen to see.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Less code
Agents over-build: a dependency where the platform has the feature, an abstraction with one caller, options nobody asked for. But "less" chased as a number is gamed by packing lines and deleting checks. The aim is fewer things that exist, not fewer characters.
Process: writing code
- List the behaviors asked for, one line each. Nothing off this list gets built.
- Read the code the change touches and search the codebase for a function, component or helper that already does part of the job.
- Go down this ladder and stop at the first rung that works:
- Nothing: existing behavior or configuration already covers it.
- Something already in the codebase.
- The standard library or a platform feature (native HTML element, database constraint, framework built-in).
- A dependency that is already installed.
- New code, in an existing file, sized to the list from step 1. Add a dependency only for security-sensitive work (cryptography, token parsing, HTML sanitizing) or when rung 5 would exceed about 50 lines.
- Write it without: an interface, base class, factory or wrapper that has one implementation or one caller; parameters, flags or config options nobody asked for; handling for inputs the callers cannot produce; comments that restate the code.
- End the reply with
Left out:, one line per thing you chose not to build that a reader might expect, or "nothing".
Process: auditing a diff or module
- Read all of it and the code that calls it.
- Put each candidate for deletion in one class:
- Unused: nothing references it.
- Duplicate: an equivalent already exists; give its
file:line. - Replaceable: the standard library, platform or an installed dependency does it; name the replacement.
- Speculative: an option, layer or hook with a single use.
- Noise: comments restating code, dead branches, leftover debugging.
- Search before calling anything unused: by name across the whole
repository, including string lookups (
getattr, registries, config, templates, routes), exports and tests. Say what you searched. - For a Replaceable or Duplicate item, check that the replacement gives the same result for the existing call sites, and state any difference.
- Report in the format below. Change nothing unless asked. Asked to apply: one row at a time, running the tests after each, or saying you cannot.
Protected
Never cut these to save lines, in either mode: validation of external input; authentication and authorization checks; escaping and parameter binding; error handling around I/O, network and parsing; failure logging; tests; accessibility attributes; migrations and rollbacks. If one looks redundant, put it under Ask first with the reason; do not delete it.
Audit output
## Deletion audit: <target>
Read: <files>. Reference search: <how>
| # | Location | What | Class | Evidence | Lines |
|---|---|---|---|---|---|
| 1 | `sync/backoff.py:1-40` | `Backoff` class | Unused | name appears only in its own file | -40 |
| 2 | `sync/http.py:12-30` | hand-written URL join | Replaceable: `urllib.parse.urljoin` | same result at the 3 call sites | -17 |
Total: -57 of 380 lines
**Ask first:** <public API or protected items that look removable, and why>
**Keep:** <at most 3 things that look like bloat but are needed, and why>"Lines" is the net change after the replacement.
Rules
- A cut counts only when a thing stops existing: a function, branch, parameter, file or dependency. Joining statements, shortening names, dense one-liners, removing comments that explain why, and moving code to another file are not savings; do not do them.
- Behavior on the step-1 list never changes, including error messages and status codes that callers or tests rely on.
- No drive-by deletions. When writing code, do not remove unrelated
code you happen to see; mention it in one line under
Left out:. - Exported or public names go under Ask first, never straight into the table: you cannot see outside callers.
- The user's instruction to keep or add something wins over this skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

