/tslateman-skills:maintainabilityfrom tslateman-skills
Judge whether code will stay cheap to change, applying Ousterhout's A Philosophy of Software Design, Fowler's Refactoring, and Martin's Clean Code. Use when you ask "will this age well", "is this maintainable", "maintainability review", or when weighing module boundaries and interfaces during program design. Names findings and the future edits they tax; hands cures to refactor and quick passes to simplify. Do NOT use for bug hunts (that is code-review) or for executing a restructure (that is refactor).
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.
Answers one question: how expensive will the next change be? Scope is a diff or a module. Two modes: design (judge a proposed shape before code exists) and review (judge a diff or module). This skill names and ranks problems; it never executes the restructure.
code-review.improve-codebase-architecture.domain-model.ousterhout-software-design.refactor.simplify.Complexity is anything about structure that makes code hard to understand and modify (Ousterhout). It shows as three symptoms; hunt them worst-first:
All three trace to two causes: dependencies (a part cannot be understood alone) and obscurity (important information is not visible where it is needed).
The future-edits test anchors every judgment: name the 2-3 most likely next changes to this area, then count the files and sites each would touch. Those counts are the verdict. A structure is never "bad"; it "taxes the tenant-scoping migration at 11 edit sites".
Invoked before code exists: program design, module boundaries, interface sketches. Judge each proposed module by:
Walk the diff or module hunting the three symptoms. Use Fowler's smells as the detection vocabulary. The maintainability-critical smells: shotgun surgery (change amplification incarnate), divergent change, speculative generality, data clumps, primitive obsession.
Emit one finding per problem:
file:linerefactor with the named smell, tidy for a sub-refactoring cleanup, simplify, or "accept and note"Rank findings by the cost of the taxed edit. If nothing clears the bar, say so plainly; no filler findings.
Where the books disagree, Ousterhout wins:
code-comments rule overrides all three books, including Ousterhout's comment-first stance. Never recommend adding design-rationale comments.no-dead-defensiveness rule is "define errors out of existence" enforced. Never recommend a guard the contract already rules out.AI-written code is more locally coherent than human code, so the surface signals that normally say "scrutinize here" are absent exactly where scrutiny matters. Judge structure, never polish.
try/except, ?? [] defaults, lazy casts. These maximize the chance the code runs, convert bugs into silent defaults, and erode the type system. Flag the contract, not the style: the fix is upstream, redefining the state so the guard has nothing to catch.Manager/Helper/Util classitis. A decomposition into many tiny classes reads as tidy and is often net complexity. Test: does the layer change the abstraction? A layer that only forwards gets inlined.refactor", not "add the fourth copy".What SKILL.md sets; muted values are Claude Code's defaults
tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skillsOther 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.