User-Friendly Error Messages
Show friendly messages to users; log technical details separately
CLAUDE.md
Show user-friendly error messages to end users. Log the technical details (stack trace, request context) separately for debugging. Users don’t need to see stack traces.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.