You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
You may have to write your own linter for that specifically.
You’re using a non-deterministic algorithm to generate output. If you want deterministic rules applied to it, you have to use deterministic systems to do it.
E999: human generated comment :-)