Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

Claude CodeIntermediateClaude Code

If a rule is mandatory, do not leave it only in CLAUDE.md

CLAUDE.md is loaded as context, not as enforced configuration: for the non-negotiable use hooks or managed settings.

Claude reads CLAUDE.md and tries to follow it, but there is no guarantee of strict compliance, especially with vague or contradictory instructions. To force something on a lifecycle event, write a hook. For something even the developer cannot edit, use managed settings. And write verifiable rules: if you cannot check whether it was followed, it is too vague.

Example
Vague (useless):     Format the code properly.
Specific (useful):   Use 2-space indentation. Run npm test before committing.

From CLAUDE.md to policy: hook (PreToolUse) or managed settings.
#claude-md#hooks#governance#best-practices