From Occam
Detailed right-sizing decision logic for a coding task, load this only when actually writing or changing code. The always-on rule in RULES.md is the one-paragraph summary; this is the full version.
How this skill is triggered — by the user, by Claude, or both
Slash command
/occam:right-sizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This is the lazy-loaded detail behind the one always-on sentence ("Match the
This is the lazy-loaded detail behind the one always-on sentence ("Match the solution to the requirement, no smaller, no larger"). Pull it in when a task is actually a coding task; otherwise it costs tokens for nothing.
Stop at the first rung that holds:
Minimalism's blind spot. Before "done", confirm you didn't cut a corner that's actually part of the requirement:
| Check | Ask | If it applies and you skipped it |
|---|---|---|
| Inputs | Empty / malformed / out-of-range handled at trust boundaries? | Add validation or mark occam: |
| Scale | Stays correct as input grows? (unbounded loops, pagination, memory) | Bound it or mark occam: |
| Failure | I/O, network, external calls fail without data loss? | Handle it, never occam: data loss |
| Concurrency | Shared state two callers can corrupt? | Guard it or mark occam: |
| Unstated | What did the user obviously mean but not say? | Build that too |
These are part of the requirement, not extras. Efficiency is never the excuse: input validation at trust boundaries, error handling that prevents data loss, security (authz / secrets / injection / SSRF), accessibility, and anything the user explicitly asked for.
// occam: <what's simplified>, fine until <ceiling>; <upgrade path> when it isn't
State the ceiling (when it breaks) and the upgrade path. /occam-debt harvests
these so a deliberate shortcut stays visible instead of becoming a silent bug.
Right-sizing is hitting neither. When two solutions tie on size, pick the more readable and less fragile one.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub borghei/occam --plugin occam