test-deduplicator

test-deduplicator is an agent for Claude Code from nowsprinting/unity-coding-skills. It costs 83 tokens per session (525 once invoked), scanned A, original, Unlicense.

An agent that reviews recently added or changed tests and removes genuine duplicates. It can also combine tests that differ only by input into parameterized tests, where one test runs against several sets of data.

In plain words
What is it for?
Use it during refactoring to inspect changed test files and related tests, identify exact duplicates, merge suitable test groups, and commit the cleanup separately.
Why use it?
It reduces repeated test code while protecting coverage. Its rules keep tests when their setup or expected result is meaningfully different.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unity-coding-skills plugin — 10 skills, 3 agents shipped together

Good fit Use it during refactoring to inspect changed test files and related tests, identify exact duplicates, merge suitable test groups, and commit the cleanup separately.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nowsprinting/unity-coding-skills/test-deduplicator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/nowsprinting/unity-coding-skills

Made for: Claude Code.

Or install unity-coding-skills, the plugin that ships this one along with the rest of its 10 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-deduplicator

README.md
[![agentmods](https://agentmods.dev/badge/agents/nowsprinting/unity-coding-skills/test-deduplicator/github.svg)](https://agentmods.dev/agents/nowsprinting/unity-coding-skills/test-deduplicator)
Your own site
<a href="https://agentmods.dev/agents/nowsprinting/unity-coding-skills/test-deduplicator"><img src="https://agentmods.dev/badge/agents/nowsprinting/unity-coding-skills/test-deduplicator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-deduplicator

Your own site · 80×15
<a href="https://agentmods.dev/agents/nowsprinting/unity-coding-skills/test-deduplicator"><img src="https://agentmods.dev/badge/agents/nowsprinting/unity-coding-skills/test-deduplicator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00525
Opus 5.5 $0.00033 $0.00210
Sonnet 5.5 $0.00017 $0.00105
Haiku 4.5 $0.00008 $0.00052

Measured 1mo ago against content hash 5bc7f72bf211, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-deduplicator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/test-deduplicator.md · 64 lines

What it actually says

Your Responsibilities

  1. Read all test files added or modified in the current iteration, plus any existing files in the same test class.
  2. Identify true duplicate tests and parameterizable test groups (see rules below).
  3. Remove redundant tests or merge into parameterized tests.
  4. Commit the changes as a dedicated commit.
  5. Return a summary.

Overriding Rule

Never trade coverage for tidiness. When in doubt whether two tests are true duplicates, or whether parameterizable tests share the same equivalence partition, keep both tests unchanged — a redundant test costs maintenance; a wrongly removed or wrongly merged test silently loses coverage.

Duplicate Definition

A true duplicate has both of the following in common with another test:

  • Same condition: identical setup / input
  • Same assertion: identical observation / expected value

Do NOT flag tests that share only one:

  • Different condition → not a duplicate
  • Same condition but different assertion → not a duplicate

Do not merge same-condition tests into a single multi-assert test.

Merge Rule: Parameterized Tests

Even if conditions differ, if two or more tests differ only in the arguments passed to the SUT and represent the same equivalence partition, rewrite them as parameterized tests and merge.

  • Never use if or switch statements inside a parameterized test body.
  • Do not parameterize expected values.

When Removing a Duplicate

Keep the more accurately named test. Delete the redundant one.

Commit

Commit the changes to git as a dedicated commit. Do not bundle these changes with other modifications.

Output

Return a summary:

  • Duplicates removed (which test was removed, which was kept)
  • Parameterized merges performed
  • Or: "no duplicates found"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 64 lines · 83 tokens per session scan A 5bc7f72bf211

Subscribe to this mod's changes

test-deduplicator is an agent published in the GitHub repository nowsprinting/unity-coding-skills (20 stars, last pushed yesterday), licensed Unlicense. It adds 83 tokens to every session and 525 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

dnp-tdd-developer-hard

🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writes both tests and production code with rigorous RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 47 tokens

dnp-tdd-developer-easy

⚡ Fast TDD for routine .NET tasks: clear requirements, low-risk changes, well-defined scope. Writes both tests and production code following RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 46 tokens

verification-runner

Run project-aware verification loop. Reads mix.exs to discover tools (credo, dialyzer, sobelow, excheck), test commands, and custom aliases. Use proactively after code changes.

oliver-kriska/claude-elixir-phoenix · 44 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

skill-eval-grader

Artifact-based grader for subjective skill evaluations. Reads evidence files (generated SKILL.md, templates, run traces) against a rubric and returns PASS/FAIL with structured reasoning. Used by grade.ts for fuzzy assertions where deterministic checks cannot apply.

QBall-Inc/the-bulwark · 53 tokens