/tslateman-skills:ousterhout-software-designfrom tslateman-skills
Apply John Ousterhout's "A Philosophy of Software Design" principles when writing, refactoring, or reviewing code. Use whenever designing module boundaries, class or function interfaces, APIs, or error handling; when refactoring layered or wrapper-heavy code; when reviewing a diff for design quality; or when the user mentions complexity, cognitive load, abstraction, deep modules, or code structure, even if they never name Ousterhout.
Ships in tslateman-skills. 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.
Read when SKILL.md points to them.
The reference the other craft judges cite. maintainability, improve-codebase-architecture, and domain-model each apply these principles at a fixed scope and emit a ranked verdict; this skill is the principles themselves, for writing code or looking up a term. Reach for it while designing, not as a fourth reviewer.
Primary goal: reduce cognitive load for future maintainers. Working code is necessary but insufficient. Complexity is anything that makes a system hard to understand or modify. It shows up three ways: change amplification (one decision requires edits in many places), high cognitive load (callers must know too much), and unknown unknowns (it is unclear what must change). Every rule below attacks one of these.
A module (function, class, package, service, component) has an interface (everything a caller must know) and an implementation. Depth is functionality delivered relative to interface surface required.
# Shallow: lifecycle and ordering leak to every caller
client = MetricsClient()
client.connect()
client.set_serializer("json")
client.send(event)
client.flush()
client.close()
# Deep: same capability, one call; connect/serialize/retry/flush handled inside
send_metric(event)
Design semantics so edge cases are normal cases, not exceptions.
# Bad: absence is treated as exceptional
def unregister(self, device_id):
del self._devices[device_id] # KeyError if already gone
# Good: idempotent; absence is a normal outcome
def unregister(self, device_id):
self._devices.pop(device_id, None)
It is better for the module's one implementer to suffer than for its many callers to suffer.
Each module should own design decisions (data format, storage, protocol, algorithm) that no other module needs to know. Information leakage, the same decision known in multiple modules, is the root cause of change amplification. Temporal decomposition (structuring modules by execution order instead of by knowledge) is the usual way leakage happens.
Use this when reviewing code or a diff. Each item is a concrete smell:
evals/already-deep-leave-it-alone/criteria.json (opens in a new tab)evals/already-deep-leave-it-alone/resources/cron.py (opens in a new tab)evals/already-deep-leave-it-alone/resources/jobs.py (opens in a new tab)evals/already-deep-leave-it-alone/scenario.json (opens in a new tab)evals/already-deep-leave-it-alone/task.md (opens in a new tab)evals/define-errors-out-of-existence/criteria.json (opens in a new tab)evals/define-errors-out-of-existence/resources/device_registry.py (opens in a new tab)evals/define-errors-out-of-existence/resources/handlers.py (opens in a new tab)evals/define-errors-out-of-existence/scenario.json (opens in a new tab)evals/define-errors-out-of-existence/task.md (opens in a new tab)evals/eliminate-pass-through/criteria.json (opens in a new tab)evals/eliminate-pass-through/resources/rooms.py (opens in a new tab)evals/eliminate-pass-through/scenario.json (opens in a new tab)evals/eliminate-pass-through/task.md (opens in a new tab)evals/pull-complexity-downward/criteria.json (opens in a new tab)evals/pull-complexity-downward/resources/checkout.py (opens in a new tab)evals/pull-complexity-downward/resources/metrics_client.py (opens in a new tab)evals/pull-complexity-downward/scenario.json (opens in a new tab)evals/pull-complexity-downward/task.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
61 skills in this plugin
/adrGenerate Architecture Decision Records that capture the reasoning behind technical decisions. Use when the user asks to "create an ADR", "document a decision", "record why we chose X", or discusses architectural trade-offs worth preserving./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automagic-problem-discoveryAudit a workspace for recurring friction, pick the highest-leverage one, and build the automation that removes it. Use when the user asks "what should I automate", "what's wasting my time", "find the friction in my workflow", wants a self-improvement pass over their own tooling, or runs this on a recurring loop.tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skills