2 hacks
When Claude repeats a project gotcha, end your prompt with an instruction to write a CLAUDE.md rule so it never happens again.
Install the GitHub app and mention @claude in review comments so corrections become durable CLAUDE.md rules for every future session.