/software-design-plugin:design-diy-vs-dependency the tool about to be depended on; omit to evaluate the current change's new dependenciesfrom software-design-plugin
Evaluates whether a single-purpose tool can be replaced by a small, auditable DIY reimplementation before adding it as a dependency. Useful when about to install a GUI wrapper, bundled runtime, unaudited binary, or non-cross-platform tool, or when auditing existing dependencies for removal.
Ships in software-design-plugin. 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.
Before reaching for an existing single-purpose tool — especially one with a GUI, a bundled runtime, an unaudited binary, or that only runs on one platform — evaluate whether the underlying operation is simple and well-documented enough to reimplement directly, in code that can be read start to finish.
This is not a mandate to always DIY. Most of the time the existing tool is still the right call. But the evaluation should always happen before defaulting to "just install the tool that does this."
| Use this skill when… | Skip when… |
|---|---|
| A task is about to install a single-purpose tool to perform one operation | The dependency is a general-purpose runtime/library reused across the project |
| The "app" is a GUI wrapping a well-defined mechanical operation | A single well-known CLI installable via mise/uv/brew covers it — don't reimplement curl |
| The tool is non-cross-platform, unmaintained, or an opaque bundled binary | The tool encapsulates hard-to-verify complexity (crypto, hardware timing, safety-critical) |
| Auditing an existing dependency for removal | No authoritative reference exists to verify a reimplementation against |
Run the evaluation whenever the tool about to be depended on is:
A reimplementation is only as good as its verification. Never trust a from-scratch port of a protocol or algorithm on memory alone.
Step 3 is the one most often skipped and the one that pays. In the worked example below it caught a real behavioral divergence before it shipped.
A Switch CFW project depended on CrystalRCM.app — a mounted, unaudited macOS
GUI binary — to perform one operation: inject a fusée-gelée payload over USB
into a console in RCM mode. The exploit's memory layout and USB protocol are
fixed and well-documented (CVE-2018-6242), with byte-identical reference
implementations across multiple independent open-source forks going back to
2018. A textbook DIY candidate.
Replaced with a ~215-line, single-file, uv run-executable script (PEP 723
inline deps: just pyusb). Before trusting it:
Net: a mounted GUI app of unknown provenance replaced by one auditable script
plus pyusb/libusb — both well-known, independently useful libraries, not
another single-purpose black box.
Single-purpose GUI tools accumulate silently. Each is individually "just one dependency," but across a portfolio they add up to a pile of differently-built, non-cross-platform, unaudited binaries with no shared conventions — the opposite of the consistency such a portfolio otherwise optimizes for.
The fix isn't "never use existing tools." It's making the evaluation a habit: before installing the app, ask whether the operation is simple and documented enough to own directly, verify it properly if so, and fall back to the heavy dependency when the evaluation says it's genuinely warranted.
code-quality-plugin:code-dep-audit — auditing dependencies you already have
for vulnerabilities and staleness; this skill governs the prior question of
whether to take the dependency at allagent-patterns-plugin:verify-before-plan — the same "check reality before
committing to an approach" instinct~/.claude/rules/code-quality.md) — DIY only when the win is real;
don't reimplement speculatively, or for a tool that isn't actually being
removed~/.claude/rules/verify-upstream-before-patching.md — go to the
authoritative source rather than working from memory~/.claude/rules/offload-to-deterministic-substrate.md — the diff-test step
is that principle applied to correctness verification itselfWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin software-design-plugin6 skills in this plugin
/design-by-contractDesign with explicit contracts — preconditions, postconditions, invariants, guard clauses. Use when designing a function/class, hardening a boundary, or adding assertions./design-deep-modulesJudge interface depth — deep modules hide complexity behind small interfaces. Use when designing a module/API, reviewing a class boundary, or reducing complexity./design-legacy-seamsGet legacy code under test before changing it — find seams, write characterization tests. Use when changing untested code, breaking dependencies, or taming legacy./design-patternsSelect a design pattern from a symptom — strategy, observer, factory, adapter, decorator. Use when a structure resists change, or choosing between Gang-of-Four patterns./design-pseudocodeDesign a routine by stepwise refinement — pseudocode the intent before coding, then promote it to comments. Use when designing a complex function or non-trivial algorithm.Other plugins' skills for the same job