Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them.

No licenceAuto-check passedTesting & QA

Install Code Dedup

skills CLI
$ npx skills add MelbourneDeveloper/dart_node --skill code-dedup -a claude-code

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

GitHub CLI
$ gh skill install MelbourneDeveloper/dart_node code-dedup --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/MelbourneDeveloper/dart_node.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/code-dedup .claude/skills/code-dedup && 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
code-dedup
GitHub stars
113
Token cost
~603 tokens
SKILL.md length
335 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
None found

At a glance

Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them.

  • Works in 6 steps: Inventory test coverage → Scan for dead code → Scan for duplicate code → …
  • The user says deduplicate
  • SKILL.md covers Prerequisites — hard gate, Steps and Rules
  • Calls make and dart

What it does

Code Dedup is an agent skill from MelbourneDeveloper/dart_node. Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them. Use when the user says "deduplicate", "find duplicates", "remove dead code", "DRY up", or "code dedup". Requires test coverage — refuses to touch untested code.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test coverage and Code simplification. It works with Dart. The repository describes itself as: Write your entire stack in Dart: React web apps, React Native mobile apps with Expo, and Node.js Express backends.

When your agent uses it

  • The user says deduplicate
  • Find duplicates
  • Remove dead code

Example prompts

  • “deduplicate”
  • “find duplicates”
  • “remove dead code”
  • “/code-dedup”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Inventory test coverage
  2. Scan for dead code
  3. Scan for duplicate code
  4. Scan for duplicate tests
  5. Apply changes (one at a time)
  6. Final verification

What it can do on your machine

Read from SKILL.md and the folder at commit 5587886. 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

    Shell commands in SKILL.md call:

    • make
    • dart

    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

Code Dedup loads about 603 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 335 words of instructions outside code blocks.

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

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 335 words (~603 tokens).

“Carefully search for duplicate code, duplicate tests, and dead code across the repo. Merge duplicates and delete dead code — but only when test coverage proves the change is safe.”

— opening of SKILL.md by MelbourneDeveloper
name
code-dedup

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/code-dedup of MelbourneDeveloper/dart_node.

Open the folder on GitHubat commit 5587886

Compare with similar skills

Code Dedup 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.

Code Dedup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Dedup this skillMelbourneDeveloper/dart_node113—~603Automated safety check: PassNone
Test Guidelinesgetsentry/sentry-dart873—~3.1kAutomated safety check: PassMIT
Code DedupNimblesite/SharpLsp137—~1.6kAutomated safety check: PassMIT
Dart Test Coveragekevmoo/dash_skills147—~1.1kAutomated safety check: PassApache-2.0
Green GateVeryGoodOpenSource/vgv-ai-flutter-plugin169—~4.7kAutomated safety check: NotesMIT
Refactor OpCVCUDA/CV-CUDA2.7k—~1.5kAutomated safety check: PassCustom licence

Similar skills

  • Test Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.

    873 GitHub stars~3.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Code Dedup

    Nimblesite/SharpLsp

    Searches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them.

    137 GitHub stars~1.6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Dart Test Coverage

    kevmoo/dash_skills

    Understand and improve test coverage in a Dart package. An agent skill from kevmoo/dash_skills.

    147 GitHub stars~1.1k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Green Gate

    VeryGoodOpenSource/vgv-ai-flutter-plugin

    Drives a Dart or Flutter package fully green through a verify-fix-rerun loop across four gates: analyze, format, test, coverage.

    169 GitHub stars~4.7k tokensUpdated yesterday
    MobileAuto-check: notes
  • Refactor Op

    CVCUDA/CV-CUDA

    Find and safely apply per-operator refactoring / redundancy-reduction opportunities in a CV-CUDA operator (near-duplicate Tensor/VarShape kernels, reinvented shared utilities, dead code).

    2.7k GitHub stars~1.5k tokensUpdated 20 days ago
    DevelopmentAuto-check passed
  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed

More from MelbourneDeveloper/dart_node

All 15 skills in this repo
  • Spec Check

    MelbourneDeveloper/dart_node

    Audit spec/plan documents against the codebase. An agent skill from MelbourneDeveloper/dart_node.

    113 GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed
  • Website Audit

    MelbourneDeveloper/dart_node

    Audits a website for SEO, AI search performance, structured data, mobile usability, broken links, and social media cards.

    113 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Fix Bug

    MelbourneDeveloper/dart_node

    Fix a bug using test-driven development. An agent skill from MelbourneDeveloper/dart_node.

    113 GitHub starsUsed in 1 repo~709 tokens
    Auto-check: notes
  • Upgrade Packages

    MelbourneDeveloper/dart_node

    Upgrade all dependencies/packages to their latest versions for the detected language(s).

    113 GitHub stars~2.2k tokensUpdated 23 days ago
    Auto-check passed
  • Submit PR

    MelbourneDeveloper/dart_node

    Creates a pull request with a well-structured description after verifying CI passes.

    113 GitHub starsUsed in 1 repo~294 tokens
    Auto-check passed
  • Release

    MelbourneDeveloper/dart_node

    Prepare and execute a release to pub.dev. An agent skill from MelbourneDeveloper/dart_node.

    113 GitHub stars~2k tokensUpdated 23 days ago
    Auto-check: notes

Works with

Categories

Questions about Code Dedup

What does Code Dedup do?

Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them. Code Dedup is an agent skill from MelbourneDeveloper/dart_node. Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them.

When should I use Code Dedup?

Code Dedup fits situations like: the user says deduplicate; find duplicates; remove dead code.

How do I install Code Dedup in Claude Code?

Run `npx skills add MelbourneDeveloper/dart_node --skill code-dedup -a claude-code`. Or copy the skill folder (.claude/skills/code-dedup in MelbourneDeveloper/dart_node) into .claude/skills/code-dedup in your project. Claude Code loads it when a task matches its description.

How do I install Code Dedup in Codex?

Run `npx skills add MelbourneDeveloper/dart_node --skill code-dedup -a codex`. Or copy the skill folder (.claude/skills/code-dedup in MelbourneDeveloper/dart_node) into .agents/skills/code-dedup in your project. Codex loads it when a task matches its description.

Can I use Code Dedup 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 MelbourneDeveloper/dart_node --skill code-dedup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-dedup, .gemini/skills/code-dedup, .github/skills/code-dedup and .opencode/skills/code-dedup in your project.

What does Code Dedup need to run?

Going by SKILL.md and its folder, Code Dedup needs the command-line tools its instructions call (make and dart).

Does Code Dedup 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 Code Dedup 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 Code Dedup use?

No licence was found for Code Dedup or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Code Dedup use?

About 603 tokens (SKILL.md is roughly 2.4k 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 Code Dedup?

Skills that share tags, products or a category with Code Dedup: Test Guidelines (getsentry/sentry-dart, 873 stars), Code Dedup (Nimblesite/SharpLsp, 137 stars), Dart Test Coverage (kevmoo/dash_skills, 147 stars) and Green Gate (VeryGoodOpenSource/vgv-ai-flutter-plugin, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Dedup?

MelbourneDeveloper (a GitHub user) maintains it in MelbourneDeveloper/dart_node, which has 113 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 14, 2026.

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