/agent-skills:dryfrom agent-skills
Don't Repeat Yourself — a single, authoritative representation for each piece of knowledge in the system. Use when writing or reviewing code that duplicates logic, or when deciding whether to extract a shared abstraction from similar-looking code.
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.
Every piece of knowledge — a business rule, a validation, a schema, a fact — has one authoritative representation in the system. DRY is about the knowledge, not the text that happens to express it.
Two blocks of code that read identically today are not automatically a DRY violation. Two blocks that read differently but encode the same fact are. Apply the reasons-to-change test: if changing one would force you to change the other to keep the system correct, they're duplicated knowledge — merge them. If a change to one plausibly wouldn't touch the other, they're only coincidentally similar — leave them alone, even if today's text matches byte for byte.
Forcing two coincidentally-similar blocks into one abstraction produces a wrong abstraction: the merged code doesn't quite fit both callers, so it grows a flag or a branch to cope — and ends up worse than the duplication it replaced. Prefer duplication over a wrong abstraction; the fastest way out of one is usually back to two.
The first occurrence: write it. The second: duplicate it, even though it itches — two data points can't yet tell you whether the similarity is real. The third: you likely have enough shape to extract correctly. Extract earlier only when you can name, in one sentence, the exact piece of knowledge every instance represents.
Left unprompted, it's easy to both under- and over-deduplicate, often in the same piece of work:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joachimwedin/agent-skills --plugin agent-skills32 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.