bach doctor says whether everything a build needs is in place, in a few lines a person or a script can act on. Run it first when something does not work.
What it reports
It ends with
Ready to build. or tells you how many problems to fix and run bach doctor again.
In CI
The GitHub Action runsbach doctor on your config before building.