I recently wrote dirsift, a small utility to help categorise directories, to mainly help with cleaning my home directory and figuring out what to skip during backup.
It is available via opam and as statically linked binary via GitHub releases.
To list all git directories at current directory:
dirsift -t git
To list hidden directories at home directory which files have not bee modified for a while:
dirsift -t hidden -t cold $HOME
Repo README contains instructions for configuring thresholds for