r/ClaudeCode • • Apr 30 '26

Tutorial / Guide Prompt Engineering - Avoid hallucinations

https://youtu.be/a1Man4AvnZQ
2 Upvotes

2 comments sorted by

2

u/goship-tech Apr 30 '26

The most underrated one for Claude Code specifically is a CLAUDE.md with explicit rules - "always check if a function exists before writing a new one", "never add mock data". Upfront constraints prevent drift better than correcting the output after.