Agent skill

Do Not Repeat Yourself

by Dimon94 in Dimon94/skills

Find and reuse the nearest correct mechanism before adding another.

No licenceAuto-check passedDevelopment

Install Do Not Repeat Yourself

skills CLI
$ npx skills add Dimon94/skills --skill do-not-repeat-yourself -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Dimon94/skills do-not-repeat-yourself --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Dimon94/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/do-not-repeat-yourself .claude/skills/do-not-repeat-yourself && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
do-not-repeat-yourself
GitHub stars
107
Token cost
~551 tokens
SKILL.md length
281 words
Files
2
Skills in repo
9
Repo updated
First seen
Licence
None found

At a glance

Find and reuse the nearest correct mechanism before adding another.

  • Works in 5 steps: Freeze the exact mechanism or staged… → Search nearby callers and same-directory… → Search repository utilities, scripts,… → …
  • A change would add reusable code
  • SKILL.md covers Reuse-first gate and Duplication classes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Do Not Repeat Yourself is an agent skill from Dimon94/skills. Find and reuse the nearest correct mechanism before adding another. Use when a change would add reusable code, policy, or workflow meaning.

Its SKILL.md is about 550 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development. The repository describes itself as: 个人 agent skill 库 — skills/ 为唯一真相源,agent 目录经 symlink 消费.

When your agent uses it

  • A change would add reusable code
  • Workflow meaning

Example prompts

  • “/do-not-repeat-yourself”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  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
  4. Prefer the language standard library, native platform, and installed
  5. Add a mechanism only when the earlier wheel is missing, wrong, or more costly

What it can do on your machine

Read from SKILL.md and the folder at commit 2531bc3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Do Not Repeat Yourself loads about 551 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 281 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~551

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 281 words (~551 tokens).

“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…”

— opening of SKILL.md by Dimon94
name
do-not-repeat-yourself

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in skills/do-not-repeat-yourself of Dimon94/skills.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 2531bc3

Compare with similar skills

Do Not Repeat Yourself next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Do Not Repeat Yourself compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Do Not Repeat Yourself this skillDimon94/skills107—~551Automated safety check: PassNone
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from Dimon94/skills

All 9 skills in this repo
  • Productize a working prototype by adding a bounded set of explicitly requested operational or product services.

    107 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Sync Upstream Skills

    Dimon94/skills

    检查或更新本仓精选的第三方套件 Skill 快照。用于核对上游变化、刷新快照或处理同步漂移;只读检查可直接运行,写入更新必须由用户明确要求。

    107 GitHub stars~278 tokensUpdated yesterday
    Auto-check passed
  • Gh Merge PR

    Dimon94/skills

    审查并在独立授权后合并一个 GitHub PR。用于单 PR 的 current-head SubAgent Review、按证据调用专项 Review、落地与 parity readback;裸分支或缺失 PR 转交 git-push-pr。

    107 GitHub stars~916 tokensUpdated yesterday
    Auto-check passed
  • Git Push PR

    Dimon94/skills

    Push a verified branch and create or update exactly one GitHub pull request.

    107 GitHub stars~464 tokensUpdated yesterday
    Auto-check passed
  • Git Commit

    Dimon94/skills

    Create narrow auditable local commits. An agent skill from Dimon94/skills.

    107 GitHub stars~347 tokensUpdated yesterday
    Auto-check passed
  • Postmortem

    Dimon94/skills

    Recall or record confirmed reusable failure lessons. An agent skill from Dimon94/skills.

    107 GitHub stars~434 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Do Not Repeat Yourself

What does Do Not Repeat Yourself do?

Find and reuse the nearest correct mechanism before adding another. Do Not Repeat Yourself is an agent skill from Dimon94/skills. Find and reuse the nearest correct mechanism before adding another.

When should I use Do Not Repeat Yourself?

Do Not Repeat Yourself fits situations like: A change would add reusable code; workflow meaning.

How do I install Do Not Repeat Yourself in Claude Code?

Run `npx skills add Dimon94/skills --skill do-not-repeat-yourself -a claude-code`. Or copy the skill folder (skills/do-not-repeat-yourself in Dimon94/skills) into .claude/skills/do-not-repeat-yourself in your project. Claude Code loads it when a task matches its description.

How do I install Do Not Repeat Yourself in Codex?

Run `npx skills add Dimon94/skills --skill do-not-repeat-yourself -a codex`. Or copy the skill folder (skills/do-not-repeat-yourself in Dimon94/skills) into .agents/skills/do-not-repeat-yourself in your project. Codex loads it when a task matches its description.

Can I use Do Not Repeat Yourself in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Dimon94/skills --skill do-not-repeat-yourself -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/do-not-repeat-yourself, .gemini/skills/do-not-repeat-yourself, .github/skills/do-not-repeat-yourself and .opencode/skills/do-not-repeat-yourself in your project.

What does Do Not Repeat Yourself need to run?

SKILL.md names no scripts, command-line tools or credentials: Do Not Repeat Yourself is instructions for the agent only.

Does Do Not Repeat Yourself access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Do Not Repeat Yourself safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Do Not Repeat Yourself use?

No licence was found for Do Not Repeat Yourself or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Do Not Repeat Yourself use?

About 551 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Do Not Repeat Yourself?

Skills that share tags, products or a category with Do Not Repeat Yourself: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Do Not Repeat Yourself?

Dimon94 (a GitHub user) maintains it in Dimon94/skills, which has 107 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.

Source: Dimon94/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.