Do Not Repeat Yourself

Find and reuse the nearest correct mechanism before adding another. Use when a change would add reusable code, policy, or workflow meaning.

107 stars 21 forksProductivity & Notes

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Dimon94/skills --skill do-not-repeat-yourself
Manual install
git clone --depth 1 https://github.com/Dimon94/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/do-not-repeat-yourself ~/.claude/skills/do-not-repeat-yourself

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Do Not Repeat Yourself

Run this gate before adding a helper, utility, adapter, validator, parser,
script, schema, Skill, prompt rule, or any other reusable mechanism, and again
before committing. DRY means do not duplicate meaning or wheels; it does not
mean extracting every similar line into a bad abstraction.

## Reuse-first gate

1. Freeze the exact mechanism or staged diff in scope.
2. Search nearby callers and same-directory patterns.
3. Search repository utilities, scripts, Skills, docs, ADRs, and declared
   entrypoints.
4. Prefer the language standard library, native platform, and installed
   dependencies before new code.
5. Add a mechanism only when the earlier wheel is missing, wrong, or more costly
   than a narrow implementation.

For every new mechanism, record the search evidence or reused wheel. If an
existing wheel covers it, delete the duplicate and reuse the owner. If a close
wheel is wrong, state the failed contract rather than quietly forking it.

## Duplication classes

- duplicate meaning: the same business rule, error semantics, prompt rule, or
  state transition exists twice;
- duplicate mechanism: a second implementation of an existing reusable path;
- duplicate wheel: custom code where the standard library, platform, dependency,
  or existing Skill already fits.

Keep boundary duplication when sharing would leak internals across trust
boundaries. Keep independent test fixtures when that improves readability.
Read the full skill on GitHub

Details

Skill name
do-not-repeat-yourself
Repository
Dimon94/skills
Path
skills/do-not-repeat-yourself/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Do Not Repeat Yourself skill do?

Find and reuse the nearest correct mechanism before adding another. Use when a change would add reusable code, policy, or workflow meaning.

How do I install the Do Not Repeat Yourself skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Dimon94/skills --skill do-not-repeat-yourself. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Do Not Repeat Yourself popular?

It lives in Dimon94/skills, which has 107 GitHub stars and 21 forks.

Related skills

Maintain Verification Skill

107

Dimon94/skills

Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or "audit the verify skill".

Git & Code ReviewIn 2 lists21

Create Verification Skill

107

Dimon94/skills

Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, "make a control skill for this repo", or when a project has no scripted way to prove UI/CLI/service behavior.

Software DevelopmentIn 2 lists21

How

107

Dimon94/skills

Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.

Software DevelopmentIn 2 lists21

Execute

43

aws-samples/sample-kiro-cli-multiagent-development

Execute the active plan's task groups in order, delegating to software-engineer/platform-engineer/quality-reviewer/technical-writer subagents. Use when asked to execute, run, or build out the current plan or its tasks.

Productivity & Notes

Skill Agent Task Patterns

115

javiarmesto/ALDC-AL-Development-Collection

Agent SDK task integration patterns for Business Central. Triggers on: Agent Task Builder, Agent Task Message Builder, Public API, AssignTask, ExternalId, agent session detection, BindSubscription, TryFunction agent task, multi-turn agent conversation, agent attachment, task lifecycle management, OnPrem-only methods, AddToTask, SetRequiresReview, SetSkipMessageSanitization, runtime availability.

Productivity & Notes36

Meeting Pyramid Minutes

107

Dimon94/skills

将会议录音转文字梳理为金字塔结构的会议纪要。用于处理会议录音、转写文本、汇报记录,产出决策、问题、行动、关键对话的结构化纪要。触发:会议纪要、梳理会议、录音转文字、金字塔结构、汇报总结。

Productivity & Notes21

Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.