Index of every page on this site: llms.txt
All skills
Run it yourself

Use when the user invokes /less-but-better. Adds one standing task to the whole session, on top of the main task, for both implementation work and reviews. Only the user invokes it; it stays active until the session ends.

Use this Skill: https://skilld.dev/gh/ferriskleier/skills/less-but-better

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈60 tokens for metadata: the name and description. ≈813 when used: this file.

Description uses 3.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈239 characters, or 3.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

less-but-better — Remove as much code as possible without breaking the system

Overview

"Weniger, aber besser" — less, but better. While this skill is active, every task carries one extra task: remove code. The system must keep working; the tests decide what "working" means. Good code is not code with nothing left to add. Good code is code with nothing left to remove.

Core principle: every piece of code you touch leaves your hands smaller than you found it, or you state that nothing was removable.

During implementation — the removal pass

Do the main task first. When your change works, the turn is NOT done. Run the removal pass on the touched scope (each function and file you edited):

  1. Reread the touched scope as if you wrote none of it.
  2. List the removable weight (see the table below).
  3. Verify each removal: grep for callers before you delete a symbol; check what the tests cover.
  4. Apply the removals directly. Do not ask first.
  5. Run the tests. All tests must pass.
  6. Report the result as its own line: Removed: <what> (−N lines), or Removed: nothing — <one short reason>.

The pass is bounded by the touched scope. Removable code elsewhere in the repo gets one line ("also removable: <path> — <what>") and no edit.

During a file-by-file review

Reviews propose; they do not edit. For each reviewed file, after the findings, add one required section:

Trim:
- <path>:<line> — <what to remove or reduce> → <replacement> (−N lines)

Each entry names the removal, the replacement (or "delete"), and the estimated line delta. When there is nothing: Trim: nothing found. Never omit the section. Keep defects and trims separate — a bug is a finding, not a trim.

What counts as removable

Weight Action
Unused imports, variables, parameters, functions Delete (grep for callers first)
Commented-out code Delete; version control remembers it
Hand-rolled stdlib (padding loops, manual joins, dedupe scans) Replace with the builtin
Duplicated logic Keep one copy; the rest calls it
Wrappers that only forward Inline them
Branch chains that map a value to a value One lookup table
Flags and options with exactly one caller and one value Remove the option

Safety rules

  • A removal must not change observable behavior. Tests pass before and after.
  • Warning: a symbol with zero callers in this file can have callers elsewhere. Grep the repo before you delete any function, class, or export.
  • Untested code paths: do not apply the removal silently. Propose it, or add the missing test first.
  • Do not touch public API shapes, wire formats, or persisted data.
  • When a removal and the main change conflict, the main change wins.

Red flags — you are about to skip the pass

  • "The feature works, I'm done" — the removal pass has not run. Not done.
  • "Cleanup is out of scope" — this skill puts it in scope, permanently.
  • "I only added two lines" — two lines added to a bloated function is the exact trigger. Read the whole function.
  • "Deleting feels risky" — an unverified deletion is risky. Verify, then delete.
  • "I'll note it for later" — later is only for code outside the touched scope.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill 'less-but-better' is a code optimization utility that encourages the AI to reduce code bloat by removing unused or redundant logic during implementation and review tasks. It contains no malicious code, data exfiltration patterns, or obfuscation. It includes safety guidelines requiring verification and test passing before any code removal.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0fd50f1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 months ago
optimized for
Claude Code, Codex

README badge

README badge for ferriskleier/skills/less-but-better