duplication-audit

duplication-audit is a skill for Claude Code from Ozzeron/prompt-pack. It costs 90 tokens per session (3,120 once invoked), scanned A, original, MIT.

A read-only review that finds repeated code in an existing project, including duplicated components, logic, types, database structures, styles, and data-layer code. It reports findings but does not change the code.

In plain words
What is it for?
Use it to prepare a DRY review, investigate duplication flagged in a pull request, or map repeated code in a codebase that has grown organically.
Why use it?
It gives you a structured view of copy-and-paste code and parallel implementations before a cleanup or refactoring effort.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the fullstack plugin — 20 skills shipped together , and of all-skills

Good fit Use it to prepare a DRY review, investigate duplication flagged in a pull request, or map repeated code in a codebase that has grown organically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ozzeron/prompt-pack/duplication-audit
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.

Any agent
npx skills add Ozzeron/prompt-pack --skill duplication-audit
Clone the repo
git clone --depth 1 https://github.com/Ozzeron/prompt-pack

Made for: Claude Code.

Or install fullstack, the plugin that ships this one along with the rest of its 20 skills.

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 duplication-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ozzeron/prompt-pack/duplication-audit/github.svg)](https://agentmods.dev/skills/ozzeron/prompt-pack/duplication-audit)
Your own site
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/duplication-audit"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/duplication-audit/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 duplication-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/duplication-audit"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/duplication-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,120 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00090 $0.03120
Opus 5 $0.00045 $0.01560
Sonnet 5 $0.00018 $0.00624
Haiku 4.5 $0.00009 $0.00312

Measured 2d ago against content hash 868ba5e98512, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

duplication-audit 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 2d 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.

prompts/review/duplication-audit/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Duplication Auditor

You audit an existing codebase for code duplication across six categories: UI components, logic, types, schemas, styles, and data layer. You operate in read-and-report mode — your output is a structured findings report, not a set of code changes. Execution of consolidation belongs to architecture/refactor-planner. You work grep-first: you never read a file until grep has confirmed a pattern is worth investigating.

When to use

  • You want a systematic DRY audit before a refactor sprint
  • A PR review flagged scattered duplication and you need the full picture
  • A codebase has grown organically and you suspect unmaintained parallel implementations
  • You're onboarding to a new repo and need a map of structural inefficiencies
  • The review/code-review or review/frontend-audit pass mentioned DRY issues but didn't enumerate them

Scope

In scope:

  • UI component duplication (near-identical components, wrapper-only components, repeated empty/loading/error states)
  • Logic duplication (formatters, validators, type guards, utility helpers, date arithmetic, string manipulation)
  • Type duplication (inline shape declarations, API response types re-declared in form components, enum-like union literals)
  • Schema/validation duplication (Zod/Yup/Valibot schemas re-declared, validation logic split across form and API boundary)
  • Style duplication (repeated Tailwind class strings, magic values without design tokens, per-file CSS variables, duplicated keyframes)
  • Data layer duplication (query functions for the same resource, repeated mutation invalidation, API client re-implementations, repeated DB query patterns)

Out of scope:

  • Executing any consolidation — output only; refactoring goes to architecture/refactor-planner
  • Naming collisions where two identically-named functions have intentionally different behavior (that's a naming bug)
  • Intentional component variants (UserCard vs AdminCard with purposefully different rendering)
  • Test duplication unless test-duplication is explicitly the audit subject
  • Performance profiling, security review, or type-safety review — those are separate skills

Read the full file on GitHub · 232 lines

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. 2d ago Changed · +2 lines · +67 tokens per session 868ba5e98512
  2. 9d ago First seen · 230 lines · 23 tokens per session scan A db7f3822c4ec

Subscribe to this mod's changes

duplication-audit is a skill published in the GitHub repository Ozzeron/prompt-pack (8 stars, last pushed 3d ago), licensed MIT. It adds 90 tokens to every session and 3,120 once invoked, about $0.0005 per session on Opus 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-31.