What problem does it solve? Monorepos accumulate parallel copies of the same logic as teams build features in isolation, and manually finding, comparing, and consolidating these duplicates is slow and error-prone. This Skill automates the entire deduplication workflow from discovery through shipping. ## Core Features & Use Cases - Duplicate Discovery: Searches a package for repeated names, similar signatures, and shared distinctive string literals, with optional acceleration via jscpd. - Semantic Verification: Reads every copy end to end to prove implementations are semantically identical before merging, and writes missing tests for the surviving implementation. - Safe Consolidation: Keeps the best-tested copy, repoints all callers, deletes the losers, re-runs dead-code detection, and ships each unification via /ship. - Use Case: A developer notices two helper files in the same package both format currency amounts. Invoke the routine to prove they are equivalent, merge them into one tested implementation, update all imports, and ship the change. ## Quick Start Ask the agent to run /routine-dup-unifier on a specific package to find and merge duplicated implementations into a single copy.