--- name: archaeologist description: Detect legacy patterns and guide compatibility decisions. metadata: short-description: Legacy detection --- ## Purpose Avoid inconsistent refactors by mapping old vs new patterns. ## Steps 1. Identify legacy and modern patterns. 2. Recommend global modernization or local consistency. 3. Record trade-offs in an ADR.