/agent-skills:object-oriented-decompositionfrom agent-skills
Object-oriented decomposition — splitting a system around the key abstractions in the problem domain (things with state, identity, and behavior) rather than around the steps of a process. Use when deciding whether new logic becomes a class or a plain function, when a module is a loose collection of functions that all close over or re-pass the same implicit state, or when naming a new file or class.
Ships in agent-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.
None: SKILL.md is the whole skill.
A system can be split two ways: around the steps a process goes through (algorithmic decomposition — a module per step, wired by call order), or around the key abstractions in the problem domain (object-oriented decomposition — things with identity, state, and behavior, with the steps falling out of calling their methods). Messy "function soup" code is rarely a deliberate choice to decompose by process step — it's what accumulates when nobody picks between the two on purpose, so one more loose function is always the easiest next move.
Default to a class — even a one-method class standing for a single responsibility — for any new piece of logic. A floating function is the exception, and only earns that exception when all three hold:
Even when a function clears all three, prefer a method on a class that already owns the concept it operates on over a new free-standing function — the exception is for logic that belongs to no one, not logic that's merely small.
A class earns its keep by hiding the design decision most likely to change behind its own interface, so that when that decision changes, it touches one file, not several. A function that only shares a parameter with its neighbors because nothing owns it should become a class, not stay a loose module. A value with its own validation, comparison, or formatting rules — money, an email address — is class-worthy with nothing mutable to hide; don't flatten it into a plain type with free functions just because nothing changes after construction.
ShoppingCart.ts exports ShoppingCart). A file with no single dominant export — pure types, stateless utilities — stays lowercase/kebab.client.ts, handler.ts).What SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/blackbox-test-casesGenerate exhaustive, non-negotiably rigorous black-box test case descriptions (Given/When/Then, not code) for a public API's external contract — never its implementation. Use for zero-tolerance test coverage, an extremely strict/exhaustive black-box test case sweep, or whenever "thorough" test-case generation isn't thorough enough. Produces an API handoff file, one case file per sub-agent — each is its own source of truth — and a master index file pointing at all of them. Every case carries a checkbox so a later implementing agent can track what's been turned into runnable tests. This skill never writes runnable tests itself./brand-palettePick a primary and accent color that fit a given project and fit each other, or — given an explicit primary — pick three accent candidates that each fit the primary and the project, then generate the full Tailwind v4 color-token system (raw OKLCH scales plus the semantic layer, light and dark) for all three candidates as copy-paste CSS and a visual HTML report written into the project. Use when the user wants brand colors chosen for a project, a Tailwind color system generated from a repo, or a secondary/accent color picked to pair with a primary they already have./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.Other plugins' skills for the same job
npx claudepluginhub joachimwedin/agent-skills --plugin agent-skills