Effective Claude Code prompts
I regularly spend time optimizing my CLAUDE.md, and I often ask claude in an interactive brainstorm session to evaluate the effectiveness of certain prompting techniques. I have iterated over this for a few hours this evening and I thought I’d share my notes:
- All caps and
**bold**have a small effect, but document structure and placement (at the top = more important) carry much more weight. Structural markers such as<CRITICAL>...</CRITICAL>are also effective. - emojis in the prompts have a small effect, but the actual words they prefix are much more important
- Repeating the most important rules (e.g. at the top and bottom of
CLAUDE.md) make it more likely it will follow those instructions. - Tell claude that if it makes a claim, it has to show its output, e.g. “Mandatory: run all tests. Show test results in output.”
- An effective way to define behavioural constraints is:
- BAD BEHAVIOUR: [describe a bad thought pattern]
- REASON IT’S BAD: [describe why it is bad]
- DETECTION: [how does claude know it’s falling into this pattern]
As an example, I’ve got this at the start of my CLAUDE.md, before any project-specific instructions:

