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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-audit:code-duplication-detection [path or scope][path or scope]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Target:** $ARGUMENTS
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.
npx claudepluginhub jeremymorgan/code-review-skills --plugin code-auditProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.