964 B
964 B
name, description
| name | description |
|---|---|
| duplicate-code-check | Review a branch or merge-request diff for newly introduced, meaningful code duplication. Use when a user asks about repeated logic or copy-paste code in a diff. |
duplicate-code-check
Inputs
Source branch or MR and target branch; use the repository default base only after reporting it.
Workflow
- Obtain the merge-base diff and list files examined.
- Compare changed blocks with nearby and existing code; distinguish deliberate repetition, generated code, and test fixtures.
- Report evidenced candidates with both locations, similarity, maintenance risk, and a proportionate suggestion.
Rules
- Do not modify or remove code without explicit approval.
- Do not label repeated literals alone as duplication without a maintenance consequence.
- Report scope limits and skipped generated files.
Output
Return a Markdown table: candidate, locations, evidence, confidence, risk, suggested next step.