A role-reversal prompt asks an AI system to adopt a professional role and address a problem from that role’s perspective. It is useful when an explanation should resemble guidance from an experienced colleague. section 9.6.1
Diagnosing an error
You’re a senior developer explaining this error to a junior. What’s causing it and how would you fix it? Error: TypeError: Cannot read property 'map' of undefine The prompt frames the response as practical debugging guidance rather than a bare error definition. section 9.6.1
