## Lesson — Detect tools via marker files, not directory names

**Tags:** environment-detection, automation, tools

Detect installed tools by checking for their canonical marker files or specific config files rather than relying solely on directory names. This avoids false positives from unrelated folders and ensures detection works for tools that use individual files as signals.
