Find duplicate code, duplicate execution paths, and competing implementations before or during refactors, bug investigations, and code reviews. Use when work seems to happen twice, a side effect may be triggered from multiple paths, a stateful call was moved across actor or queue boundaries, a repo may contain legacy and new implementations of the same feature, or a large change needs a duplication-risk sweep. This skill creates a dedicated investigator sub-agent, runs deterministic scans with rg and ast-grep, loads modular references for the active language, and returns evidence-ranked findings with consolidation recommendations.
[TODO: Complete and informative explanation of what the skill does and when to use it. Include WHEN to use this skill - specific scenarios, file types, or tasks that trigger it.]