Duplication Sweep
Use for a scheduled or on-demand sweep of an existing codebase to find accumulated duplication, redundant utility modules, and dead code. Produces a ranked report for a human to act on rather than a pull request. Trigger on "what's duplicated in this repo", "find dead code", "weekly cleanup sweep", or as a recurring routine.
Duplication Review
Use when reviewing a pull request or working diff to catch duplication the change introduces. Checks each new function against existing equivalents in the repo, flags copy-paste blocks inside the diff, and measures whether the new code connects to the existing codebase at all. Trigger on "review this PR for duplication", before merging, or as a pre-merge gate.
Reuse First
Use before writing any new utility, helper, or shared function. Searches the codebase for an existing equivalent first, so the agent extends what already exists instead of adding a fifth copy of the same function. Trigger when implementing a feature that needs a helper, when about to create a file in utils/lib/common/shared, or on requests like "add a function that does X".