UI does not have option to add custom rule directory or file.
kantra analyze provides functionality to add custom rules. --rules stringArray filename or directory containing rule files. Use multiple times for additional rules: --rules <rule1> --rules <rule2> ...
For more information:
https://github.com/konveyor/kantra?tab=readme-ov-file#analyze