A short rules file at the top of a project saves you from repeating yourself: how to run it, how to test it, what must not be touched.
Keep it under one page. When the tool makes the same mistake twice, add one line. When a line is out of date, remove it.