No slash command · from ceh-coding-conduct
The write-less-code minimalism standard: the full ladder and what never to simplify away.
Ships in ceh-coding-conduct. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The best code is the code never written. This skill is the positive half of
minimalism — what to reach for first. The agent-coding-contract skill owns the
negative half (no new dependencies, no speculative abstractions, minimal
diffs); apply both, don't restate it here.
Before writing any code, stop at the first rung that holds:
<input type="date"> over a picker lib, CSS over JS, a DB constraint over app code, an HTTP cache header over a cache layer.The ladder is a reflex, not a research project. Two rungs work → take the higher one and move on. The first lazy solution that works is the right one.
Rungs 4 and 6 fail most often because nobody looked. Before writing custom code, spend one search: grep the repo for a helper that already does it, read the dependency manifest for an installed package that does, and check the session's skill list for one that covers the task. Search a package registry only when the user has allowed a new dependency.
// less-code: comment so a shortcut reads as intent, not ignorance. If the shortcut has a known ceiling (global lock, O(n²) scan, naive heuristic), the comment names the ceiling and the upgrade path: # less-code: global lock; per-account locks if throughput matters.Never simplify away: input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility basics, anything explicitly requested. User insists on the full version → build it, no re-arguing.
Non-trivial logic (a branch, a loop, a parser, a money/security path) earns ONE
runnable check — the smallest thing that fails if the logic breaks: an
assert-based self-check or one small test file. No frameworks, no fixtures.
Write it only when tests are in scope; otherwise suggest it in one line.
Trivial one-liners need no test; YAGNI applies to tests too.
Code first. Then at most three short lines: what was skipped, when to add it. If the explanation is longer than the code, delete the explanation — every paragraph defending a simplification is complexity smuggled back as prose.
Pattern: [code] → skipped: [X], add when [Y].
Inspired by ponytail (MIT, DietrichGebert).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cheneeheng/ceh-claude-code-library --plugin ceh-coding-conduct5 skills in this plugin
/agent-coding-contractCore behavioral contract for coding sessions./find-root-causeLoad this skill when something is broken and no command has yet shown why, before any fix: reproduce it, kill hypotheses with evidence, name the cause. Trigger on "debug this", "find and fix these bugs", "why is this failing", an unexplained stack trace, or a second fix that did not hold./refactor-repoAudit a whole codebase or one module for accumulated complexity and shrink it: a read-only inventory, a ranked proposal, then, only after approval, refactor/ branches under a behavior-preservation gate. Not for one branch's diff (use shrink-diff)./shrink-diffLoad this skill when a feature branch works and its diff against main should shrink before review: duplication it added, single-caller wrappers, code it made dead. Trigger on "shrink the diff", "consolidate the branch". Not for whole-codebase cleanup (use refactor-repo).