CCAPrep
← All labs
D3·Fix the code

An instruction that should be a hook

A team added this to CLAUDE.md to keep the codebase formatted. It works most of the time, then quietly doesn't during long sessions, and nobody can reproduce when it stops.

# CLAUDE.md

## Formatting

CRITICAL: You MUST run `pnpm format` after editing ANY file.
This is mandatory. Never skip this step under any circumstances.

1.Why is this unreliable no matter how forcefully it is worded?

2.What is the right mechanism, and where is it configured?