/code-audit:code-duplication-detection [path or scope]from code-audit
Detects duplicated and near-duplicate code across the codebase and suggests consolidation. Use when reviewing for copy-paste code, repeated logic, or DRY violations.
Ships in code-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Target: $ARGUMENTS
If no target path is given above, review the entire codebase.
Examine all the code in our application.
Identify and analyze code duplication in our project. Look for similar looking functions.
Check for:
EXACT DUPLICATES
NEAR DUPLICATES
STRUCTURAL DUPLICATES
DATA DUPLICATION
For each duplication found:
In the audit report, recommend a utilities module structure for common functions, including suggested file layout and function groupings.
A structured finding report
A scale of 1/10 on how important each finding is
Remediation: precise code-level fix or config change (snippets welcome) if possible
Be concrete and cite exact code locations and identifiers.
Prefer minimal, drop-in fix snippets over prose.
Do not invent files or functions that aren’t present; if context is missing, mark as Unable to verify and say what code would prove it.
Write this into a markdown file and place it in the audits/ folder.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jeremymorgan/code-review-skills --plugin code-audit22 skills in this plugin
/api-and-infrastructureReviews API and infrastructure security configuration, including endpoints, headers, transport, and deployment settings. Use when auditing API or infrastructure hardening./authentication-flow-reviewConducts a comprehensive authentication security review covering login, sessions, tokens, and credential handling. Use when auditing authentication for vulnerabilities./authorization-implementationAnalyzes authorization and access-control logic across routes and resources for privilege and enforcement flaws. Use when auditing authorization, RBAC, or access control.Other plugins' skills for the same job