Marked as helpful by the asker
Put the check in CLAUDE.md as a hard rule and name the command: 'Before you say a task is done, run npm run check and paste the last 5 lines of output. A red check means the task is not done.' The 'paste the output' part is what makes it actually run.
Naming the command did it. Making it paste the output is the key bit. leo_prompts · edited